.iwbtr-fields{border:1px solid #d7ded8;border-radius:8px;padding:1.25rem;margin:0 0 1rem;width:100%;box-sizing:border-box;min-width:0}
.iwbtr-fields legend{font-weight:600;padding:0 .4rem}.iwbtr-fields label{display:block;margin-bottom:.35rem}.iwbtr-fields input,.iwbtr-fields select,.iwbtr-fields textarea{width:100%;box-sizing:border-box;max-width:100%}.iwbtr-fields p{margin:0 0 1rem}.iwbtr-quote{padding:.8rem;background:#f3f6f3;margin-bottom:1rem}.iwbtr-quote summary{cursor:pointer;margin-top:.5rem}.iwbtr-quote dd{margin:0 0 .5rem}.iwbtr-disclaimer{font-size:.9em}.iwbtr-catalog .products{display:flex;flex-wrap:wrap}.iwbtr-catalog .products li.product{float:none}.iwbtr-notice{padding:1rem;background:#f3f6f3}

/* Override theme text only on the plugin's light surfaces.
   Labels, legend and surrounding copy retain the theme's light text. */
.iwbtr-fields .iwbtr-quote,
.iwbtr-fields .iwbtr-quote *,
.iwbtr-notice {
    color: #17251e !important;
    -webkit-text-fill-color: #17251e !important;
}

/* FlexSlider gallery arrows only: retain slides, thumbnails and lightbox. */
body.iwbtr-tour-product .woocommerce-product-gallery > ul.flex-direction-nav {
    display: none !important;
}

.iwbtr-fields input,
.iwbtr-fields select,
.iwbtr-fields option,
.iwbtr-fields textarea {
    color: #17251e !important;
    -webkit-text-fill-color: #17251e !important;
    background-color: #fff !important;
    border-color: #68786e;
    color-scheme: light;
}

.iwbtr-fields input::placeholder,
.iwbtr-fields textarea::placeholder {
    color: #526259 !important;
    -webkit-text-fill-color: #526259 !important;
    opacity: 1;
}

/* Dark outline and white inner ring remain visible on both surfaces. */
.iwbtr-fields input:focus,
.iwbtr-fields select:focus,
.iwbtr-fields textarea:focus,
.iwbtr-fields .iwbtr-quote summary:focus {
    outline: 3px solid #257a4a !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 2px #fff !important;
}

/* Tour product pages only. Defaults must be checked against the site's header.
   Override --iwbtr-tour-top-desktop/tablet/mobile in the site's custom CSS. */
body.iwbtr-tour-product {
    --iwbtr-tour-top-space: var(--iwbtr-tour-top-desktop, 160px);
}

body.iwbtr-tour-product main.site-main {
    padding-top: var(--iwbtr-tour-top-space) !important;
}

@media (max-width: 1024px) {
    body.iwbtr-tour-product {
        --iwbtr-tour-top-space: var(--iwbtr-tour-top-tablet, 128px);
    }
}

@media (max-width: 767px) {
    body.iwbtr-tour-product {
        --iwbtr-tour-top-space: var(--iwbtr-tour-top-mobile, 104px);
    }
}

/* Override WooCommerce's purple alt button only on the tour request form. */
body.iwbtr-tour-product .product form.cart button.single_add_to_cart_button,
.iwbtr-select-tour.button {
    background-color: #7E9D4A !important;
    background-image: none !important;
    border: 1px solid #7E9D4A !important;
    color: #071A13 !important;
    -webkit-text-fill-color: #071A13 !important;
}

body.iwbtr-tour-product .product form.cart button.single_add_to_cart_button:hover,
.iwbtr-select-tour.button:hover {
    background-color: #6c893e !important;
    border-color: #6c893e !important;
    color: #071A13 !important;
}

body.iwbtr-tour-product .product form.cart button.single_add_to_cart_button:focus-visible,
.iwbtr-select-tour.button:focus-visible {
    outline: 3px solid #fff !important;
    outline-offset: 3px !important;
    box-shadow: 0 0 0 3px #071A13 !important;
}

.iwbtr-option-cost { display: block; margin-top: .35rem; }

/* Links inside plugin-owned components only; button links remain green. */
:is(.iwbtr-catalog, .iwbtr-fields, .iwbtr-notice) a:not(.button):not(.wp-element-button):not([role="button"]) {
    color: #DBB448 !important;
    -webkit-text-fill-color: #DBB448 !important;
    text-decoration: underline;
    text-underline-offset: .2em;
}

:is(.iwbtr-catalog, .iwbtr-fields, .iwbtr-notice) a:not(.button):not(.wp-element-button):not([role="button"]):hover {
    color: #edc969 !important;
    -webkit-text-fill-color: #edc969 !important;
    text-decoration-thickness: 2px;
}

:is(.iwbtr-catalog, .iwbtr-fields, .iwbtr-notice) a:not(.button):not(.wp-element-button):not([role="button"]):focus-visible {
    outline: 3px solid #DBB448 !important;
    outline-offset: 3px !important;
    box-shadow: 0 0 0 3px #071A13 !important;
    text-decoration-thickness: 2px;
}

.iwbtr-catalog a.woocommerce-loop-product__link .woocommerce-loop-product__title {
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
}

/* Classic cart, checkout and receipt only. Keep the global header untouched. */
.iwbtr-fields,
.iwbtr-fields :is(legend, label, input, select, textarea, .iwbtr-quote, .iwbtr-quote *, .iwbtr-option-cost, .iwbtr-option-cost *),
.iwbtr-notice {
    font-family: inherit !important;
    overflow-wrap: anywhere;
}
.iwbtr-fields :is(legend, label, .iwbtr-disclaimer, .iwbtr-option-cost) {
    color: #edf2ec !important;
    -webkit-text-fill-color: #edf2ec !important;
}
body.iwbtr-tour-product .product form.cart { min-width: 0; max-width: 100%; flex-wrap: wrap; }
body.iwbtr-tour-product .product form.cart .single_add_to_cart_button { max-width: 100%; white-space: normal; box-sizing: border-box; }
body.iwbtr-commerce-page {
    --iwbtr-commerce-top-space: var(--iwbtr-commerce-top-desktop, 160px);
}
body.iwbtr-commerce-page main.site-main {
    padding-top: var(--iwbtr-commerce-top-space) !important;
}
body.iwbtr-commerce-page main.site-main .woocommerce {
    color: #edf2ec;
    font-family: inherit !important;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}
body.iwbtr-commerce-page main.site-main .woocommerce :is(
    table, thead, tbody, tfoot, tr, th, td, .shop_table *, .variation, .variation *,
    .wc-item-meta, .wc-item-meta *, .woocommerce-order-overview, .woocommerce-order-overview *,
    .woocommerce-customer-details, .woocommerce-customer-details *,
    label, input, select, textarea, button, .button, code, pre
) {
    font-family: inherit !important;
}
body.iwbtr-commerce-page main.site-main .woocommerce :is(.shop_table, .cart_totals, .woocommerce-order-details) {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}
body.iwbtr-commerce-page main.site-main .woocommerce .shop_table {
    background: #102a1e !important;
    color: #edf2ec !important;
    border-color: #56705e;
    border-collapse: separate;
}
body.iwbtr-commerce-page main.site-main .woocommerce .shop_table :is(th, td) {
    background: transparent !important;
    border-color: #56705e;
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
    white-space: normal;
    overflow-wrap: anywhere;
}
body.iwbtr-commerce-page main.site-main .woocommerce :is(.shop_table, .variation, .wc-item-meta) :is(span, bdi, p, strong, small, dt, dd, code, pre) {
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
    white-space: normal;
    overflow-wrap: anywhere;
}
body.iwbtr-commerce-page main.site-main .woocommerce :is(.variation dd, .wc-item-meta li) {
    margin-inline-start: 0;
    max-width: 100%;
}
body.iwbtr-commerce-page main.site-main .woocommerce :is(h2, h3, form label, .woocommerce-order-overview, .woocommerce-customer-details address) {
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
}

/* WooCommerce notices, including the View cart link/button on a tour page. */
body:is(.iwbtr-commerce-page, .iwbtr-tour-product) main.site-main :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) {
    background: #102a1e !important;
    color: #edf2ec !important;
    -webkit-text-fill-color: #edf2ec !important;
    font-family: inherit !important;
    border-top-color: #7E9D4A;
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: anywhere;
}
body:is(.iwbtr-commerce-page, .iwbtr-tour-product) main.site-main .woocommerce-info { border-top-color: #DBB448; }
body:is(.iwbtr-commerce-page, .iwbtr-tour-product) main.site-main .woocommerce-error { border-top-color: #d9786b; }
body:is(.iwbtr-commerce-page, .iwbtr-tour-product) main.site-main :is(.woocommerce-message, .woocommerce-info, .woocommerce-error)::before {
    -webkit-text-fill-color: currentColor;
}

body.iwbtr-commerce-page main.site-main .woocommerce a:not(.button):not(.wp-element-button):not([role="button"]),
body.iwbtr-tour-product main.site-main :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) a:not(.button):not([role="button"]) {
    color: #DBB448 !important;
    -webkit-text-fill-color: #DBB448 !important;
    text-decoration: underline;
    text-underline-offset: .2em;
}
body.iwbtr-commerce-page main.site-main .woocommerce a:not(.button):not(.wp-element-button):not([role="button"]):hover,
body.iwbtr-tour-product main.site-main :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) a:not(.button):not([role="button"]):hover {
    color: #edc969 !important;
    -webkit-text-fill-color: #edc969 !important;
    text-decoration-thickness: 2px;
}
body.iwbtr-commerce-page main.site-main .woocommerce a:not(.button):not(.wp-element-button):not([role="button"]):focus-visible,
body.iwbtr-tour-product main.site-main :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) a:not(.button):not([role="button"]):focus-visible {
    outline: 3px solid #DBB448 !important;
    outline-offset: 3px !important;
    text-decoration-thickness: 2px;
}

