/* ==========================================================================
   Walker World — ShopWP PDP-Only Stylesheet (wps_products ONLY)
   Zero bytes loaded on /, /blog/, /about/, /contact/, Legal, or Collections.
   ========================================================================== */

/* --- 1. Off-Canvas Scrolling (Quote #8, Invoice #11, Stock Notify #12) --- */
.awb-off-canvas-wrap:has(#gform_wrapper_8) > .awb-off-canvas,
.awb-off-canvas-wrap:has(#gform_wrapper_11) > .awb-off-canvas {
    max-height: 100dvh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
}
.awb-off-canvas-wrap:has(#gform_wrapper_8) .awb-off-canvas-inner,
.awb-off-canvas-wrap:has(#gform_wrapper_11) .awb-off-canvas-inner {
    flex: 0 0 auto !important;
    height: auto !important;
    min-height: 0;
    max-height: none !important;
    overflow: visible !important;
}
.awb-off-canvas-wrap:has(#gform_wrapper_8) .off-canvas-content,
.awb-off-canvas-wrap:has(#gform_wrapper_11) .off-canvas-content {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}
.awb-off-canvas-wrap:has(#gform_wrapper_12) > .awb-off-canvas {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
}

/* --- 2. Gravity Forms Phone Field (#8, #11, #12) --- */
:is(#gform_wrapper_8, #gform_wrapper_11, #gform_wrapper_12) .gform-phone {
    position: relative;
}
:is(#gform_wrapper_8, #gform_wrapper_11, #gform_wrapper_12) .gform-phone__input-wrapper {
    display: flex;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0 !important;
    width: 100%;
}
:is(#gform_wrapper_8, #gform_wrapper_11, #gform_wrapper_12) .ginput_country-selector_container {
    flex: 0 0 auto;
    min-width: 0;
}
:is(#gform_wrapper_8, #gform_wrapper_11, #gform_wrapper_12) .ginput_phone_container {
    flex: 1 1 0;
    min-width: 0;
}
:is(#gform_wrapper_8, #gform_wrapper_11, #gform_wrapper_12) .gform-phone__country-selector {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 12px !important;
    box-sizing: border-box;
    background: #ffffff !important;
    border: 1px solid #d6e0e6 !important;
    border-right: 0 !important;
    border-radius: 4px 0 0 4px !important;
    box-shadow: none !important;
    color: #0e1f2e !important;
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease;
}
:is(#gform_wrapper_8, #gform_wrapper_11, #gform_wrapper_12) .gform-phone__input {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    border-radius: 0 4px 4px 0 !important;
    border: 1px solid #d6e0e6 !important;
}
:is(#gform_wrapper_8, #gform_wrapper_11, #gform_wrapper_12) .gform-phone__country-selector:is(:hover, [aria-expanded="true"]) {
    background: #f5fbfa !important;
    border-color: #008B85 !important;
    color: #0e1f2e !important;
}
:is(#gform_wrapper_8, #gform_wrapper_11, #gform_wrapper_12) .gform-phone__country-selector:focus-visible {
    outline: 2px solid #008B85;
    outline-offset: 2px;
}
:is(#gform_wrapper_8, #gform_wrapper_11, #gform_wrapper_12) .gform-phone__dial-code {
    color: #0e1f2e !important;
}

/* --- 3. ShopWP PDP CLS Guards, Get Instant Actions, NDIS Badge & Description Bullets --- */
#dropzone_product_gallery {
    min-height: 360px;
}
#dropzone_product_buy_button {
    min-height: 110px;
}

/* Out-of-stock variant visibility & backorder note (migrated from Customizer #6601) */
.swp-select-item[data-is-available-to-select=false] {
    display: block !important;
}
.szh-menu .swp-variant-not-allowed {
    display: none !important;
}
#backorder-note {
    color: #e55050;
    margin-bottom: 20px;
}
.hide-button-container {
    display: none !important;
}
.show-button-container {
    display: block !important;
}

/* Get Instant: Quote / Invoice & OOS Stock Notification Buttons (migrated from Customizer #6601) */
.product-stock-available-trigger {
    cursor: pointer;
    font-weight: 500;
    transition: all .2s ease-in;
    display: none;
    background-color: #085298 !important;
    border: solid 2px #085298 !important;
    color: #fff !important;
}
.product-stock-available-trigger:hover,
.product-stock-available-trigger:focus {
    background-color: #008B85 !important;
    color: #fff !important;
    border: solid 2px #008B85 !important;
}
.product-quote-form-trigger {
    background-color: #fff !important;
    border: solid 2px #008B85 !important;
    color: #008B85 !important;
    font-family: "Poppins", sans-serif;
    transition: background-color .2s ease-in, color .2s ease-in;
}
.product-quote-form-trigger:hover,
.product-quote-form-trigger:focus {
    background-color: #008B85 !important;
    border: solid 2px #008B85 !important;
    color: #fff !important;
    font-weight: 600;
}
.product-invoice-form-trigger {
    background-color: #fff !important;
    border: solid 2px #085298 !important;
    color: #085298 !important;
    font-family: "Poppins", sans-serif;
    transition: background-color .2s ease-in, color .2s ease-in;
}
.product-invoice-form-trigger:hover,
.product-invoice-form-trigger:focus {
    background-color: #085298 !important;
    border: solid 2px #085298 !important;
    color: #fff !important;
    font-weight: 600;
}
.button-container {
    display: flex;
    flex-direction: row;
    gap: 1px;
    align-content: center;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    margin-top: 12px;
}
.the-btns {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-content: center;
    justify-content: flex-start;
    align-items: center;
}
.instant-text {
    font-family: "Poppins", sans-serif;
    flex-basis: 90px;
    flex-shrink: 0;
    flex-grow: 0;
    font-size: 16px;
    font-weight: 600;
    padding-right: 20px;
    white-space: nowrap;
    text-align: center;
}
.product-quote-btn,
.product-invoice-btn {
    flex-grow: 0;
    text-align: center;
    padding: 10px 12px;
}

/* Price Beat Guarantee NDIS Registered Provider Badge Visibility Fix */
#beat-section figure.wp-block-image {
    margin: 0 !important;
}
#beat-section img.wp-image-6027 {
    width: 100%;
    max-width: 85px;
    min-width: 64px;
    height: auto;
    display: block;
}

