/* ========================================================================== 
 * CaptainGreek Premium PDP — Phase 8D CSS conflict shield
 * 2026-07-14
 *
 * product-page.css contains several historic, broad swatch and quantity rules.
 * This late-loading, PDP-scoped layer gives PremiumPdp one final owner without
 * altering Magento_Swatches, the product form, or non-PDP storefront surfaces.
 * ======================================================================= */

body.catalog-product-view.cg-pdp-premium-phase8d {
    --cg8d-ink: #111a3f;
    --cg8d-muted: rgba(17, 26, 63, .58);
    --cg8d-line: rgba(17, 26, 63, .13);
    --cg8d-gold: #b48b31;
    --cg8d-gold-soft: rgba(180, 139, 49, .12);
    --cg8d-surface: #ffffff;
    --cg8d-surface-soft: #f8f7f2;
}

/* Native Magento image tooltip is redundant once each card contains a clear,
   upgraded thumbnail and explicit label. It also obscures adjacent choices. */
body.catalog-product-view.cg-pdp-premium-phase8d .swatch-option-tooltip,
body.catalog-product-view.cg-pdp-premium-phase8d .swatch-option-tooltip-layered,
body.catalog-product-view.cg-pdp-premium-phase8d [data-role="swatch-option-tooltip"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* --------------------------------------------------------------------------
   Variant picker — specificity shield against product-page.css generations
   ----------------------------------------------------------------------- */
body.catalog-product-view.cg-pdp-premium-phase8d
.cg-pdp-premium.cg-pdp-premium--phase8d
#product-options-wrapper {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 0 14px !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(17, 26, 63, .09) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.catalog-product-view.cg-pdp-premium-phase8d
.cg-pdp-premium.cg-pdp-premium--phase8d
#product-options-wrapper .swatch-attribute {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.catalog-product-view.cg-pdp-premium-phase8d
.cg-pdp-premium.cg-pdp-premium--phase8d
#product-options-wrapper .cg-pdp-variant__head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    min-height: 24px !important;
    margin: 0 0 9px !important;
    padding: 0 !important;
}

body.catalog-product-view.cg-pdp-premium-phase8d
.cg-pdp-premium.cg-pdp-premium--phase8d
#product-options-wrapper .swatch-attribute-label {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--cg8d-ink) !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    font-weight: 850 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

body.catalog-product-view.cg-pdp-premium-phase8d
.cg-pdp-premium.cg-pdp-premium--phase8d
#product-options-wrapper .swatch-attribute-selected-option {
    display: block !important;
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

body.catalog-product-view.cg-pdp-premium-phase8d
.cg-pdp-premium.cg-pdp-premium--phase8d
#product-options-wrapper .cg-pdp-variant__status {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 22px !important;
    margin: 0 !important;
    padding: 3px 8px !important;
    border: 1px solid rgba(17, 26, 63, .10) !important;
    border-radius: 999px !important;
    background: #f8f7f2 !important;
    color: var(--cg8d-muted) !important;
    font-size: 10.5px !important;
    line-height: 1 !important;
    font-weight: 750 !important;
    white-space: nowrap !important;
}

body.catalog-product-view.cg-pdp-premium-phase8d
.cg-pdp-premium.cg-pdp-premium--phase8d
#product-options-wrapper .cg-pdp-variant__status[data-cg-status="selected"] {
    border-color: rgba(180, 139, 49, .30) !important;
    background: #fffaf0 !important;
    color: #7c5d18 !important;
}

/* Preserve the native super-attribute input for Magento validation while keeping
   the text input itself out of the visual card layout. */
body.catalog-product-view.cg-pdp-premium-phase8d
.cg-pdp-premium.cg-pdp-premium--phase8d
#product-options-wrapper .swatch-input.super-attribute-select {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

body.catalog-product-view.cg-pdp-premium-phase8d
.cg-pdp-premium.cg-pdp-premium--phase8d
#product-options-wrapper .swatch-attribute-options,
body.catalog-product-view.cg-pdp-premium-phase8d
.cg-pdp-premium.cg-pdp-premium--phase8d
#product-options-wrapper .swatch-attribute-options.clearfix,
body.catalog-product-view.cg-pdp-premium-phase8d
.cg-pdp-premium.cg-pdp-premium--phase8d
#product-options-wrapper .cg-pdp-variant-options {
    display: grid !important;
    grid-template-columns: repeat(var(--cg-variant-columns, 3), minmax(0, 1fr)) !important;
    gap: 9px !important;
    align-items: stretch !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    clear: both !important;
}