body.iwbtr-commerce-page main.site-main .woocommerce :is(.button, button, input[type="submit"]),
body.iwbtr-tour-product main.site-main :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) .button {
    background: #7E9D4A !important;
    border: 1px solid #7E9D4A !important;
    color: #071A13 !important;
    -webkit-text-fill-color: #071A13 !important;
    font-family: inherit !important;
    line-height: 1.4;
    padding: .75em 1.1em;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
    text-decoration: none;
}
body.iwbtr-commerce-page main.site-main .woocommerce :is(.button, button, input[type="submit"]):hover,
body.iwbtr-tour-product main.site-main :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) .button:hover {
    background: #6c893e !important;
    border-color: #6c893e !important;
    color: #071A13 !important;
}
body.iwbtr-commerce-page main.site-main .woocommerce :is(.button, button, input[type="submit"]):focus-visible,
body.iwbtr-tour-product main.site-main :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) .button:focus-visible {
    outline: 3px solid #fff !important;
    outline-offset: 3px !important;
    box-shadow: 0 0 0 3px #071A13 !important;
}

/* White fields retain dark text; checkbox/radio geometry stays native. */
body.iwbtr-commerce-page main.site-main .woocommerce :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]), select, option, textarea, .select2-selection, .select2-selection__rendered) {
    background-color: #fff !important;
    color: #17251e !important;
    -webkit-text-fill-color: #17251e !important;
    font-family: inherit !important;
    font-size: 1rem;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    border-color: #68786e;
    color-scheme: light;
}
body.iwbtr-commerce-page main.site-main .woocommerce :is(input, textarea)::placeholder {
    color: #526259 !important;
    -webkit-text-fill-color: #526259 !important;
    opacity: 1;
}
body.iwbtr-commerce-page main.site-main .woocommerce :is(input, select, textarea):focus,
body.iwbtr-commerce-page main.site-main .woocommerce .select2-container--focus .select2-selection {
    outline: 3px solid #7E9D4A !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 2px #fff !important;
}
body.iwbtr-commerce-page main.site-main .woocommerce .select2-container { max-width: 100%; min-width: 0; }
body.iwbtr-commerce-page main.site-main .woocommerce .select2-selection { height: auto !important; min-height: 44px; }
body.iwbtr-commerce-page main.site-main .woocommerce .select2-selection__rendered { line-height: 1.4 !important; white-space: normal; padding-block: .6rem; }

