/* INTWB Shop UX: product page buy box.
   Scoped to body.intwb-sux so deactivating the plugin restores the theme look. */

body.single-product.intwb-sux {
    --sux-ink: #221e1d;
    --sux-muted: #6b6460;
    --sux-line: #e8ddd4;
    --sux-cream: #FAF6EE;
    --sux-butter: #F6C75B;
    --sux-butter-soft: #FBE6AC;
    --sux-sky-soft: #D8E8F5;
    --sux-sky-deep: #4F7FB5;
    --sux-forest: #2f6b3c;
}

/* ---------- Title + rating ---------- */

body.single-product.intwb-sux :is(.sux-buybox, .iwb-single-summary-surface) .product_title {
    margin: 0 0 10px;
}

body.single-product.intwb-sux .sux-rating {
    margin: 0 0 16px;
}

body.single-product.intwb-sux .sux-rating__link {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    color: var(--sux-ink) !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    text-decoration: none !important;
    margin: 0 !important;
}

body.single-product.intwb-sux .sux-rating__stars.intwb-sticker-rating {
    font-size: 17px;
    vertical-align: middle;
}

body.single-product.intwb-sux .sux-rating__avg {
    font-weight: 800;
}

body.single-product.intwb-sux .sux-rating__count {
    color: var(--sux-muted);
    font-weight: 600;
    padding-left: 9px;
    border-left: 1px solid var(--sux-line);
}