body.catalog-product-view.cg-pdp-premium-phase8d
.cg-pdp-premium.cg-pdp-premium--phase8d
#product-options-wrapper .swatch-attribute-options::before,
body.catalog-product-view.cg-pdp-premium-phase8d
.cg-pdp-premium.cg-pdp-premium--phase8d
#product-options-wrapper .swatch-attribute-options::after {
    content: none !important;
    display: none !important;
}

/* One explicit label owns the card. This defeats both historic pseudo-label
   implementations in product-page.css, including the later !important rule. */
body.catalog-product-view.cg-pdp-premium-phase8d
.cg-pdp-premium.cg-pdp-premium--phase8d
#product-options-wrapper .swatch-option[data-cg-label-rendering="explicit-only"]::before,
body.catalog-product-view.cg-pdp-premium-phase8d
.cg-pdp-premium.cg-pdp-premium--phase8d
#product-options-wrapper .swatch-option[data-cg-label-rendering="explicit-only"]::after,
body.catalog-product-view.cg-pdp-premium-phase8d
.cg-pdp-premium.cg-pdp-premium--phase8d
#product-options-wrapper .swatch-option.image[data-cg-label-rendering="explicit-only"]::before,
body.catalog-product-view.cg-pdp-premium-phase8d
.cg-pdp-premium.cg-pdp-premium--phase8d
#product-options-wrapper .swatch-option.image[data-cg-label-rendering="explicit-only"]::after {
    content: none !important;
    display: none !important;
}

body.catalog-product-view.cg-pdp-premium-phase8d
.cg-pdp-premium.cg-pdp-premium--phase8d
#product-options-wrapper .swatch-option,
body.catalog-product-view.cg-pdp-premium-phase8d
.cg-pdp-premium.cg-pdp-premium--phase8d
#product-options-wrapper .swatch-option.image,
body.catalog-product-view.cg-pdp-premium-phase8d
.cg-pdp-premium.cg-pdp-premium--phase8d
#product-options-wrapper .swatch-option.text {
    position: relative !important;
    display: grid !important;
    grid-template-columns: 48px minmax(0, 1fr) 20px !important;
    align-items: center !important;
    justify-content: stretch !important;
    gap: 10px !important;
    flex: none !important;
    float: none !important;
    clear: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 64px !important;
    min-height: 64px !important;
    max-height: 64px !important;
    margin: 0 !important;
    padding: 6px 7px !important;
    overflow: hidden !important;
    border: 1px solid var(--cg8d-line) !important;
    border-radius: 15px !important;
    background: var(--cg8d-surface) !important;
    color: var(--cg8d-ink) !important;
    box-shadow: 0 6px 18px rgba(17, 26, 63, .045) !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    text-align: left !important;
    white-space: normal !important;
    cursor: pointer !important;
    transform: none !important;
    transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease !important;
}

body.catalog-product-view.cg-pdp-premium-phase8d
.cg-pdp-premium.cg-pdp-premium--phase8d
#product-options-wrapper .swatch-option.cg-pdp-variant-option--text {
    grid-template-columns: minmax(0, 1fr) 22px !important;
    height: 54px !important;
    min-height: 54px !important;
    max-height: 54px !important;
    padding-left: 12px !important;
}

body.catalog-product-view.cg-pdp-premium-phase8d
.cg-pdp-premium.cg-pdp-premium--phase8d
#product-options-wrapper .swatch-option.cg-pdp-variant-option--color {
    grid-template-columns: 34px minmax(0, 1fr) 22px !important;
    height: 58px !important;
    min-height: 58px !important;
    max-height: 58px !important;
}

body.catalog-product-view.cg-pdp-premium-phase8d
.cg-pdp-premium.cg-pdp-premium--phase8d
#product-options-wrapper .cg-pdp-variant-option__color {
    display: block !important;
    width: 30px !important;
    min-width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    margin: 0 !important;
    border: 2px solid #ffffff !important;
    border-radius: 999px !important;
    background-position: center !important;
    background-size: cover !important;
    box-shadow: 0 0 0 1px rgba(17, 26, 63, .16) !important;
}