/* WooCommerce's billing/shipping Select2 menus are attached outside main. */
body.iwbtr-commerce-page .select2-dropdown:has([id^="select2-billing_"], [id^="select2-shipping_"]),
body.iwbtr-commerce-page .select2-dropdown:has([id^="select2-billing_"], [id^="select2-shipping_"]) :is(input, ul, li) {
    background-color: #fff !important;
    color: #17251e !important;
    -webkit-text-fill-color: #17251e !important;
    font-family: inherit !important;
    overflow-wrap: anywhere;
}
body.iwbtr-commerce-page .select2-dropdown:has([id^="select2-billing_"], [id^="select2-shipping_"]) .select2-results__option--highlighted {
    background-color: #7E9D4A !important;
    color: #071A13 !important;
    -webkit-text-fill-color: #071A13 !important;
}

body.iwbtr-commerce-page main.site-main .woocommerce #payment {
    background: #102a1e !important;
    color: #edf2ec !important;
}
body.iwbtr-commerce-page main.site-main .woocommerce #payment :is(label, p, li) {
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
}
body.iwbtr-commerce-page main.site-main .woocommerce #payment .payment_box {
    background: #193526 !important;
    color: #edf2ec !important;
}
body.iwbtr-commerce-page main.site-main .woocommerce #payment .payment_box::before { border-bottom-color: #193526 !important; }

