/**
 * Checkout WC bridge — hide scrape junk, keep WFACP layout intact.
 */

/* Thank you page (order-received endpoint on custom checkout template) */
body.vm-order-received-body .vm-order-received-wrap {
    max-width: 720px;
    margin: 3rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

body.vm-order-received-body .woocommerce-thankyou-order-received {
    font-size: 1.35rem;
    font-weight: 600;
    color: #4a5238;
    margin-bottom: 1.5rem;
}

body.vm-order-received-body .woocommerce-order-overview {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
}

body.vm-order-received-body .woocommerce-order-overview li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #ece8df;
}

body.vm-order-received-body .woocommerce-order-details,
body.vm-order-received-body .woocommerce-customer-details {
    margin-top: 2rem;
}

body.vm-order-received-body .woocommerce-order-details__title,
body.vm-order-received-body .woocommerce-column__title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #4a5238;
    margin: 0 0 1rem;
}

body.vm-order-received-body table.shop_table.order_details {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #e8e4da;
    border-radius: 8px;
    overflow: hidden;
    margin: 0 0 1.5rem;
}

body.vm-order-received-body table.shop_table.order_details thead th {
    padding: 12px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6b6f63;
    background: #f7f5f0;
    border-bottom: 1px solid #e8e4da;
}

body.vm-order-received-body table.shop_table.order_details tbody td,
body.vm-order-received-body table.shop_table.order_details tfoot th,
body.vm-order-received-body table.shop_table.order_details tfoot td {
    padding: 14px 16px;
    border-top: 1px solid #ece8df;
    vertical-align: middle;
    line-height: 1.5;
}

body.vm-order-received-body table.shop_table.order_details .product-total,
body.vm-order-received-body table.shop_table.order_details thead .product-total {
    text-align: right;
    white-space: nowrap;
}

body.vm-order-received-body table.shop_table.order_details tfoot th {
    font-weight: 600;
    color: #4a5238;
    text-align: left;
}

body.vm-order-received-body table.shop_table.order_details tfoot td {
    text-align: right;
}

body.vm-order-received-body table.shop_table.order_details tr.order-total th,
body.vm-order-received-body table.shop_table.order_details tr.order-total td {
    font-weight: 700;
    font-size: 1.05rem;
    background: #f7f5f0;
}

body.vm-order-received-body .vm-order-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

body.vm-order-received-body .vm-order-item__thumb {
    flex: 0 0 72px;
    width: 72px;
}

body.vm-order-received-body .vm-order-item__thumb img,
body.vm-order-received-body .vm-order-item__image {
    display: block;
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e8e4da;
    background: #fff;
}

body.vm-order-received-body .vm-order-item__meta {
    flex: 1 1 auto;
    min-width: 0;
}

body.vm-order-received-body .vm-order-item__meta .product-quantity {
    font-weight: 400;
    color: #6b6f63;
}

body.vm-order-received-body .woocommerce-customer-details address {
    font-style: normal;
    line-height: 1.6;
    padding: 1rem 1.25rem;
    background: #f7f5f0;
    border-radius: 8px;
    border: 1px solid #e8e4da;
}

/* No cart drawer / add-to-cart banner on checkout */
body.vm-checkout-body .woocommerce-message,
body.vm-checkout-body .woocommerce-info {
    display: none !important;
}

/* Hide global error banner — inline errors under each field */
body.vm-checkout-body .woocommerce-error,
body.vm-checkout-body .woocommerce-notices-wrapper .woocommerce-error {
    display: none !important;
}

body.vm-checkout-body #wfacp-e-form .wfacp_inline_error {
    display: block;
    color: #c0392b !important;
    font-size: 13px;
    line-height: 1.35;
    margin-top: 6px;
}

body.vm-checkout-body #wfacp-e-form span.wfacp_input_error_msg {
    display: none !important;
}

body.vm-checkout-body #vm_checkout_address_wrap .wfacp_inline_error:not(:empty) {
    display: block !important;
    color: #c0392b !important;
}

