/*
 * AiRCO Pay Invoice compatibility.
 * Sources in the 2026-08-06 backup:
 * - long-lived active hello-elementor-child Custom CSS for product #1398;
 * - airco-2026 Custom CSS revision #624373 for the always-visible invoice field.
 * This file is enqueued only on WooCommerce product ID 1398.
 */
#product-1398 { padding-top: 12rem; }
#product-1398 .summary > .entry-title,
#product-1398 .summary > .price { display: none !important; }
#product-1398 .woonp-default { margin-bottom: 40px; }
#product-1398 .quantity { display: none; }
#product-1398 .product_meta { display: none; }

/* ============================================================
   AiRCO — Pay Invoice page UI fix
   Scope: WooCommerce product ID 1398 only
   ============================================================ */

#product-1398 .summary form.cart {
  display: block;
  width: 100%;
  max-width: 620px;
  margin-top: 24px;
  padding: 28px;
  background: var(--card, #ffffff);
  border: 1px solid var(--line, #d9deea);
  border-radius: 14px;
  box-shadow: var(--shadow, 0 12px 35px rgba(16, 29, 73, 0.10));
}

#product-1398 .wcpa_form_outer,
#product-1398 .wcpa_wrap {
  width: 100%;
  margin-top: 0;
  padding-left: 0;
  padding-right: 0;
}

#product-1398 .wcpa_wrap .wcpa_field_wrap {
  width: 100%;
  margin-bottom: 20px;
  padding-left: 0;
  padding-right: 0;
}

#product-1398 .wcpa_field_label,
#product-1398 .woonp label {
  display: block;
  margin: 0 0 8px;
  color: var(--ink, #101d49) !important;
  font-family: var(--display, inherit) !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
}

#product-1398 .wcpa_field_desc,
#product-1398 .wcpa_option_desc {
  display: block;
  margin: 7px 0 0;
  color: var(--muted, #697386) !important;
  font-size: 0.9rem !important;
  line-height: 1.5 !important;
}

#product-1398 .wcpa_wrap .wcpa_field_wrap input[type="text"],
#product-1398 .wcpa_wrap .wcpa_field_wrap input[type="number"],
#product-1398 .wcpa_wrap .wcpa_field_wrap input[type="email"],
#product-1398 .wcpa_wrap .wcpa_field_wrap input[type="tel"],
#product-1398 .wcpa_wrap .wcpa_field_wrap select,
#product-1398 .wcpa_wrap .wcpa_field_wrap textarea,
#product-1398 .woonp .woonp-input,
#product-1398 input[name="woonp"] {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 50px !important;
  margin: 0 !important;
  padding: 12px 14px !important;
  color: var(--ink, #101d49) !important;
  background: #f4f6fa !important;
  border: 1.5px solid #b8c0d0 !important;
  border-radius: 7px !important;
  box-shadow: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  font-family: var(--body, inherit) !important;
  font-size: 1rem !important;
  line-height: 1.4 !important;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease !important;
}

#product-1398 .wcpa_wrap .wcpa_field_wrap input::placeholder,
#product-1398 input[name="woonp"]::placeholder {
  color: #737b8d !important;
  opacity: 1 !important;
}

#product-1398 .wcpa_wrap .wcpa_field_wrap input:focus,
#product-1398 .wcpa_wrap .wcpa_field_wrap select:focus,
#product-1398 .wcpa_wrap .wcpa_field_wrap textarea:focus,
#product-1398 .woonp .woonp-input:focus,
#product-1398 input[name="woonp"]:focus {
  color: var(--ink, #101d49) !important;
  background: #ffffff !important;
  border-color: var(--navy, #23308f) !important;
  outline: 0 !important;
  box-shadow: 0 0 0 3px rgba(35, 48, 143, 0.14) !important;
}

#product-1398 .woonp {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  width: 100%;
  margin: 0 0 24px;
}

#product-1398 .single_add_to_cart_button {
  min-height: 48px;
  padding: 13px 24px !important;
  margin-top: 2px;
}

#product-1398 .summary {
  min-width: 0;
}

@media (max-width: 767px) {
  #product-1398 .summary form.cart {
    max-width: none;
    padding: 20px 16px;
    border-radius: 10px;
  }

  #product-1398 .single_add_to_cart_button {
    width: 100%;
  }
}


/* ==========================================================
   AiRCO Pay Invoice — Invoice Number always-visible fix
   Paste this AFTER the previous Pay Invoice CSS
   ========================================================== */

body.postid-1398 #product-1398 form.cart .wcpa_type_text,
body.postid-1398 #product-1398 form.cart .wcpa_type_text .wcpa_field_wrap {
    display: block !important;
    width: 100% !important;
    opacity: 1 !important;
    visibility: visible !important;
}

body.postid-1398 #product-1398 form.cart .wcpa_form_outer input.wcpa_field[type="text"],
body.postid-1398 #product-1398 form.cart .wcpa_type_text input.wcpa_field,
body.postid-1398 #product-1398 form.cart input.wcpa_field:not([type="hidden"]) {
    -webkit-appearance: none !important;
    appearance: none !important;

    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 50px !important;
    height: 50px !important;

    margin: 0 !important;
    padding: 12px 14px !important;

    color: #101d49 !important;
    caret-color: #101d49 !important;

    background-color: #f2f5f9 !important;
    background-image: none !important;

    border-width: 2px !important;
    border-style: solid !important;
    border-color: #9aa6b8 !important;
    border-radius: 7px !important;

    outline: none !important;
    box-shadow: 0 0 0 1px rgba(16, 29, 73, 0.04) !important;

    opacity: 1 !important;
    visibility: visible !important;

    font-size: 16px !important;
    line-height: 1.4 !important;
}

body.postid-1398 #product-1398 form.cart input.wcpa_field:hover {
    background-color: #ffffff !important;
    border-color: #66738a !important;
}

body.postid-1398 #product-1398 form.cart input.wcpa_field:focus {
    color: #101d49 !important;
    background-color: #ffffff !important;
    border-color: #23308f !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(35, 48, 143, 0.16) !important;
}

body.postid-1398 #product-1398 form.cart input.wcpa_field::placeholder {
    color: #697386 !important;
    opacity: 1 !important;
}

body.postid-1398 #product-1398 form.cart input.wcpa_field:-webkit-autofill,
body.postid-1398 #product-1398 form.cart input.wcpa_field:-webkit-autofill:hover,
body.postid-1398 #product-1398 form.cart input.wcpa_field:-webkit-autofill:focus {
    -webkit-text-fill-color: #101d49 !important;
    -webkit-box-shadow: 0 0 0 1000px #f2f5f9 inset !important;
    border: 2px solid #9aa6b8 !important;
}