body.catalog-product-view.cg-pdp-premium-phase8d
.cg-pdp-premium.cg-pdp-premium--phase8d
#product-options-wrapper .swatch-option .img-native-wrap,
body.catalog-product-view.cg-pdp-premium-phase8d
.cg-pdp-premium.cg-pdp-premium--phase8d
#product-options-wrapper .cg-pdp-variant-option__media {
    position: relative !important;
    display: grid !important;
    place-items: center !important;
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    margin: 0 !important;
    padding: 3px !important;
    padding-bottom: 3px !important;
    overflow: hidden !important;
    border: 1px solid rgba(17, 26, 63, .07) !important;
    border-radius: 12px !important;
    background: var(--cg8d-surface-soft) !important;
    box-shadow: none !important;
    flex: none !important;
}

body.catalog-product-view.cg-pdp-premium-phase8d
.cg-pdp-premium.cg-pdp-premium--phase8d
#product-options-wrapper .swatch-option .img-native-wrap img,
body.catalog-product-view.cg-pdp-premium-phase8d
.cg-pdp-premium.cg-pdp-premium--phase8d
#product-options-wrapper .swatch-option img,
body.catalog-product-view.cg-pdp-premium-phase8d
.cg-pdp-premium.cg-pdp-premium--phase8d
#product-options-wrapper .swatch-option img.img-fluid {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    margin: 0 !important;
    padding: 2px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    filter: none !important;
    opacity: 1 !important;
    object-fit: contain !important;
    object-position: center !important;
    image-rendering: auto !important;
    transform: none !important;
}

body.catalog-product-view.cg-pdp-premium-phase8d
.cg-pdp-premium.cg-pdp-premium--phase8d
#product-options-wrapper .cg-pdp-variant-option__label {
    display: block !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--cg8d-ink) !important;
    font-size: 13.5px !important;
    line-height: 1.25 !important;
    font-weight: 850 !important;
    letter-spacing: 0 !important;
    text-align: left !important;
    text-transform: none !important;
    white-space: normal !important;
    overflow: hidden !important;
    overflow-wrap: anywhere !important;
    text-overflow: ellipsis !important;
}

body.catalog-product-view.cg-pdp-premium-phase8d
.cg-pdp-premium.cg-pdp-premium--phase8d
#product-options-wrapper .cg-pdp-variant-option__check {
    position: static !important;
    display: grid !important;
    place-items: center !important;
    justify-self: end !important;
    width: 20px !important;
    min-width: 20px !important;
    height: 20px !important;
    min-height: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(17, 26, 63, .11) !important;
    border-radius: 999px !important;
    background: #f6f5f0 !important;
    color: transparent !important;
    font-size: 11px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
    opacity: 1 !important;
    transform: none !important;
}

body.catalog-product-view.cg-pdp-premium-phase8d
.cg-pdp-premium.cg-pdp-premium--phase8d
#product-options-wrapper .swatch-option:hover:not(.disabled):not([aria-disabled="true"]),
body.catalog-product-view.cg-pdp-premium-phase8d
.cg-pdp-premium.cg-pdp-premium--phase8d
#product-options-wrapper .swatch-option:focus-visible {
    border-color: rgba(180, 139, 49, .58) !important;
    background: #fffdf9 !important;
    box-shadow: 0 9px 22px rgba(17, 26, 63, .085) !important;
    transform: none !important;
}

body.catalog-product-view.cg-pdp-premium-phase8d
.cg-pdp-premium.cg-pdp-premium--phase8d
#product-options-wrapper .swatch-option:focus-visible {
    outline: 3px solid rgba(55, 91, 180, .24) !important;
    outline-offset: 2px !important;
}

body.catalog-product-view.cg-pdp-premium-phase8d
.cg-pdp-premium.cg-pdp-premium--phase8d
#product-options-wrapper .swatch-option.selected,
body.catalog-product-view.cg-pdp-premium-phase8d
.cg-pdp-premium.cg-pdp-premium--phase8d
#product-options-wrapper .swatch-option[aria-checked="true"],
body.catalog-product-view.cg-pdp-premium-phase8d
.cg-pdp-premium.cg-pdp-premium--phase8d
#product-options-wrapper .swatch-option[data-cg-selected="true"] {
    border-color: rgba(180, 139, 49, .88) !important;
    background: #fffdf8 !important;
    box-shadow: 0 0 0 1px rgba(180, 139, 49, .14), 0 10px 24px rgba(17, 26, 63, .08) !important;
    color: var(--cg8d-ink) !important;
    transform: none !important;
}