body.vm-checkout-body #wfacp-e-form .wfacp_inline_error:empty,
body.vm-checkout-body #vm_payment_inline_error:empty {
    display: none !important;
}

body.vm-checkout-body #vm_payment_inline_error {
    color: #c0392b;
    font-size: 13px;
    line-height: 1.35;
    margin: 8px 0 0;
    padding: 0 4px;
}

body.vm-checkout-body #wfacp-e-form .woocommerce-invalid .wfacp-form-control,
body.vm-checkout-body #wfacp-e-form .woocommerce-invalid input.input-text,
body.vm-checkout-body #wfacp-e-form .woocommerce-invalid select.wfacp-form-control,
body.vm-checkout-body #wfacp-e-form .vm-field-invalid {
    border-color: #c0392b !important;
    box-shadow: 0 0 0 1px rgba(192, 57, 43, 0.15) !important;
}

body.vm-checkout-body #payment.vm-payment-invalid .payment_method_stripe .payment_box,
body.vm-checkout-body #payment.vm-payment-invalid .payment_method_stripe {
    outline: 2px solid #c0392b;
    outline-offset: 2px;
    border-radius: 8px;
}

body.vm-checkout-body #fkcart-modal,
body.vm-checkout-body #fkcart-floating-toggler {
    display: none !important;
}

/* BG shipping widget leftovers from prod scrape — not used on staging */
#wc-speedy-city-select-container,
#wc-speedy-street-quarter-select-container,
#wc-speedy-address-detail-container,
#wc-speedy-office-select-container,
#wc-econt-city-select-container,
#wc-econt-street-quarter-select-container,
#wc-econt-address-detail-container,
#wc-econt-office-select-container,
#wc-boxnow-office-select-container,
#wc-fan-office-select-container,
#wc-sameday-office-select-container,
#wc-packeta-office-select-container,
#wc-ro-region-select-container,
#wc-ro-city-select-container,
#wc-ro-postcode-container,
#wc-ro-address-detail-container {
    display: none !important;
}

/* Form inputs — neutral borders (override scrape / validation red) */
body.vm-checkout-body #wfacp-e-form .wfacp-form-control,
body.vm-checkout-body #wfacp-e-form input.input-text,
body.vm-checkout-body #wfacp-e-form textarea.wfacp-form-control {
    border: 1px solid #d4cfc2 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}

body.vm-checkout-body #wfacp-e-form .woocommerce-invalid .wfacp-form-control {
    border-color: #c0392b !important;
}

/* Stripe injects easel overlays on <body> — block click theft outside payment box */
body.vm-checkout-body iframe {
    pointer-events: none !important;
}

body.vm-checkout-body #payment .payment_box iframe,
body.vm-checkout-body #wc-stripe-express-checkout-element iframe,
body.vm-checkout-body .vm-express-checkout-wrapper iframe,
body.vm-checkout-body .vm-ppcp-checkout-actions iframe,
body.vm-checkout-body #ppc-button-ppcp-gateway iframe,
body.vm-checkout-body .ppc-button-wrapper iframe {
    pointer-events: auto !important;
}

body.vm-checkout-body #wfacp-e-form #payment .payment_box {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* Order bumps from scrape — FunnelKit WFOB plugin not active */
body.vm-checkout-body #wfob_wrap,
body.vm-checkout-body .wfob_wrap_start,
body.vm-checkout-body input[name^="wfob_"],
body.vm-checkout-body input[id^="wfob_"] {
    display: none !important;
}

/* Clear selected state for shipping / payment */
body.vm-checkout-body .wfacp_single_shipping_method.vm-shipping-selected {
    outline: 2px solid #7a8450;
    outline-offset: 2px;
    border-radius: 8px;
}

body.vm-checkout-body .wfacp_single_shipping_method {
    cursor: pointer;
    padding: 8px;
    margin-bottom: 6px;
    border-radius: 8px;
}