/* PDP Description Teal Feather-Icon Arrow Bullets (migrated from Customizer #6601) */
.single-wps_products #dropzone_product_description ul {
    list-style: none;
    padding-left: 0;
}
.single-wps_products #dropzone_product_description ul > li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
}
.single-wps_products #dropzone_product_description ul > li::marker {
    display: none;
}
.single-wps_products #dropzone_product_description ul > li::before {
    content: "\e913";
    font-family: 'feather-icon' !important;
    display: inline-block;
    position: absolute;
    top: 0;
    left: 0;
    color: var(--awb-color5, #008b85);
    font-size: 19px;
    line-height: 26px;
}

/* Variant Buttons & Swatches */
.swp-dropdown-label .szh-menu-button { border: 1px solid #000000 !important; }
button.swp-product-variant-button { min-width: 40px !important; height: 40px !important; }
button.swp-product-variant-button[data-variant-name="Cranberry"] { background: #dc2525; }
button.swp-product-variant-button[data-variant-name="Cranberry"]:before { display: none; }
button.swp-product-variant-button[data-variant-name="Emerald Green"] { background: #40584b; }
button.swp-product-variant-button[data-variant-name="Wood Grain (Beech)"] { background: #b99372; }
button.swp-product-variant-button[data-variant-name="Black Walnut"] { background: #6a6a6a; }
button.swp-product-variant-button[data-variant-name="Regal Rose"] { background: #db8bb2; }
button.swp-product-variant-button[data-variant-name="Cobult Blue"] { background: #6eaacc; }
button.swp-product-variant-button[data-variant-name="Beige"] { background: #e3dfcb; }
button.swp-product-variant-button[data-variant-name="CHAMPAGNE"],
button.swp-product-variant-button[data-variant-name="Champagne"] { background: #cbbeb5; }
button.swp-product-variant-button[data-variant-name="White"],
button.swp-product-variant-button[data-variant-name="WHITE"] {
    outline: #000 solid 1px !important;
    outline-offset: -2px;
}
button.swp-product-variant-button[data-variant-name="Red/Black"],
button.swp-product-variant-button[data-variant-name="Red & Black"] {
    background-image: linear-gradient(45deg, black 50%, red 0%);
}
button.swp-product-variant-button[data-variant-name="Champagne/Black"] {
    background-image: linear-gradient(45deg, black 50%, #cbbeb5 0%);
}
/* Fixed shorthand syntax: position / size repeat */
button.swp-product-variant-button[data-variant-name="LEOPARD"] {
    background: url('/wp-content/uploads/2025/08/leopard.jpg') center / contain no-repeat;
}
button.swp-product-variant-button[data-variant-name="FLOWER"] {
    background: url('/wp-content/uploads/2025/08/flower.jpg') center / contain no-repeat;
}
button.swp-product-variant-button[data-variant-name="ZEBRA"] {
    background: url('/wp-content/uploads/2025/08/zebra.jpg') center / contain no-repeat;
}

/* Product Description Spec Tables */
#dropzone_product_description table {
    width: 100% !important;
    border-collapse: collapse;
}
#dropzone_product_description table,
#dropzone_product_description table td {
    border: 1px solid #085298;
    padding: 8px;
    font-size: 12px;
}
#dropzone_product_description table tr td p {
    margin-bottom: 0;
    font-size: 12px;
}
#dropzone_product_description table tr:first-child td {
    background-color: #085298;
    color: #fff;
    text-align: center;
    vertical-align: middle;
}

/* --- 4. PDP Responsive Breakpoints --- */
@media screen and (max-width: 1120px) {
    #single-points .wp-block-column > div { font-size: 12px; }
}
@media screen and (max-width: 1024px) {
    #single-points .wp-block-column { justify-content: center; }
    #single-points { flex-wrap: wrap !important; row-gap: 8px !important; }
    #single-points .wp-block-column > div { font-size: 14px !important; }
}
@media screen and (max-width: 930px) {
    #beat-section { flex-wrap: wrap !important; row-gap: 10px !important; }
}
@media screen and (max-width: 800px) {
    .single-wps_products .wps-breadcrumbs-inner li:nth-of-type(1) { display: flex; }
    .single-wps_products .wps-breadcrumbs-inner li { line-height: 1.2; font-size: 13px; }
    #dropzone_product_buy_button .swp-quantity-container { width: 120px !important; min-width: 120px !important; }
    #dropzone_product_buy_button .css-1gy65ol-AddButtonWrapperCSS { flex-direction: row !important; }
    #beat-section { flex-wrap: nowrap !important; }
    #beat-section .wp-block-column:nth-of-type(1) { flex-basis: 85% !important; }
    #beat-section .wp-block-column:nth-of-type(2) { flex-basis: 15% !important; }
}
@media screen and (max-width: 799px) {
    #single-points { flex-wrap: nowrap !important; }
    #dropzone_product_gallery { max-width: 400px !important; margin: 0 auto !important; }
}
@media screen and (max-width: 600px) {
    .wps-product-single .wp-block-column { min-width: 200px; }
    #dropzone_product_buy_button .wps-add-to-cart { padding: 17px 0 !important; }
    .single-wps_products .wps-container { padding: 0 !important; }
    #single-points { flex-wrap: wrap !important; }
    #single-points .wp-block-column > div { font-size: 16px; }
    #single-points i { font-size: 20px; }
    #single-points .wp-block-column { column-gap: 10px; padding: 15px !important; }
    #beat-section { padding: 15px !important; }
}
@media screen and (max-width: 500px) {
    .button-container {
        display: flex;
        flex-direction: column;
        gap: 1px;
        align-content: center;
        justify-content: flex-start;
        align-items: center;
        padding: 0;
        width: 100%;
    }
    .instant-text {
        font-family: "Poppins", sans-serif;
        flex-basis: 100%;
        width: 100%;
        flex-shrink: 0;
        flex-grow: 0;
        font-size: 16px;
        font-weight: 500;
        padding-right: 20px;
        padding-bottom: 5px;
        white-space: normal;
        text-align: left;
    }
    .the-btns {
        width: 100%;
        display: flex;
        flex-direction: row;
        gap: 10px;
        align-content: center;
        justify-content: flex-start;
        align-items: center;
        padding: 0;
    }
    .product-quote-btn,
    .product-invoice-btn {
        flex-basis: 48.4%;
        flex-shrink: 0;
        flex-grow: 0;
        text-align: center;
        padding: 10px 12px;
    }
    #beat-section .wp-block-column:nth-of-type(2),
    #beat-section .wp-block-column:nth-of-type(1) { flex-basis: 100% !important; }
    #beat-section { flex-wrap: wrap !important; }
}