body.single-product.intwb-sux .sux-rating__link:hover .sux-rating__count,
body.single-product.intwb-sux .sux-rating__link:focus-visible .sux-rating__count {
    color: var(--sux-ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---------- Price line ---------- */

body.single-product.intwb-sux :is(.sux-buybox, .iwb-single-summary-surface) p.price.sux-price {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    margin: 0 0 14px !important;
    padding: 0 !important;
    color: var(--sux-ink) !important;
    font-size: 30px !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
}

body.single-product.intwb-sux .sux-price__amounts {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 8px;
    letter-spacing: -0.01em;
}

body.single-product.intwb-sux .sux-price__amounts > span[aria-hidden="true"]:not(.amount) {
    color: var(--sux-muted);
    font-weight: 500;
}

body.single-product.intwb-sux .sux-price__amounts ins {
    order: 1;
    background: none;
    text-decoration: none;
}

body.single-product.intwb-sux .sux-price__amounts del {
    order: 2;
    color: var(--sux-muted);
    font-size: 0.6em;
    font-weight: 600;
    opacity: 1;
    text-decoration-thickness: 1.5px;
}

body.single-product.intwb-sux .sux-save__chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border: 1.5px solid var(--sux-ink);
    border-radius: 999px;
    background: var(--sux-butter);
    box-shadow: 2px 2px 0 var(--sux-ink);
    color: var(--sux-ink);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

body.single-product.intwb-sux .sux-save__chip[hidden],
body.single-product.intwb-sux .sux-save[hidden] {
    display: none !important;
}

body.single-product.intwb-sux .sux-subline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: -4px 0 18px;
    padding: 7px 14px 7px 10px;
    border-radius: 999px;
    background: var(--sux-sky-soft);
    color: #1f3f63;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}

body.single-product.intwb-sux .sux-subline__icon,
body.single-product.intwb-sux .sux-perk__icon {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    background-color: currentColor;
    -webkit-mask: var(--sux-icon) center / contain no-repeat;
    mask: var(--sux-icon) center / contain no-repeat;
}

body.single-product.intwb-sux .sux-subline__icon {
    --sux-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a9 9 0 0 1-15.5 6.2'/%3E%3Cpath d='M3 12A9 9 0 0 1 18.5 5.8'/%3E%3Cpath d='M18 2v4h-4'/%3E%3Cpath d='M6 22v-4h4'/%3E%3C/svg%3E");
}

/* ---------- Highlights (checkmarks) as chips ---------- */

body.single-product.intwb-sux :is(.sux-buybox, .iwb-single-summary-surface) .iwb-product-checkmarks {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px !important;
    padding: 0 !important;
    list-style: none;
}

body.single-product.intwb-sux :is(.sux-buybox, .iwb-single-summary-surface) .iwb-product-checkmarks li {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    margin: 0 !important;
    padding: 6px 12px 6px 9px;
    border: 1px solid var(--sux-line);
    border-radius: 999px;
    background: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

body.single-product.intwb-sux :is(.sux-buybox, .iwb-single-summary-surface) .iwb-product-checkmarks svg {
    width: 14px !important;
    height: 14px !important;
    flex: 0 0 auto;
}

body.single-product.intwb-sux :is(.sux-buybox, .iwb-single-summary-surface) .iwb-product-checkmarks__text {
    font-size: 13px !important;
}

/* ---------- Short description ---------- */

body.single-product.intwb-sux :is(.sux-buybox, .iwb-single-summary-surface) .woocommerce-product-details__short-description.sux-desc {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 15px;
    line-height: 1.65;
}

body.single-product.intwb-sux .sux-desc p {
    margin: 0 0 8px;
}

body.single-product.intwb-sux .sux-desc.is-clamped {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

body.single-product.intwb-sux .sux-desc__toggle {
    display: inline-block;
    margin: 4px 0 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--sux-ink);
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: none;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

body.single-product.intwb-sux .sux-desc__toggle:hover {
    background: none;
    color: #b45309;
}

/* ---------- Variation rows ---------- */

body.single-product.intwb-sux :is(.sux-buybox, .iwb-single-summary-surface) form.cart {
    margin-top: 20px !important;
    padding-top: 20px !important;
    border-top: 1px solid var(--sux-line) !important;
}

body.single-product.intwb-sux :is(.sux-buybox, .iwb-single-summary-surface) table.variations th.label label {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
}

body.single-product.intwb-sux .sux-picked {
    color: var(--sux-ink);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

body.single-product.intwb-sux .sux-picked:empty {
    display: none;
}

body.single-product.intwb-sux .sux-picked::before {
    content: "\00B7";
    margin-right: 8px;
    color: var(--sux-muted);
}

/* Swatch captions so shoppers can read each option without hovering */
body.single-product.intwb-sux .wcboost-variation-swatches__wrapper.sux-has-caps {
    row-gap: 34px !important;
    margin-bottom: 30px !important;
}

body.single-product.intwb-sux .wcboost-variation-swatches__wrapper.sux-has-caps .wcboost-variation-swatches__item {
    position: relative;
    overflow: visible !important;
}

body.single-product.intwb-sux .wcboost-variation-swatches__wrapper.sux-has-caps .wcboost-variation-swatches__item img {
    border-radius: inherit;
}

body.single-product.intwb-sux .sux-swatch-cap {
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    width: calc(100% + 12px);
    transform: translateX(-50%);
    color: var(--sux-muted);
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.2;
    text-align: center;
    text-transform: none;
    pointer-events: none;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

body.single-product.intwb-sux .wcboost-variation-swatches__item.selected .sux-swatch-cap {
    color: var(--sux-ink);
    font-weight: 800;
}

/* The chosen value now shows beside the row label */
body.single-product.intwb-sux .sux-has-caps .iwb-swatch-helper {
    display: none !important;
}

/* Swatch grid size printed by the server (1.2.0): the theme script's presets for this swatch
   count, which it re-applies inline after load, so the swatches don't resize. */
body.single-product.intwb-sux .wcboost-variation-swatches__wrapper[data-sux-sw] {
    --iwb-swatch-columns: var(--sux-sw-cols);
    --iwb-swatch-size: var(--sux-sw-size);
    --iwb-swatch-gap: var(--sux-sw-gap);
}

body.single-product.intwb-sux .wcboost-variation-swatches__wrapper[data-sux-sw-max] {
    --iwb-swatch-max-size: var(--sux-sw-max);
}

@media (max-width: 767px) {
    body.single-product.intwb-sux .wcboost-variation-swatches__wrapper[data-sux-sw] {
        --iwb-swatch-columns: var(--sux-sw-m-cols);
        --iwb-swatch-size: var(--sux-sw-m-size);
        --iwb-swatch-gap: var(--sux-sw-m-gap);
    }

    body.single-product.intwb-sux .wcboost-variation-swatches__wrapper[data-sux-sw-max] {
        --iwb-swatch-max-size: var(--sux-sw-m-max);
    }
}

/* The Easy Product Bundles slot (.sux-asnp-slot) is styled inline where it is printed. */

/* The points line belongs in the perks box. When the script has to move it there (the server
   couldn't), keep it hidden in its first spot so the form doesn't jump when it leaves. */
body.single-product.intwb-sux .iwb-single-summary-surface > .wlr-product-message {
    display: none !important;
}

/* The price now lives at the top of the buy box */
body.single-product.intwb-sux :is(.sux-buybox, .iwb-single-summary-surface) .woocommerce-variation-price {
    display: none !important;
}

body.single-product.intwb-sux :is(.sux-buybox, .iwb-single-summary-surface) .woocommerce-variation.single_variation:not(:has(.woocommerce-variation-description:not(:empty))):not(:has(.woocommerce-variation-availability:not(:empty))) {
    display: none !important;
}

body.single-product.intwb-sux :is(.sux-buybox, .iwb-single-summary-surface) .reset_variations {
    font-size: 12px;
    font-weight: 700;
}

/* ---------- In-stock line: a small status, not a big blue box ---------- */

body.single-product.intwb-sux :is(.sux-buybox, .iwb-single-summary-surface) .woocommerce-variation.single_variation:not(:has(.out-of-stock)) {
    min-height: 0 !important;
    margin: 0 0 14px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.single-product.intwb-sux :is(.sux-buybox, .iwb-single-summary-surface) .woocommerce-variation-availability {
    margin-left: 0 !important;
    text-align: left !important;
}

body.single-product.intwb-sux :is(.sux-buybox, .iwb-single-summary-surface) .woocommerce-variation-availability .stock:not(.out-of-stock) {
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: none !important;
    box-shadow: none !important;
    color: var(--sux-forest) !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

body.single-product.intwb-sux :is(.sux-buybox, .iwb-single-summary-surface) .woocommerce-variation-availability .stock:not(.out-of-stock)::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3f9a52;
    box-shadow: 0 0 0 3px rgba(63, 154, 82, 0.18);
}

/* ---------- Sold-out options ---------- */

/* Replaces the red wash: muted photo, a thin "unavailable" line, a small tag. */
body.single-product.intwb-sux .wcboost-variation-swatches__item.iwb-swatch-out-of-stock img {
    filter: grayscale(0.85);
    opacity: 0.55;
}

body.single-product.intwb-sux .wcboost-variation-swatches__item .iwb-swatch-out-of-stock-overlay,
body.single-product.intwb-sux .wcboost-variation-swatches__item.selected .iwb-swatch-out-of-stock-overlay {
    background:
        linear-gradient(to top right,
            transparent calc(50% - 1px),
            rgba(34, 30, 29, 0.55) calc(50% - 0.75px),
            rgba(34, 30, 29, 0.55) calc(50% + 0.75px),
            transparent calc(50% + 1px)),
        rgba(250, 246, 238, 0.28);
    overflow: hidden;
}

body.single-product.intwb-sux .wcboost-variation-swatches__item .iwb-swatch-out-of-stock-overlay::after {
    content: "Sold out";
    position: absolute;
    left: 50%;
    bottom: 5px;
    transform: translateX(-50%);
    padding: 3px 6px;
    border: 1px solid var(--sux-ink);
    border-radius: 999px;
    background: #fff;
    color: var(--sux-ink);
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

body.single-product.intwb-sux .wcboost-variation-swatches__item.iwb-swatch-out-of-stock .sux-swatch-cap {
    color: #9a928c;
}

/* Restock card: one clean card instead of a blue box around a second card. */
body.single-product.intwb-sux :is(.sux-buybox, .iwb-single-summary-surface) .woocommerce-variation.single_variation:has(.out-of-stock) {
    margin: 4px 0 16px !important;
    padding: 18px !important;
    border: 2px solid var(--sux-ink) !important;
    border-radius: 20px !important;
    background: #fff !important;
    box-shadow: 4px 4px 0 var(--sux-ink) !important;
}

body.single-product.intwb-sux :is(.sux-buybox, .iwb-single-summary-surface) .woocommerce-variation-availability:has(.out-of-stock) {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
}

body.single-product.intwb-sux :is(.sux-buybox, .iwb-single-summary-surface) .woocommerce-variation-availability .stock.out-of-stock {
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    float: none !important;
    margin: 0 0 10px !important;
    padding: 5px 11px 5px 9px !important;
    border: 1.5px solid #e9c9c4 !important;
    border-radius: 999px !important;
    background: #fbefec !important;
    color: #9f2f27 !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 0.1em !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
}

body.single-product.intwb-sux :is(.sux-buybox, .iwb-single-summary-surface) .woocommerce-variation-availability .stock.out-of-stock::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #c2413c;
}

body.single-product.intwb-sux :is(.sux-buybox, .iwb-single-summary-surface) .cwginstock-subscribe-form {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

body.single-product.intwb-sux :is(.sux-buybox, .iwb-single-summary-surface) .cwginstock-panel-primary {
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.single-product.intwb-sux :is(.sux-buybox, .iwb-single-summary-surface) .cwginstock-panel-heading {
    margin: 0 !important;
    padding: 0 0 4px !important;
}

body.single-product.intwb-sux :is(.sux-buybox, .iwb-single-summary-surface) .cwginstock-panel-heading h4 {
    margin: 0 !important;
    color: var(--sux-ink) !important;
    font-family: 'Recoleta', Georgia, serif !important;
    font-size: 21px !important;
    font-weight: 500 !important;
    letter-spacing: -0.01em !important;
    line-height: 1.2 !important;
    text-align: left !important;
}

body.single-product.intwb-sux :is(.sux-buybox, .iwb-single-summary-surface) .cwginstock-panel-heading::after {
    content: "Get an email as soon as this option is back in stock.";
    display: block;
    margin-top: 4px;
    color: var(--sux-muted);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.4;
}

body.single-product.intwb-sux :is(.sux-buybox, .iwb-single-summary-surface) .cwginstock-panel-body,
body.single-product.intwb-sux :is(.sux-buybox, .iwb-single-summary-surface) .cwginstock-panel-body .row,
body.single-product.intwb-sux :is(.sux-buybox, .iwb-single-summary-surface) .cwginstock-panel-body [class*="col-"] {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    float: none !important;
}

body.single-product.intwb-sux :is(.sux-buybox, .iwb-single-summary-surface) .cwginstock-subscribe-form__form {
    margin-top: 14px;
}

body.single-product.intwb-sux :is(.sux-buybox, .iwb-single-summary-surface) .cwginstock-subscribe-form__form > .form-group:first-child {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 0 0 10px !important;
}

body.single-product.intwb-sux :is(.sux-buybox, .iwb-single-summary-surface) .cwginstock-subscribe-form input.cwgstock_name,
body.single-product.intwb-sux :is(.sux-buybox, .iwb-single-summary-surface) .cwginstock-subscribe-form input.cwgstock_email {
    width: 100% !important;
    height: 46px !important;
    margin: 0 !important;
    padding: 0 14px !important;
    border: 1.5px solid var(--sux-line) !important;
    border-radius: 12px !important;
    background: var(--sux-cream) !important;
    box-shadow: none !important;
    color: var(--sux-ink) !important;
    font-size: 14.5px !important;
    font-weight: 600 !important;
    text-align: left !important;
}

body.single-product.intwb-sux :is(.sux-buybox, .iwb-single-summary-surface) .cwginstock-subscribe-form input.cwgstock_name:focus,
body.single-product.intwb-sux :is(.sux-buybox, .iwb-single-summary-surface) .cwginstock-subscribe-form input.cwgstock_email:focus {
    border-color: var(--sux-ink) !important;
    background: #fff !important;
    outline: none !important;
}

body.single-product.intwb-sux :is(.sux-buybox, .iwb-single-summary-surface) .cwginstock-subscribe-form__form > .form-group:last-of-type {
    margin: 0 !important;
    text-align: left !important;
}

body.single-product.intwb-sux :is(.sux-buybox, .iwb-single-summary-surface) .cwginstock-subscribe-form .cwgstock_button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 0 18px !important;
    border: 2px solid var(--sux-ink) !important;
    border-radius: 999px !important;
    background: var(--sux-butter) !important;
    box-shadow: 3px 3px 0 var(--sux-ink) !important;
    color: var(--sux-ink) !important;
    font-size: 12.5px !important;
    font-weight: 800 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

body.single-product.intwb-sux :is(.sux-buybox, .iwb-single-summary-surface) .cwginstock-subscribe-form .cwgstock_button:hover {
    box-shadow: 1px 1px 0 var(--sux-ink) !important;
    transform: translate(2px, 2px);
}

body.single-product.intwb-sux :is(.sux-buybox, .iwb-single-summary-surface) .cwgstock_output:not(:empty) {
    margin-top: 10px;
    font-size: 13.5px;
    font-weight: 700;
}

/* Nothing to choose between when the selected option can't be bought. */
body.single-product.intwb-sux :is(.sux-buybox, .iwb-single-summary-surface) .woocommerce-variation-add-to-cart-disabled .bos4w-display-wrap {
    display: none !important;
}

@media (max-width: 480px) {
    body.single-product.intwb-sux :is(.sux-buybox, .iwb-single-summary-surface) .cwginstock-subscribe-form__form > .form-group:first-child {
        grid-template-columns: 1fr;
    }
}

/* ---------- Purchase options ---------- */

body.single-product.intwb-sux .sux-bos .bos4w-display-plan-text {
    margin: 0 0 10px !important;
    color: var(--sux-muted) !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
}

body.single-product.intwb-sux .sux-bos .bos4w-display-options ul {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.single-product.intwb-sux .sux-bos .intwb-bos-pdp-or-divider {
    display: none !important;
}

body.single-product.intwb-sux .sux-bos .bos4w-display-options li {
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}

body.single-product.intwb-sux .sux-bos label.sux-opt {
    position: relative;
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    height: 100%;
    min-height: 74px;
    margin: 0 !important;
    padding: 12px 14px 12px 40px !important;
    border: 1.5px solid var(--sux-line) !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: none !important;
    color: var(--sux-ink) !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    line-height: 1.25 !important;
    text-transform: none !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    min-width: 0;
    width: 100% !important;
    box-sizing: border-box !important;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

body.single-product.intwb-sux .sux-bos label.sux-opt:hover {
    border-color: var(--sux-ink) !important;
}

body.single-product.intwb-sux .sux-bos label.sux-opt:has(input:checked) {
    border: 2px solid var(--sux-ink) !important;
    background: var(--sux-butter-soft) !important;
    box-shadow: 3px 3px 0 var(--sux-ink) !important;
}

body.single-product.intwb-sux .sux-bos label.sux-opt input[type="radio"] {
    position: absolute !important;
    top: 50% !important;
    left: 14px !important;
    width: 18px !important;
    height: 18px !important;
    margin: -9px 0 0 !important;
    accent-color: var(--sux-ink);
}

body.single-product.intwb-sux .sux-bos label.sux-opt .bos-display-save-up-to {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
    color: inherit !important;
    font: inherit !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

body.single-product.intwb-sux .sux-opt__price {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--sux-ink);
}

body.single-product.intwb-sux .sux-opt__price:empty {
    display: none;
}

body.single-product.intwb-sux .sux-opt__price strong {
    font-weight: 800;
}

body.single-product.intwb-sux .sux-opt__then {
    display: block;
    margin-top: 2px;
    color: var(--sux-muted);
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.3;
}

body.single-product.intwb-sux .sux-bos .bos4w-display-dropdown {
    margin-top: 12px !important;
}

body.single-product.intwb-sux .sux-bos .bos4w-display-dropdown > label {
    display: block;
    margin: 0 0 6px !important;
    color: var(--sux-muted);
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* ---------- Perks under the buy button ---------- */

body.single-product.intwb-sux .sux-perks {
    display: grid;
    gap: 10px;
    margin: 18px 0 28px !important;
    padding: 14px 16px !important;
    border: 1px solid var(--sux-line);
    border-radius: 16px;
    background: #fff;
    list-style: none;
}

body.single-product.intwb-sux .sux-perk {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 !important;
    color: var(--sux-ink);
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.35;
}

body.single-product.intwb-sux .sux-perk .wlr-product-message {
    display: inline !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    background: none !important;
    color: inherit !important;
    font: inherit !important;
    line-height: inherit !important;
}

body.single-product.intwb-sux .sux-perk--ship .sux-perk__icon {
    color: var(--sux-sky-deep);
    --sux-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h11v10H3z'/%3E%3Cpath d='M14 9h4l3 3v4h-7z'/%3E%3Ccircle cx='7' cy='18' r='2'/%3E%3Ccircle cx='17' cy='18' r='2'/%3E%3C/svg%3E");
}

body.single-product.intwb-sux .sux-perk--points .sux-perk__icon {
    color: #b45309;
    --sux-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l2.6 5.6 6 .7-4.5 4.1 1.2 6L12 16.4 6.7 19.4l1.2-6L3.4 9.3l6-.7z'/%3E%3C/svg%3E");
}

body.single-product.intwb-sux .sux-perks + .intwb-amz {
    margin-top: 0 !important;
}

/* Delivery-estimate line ("Ships today / next business day") lives in the perks box. */
body.single-product.intwb-sux .sux-perk .iwb-pdp-shipping-cue {
    display: inline !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    color: inherit !important;
    font: inherit !important;
    white-space: normal !important;
}

body.single-product.intwb-sux .sux-perk .iwb-pdp-shipping-cue__icon {
    display: none !important;
}

body.single-product.intwb-sux .sux-perk--fast .sux-perk__icon {
    color: #b45309;
    --sux-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13.7 1.8 4.9 13h6.2l-.8 9.2L19.1 11h-6.2l.8-9.2Z'/%3E%3C/svg%3E");
}

/* ---------- Amazon: a quieter secondary option ---------- */

body.single-product.intwb-sux :is(.sux-buybox, .iwb-single-summary-surface) .intwb-amz--pdp .intwb-amz__btn {
    min-height: 44px;
    box-shadow: none;
}

/* ---------- Sticky add-to-cart bar (phones, small tablets) ---------- */

body.single-product.intwb-sux .sux-sticky {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9980;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    border-top: 2px solid var(--sux-ink);
    background: #fff;
    box-shadow: 0 -8px 24px rgba(34, 30, 29, 0.12);
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    transform: translateY(110%);
    transition: transform 0.24s ease;
}

body.single-product.intwb-sux .sux-sticky.is-visible {
    transform: none;
}

body.single-product.intwb-sux .sux-sticky.is-visible.is-away {
    transform: translateY(110%);
}

body.single-product.intwb-sux .sux-sticky[hidden] {
    display: none;
}

body.single-product.intwb-sux .sux-sticky__inner {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 720px;
    margin: 0 auto;
}

body.single-product.intwb-sux .sux-sticky__img {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border: 1px solid var(--sux-line);
    border-radius: 10px;
    background: var(--sux-cream);
    object-fit: cover;
}

body.single-product.intwb-sux .sux-sticky__info {
    display: grid;
    flex: 1 1 auto;
    gap: 2px;
    min-width: 0;
}

body.single-product.intwb-sux .sux-sticky__name,
body.single-product.intwb-sux .sux-sticky__meta {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.single-product.intwb-sux .sux-sticky__name {
    color: var(--sux-ink);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
}

body.single-product.intwb-sux .sux-sticky__meta {
    color: var(--sux-muted);
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.25;
}

body.single-product.intwb-sux .sux-sticky__opt:empty {
    display: none;
}

body.single-product.intwb-sux .sux-sticky__price {
    margin-right: 6px;
    color: var(--sux-ink);
    font-weight: 800;
}

body.single-product.intwb-sux .sux-sticky__btn {
    flex: 0 0 auto;
    min-height: 46px;
    margin: 0;
    padding: 0 16px;
    border: 2px solid var(--sux-ink) !important;
    border-radius: 999px !important;
    background: var(--sux-ink) !important;
    box-shadow: none !important;
    color: var(--sux-cream) !important;
    font-family: inherit;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
}

body.single-product.intwb-sux .sux-sticky__btn {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

body.single-product.intwb-sux .sux-sticky__btn:active {
    transform: scale(0.97);
}

body.single-product.intwb-sux .sux-sticky__btn.is-loading {
    position: relative;
    padding-left: 38px;
    cursor: progress;
    opacity: 0.9;
}

body.single-product.intwb-sux .sux-sticky__btn.is-loading::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 15px;
    width: 14px;
    height: 14px;
    margin-top: -7px;
    border: 2px solid rgba(250, 246, 238, 0.35);
    border-top-color: var(--sux-cream);
    border-radius: 50%;
    animation: sux-spin 0.7s linear infinite;
}

body.single-product.intwb-sux .sux-sticky__btn.is-done {
    background: var(--sux-forest) !important;
    border-color: var(--sux-forest) !important;
    color: #fff !important;
}

@keyframes sux-spin {
    to { transform: rotate(360deg); }
}

body.single-product.intwb-sux .sux-sticky__btn.is-secondary {
    background: var(--sux-butter) !important;
    color: var(--sux-ink) !important;
}

/* CheckoutWC's floating cart button rides above the bar while it's showing.
   --intwb-cfw-floating-bottom comes from the INTWB header-cart plugin (it already
   accounts for the phone toolbar and keyboard). */
body.single-product.intwb-sux #cfw-side-cart-floating-button {
    transition: bottom 0.24s ease;
}

body.single-product.intwb-sux.sux-has-sticky:not(.sux-sticky-away) #cfw-side-cart-floating-button {
    bottom: calc(var(--intwb-cfw-floating-bottom, 10px) + var(--sux-sticky-h, 70px)) !important;
}

/* Keep the page footer reachable above the bar. */
body.single-product.intwb-sux.sux-has-sticky {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}

/* Brief highlight on the option row the bar sent the shopper to. */
body.single-product.intwb-sux table.variations tr.sux-nudge {
    animation: sux-nudge 1.4s ease;
}

@keyframes sux-nudge {
    0%, 100% { background: transparent; }
    20%, 60% { background: var(--sux-butter-soft); }
}

@media (prefers-reduced-motion: reduce) {
    body.single-product.intwb-sux .sux-sticky {
        transition: none;
    }

    body.single-product.intwb-sux #cfw-side-cart-floating-button {
        transition: none;
    }

    body.single-product.intwb-sux table.variations tr.sux-nudge {
        animation: none;
        outline: 2px solid var(--sux-butter);
    }
}

@media (min-width: 901px) {
    body.single-product.intwb-sux .sux-sticky {
        display: none !important;
    }
}

/* ---------- Small screens ---------- */

@media (max-width: 768px) {
    body.single-product.intwb-sux :is(.sux-buybox, .iwb-single-summary-surface) p.price.sux-price {
        font-size: 26px !important;
    }

    body.single-product.intwb-sux .sux-subline {
        font-size: 12.5px;
    }

    body.single-product.intwb-sux .sux-bos label.sux-opt {
        padding: 12px 10px 12px 36px !important;
    }

    body.single-product.intwb-sux .sux-bos label.sux-opt input[type="radio"] {
        left: 11px !important;
    }
}

/* Phones: stack the two purchase options as full-width rows. */
@media (max-width: 520px) {
    body.single-product.intwb-sux .sux-bos .bos4w-display-options ul {
        grid-template-columns: minmax(0, 1fr);
    }

    body.single-product.intwb-sux .sux-bos label.sux-opt {
        min-height: 0;
        padding: 14px 16px 14px 46px !important;
    }

    body.single-product.intwb-sux .sux-bos label.sux-opt input[type="radio"] {
        left: 16px !important;
    }
}