body.vm-checkout-body .wfacp_single_shipping_method.vm-shipping-disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

body.vm-checkout-body .wfacp_single_shipping_method.vm-shipping-disabled .wfacp_shipping_radio label {
    cursor: not-allowed;
}

body.vm-checkout-body .wfacp_single_shipping_method .vm-shipping-min-hint {
    margin: 0;
    padding-left: 28px;
    font-size: 13px;
    line-height: 1.35;
    color: #666;
}

body.vm-checkout-body .wfacp_shipping_radio label {
    cursor: pointer;
}
#wfacp-e-form #payment .wc_payment_methods {
    list-style: none;
    margin: 0;
    padding: 0;
}

#wfacp-e-form #payment .payment_box {
    margin-top: 8px;
}

/* Only show payment fields for the selected gateway */
body.vm-checkout-body #payment .wc_payment_method .payment_box {
    display: none !important;
}

body.vm-checkout-body #payment .wc_payment_method > input.input-radio:checked ~ .payment_box {
    display: block !important;
}

#wfacp-e-form #payment .wc-upe-form,
#wfacp-e-form #payment .ppcp-button-container {
    max-width: 100%;
}

/* PayPal checkout button slot (inside #payment) */
body.vm-checkout-body #payment .vm-ppcp-checkout-actions {
    display: none;
    margin: 0;
    padding: 0;
}

body.vm-checkout-body #payment.vm-payment-ppcp .vm-ppcp-checkout-actions {
    display: block;
}

body.vm-checkout-body #payment .vm-ppcp-checkout-actions .ppc-button-wrapper {
    margin: 0;
    max-width: 100%;
}

body.vm-checkout-body #payment .vm-ppcp-checkout-actions #ppc-button-ppcp-gateway,
body.vm-checkout-body #payment .vm-ppcp-checkout-actions .paypal-buttons {
    min-height: 45px;
    pointer-events: auto !important;
}

body.vm-checkout-body #payment.vm-payment-ppcp .wfacp-order-place-btn-wrap {
    display: none !important;
}

body.vm-checkout-body #payment.vm-payment-ppcp .payment_method_ppcp-gateway .payment_box > p {
    display: none;
}

body.vm-checkout-body #ppc-button-ppcp-applepay:empty,
body.vm-checkout-body #ppc-button-ppcp-googlepay:empty {
    display: none !important;
}

body.vm-checkout-body #payment .wc_payment_method {
    cursor: pointer;
    padding: 12px 14px;
    margin-bottom: 8px;
    border-radius: 8px;
    border: 1px solid #e8e4da;
    background: #fff;
}

body.vm-checkout-body #payment .wc_payment_method.vm-payment-selected {
    outline: 2px solid #7a8450;
    outline-offset: 0;
    border-color: #7a8450;
}

body.vm-checkout-body #payment .wc_payment_method > input.input-radio {
    position: static !important;
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    margin: 0 10px 0 0 !important;
    opacity: 1 !important;
    vertical-align: middle;
    accent-color: #7a8450;
}

body.vm-checkout-body #payment .wc_payment_method > input.input-radio::before,
body.vm-checkout-body #payment .wc_payment_method > input.input-radio::after {
    display: none !important;
    content: none !important;
}

body.vm-checkout-body #payment .wc_payment_method > label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin: 0;
    vertical-align: middle;
}

body.vm-checkout-body #payment .wc_payment_method .payment_box {
    margin: 10px 0 0 28px;
    padding: 0;
    border: 0;
    background: transparent;
    overflow: visible;
}

body.vm-checkout-body #payment .form-row.place-order {
    margin-top: 16px;
    padding-top: 0;
    border-top: 0;
}

/* CIF empresa — solo visible si se marca la casilla */
body.vm-checkout-body #billing_nif_field {
    display: none !important;
}

body.vm-checkout-body #billing_nif_field.vm-invoice-nif-visible,
body.vm-checkout-body #invoice_asking_field:has(#invoice_asking:checked) + #billing_nif_field {
    display: block !important;
}