body.catalog-product-view.cg-pdp-premium-phase8d
.cg-pdp-premium.cg-pdp-premium--phase8d
#product-options-wrapper .swatch-option.selected .cg-pdp-variant-option__check,
body.catalog-product-view.cg-pdp-premium-phase8d
.cg-pdp-premium.cg-pdp-premium--phase8d
#product-options-wrapper .swatch-option[aria-checked="true"] .cg-pdp-variant-option__check,
body.catalog-product-view.cg-pdp-premium-phase8d
.cg-pdp-premium.cg-pdp-premium--phase8d
#product-options-wrapper .swatch-option[data-cg-selected="true"] .cg-pdp-variant-option__check {
    border-color: var(--cg8d-ink) !important;
    background: var(--cg8d-ink) !important;
    color: #f2d47d !important;
}

body.catalog-product-view.cg-pdp-premium-phase8d
.cg-pdp-premium.cg-pdp-premium--phase8d
#product-options-wrapper .swatch-option.disabled,
body.catalog-product-view.cg-pdp-premium-phase8d
.cg-pdp-premium.cg-pdp-premium--phase8d
#product-options-wrapper .swatch-option[aria-disabled="true"] {
    border-style: dashed !important;
    background: #f5f5f3 !important;
    box-shadow: none !important;
    opacity: .48 !important;
    cursor: not-allowed !important;
}

/* --------------------------------------------------------------------------
   Quantity + primary action — one horizontal purchase row on useful widths
   ----------------------------------------------------------------------- */
body.catalog-product-view.cg-pdp-premium-phase8d
.cg-pdp-premium.cg-pdp-premium--phase8d
#product_addtocart_form .box-tocart,
body.catalog-product-view.cg-pdp-premium-phase8d
.cg-pdp-premium.cg-pdp-premium--phase8d
#product_addtocart_form .cg-pdp-purchase__box {
    display: block !important;
    width: 100% !important;
    margin: 12px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.catalog-product-view.cg-pdp-premium-phase8d
.cg-pdp-premium.cg-pdp-premium--phase8d
#product_addtocart_form .box-tocart .fieldset-add,
body.catalog-product-view.cg-pdp-premium-phase8d
.cg-pdp-premium.cg-pdp-premium--phase8d
#product_addtocart_form .box-tocart .fieldset-add.cg-pdp-purchase__row,
body.catalog-product-view.cg-pdp-premium-phase8d
.cg-pdp-premium.cg-pdp-premium--phase8d
#product_addtocart_form [data-cg-purchase-row="phase8d"] {
    display: grid !important;
    grid-template-columns: 128px minmax(180px, 1fr) 48px !important;
    grid-template-rows: auto !important;
    gap: 9px !important;
    align-items: end !important;
    width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.catalog-product-view.cg-pdp-premium-phase8d
.cg-pdp-premium.cg-pdp-premium--phase8d
#product_addtocart_form .box-tocart .fieldset-add .field,
body.catalog-product-view.cg-pdp-premium-phase8d
.cg-pdp-premium.cg-pdp-premium--phase8d
#product_addtocart_form .cg-pdp-purchase__quantity--phase8d {
    grid-column: 1 !important;
    display: grid !important;
    grid-template-rows: 14px 48px !important;
    gap: 4px !important;
    align-items: stretch !important;
    width: 128px !important;
    min-width: 128px !important;
    max-width: 128px !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.catalog-product-view.cg-pdp-premium-phase8d
.cg-pdp-premium.cg-pdp-premium--phase8d
#product_addtocart_form .box-tocart .fieldset-add .field > .label,
body.catalog-product-view.cg-pdp-premium-phase8d
.cg-pdp-premium.cg-pdp-premium--phase8d
#product_addtocart_form .cg-pdp-quantity__label--phase8d {
    position: static !important;
    display: block !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 0 0 2px !important;
    color: var(--cg8d-muted) !important;
    font-size: 10px !important;
    line-height: 14px !important;
    font-weight: 800 !important;
    letter-spacing: .025em !important;
    text-align: left !important;
    text-transform: none !important;
    transform: none !important;
}