/* Override WooCommerce's 80px coupon input without changing coupon behavior. */
body.iwbtr-commerce-page main.site-main .woocommerce .coupon {
    float: none !important;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    gap: .65rem;
    width: min(100%, 28rem);
    max-width: 100%;
}
body.iwbtr-commerce-page main.site-main .woocommerce :is(.coupon, .checkout_coupon) #coupon_code {
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 44px;
    line-height: 1.4 !important;
    padding: .75em .85em !important;
    margin: 0 !important;
    float: none !important;
}
body.iwbtr-commerce-page main.site-main .woocommerce .coupon .button { margin: 0; float: none; }
body.iwbtr-commerce-page main.site-main .woocommerce .woocommerce-cart-form .actions > .button { float: none; margin-top: .75rem; }

/* Distinct disabled state wins over hover; semantics remain WooCommerce's. */
body.iwbtr-commerce-page main.site-main .woocommerce :is(.button, button, input[type="submit"]):is(:disabled, .disabled, [aria-disabled="true"]),
body.iwbtr-tour-product main.site-main :is(.single_add_to_cart_button, .woocommerce-message .button):is(:disabled, .disabled, [aria-disabled="true"]),
.iwbtr-select-tour.button:is(:disabled, .disabled, [aria-disabled="true"]) {
    background: #667854 !important;
    border-color: #667854 !important;
    color: #eef3e9 !important;
    -webkit-text-fill-color: #eef3e9 !important;
    opacity: 1 !important;
    cursor: not-allowed;
}
.iwbtr-fields :is(input, select, textarea):disabled,
body.iwbtr-commerce-page main.site-main .woocommerce :is(input:not([type="submit"]):not([type="button"]), select, textarea):disabled {
    background-color: #e4e9e3 !important;
    color: #536056 !important;
    -webkit-text-fill-color: #536056 !important;
    border-style: dashed;
    opacity: 1;
    cursor: not-allowed;
}

@media (max-width: 1024px) {
    body.iwbtr-commerce-page { --iwbtr-commerce-top-space: var(--iwbtr-commerce-top-tablet, 128px); }
}
@media (max-width: 767px) {
    body.iwbtr-tour-product .product form.cart .single_add_to_cart_button { width: 100%; }
    body.iwbtr-commerce-page { --iwbtr-commerce-top-space: var(--iwbtr-commerce-top-mobile, 104px); }
    body.iwbtr-commerce-page main.site-main .woocommerce :is(.col2-set .col-1, .col2-set .col-2, .form-row-first, .form-row-last, .cart-collaterals .cart_totals) {
        float: none !important;
        width: 100% !important;
        min-width: 0;
        box-sizing: border-box;
    }
    body.iwbtr-commerce-page main.site-main .woocommerce .coupon { grid-template-columns: minmax(0, 1fr); width: 100%; }
    body.iwbtr-commerce-page main.site-main .woocommerce :is(.button, button, input[type="submit"]) { width: 100%; float: none !important; }
    body:is(.iwbtr-commerce-page, .iwbtr-tour-product) main.site-main :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) .button { display: block; float: none !important; width: 100%; margin-bottom: .75rem; }
    body.iwbtr-commerce-page main.site-main .woocommerce .shop_table { table-layout: fixed; }
    body.iwbtr-commerce-page main.site-main .woocommerce .shop_table :is(th, td) { padding: .65rem; }
    body.iwbtr-commerce-page main.site-main .woocommerce .woocommerce-order-overview li { float: none; border-right: 0; padding: 0; margin: 0 0 .85rem; }
    body.iwbtr-commerce-page main.site-main .woocommerce .woocommerce-customer-details address { width: 100%; box-sizing: border-box; overflow-wrap: anywhere; }
}