/* Cupón TU PEDIDO */
body.vm-checkout-body .wfacp-coupon-page .wfacp_coupon_field_box {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
    width: 100%;
    margin-bottom: 8px;
}

body.vm-checkout-body .wfacp-coupon-page .wfacp_coupon_field_box .wfacp-col-left-half {
    flex: 1 1 220px;
    min-width: 0;
    margin: 0 !important;
    float: none !important;
    width: auto !important;
}

body.vm-checkout-body .wfacp-coupon-page .wfacp_coupon_btn_wrap {
    flex: 0 0 auto;
}

body.vm-checkout-body .wfacp-coupon-page .wfacp-coupon-field-btn,
body.vm-checkout-body .wfacp-coupon-page .wfacp-coupon-btn {
    min-height: 48px;
    padding: 12px 20px !important;
    white-space: nowrap;
}

body.vm-checkout-body .wfacp-coupon-page .wfacp_coupon_error_msg .woocommerce-error,
body.vm-checkout-body .wfacp-coupon-page .wfacp_coupon_field_msg .woocommerce-message {
    margin: 8px 0 0;
    padding: 10px 12px;
    border-radius: 8px;
}

/* Cupón en sidebar "Tu carrito" */
body.vm-checkout-body .vm-cart-discount-row th,
body.vm-checkout-body .vm-cart-discount-row td {
    vertical-align: middle;
    padding-top: 8px;
    padding-bottom: 8px;
}

body.vm-checkout-body .vm-cart-discount-value {
    text-align: right;
    white-space: nowrap;
}

body.vm-checkout-body .vm-cart-discount-value .vm-cart-discount-amount {
    display: inline-block;
    margin-right: 10px;
    font-weight: 600;
}

body.vm-checkout-body .vm-remove-coupon,
body.vm-checkout-body .woocommerce-remove-coupon {
    display: inline;
    margin: 0;
    padding: 0;
    border: 0;
    background: none !important;
    box-shadow: none !important;
    min-height: 0 !important;
    min-width: 0 !important;
    width: auto !important;
    height: auto !important;
    color: rgba(255, 255, 255, 0.82) !important;
    font: inherit;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: none !important;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
    appearance: none;
    vertical-align: baseline;
}

body.vm-checkout-body .vm-remove-coupon:hover,
body.vm-checkout-body .vm-remove-coupon:focus-visible,
body.vm-checkout-body .woocommerce-remove-coupon:hover,
body.vm-checkout-body .woocommerce-remove-coupon:focus-visible {
    color: #ffffff !important;
    background: none !important;
    outline: none;
}

body.vm-checkout-body .vm-remove-coupon.is-busy,
body.vm-checkout-body .woocommerce-remove-coupon.is-busy {
    opacity: 0.55;
    cursor: wait;
    pointer-events: none;
}

body.wfacpef_page .elementor-9183 .vm-remove-coupon,
body.wfacpef_page .elementor-9183 .woocommerce-remove-coupon {
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
    min-height: 0 !important;
    padding: 0 !important;
    text-transform: none !important;
}

/* Mobile cart accordion — flecha clicable */
body.vm-checkout-body .wfacp_mb_cart_accordian {
    cursor: pointer;
}

body.vm-checkout-body .wfacp_mb_cart_accordian .wfacp_summary_link {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    min-width: 0;
    text-decoration: none !important;
}

body.vm-checkout-body .wfacp_mb_cart_accordian .wfacp_summary_link span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.vm-checkout-body .wfacp_mb_cart_accordian .vm-checkout-accordion-chevron {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    background: url("/wp-content/themes/veganmilker/assets/img/checkout/select-dropdown-icon.svg") center / 14px no-repeat;
    transition: transform 0.15s ease;
}

body.vm-checkout-body .wfacp_mb_cart_accordian.wfacp_summary_open .vm-checkout-accordion-chevron {
    transform: rotate(180deg);
}