body.catalog-product-view.cg-pdp-premium-phase8d
.cg-pdp-premium.cg-pdp-premium--phase8d
#product_addtocart_form .box-tocart .fieldset-add .field > .control,
body.catalog-product-view.cg-pdp-premium-phase8d
.cg-pdp-premium.cg-pdp-premium--phase8d
#product_addtocart_form .cg-pdp-stepper--phase8d {
    position: static !important;
    display: grid !important;
    grid-template-columns: 38px 52px 38px !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    gap: 0 !important;
    width: 128px !important;
    min-width: 128px !important;
    max-width: 128px !important;
    height: 48px !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 1px solid rgba(17, 26, 63, .14) !important;
    border-radius: 13px !important;
    background: #fff !important;
    box-shadow: 0 6px 16px rgba(17, 26, 63, .05) !important;
}

body.catalog-product-view.cg-pdp-premium-phase8d
.cg-pdp-premium.cg-pdp-premium--phase8d
#product_addtocart_form .custom-qty,
body.catalog-product-view.cg-pdp-premium-phase8d
.cg-pdp-premium.cg-pdp-premium--phase8d
#product_addtocart_form .custom-qty.reduced,
body.catalog-product-view.cg-pdp-premium-phase8d
.cg-pdp-premium.cg-pdp-premium--phase8d
#product_addtocart_form .custom-qty.increase {
    position: static !important;
    display: block !important;
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
}

body.catalog-product-view.cg-pdp-premium-phase8d
.cg-pdp-premium.cg-pdp-premium--phase8d
#product_addtocart_form .custom-qty::before,
body.catalog-product-view.cg-pdp-premium-phase8d
.cg-pdp-premium.cg-pdp-premium--phase8d
#product_addtocart_form .custom-qty::after {
    content: none !important;
    display: none !important;
}

/* Historic product-page.css injects another plus/minus through button
   pseudo-elements. Phase 8D uses one explicit, accessible visual symbol. */
body.catalog-product-view.cg-pdp-premium-phase8d
.cg-pdp-premium.cg-pdp-premium--phase8d
#product_addtocart_form [data-cg-purchase-row="phase8d"] .btn-qty::before,
body.catalog-product-view.cg-pdp-premium-phase8d
.cg-pdp-premium.cg-pdp-premium--phase8d
#product_addtocart_form [data-cg-purchase-row="phase8d"] .btn-qty::after {
    content: none !important;
    display: none !important;
}

body.catalog-product-view.cg-pdp-premium-phase8d
.cg-pdp-premium.cg-pdp-premium--phase8d
#product_addtocart_form .btn-qty {
    all: unset !important;
    display: grid !important;
    place-items: center !important;
    box-sizing: border-box !important;
    width: 38px !important;
    min-width: 38px !important;
    height: 46px !important;
    min-height: 46px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--cg8d-ink) !important;
    box-shadow: none !important;
    cursor: pointer !important;
    pointer-events: auto !important;
}

body.catalog-product-view.cg-pdp-premium-phase8d
.cg-pdp-premium.cg-pdp-premium--phase8d
#product_addtocart_form .custom-qty.reduced .btn-qty {
    border-right: 1px solid rgba(17, 26, 63, .09) !important;
}

body.catalog-product-view.cg-pdp-premium-phase8d
.cg-pdp-premium.cg-pdp-premium--phase8d
#product_addtocart_form .custom-qty.increase .btn-qty {
    border-left: 1px solid rgba(17, 26, 63, .09) !important;
}

body.catalog-product-view.cg-pdp-premium-phase8d
.cg-pdp-premium.cg-pdp-premium--phase8d
#product_addtocart_form .btn-qty .cg-pdp-stepper__native-icon {
    display: none !important;
}

body.catalog-product-view.cg-pdp-premium-phase8d
.cg-pdp-premium.cg-pdp-premium--phase8d
#product_addtocart_form .btn-qty .cg-pdp-stepper__symbol {
    display: block !important;
    color: inherit !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 20px !important;
    line-height: 1 !important;
    font-weight: 500 !important;
    transform: translateY(-1px) !important;
}

body.catalog-product-view.cg-pdp-premium-phase8d
.cg-pdp-premium.cg-pdp-premium--phase8d
#product_addtocart_form .btn-qty:hover:not(:disabled),
body.catalog-product-view.cg-pdp-premium-phase8d
.cg-pdp-premium.cg-pdp-premium--phase8d
#product_addtocart_form .btn-qty:focus-visible {
    background: var(--cg8d-gold-soft) !important;
    color: #7c5d18 !important;
}