body.vm-checkout-body .wfacp_mb_cart_accordian:hover .vm-checkout-accordion-chevron,
body.vm-checkout-body .wfacp_mb_cart_accordian:focus-within .vm-checkout-accordion-chevron {
    opacity: 0.85;
}

/* Shipping address / pickup — toggled by checkout-interactivity.js */
body.vm-checkout-body #vm_checkout_address_wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
    width: 100%;
    clear: both;
}

body.vm-checkout-body #vm_checkout_address_wrap .vm-field-home {
    display: none;
}

body.vm-checkout-body #vm_checkout_address_wrap .vm-field-pickup {
    display: block;
}

body.vm-checkout-body #vm_shipping_inline_error:not(:empty) {
    display: block !important;
    color: #c0392b !important;
    font-size: 14px;
    margin: 8px 0 0;
}

/* Country + postcode — before shipping methods */
body.vm-checkout-body #vm_checkout_country_postcode {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0 0 16px;
    width: 100%;
    clear: both;
}

body.vm-checkout-body #vm_checkout_country_postcode .form-row,
body.vm-checkout-body #vm_checkout_address_wrap .vm-address-field {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
    float: none !important;
    width: 100% !important;
}

body.vm-checkout-body #vm_checkout_country_postcode label.wfacp-form-control-label,
body.vm-checkout-body #vm_checkout_address_wrap label.wfacp-form-control-label {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

body.vm-checkout-body #vm_checkout_country_postcode .woocommerce-input-wrapper,
body.vm-checkout-body #vm_checkout_address_wrap .woocommerce-input-wrapper {
    display: block;
    width: 100%;
    min-height: 48px;
    overflow: visible;
    position: relative !important;
    z-index: 1;
}

body.vm-checkout-body #vm_checkout_country_postcode .woocommerce-input-wrapper > .select2.select2-container,
body.vm-checkout-body #vm_checkout_address_wrap .woocommerce-input-wrapper > .select2.select2-container {
    position: relative !important;
}

body.vm-checkout-body #vm_checkout_country_postcode .form-row.vm-select2-open-row,
body.vm-checkout-body #vm_checkout_address_wrap .form-row.vm-select2-open-row {
    position: relative;
    z-index: 300;
    overflow: visible !important;
}

body.vm-checkout-body #vm_checkout_country_postcode .woocommerce-input-wrapper.vm-select2-open,
body.vm-checkout-body #vm_checkout_address_wrap .woocommerce-input-wrapper.vm-select2-open {
    z-index: 301;
    overflow: visible !important;
}

body.vm-checkout-body > .select2-container.select2-container--open {
    z-index: 99999 !important;
}

body.vm-checkout-body #vm_checkout_country_postcode .woocommerce-input-wrapper > .select2-container.select2-container--open:not(.select2),
body.vm-checkout-body #vm_checkout_address_wrap .woocommerce-input-wrapper > .select2-container.select2-container--open:not(.select2) {
    display: none !important;
}

body.vm-checkout-body #vm_checkout_country_postcode .select2-container,
body.vm-checkout-body #vm_checkout_address_wrap .select2-container {
    width: 100% !important;
    max-width: 100%;
    display: block;
}

body.vm-checkout-body #vm_checkout_country_postcode,
body.vm-checkout-body #vm_checkout_country_postcode .form-row,
body.vm-checkout-body #vm_checkout_country_postcode .woocommerce-input-wrapper {
    overflow: visible !important;
}

body.vm-checkout-body #vm_checkout_country_postcode .woocommerce-input-wrapper > select.select2-hidden-accessible,
body.vm-checkout-body #vm_checkout_address_wrap .woocommerce-input-wrapper > select.select2-hidden-accessible {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

body.vm-checkout-body #vm_checkout_country_postcode .select2-container--default .select2-selection--single,
body.vm-checkout-body #vm_checkout_address_wrap .select2-container--default .select2-selection--single {
    box-sizing: border-box !important;
    height: 48px;
    min-height: 48px;
    border: 1px solid #d4cfc2 !important;
    border-radius: 8px !important;
    background: #fff;
    transition: border-color 0.15s ease;
}

body.vm-checkout-body #vm_checkout_country_postcode .select2-container--default.select2-container--focus:not(.select2-container--open) .select2-selection--single,
body.vm-checkout-body #vm_checkout_address_wrap .select2-container--default.select2-container--focus:not(.select2-container--open) .select2-selection--single {
    border-color: #7a8450 !important;
    outline: none;
}

body.vm-checkout-body #vm_checkout_country_postcode .select2-container--default .select2-selection--single .select2-selection__rendered,
body.vm-checkout-body #vm_checkout_address_wrap .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 1.4;
    padding: 13px 44px 13px 14px;
    color: #1a1a1a;
    font-size: inherit;
}

body.vm-checkout-body #vm_checkout_country_postcode .select2-container .select2-selection,
body.vm-checkout-body #vm_checkout_address_wrap .select2-container .select2-selection,
body.vm-checkout-body #vm_checkout_country_postcode .select2-selection__rendered,
body.vm-checkout-body #vm_checkout_address_wrap .select2-selection__rendered {
    outline: none !important;
    box-shadow: none;
}

body.vm-checkout-body #vm_checkout_country_postcode .select2-container--default .select2-selection--single .select2-selection__arrow,
body.vm-checkout-body #vm_checkout_address_wrap .select2-container--default .select2-selection--single .select2-selection__arrow {
    position: absolute;
    top: 50%;
    right: 10px;
    width: 24px;
    height: 24px;
    margin-top: 0 !important;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7a8450;
    background: url("/wp-content/themes/veganmilker/assets/img/checkout/select-dropdown-icon.svg") no-repeat center center !important;
    background-size: 14px !important;
    z-index: 2;
}

body.vm-checkout-body #vm_checkout_country_postcode .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow,
body.vm-checkout-body #vm_checkout_address_wrap .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow {
    transform: translateY(-50%) rotate(180deg);
}

body.vm-checkout-body #vm_checkout_country_postcode .select2-container--default .select2-selection--single .select2-selection__arrow b,
body.vm-checkout-body #vm_checkout_address_wrap .select2-container--default .select2-selection--single .select2-selection__arrow b,
body.vm-checkout-body #vm_checkout_country_postcode .select2-container--default .select2-selection--single .select2-selection__arrow::after,
body.vm-checkout-body #vm_checkout_address_wrap .select2-container--default .select2-selection--single .select2-selection__arrow::after {
    display: none !important;
}

body.vm-checkout-body .select2-dropdown,
body.vm-checkout-body .select2-dropdown.vm-checkout-select2-dropdown,
body.vm-checkout-body #wfacp-e-form .select2-dropdown {
    display: block !important;
    border: 2px solid #7a8450 !important;
    border-radius: 0 0 8px 8px !important;
    background: #fff;
    box-shadow: 0 8px 22px rgba(42, 100, 81, 0.18);
    overflow: hidden;
    pointer-events: auto !important;
    z-index: 99999 !important;
}

body.vm-checkout-body .select2-dropdown .select2-results {
    display: block !important;
}

body.vm-checkout-body .select2-dropdown.select2-dropdown--below {
    border-top: none !important;
    margin-top: 0 !important;
}

body.vm-checkout-body #vm_checkout_country_postcode .select2-container--open.select2-container--below .select2-selection--single,
body.vm-checkout-body #vm_checkout_address_wrap .select2-container--open.select2-container--below .select2-selection--single {
    border-color: #7a8450 !important;
    border-width: 2px !important;
    border-bottom: none !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

body.vm-checkout-body #vm_checkout_country_postcode .select2-dropdown.select2-dropdown--below,
body.vm-checkout-body #vm_checkout_address_wrap .select2-dropdown.select2-dropdown--below {
    border-top: none !important;
    margin-top: 0 !important;
}