body.catalog-product-view.cg-pdp-premium-phase8d
.cg-pdp-premium.cg-pdp-premium--phase8d
#product_addtocart_form .btn-qty:disabled {
    background: #f6f6f4 !important;
    color: rgba(17, 26, 63, .24) !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    opacity: 1 !important;
}

body.catalog-product-view.cg-pdp-premium-phase8d
.cg-pdp-premium.cg-pdp-premium--phase8d
#product_addtocart_form input#qty,
body.catalog-product-view.cg-pdp-premium-phase8d
.cg-pdp-premium.cg-pdp-premium--phase8d
#product_addtocart_form input.qty,
body.catalog-product-view.cg-pdp-premium-phase8d
.cg-pdp-premium.cg-pdp-premium--phase8d
#product_addtocart_form .cg-pdp-stepper__input--phase8d {
    position: static !important;
    display: block !important;
    box-sizing: border-box !important;
    width: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    margin: 0 !important;
    padding: 0 3px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: var(--cg8d-ink) !important;
    -webkit-text-fill-color: var(--cg8d-ink) !important;
    caret-color: var(--cg8d-ink) !important;
    box-shadow: none !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 16px !important;
    line-height: 46px !important;
    font-weight: 850 !important;
    text-align: center !important;
    appearance: textfield !important;
    -moz-appearance: textfield !important;
}

body.catalog-product-view.cg-pdp-premium-phase8d
.cg-pdp-premium.cg-pdp-premium--phase8d
#product_addtocart_form input#qty::-webkit-outer-spin-button,
body.catalog-product-view.cg-pdp-premium-phase8d
.cg-pdp-premium.cg-pdp-premium--phase8d
#product_addtocart_form input#qty::-webkit-inner-spin-button {
    margin: 0 !important;
    -webkit-appearance: none !important;
}

body.catalog-product-view.cg-pdp-premium-phase8d
.cg-pdp-premium.cg-pdp-premium--phase8d
#product_addtocart_form .box-tocart .fieldset-add .actions,
body.catalog-product-view.cg-pdp-premium-phase8d
.cg-pdp-premium.cg-pdp-premium--phase8d
#product_addtocart_form .cg-pdp-purchase__actions--phase8d {
    grid-column: 2 !important;
    display: flex !important;
    align-items: flex-end !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 48px !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.catalog-product-view.cg-pdp-premium-phase8d
.cg-pdp-premium.cg-pdp-premium--phase8d
#product_addtocart_form #product-addtocart-button,
body.catalog-product-view.cg-pdp-premium-phase8d
.cg-pdp-premium.cg-pdp-premium--phase8d
#product_addtocart_form .cg-pdp-purchase__cta {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 48px !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 0 18px !important;
    border-radius: 13px !important;
}

body.catalog-product-view.cg-pdp-premium-phase8d
.cg-pdp-premium.cg-pdp-premium--phase8d
#product_addtocart_form #instant-purchase[data-cg-instant-state="empty"],
body.catalog-product-view.cg-pdp-premium-phase8d
.cg-pdp-premium.cg-pdp-premium--phase8d
#product_addtocart_form #instant-purchase[hidden] {
    display: none !important;
}

body.catalog-product-view.cg-pdp-premium-phase8d
.cg-pdp-premium.cg-pdp-premium--phase8d
#product_addtocart_form .towishlist,
body.catalog-product-view.cg-pdp-premium-phase8d
.cg-pdp-premium.cg-pdp-premium--phase8d
#product_addtocart_form .cg-pdp-purchase__wishlist--phase8d {
    position: static !important;
    grid-column: 3 !important;
    align-self: end !important;
    display: grid !important;
    place-items: center !important;
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 13px !important;
    transform: none !important;
}