body.vm-checkout-body .select2-search.select2-search--dropdown,
body.vm-checkout-body .select2-search--dropdown,
body.vm-checkout-body #wfacp-e-form .select2-search--dropdown,
body.vm-checkout-body .vm-checkout-select2-dropdown .select2-search--dropdown {
    display: block !important;
    padding: 8px 10px !important;
    background: #fff !important;
    border-bottom: 1px solid #e8e4da !important;
    margin: 0 !important;
}

body.vm-checkout-body .select2-search--dropdown .select2-search__field,
body.vm-checkout-body #wfacp-e-form .select2-search--dropdown .select2-search__field,
body.vm-checkout-body .vm-checkout-select2-dropdown .select2-search__field {
    width: 100% !important;
    height: 38px;
    min-height: 38px;
    padding: 8px 12px !important;
    border: 1px solid #d4cfc2 !important;
    border-radius: 6px !important;
    background: #fff !important;
    color: #1a1a1a !important;
    font-size: inherit;
    outline: none !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
}

body.vm-checkout-body .select2-search--dropdown .select2-search__field:focus,
body.vm-checkout-body .select2-search--dropdown .select2-search__field:focus-visible,
body.vm-checkout-body #wfacp-e-form .select2-search--dropdown .select2-search__field:focus,
body.vm-checkout-body #wfacp-e-form .select2-search--dropdown .select2-search__field:focus-visible {
    border-color: #7a8450 !important;
}

body.vm-checkout-body .select2-search--dropdown .select2-search__field::placeholder,
body.vm-checkout-body #wfacp-e-form .select2-search--dropdown .select2-search__field::placeholder {
    color: #767676;
}

body.vm-checkout-body .vm-checkout-select2-dropdown .select2-results,
body.vm-checkout-body .select2-dropdown .select2-results {
    background: #fff;
    padding: 4px 0;
}

body.vm-checkout-body .select2-container--open,
body.vm-checkout-body #wfacp-e-form .select2-container--open {
    z-index: 200;
}

body.vm-checkout-body .select2-container--default .select2-results > .select2-results__options,
body.vm-checkout-body .select2-results__options {
    list-style: none !important;
    margin: 0 !important;
    padding: 4px 0 !important;
}

body.vm-checkout-body .select2-results__option {
    list-style: none !important;
    padding: 10px 14px !important;
    color: #1a1a1a;
    pointer-events: auto !important;
    cursor: pointer;
}

body.vm-checkout-body .select2-container--default .select2-results__option--highlighted[aria-selected],
body.vm-checkout-body .select2-container--default .select2-results__option--highlighted[data-selected] {
    background-color: #7a8450 !important;
    color: #fff !important;
}

body.vm-checkout-body .select2-container--default .select2-results__option[aria-selected="true"] {
    background-color: #f5f1e8;
    color: #1a1a1a;
}

body.vm-checkout-body .select2-results__options {
    max-height: 200px !important;
    overflow-y: auto !important;
}

body.vm-checkout-body #vm_checkout_country_postcode .woocommerce-input-wrapper > .select2.select2-container ~ .select2.select2-container,
body.vm-checkout-body #vm_checkout_address_wrap .woocommerce-input-wrapper > .select2.select2-container ~ .select2.select2-container {
    display: none !important;
}

/* Shipping methods */
body.vm-checkout-body #shipping_method {
    list-style: none !important;
    margin: 0;
    padding: 0;
}

body.vm-checkout-body #shipping_method .wfacp_single_shipping_method {
    list-style: none !important;
    cursor: pointer;
}

body.vm-checkout-body #shipping_method .wfacp_single_shipping {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: 100%;
}

body.vm-checkout-body #shipping_method .wfacp_single_shipping_row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

body.vm-checkout-body #shipping_method .wfacp_shipping_radio {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

body.vm-checkout-body #shipping_method .wfacp_shipping_radio label {
    cursor: pointer;
    margin: 0;
    flex: 1;
    min-width: 0;
}

body.vm-checkout-body #shipping_method .wfacp_shipping_price {
    flex: 0 0 auto;
    white-space: nowrap;
}

body.vm-checkout-body #shipping_method .wfacp_single_shipping_method.vm-shipping-disabled .wfacp_shipping_radio label {
    display: block !important;
}

body.vm-checkout-body .wfacp_shipping_table #shipping_method li input.shipping_method[type="radio"],
body.vm-checkout-body #shipping_method input.shipping_method[type="radio"] {
    display: inline-block !important;
    position: static !important;
    opacity: 1 !important;
    width: auto !important;
    height: auto !important;
    margin: 0 8px 0 0 !important;
    pointer-events: auto !important;
    flex-shrink: 0;
    cursor: pointer;
}

body.vm-checkout-body #shipping_method .vm-no-shipping-rates {
    padding: 12px;
    color: #1a1a1a;
    font-size: 14px;
    line-height: 1.4;
}

body.vm-checkout-body #vm_checkout_country_postcode .input-text,
body.vm-checkout-body #vm_checkout_country_postcode select.wfacp-form-control,
body.vm-checkout-body #vm_checkout_address_wrap .input-text,
body.vm-checkout-body #vm_checkout_address_wrap select.wfacp-form-control {
    width: 100%;
    box-sizing: border-box;
    min-height: 48px;
    padding: 12px 14px !important;
    border: 1px solid #d4cfc2 !important;
    border-radius: 8px !important;
    background: #fff;
    font-size: 15px;
    line-height: 1.4;
    margin: 0;
}

body.vm-checkout-body #vm_checkout_address_wrap select.wfacp-form-control {
    appearance: auto;
    cursor: pointer;
}

body.vm-checkout-body #vm_checkout_address_wrap .wfacp_inline_error:empty {
    display: none !important;
}

body.vm-checkout-body #vm_checkout_address_wrap .wfacp_inline_error:not(:empty) {
    display: block !important;
}

/* GLS ParcelShop + Packlink drop-off widgets */
body.vm-checkout-body #parcelinfo-container,
body.vm-checkout-body #packlink-drop-off-picker,
body.vm-checkout-body .vm_carrier_shipping_hooks {
    margin-top: 12px;
}

body.vm-checkout-body #parcelinfo-container input.button {
    margin-top: 8px;
}

/* Express Checkout (Apple Pay / Google Pay / Link) - inside payment section */
body.vm-checkout-body .wfacp_payment .vm-express-checkout-wrapper {
    margin: 1.5em 0;
    padding: 0;
}

/* Hide dead FunnelKit express checkout markup */
body.vm-checkout-body #fkwcs_stripe_smart_button_wrapper,
body.vm-checkout-body #fkwcs-expresscheckout-fieldset,
body.vm-checkout-body .payment_method_fkwcs_stripe_apple_pay {
    display: none !important;
}

body.vm-checkout-body #wc-stripe-express-checkout-element {
    margin: 0 !important;
    clear: both;
}

body.vm-checkout-body #wc-stripe-express-checkout-button-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 28px 0 !important;
    padding: 0;
    border: 0;
    background: none;
    position: relative;
    text-align: center;
    line-height: 1;
}

body.vm-checkout-body #wc-stripe-express-checkout-button-separator::before,
body.vm-checkout-body #wc-stripe-express-checkout-button-separator::after {
    content: '';
    flex: 1 1 0;
    height: 1px;
    background: #e0ddd4;
    position: static;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
}

body.vm-checkout-body #wc-stripe-express-checkout-button-separator span {
    flex: 0 0 auto;
    position: relative;
    z-index: 1;
    padding: 0 4px;
    background: #ffffff;
    color: #9a968a;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    line-height: 1;
}

/* Hide separator when no buttons are shown */
body.vm-checkout-body #wc-stripe-express-checkout-element:empty + #wc-stripe-express-checkout-button-separator,
body.vm-checkout-body .vm-express-checkout-wrapper:empty {
    display: none !important;
}