/* Medium screens retain the single-row purchase action. */
@media (max-width: 767px) {
    /* Column count remains container-driven through --cg-variant-columns. */

    body.catalog-product-view.cg-pdp-premium-phase8d
    .cg-pdp-premium.cg-pdp-premium--phase8d
    #product_addtocart_form .box-tocart .fieldset-add,
    body.catalog-product-view.cg-pdp-premium-phase8d
    .cg-pdp-premium.cg-pdp-premium--phase8d
    #product_addtocart_form [data-cg-purchase-row="phase8d"] {
        grid-template-columns: 118px minmax(0, 1fr) 46px !important;
        gap: 7px !important;
    }

    body.catalog-product-view.cg-pdp-premium-phase8d
    .cg-pdp-premium.cg-pdp-premium--phase8d
    #product_addtocart_form .box-tocart .fieldset-add .field,
    body.catalog-product-view.cg-pdp-premium-phase8d
    .cg-pdp-premium.cg-pdp-premium--phase8d
    #product_addtocart_form .cg-pdp-purchase__quantity--phase8d {
        width: 118px !important;
        min-width: 118px !important;
        max-width: 118px !important;
    }

    body.catalog-product-view.cg-pdp-premium-phase8d
    .cg-pdp-premium.cg-pdp-premium--phase8d
    #product_addtocart_form .box-tocart .fieldset-add .field > .control,
    body.catalog-product-view.cg-pdp-premium-phase8d
    .cg-pdp-premium.cg-pdp-premium--phase8d
    #product_addtocart_form .cg-pdp-stepper--phase8d {
        grid-template-columns: 35px 48px 35px !important;
        width: 118px !important;
        min-width: 118px !important;
        max-width: 118px !important;
    }

    body.catalog-product-view.cg-pdp-premium-phase8d
    .cg-pdp-premium.cg-pdp-premium--phase8d
    #product_addtocart_form .custom-qty,
    body.catalog-product-view.cg-pdp-premium-phase8d
    .cg-pdp-premium.cg-pdp-premium--phase8d
    #product_addtocart_form .btn-qty {
        width: 35px !important;
        min-width: 35px !important;
        max-width: 35px !important;
    }

    body.catalog-product-view.cg-pdp-premium-phase8d
    .cg-pdp-premium.cg-pdp-premium--phase8d
    #product_addtocart_form input#qty,
    body.catalog-product-view.cg-pdp-premium-phase8d
    .cg-pdp-premium.cg-pdp-premium--phase8d
    #product_addtocart_form input.qty {
        width: 48px !important;
        min-width: 48px !important;
        max-width: 48px !important;
    }

    body.catalog-product-view.cg-pdp-premium-phase8d
    .cg-pdp-premium.cg-pdp-premium--phase8d
    #product_addtocart_form .towishlist {
        width: 46px !important;
        min-width: 46px !important;
        max-width: 46px !important;
    }
}

@media (max-width: 480px) {
    /* Column count remains container-driven through --cg-variant-columns. */

    body.catalog-product-view.cg-pdp-premium-phase8d
    .cg-pdp-premium.cg-pdp-premium--phase8d
    #product_addtocart_form .box-tocart .fieldset-add,
    body.catalog-product-view.cg-pdp-premium-phase8d
    .cg-pdp-premium.cg-pdp-premium--phase8d
    #product_addtocart_form [data-cg-purchase-row="phase8d"] {
        grid-template-columns: minmax(0, 1fr) 46px !important;
        grid-template-rows: auto auto !important;
        gap: 8px !important;
    }

    body.catalog-product-view.cg-pdp-premium-phase8d
    .cg-pdp-premium.cg-pdp-premium--phase8d
    #product_addtocart_form .box-tocart .fieldset-add .field,
    body.catalog-product-view.cg-pdp-premium-phase8d
    .cg-pdp-premium.cg-pdp-premium--phase8d
    #product_addtocart_form .cg-pdp-purchase__quantity--phase8d {
        grid-column: 1 !important;
        grid-row: 1 !important;
    }

    body.catalog-product-view.cg-pdp-premium-phase8d
    .cg-pdp-premium.cg-pdp-premium--phase8d
    #product_addtocart_form .towishlist {
        grid-column: 2 !important;
        grid-row: 1 !important;
    }

    body.catalog-product-view.cg-pdp-premium-phase8d
    .cg-pdp-premium.cg-pdp-premium--phase8d
    #product_addtocart_form .box-tocart .fieldset-add .actions,
    body.catalog-product-view.cg-pdp-premium-phase8d
    .cg-pdp-premium.cg-pdp-premium--phase8d
    #product_addtocart_form .cg-pdp-purchase__actions--phase8d {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.catalog-product-view.cg-pdp-premium-phase8d
    .cg-pdp-premium.cg-pdp-premium--phase8d
    #product-options-wrapper .swatch-option,
    body.catalog-product-view.cg-pdp-premium-phase8d
    .cg-pdp-premium.cg-pdp-premium--phase8d
    #product_addtocart_form .btn-qty {
        transition: none !important;
        transform: none !important;
    }
}
