/* Keep the ungrouped swatches out of the first paint; reveal only the finished palette.
   A timed fallback leaves the native swatches usable if initialization fails. */
@keyframes v3-palette-fallback { to { visibility: visible; } }
body.single-product #page .cfvsw-swatches-container[swatches-attr="attribute_pa_colore"]:not([data-v3-color-groups-ready="1"]) {
 display:grid!important; grid-template-columns:repeat(2,minmax(0,1fr))!important; gap:8px;
 visibility:hidden; animation:v3-palette-fallback 0s 2s forwards;
}
body.single-product #page .cfvsw-swatches-container[swatches-attr="attribute_pa_colore"][data-v3-color-groups-ready="1"] { visibility:visible; animation:none; }

.single-product .vasetto3d-custom-color,
.single-product [data-vasetto3d-custom-color],
.single-product .cfvsw-swatches-option[data-slug="custom-color"],
.single-product .cfvsw-label-option[data-slug="custom-color"] {
    display: none !important;
}

.single-product .cfvsw-swatches-container[swatches-attr="attribute_pa_colore"] {
    display: block !important;
    width: 100% !important;
    grid-template-columns: none !important;
}

.single-product .v3-color-groups {
    display: grid;
    gap: 12px;
    width: 100%;
}

.single-product .v3-color-group {
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 16px;
    background: rgba(14, 18, 23, .58);
    overflow: hidden;
}

.single-product .v3-color-group__heading {
    display: grid;
    gap: 3px;
    padding: 13px 14px 11px;
    letter-spacing: normal !important;
    text-transform: none !important;
}

.single-product .v3-color-group__heading strong {
    color: var(--mw-text, #f4f6f8);
    font-size: .94rem;
    line-height: 1.25;
    letter-spacing: normal !important;
    text-transform: none !important;
}

.single-product .v3-color-group__heading small {
    color: var(--mw-text-3, #aeb7c2);
    font-size: .78rem;
    font-weight: 400 !important;
    line-height: 1.4;
    letter-spacing: normal !important;
    text-transform: none !important;
}

.single-product .v3-color-group__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 0 12px 13px;
}

.single-product .v3-color-group__grid .cfvsw-swatches-option {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
}

.single-product .v3-color-group--on-demand > summary {
    position: relative;
    display: block;
    cursor: pointer;
    list-style: none;
    padding-right: 38px;
}

.single-product .v3-color-group--on-demand > summary::-webkit-details-marker {
    display: none;
}

.single-product .v3-color-group--on-demand > summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 15px;
    color: var(--mw-text, #f4f6f8);
    font-size: 1.25rem;
    line-height: 1;
    transform: translateY(-50%);
}

.single-product .v3-color-group--on-demand[open] > summary::after {
    content: "−";
}

.single-product .v3-color-group--on-demand[open] > summary {
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    margin-bottom: 12px;
}

.single-product .v3-color-group--on-demand > summary:focus-visible {
    outline: 2px solid var(--mw-success, #8fd39a);
    outline-offset: -2px;
}

.single-product .v3-color-swatch--on-demand {
    position: relative;
}

.single-product .v3-color-selection-note {
    margin: 0;
    padding: 11px 13px;
    border: 1px solid rgba(143, 231, 155, .22);
    border-radius: 12px;
    background: rgba(46, 128, 61, .12);
    color: var(--mw-success, #8fd39a);
    font-size: .84rem;
    font-weight: 700;
    line-height: 1.45;
}

.single-product .v3-color-selection-note[hidden] {
    display: none !important;
}

.single-product p.stock.v3-stock-purchasable {
    color: #6fdb82 !important;
}

.single-product p.stock.v3-stock-orderable {
    color: #ff6868 !important;
}

@media (max-width: 390px) {
    .single-product .v3-color-group__grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
.single-product .cfvsw-swatches-container[swatches-attr="attribute_pa_colore"] .cfvsw-label-option[data-slug="must"] .cfvsw-swatch-inner::before{content:"";background-color:#800020;}

/* Full-color palette buttons; existing selected border and shadow stay intact. */
body.single-product #page .cfvsw-swatches-container[swatches-attr="attribute_pa_colore"] .cfvsw-swatches-option[data-slug="must"] { --v3-swatch-fill: #800020; --v3-swatch-ink: #FFFFFF; }
body.single-product #page .cfvsw-swatches-container[swatches-attr="attribute_pa_colore"] .cfvsw-swatches-option[data-slug="ivory-white"] { --v3-swatch-fill: #FFFFFF; --v3-swatch-ink: #000000; }
body.single-product #page .cfvsw-swatches-container[swatches-attr="attribute_pa_colore"] .cfvsw-swatches-option[data-slug="bone-white"] { --v3-swatch-fill: #CBC6B8; --v3-swatch-ink: #000000; }
body.single-product #page .cfvsw-swatches-container[swatches-attr="attribute_pa_colore"] .cfvsw-swatches-option[data-slug="desert-tan"] { --v3-swatch-fill: #E8DBB7; --v3-swatch-ink: #000000; }
body.single-product #page .cfvsw-swatches-container[swatches-attr="attribute_pa_colore"] .cfvsw-swatches-option[data-slug="latte-brown"] { --v3-swatch-fill: #D3B7A7; --v3-swatch-ink: #000000; }
body.single-product #page .cfvsw-swatches-container[swatches-attr="attribute_pa_colore"] .cfvsw-swatches-option[data-slug="caramel"] { --v3-swatch-fill: #AE835B; --v3-swatch-ink: #000000; }
body.single-product #page .cfvsw-swatches-container[swatches-attr="attribute_pa_colore"] .cfvsw-swatches-option[data-slug="terracotta"] { --v3-swatch-fill: #B15533; --v3-swatch-ink: #FFFFFF; }
body.single-product #page .cfvsw-swatches-container[swatches-attr="attribute_pa_colore"] .cfvsw-swatches-option[data-slug="dark-brown"] { --v3-swatch-fill: #7D6556; --v3-swatch-ink: #FFFFFF; }
body.single-product #page .cfvsw-swatches-container[swatches-attr="attribute_pa_colore"] .cfvsw-swatches-option[data-slug="dark-chocolate"] { --v3-swatch-fill: #4D3324; --v3-swatch-ink: #FFFFFF; }
body.single-product #page .cfvsw-swatches-container[swatches-attr="attribute_pa_colore"] .cfvsw-swatches-option[data-slug="lilac-purple"] { --v3-swatch-fill: #AE96D4; --v3-swatch-ink: #000000; }
body.single-product #page .cfvsw-swatches-container[swatches-attr="attribute_pa_colore"] .cfvsw-swatches-option[data-slug="sakura-pink"] { --v3-swatch-fill: #E8AFCF; --v3-swatch-ink: #000000; }
body.single-product #page .cfvsw-swatches-container[swatches-attr="attribute_pa_colore"] .cfvsw-swatches-option[data-slug="mandarin-orange"] { --v3-swatch-fill: #F99963; --v3-swatch-ink: #000000; }
body.single-product #page .cfvsw-swatches-container[swatches-attr="attribute_pa_colore"] .cfvsw-swatches-option[data-slug="lemon-yellow"] { --v3-swatch-fill: #F7D959; --v3-swatch-ink: #000000; }
body.single-product #page .cfvsw-swatches-container[swatches-attr="attribute_pa_colore"] .cfvsw-swatches-option[data-slug="plum"] { --v3-swatch-fill: #950051; --v3-swatch-ink: #FFFFFF; }
body.single-product #page .cfvsw-swatches-container[swatches-attr="attribute_pa_colore"] .cfvsw-swatches-option[data-slug="scarlet-red"] { --v3-swatch-fill: #DE4343; --v3-swatch-ink: #000000; }
body.single-product #page .cfvsw-swatches-container[swatches-attr="attribute_pa_colore"] .cfvsw-swatches-option[data-slug="dark-red"] { --v3-swatch-fill: #BB3D43; --v3-swatch-ink: #FFFFFF; }
body.single-product #page .cfvsw-swatches-container[swatches-attr="attribute_pa_colore"] .cfvsw-swatches-option[data-slug="dark-green"] { --v3-swatch-fill: #68724D; --v3-swatch-ink: #FFFFFF; }
body.single-product #page .cfvsw-swatches-container[swatches-attr="attribute_pa_colore"] .cfvsw-swatches-option[data-slug="sage-green"] { --v3-swatch-fill: #8D7F64; --v3-swatch-ink: #000000; }
body.single-product #page .cfvsw-swatches-container[swatches-attr="attribute_pa_colore"] .cfvsw-swatches-option[data-slug="grass-green"] { --v3-swatch-fill: #61C680; --v3-swatch-ink: #000000; }
body.single-product #page .cfvsw-swatches-container[swatches-attr="attribute_pa_colore"] .cfvsw-swatches-option[data-slug="apple-green"] { --v3-swatch-fill: #C2E189; --v3-swatch-ink: #000000; }
body.single-product #page .cfvsw-swatches-container[swatches-attr="attribute_pa_colore"] .cfvsw-swatches-option[data-slug="ice-blue"] { --v3-swatch-fill: #A3D8E1; --v3-swatch-ink: #000000; }
body.single-product #page .cfvsw-swatches-container[swatches-attr="attribute_pa_colore"] .cfvsw-swatches-option[data-slug="sky-blue"] { --v3-swatch-fill: #56B7E6; --v3-swatch-ink: #000000; }
body.single-product #page .cfvsw-swatches-container[swatches-attr="attribute_pa_colore"] .cfvsw-swatches-option[data-slug="marine-blue"] { --v3-swatch-fill: #0078BF; --v3-swatch-ink: #FFFFFF; }
body.single-product #page .cfvsw-swatches-container[swatches-attr="attribute_pa_colore"] .cfvsw-swatches-option[data-slug="dark-blue"] { --v3-swatch-fill: #042F56; --v3-swatch-ink: #FFFFFF; }
body.single-product #page .cfvsw-swatches-container[swatches-attr="attribute_pa_colore"] .cfvsw-swatches-option[data-slug="ash-gray"] { --v3-swatch-fill: #9B9EA0; --v3-swatch-ink: #000000; }
body.single-product #page .cfvsw-swatches-container[swatches-attr="attribute_pa_colore"] .cfvsw-swatches-option[data-slug="nardo-gray"] { --v3-swatch-fill: #757575; --v3-swatch-ink: #FFFFFF; }
body.single-product #page .cfvsw-swatches-container[swatches-attr="attribute_pa_colore"] .cfvsw-swatches-option[data-slug="charcoal"] { --v3-swatch-fill: #000000; --v3-swatch-ink: #FFFFFF; }
body.single-product #page .cfvsw-swatches-container[swatches-attr="attribute_pa_colore"] .cfvsw-swatches-option[data-slug] {
 background: var(--v3-swatch-fill) !important;
 color: var(--v3-swatch-ink) !important;
 min-height: 36px !important;
}
body.single-product #page .cfvsw-swatches-container[swatches-attr="attribute_pa_colore"] .cfvsw-swatches-option[data-slug] .cfvsw-swatch-inner {
 color: var(--v3-swatch-ink) !important;
 font-weight: 600;
 justify-content: center;
 text-align: center;
 text-shadow: none !important;
}
body.single-product #page .cfvsw-swatches-container[swatches-attr="attribute_pa_colore"] .cfvsw-swatches-option[data-slug] .cfvsw-swatch-inner::before { display: none !important; }

/* Compact, centered color labels. */
body.single-product #page .cfvsw-swatches-container[swatches-attr="attribute_pa_colore"] .cfvsw-swatches-option[data-slug] {
 padding: 6px 8px !important;
 display: flex !important;
 align-items: center !important;
 justify-content: center !important;
}
body.single-product #page .cfvsw-swatches-container[swatches-attr="attribute_pa_colore"] .cfvsw-swatches-option[data-slug] .cfvsw-swatch-inner {
 display: flex !important;
 width: 100% !important;
 align-items: center !important;
 justify-content: center !important;
 text-align: center !important;
 font-size: 12px !important;
 line-height: 1.25 !important;
 padding: 0 !important;
 margin: 0 !important;
}

/* Height comparison: same baseline, proportional silhouettes, native variation selection. */
body.single-product #page .v3-size-sketches { display:grid!important; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px!important; width:100%; }
body.single-product #page .v3-size-sketches .cfvsw-swatches-option { min-width:0!important; width:100%!important; padding:8px 3px!important; border-radius:12px!important; box-sizing:border-box; color:#c8d3bc; }
body.single-product #page .v3-size-sketches .cfvsw-swatch-inner { display:flex!important; flex-direction:column; align-items:center; justify-content:flex-end; width:100%; gap:2px; }
body.single-product #page .v3-size-sketches svg { display:block; width:100%; height:92px; max-width:84px; pointer-events:none; }
body.single-product #page .v3-size-sketches .v3-size-cm { font-size:14px; font-weight:700; line-height:1.3; white-space:nowrap; color:inherit; }
body.single-product #page .v3-size-sketches .v3-size-mm { font-size:10px; line-height:1.3; opacity:.7; color:inherit; }
body.single-product #page .v3-size-sketches .cfvsw-selected-swatch { color:#eaf4dd!important; background:#253e2b!important; border-color:#8fbc76!important; }
body.single-product #page .v3-size-sketches .cfvsw-swatches-option:focus-visible { outline:2px solid #c2dda6; outline-offset:3px; }
.v3-size-sketch-note { display:block; margin:7px 0 12px; color:#a9b3ab; font-size:11px; }

/* Live purchase summary, immediately above quantity and add-to-cart. */
body.single-product #page .v3-purchase-summary { box-sizing:border-box; width:100%; margin:18px 0; padding:20px; border:1px solid #445644; border-radius:18px; background:linear-gradient(135deg,#203127,#151d1a); color:#e8ede5; }
.v3-purchase-head { display:flex; align-items:center; gap:13px; margin-bottom:18px; }
.v3-purchase-head img { width:64px!important; height:64px!important; object-fit:cover; border-radius:12px; margin:0!important; }
.v3-purchase-head small { color:#bfd1a9; font-size:9px; letter-spacing:1.6px; }
body.single-product #page .v3-purchase-head h3 { color:#f1f3eb!important; font-size:23px; line-height:1.2; margin:4px 0 0; }
body.single-product #page .v3-purchase-summary dl { margin:0; }
.v3-purchase-summary dl > div { display:flex; justify-content:space-between; gap:14px; padding:8px 0; border-bottom:1px solid rgba(200,220,190,.09); font-size:12px; line-height:1.5; }
.v3-purchase-summary dt { color:#b2bdb4; font-weight:400; }
.v3-purchase-summary dd { text-align:right; color:#eef1e9; margin:0; max-width:65%; font-weight:600; }
.v3-purchase-total { display:flex; align-items:center; justify-content:space-between; gap:12px; padding-top:18px; }
.v3-purchase-total span { font-size:13px; color:#d6dfd1; }
body.single-product #page .v3-purchase-total strong { color:#d0e6b6; font-size:28px; line-height:1.2; white-space:nowrap; }
body.single-product #page .v3-purchase-state { color:#bdcbbd; font-size:11px; line-height:1.6; margin:12px 0 8px; }
.v3-purchase-foot { display:block; color:#a0ada4; font-size:10px; line-height:1.5; }
.v3-has-purchase-summary .v3-waterproof-price { display:none!important; }
@media(max-width:767px) { body.single-product #page .v3-purchase-summary { padding:18px; } }

/* Purchase controls share the summary's restrained green finish. */
body.single-product #page .v3-has-purchase-summary .woocommerce-variation-add-to-cart { display:flex!important; flex-wrap:wrap; gap:12px; align-items:center; padding:16px!important; border:1px solid #445644; border-radius:18px; background:linear-gradient(135deg,#203127,#151d1a); box-sizing:border-box; }
body.single-product #page .v3-has-purchase-summary .quantity { display:flex!important; align-items:center; justify-content:center; width:100%!important; height:46px!important; margin:0!important; float:none!important; padding:0!important; position:relative; }
body.single-product #page .v3-has-purchase-summary .quantity::before { content:'Quantità'; color:#bdcbbd; font-size:12px; margin-right:auto; order:0; }
body.single-product #page .v3-has-purchase-summary .quantity-nav { display:contents!important; }
body.single-product #page .v3-has-purchase-summary .quantity input.qty { appearance:textfield!important; -moz-appearance:textfield!important; width:48px!important; min-width:0!important; height:44px!important; padding:0!important; margin:0!important; border:0!important; border-top:1px solid #52624f!important; border-bottom:1px solid #52624f!important; border-radius:0!important; background:#131e18!important; color:#eff3e9!important; font-size:16px!important; font-weight:600; text-align:center!important; box-shadow:none!important; order:2; }
body.single-product #page .v3-has-purchase-summary input.qty::-webkit-inner-spin-button,body.single-product #page .v3-has-purchase-summary input.qty::-webkit-outer-spin-button { -webkit-appearance:none; margin:0; }
body.single-product #page .v3-has-purchase-summary .quantity-button { position:static!important; display:flex!important; align-items:center; justify-content:center; width:44px!important; height:44px!important; padding:0!important; margin:0!important; border:1px solid #52624f!important; background:#233829!important; color:#e7efde!important; cursor:pointer; box-sizing:border-box; transform:none!important; }
body.single-product #page .v3-has-purchase-summary .quantity-down { order:1; border-radius:11px 0 0 11px!important; }
body.single-product #page .v3-has-purchase-summary .quantity-up { order:3; border-radius:0 11px 11px 0!important; }
body.single-product #page .v3-has-purchase-summary .quantity-button::before { content:none!important; }
body.single-product #page .v3-has-purchase-summary .quantity-down::after { content:'−'!important; position:static!important; font:22px/1 sans-serif!important; border:0!important; width:auto!important; height:auto!important; transform:none!important; }
body.single-product #page .v3-has-purchase-summary .quantity-up::after { content:'+'!important; position:static!important; font:22px/1 sans-serif!important; border:0!important; width:auto!important; height:auto!important; transform:none!important; }
body.single-product #page .v3-has-purchase-summary .single_add_to_cart_button { width:100%!important; flex:0 0 100%; min-height:48px!important; height:auto!important; padding:13px 12px!important; margin:0!important; border-radius:12px!important; border:1px solid #88ac71!important; background:#bcd5a4!important; color:#17221a!important; font-size:14px!important; font-weight:700!important; line-height:1.4!important; box-shadow:none!important; text-align:center; }
body.single-product #page .v3-has-purchase-summary .single_add_to_cart_button:hover { background:#cee3bb!important; color:#17221a!important; }
body.single-product #page .v3-has-purchase-summary .single_add_to_cart_button.disabled { opacity:.45!important; }
body.single-product #page .v3-has-purchase-summary .quantity-button:hover { background:#354d35!important; }
body.single-product #page .v3-has-purchase-summary .quantity-button:focus-visible,body.single-product #page .v3-has-purchase-summary .single_add_to_cart_button:focus-visible { outline:2px solid #d4e7c0; outline-offset:3px; }

body.single-product #page .v3-purchase-availability { flex:0 0 100%; width:100%; padding:12px 0 0; border-top:1px solid #3b503f; text-align:left; box-sizing:border-box; }
body.single-product #page .v3-purchase-availability strong { display:block; color:#c7dfaf; font-size:13px; line-height:1.5; }
body.single-product #page .v3-purchase-availability small { display:block; color:#b6c1b8; font-size:11px; line-height:1.6; margin-top:4px; }
body.single-product #page .v3-purchase-availability.is-on-order strong { color:#e4c99b; }
.v3-has-purchase-summary .woocommerce-variation-availability { display:none!important; }

/* Compact purchase controls. */
body.single-product #page form.v3-has-purchase-summary .woocommerce-variation-add-to-cart { padding:12px!important; gap:9px!important; }
body.single-product #page form.v3-has-purchase-summary .quantity { height:36px!important; min-height:0!important; }
body.single-product #page form.v3-has-purchase-summary .quantity input.qty { width:36px!important; height:36px!important; min-height:0!important; box-sizing:border-box!important; font-size:14px!important; }
body.single-product #page form.v3-has-purchase-summary .quantity-button { width:34px!important; height:36px!important; min-height:0!important; }
body.single-product #page form.v3-has-purchase-summary .quantity-button::after { font-size:18px!important; }
body.single-product #page#page#page form.v3-has-purchase-summary button.single_add_to_cart_button.button { min-height:38px!important; height:38px!important; padding:8px 12px!important; font-size:12px!important; line-height:20px!important; border-radius:10px!important; }

body.single-product #page .cfvsw-swatches-container[swatches-attr="attribute_pa_colore"] .cfvsw-swatches-option[data-slug="malt-clay"] { --v3-swatch-fill:#8F7E61; --v3-swatch-ink:#000000; }

body.single-product #page .cfvsw-swatches-container[swatches-attr="attribute_pa_colore"] .cfvsw-swatches-option[data-slug="earth-brown"] { --v3-swatch-fill:#9A6948; --v3-swatch-ink:#FFFFFF; }


/* Availability accompanies the selected color, leaving swatches uncluttered. */
body.single-product #page .v3-selected-color-stock { display:inline-block; margin-left:12px; font-size:13px; font-weight:400; white-space:nowrap; color:#bbc6bd; }
body.single-product #page .v3-selected-color-stock strong { color:#72e58b!important; font-size:15px; font-weight:700; }
body.single-product #page .v3-selected-color-stock.is-empty strong { color:#ff646b!important; }
body.single-product #page .v3-selected-color-stock[hidden] { display:none!important; }

body.single-product #page .variations th.label label[for="pa_colore"] { display:inline!important; }

/* Consistent typography for selected color and availability. */
body.single-product #page .variations th.label label[for="pa_colore"],
body.single-product #page .variations th.label label[for="pa_colore"] *,
body.single-product #page .v3-selected-color-stock {
 font-family:inherit!important; font-size:14px!important; font-weight:400!important; color:#bbc6bd!important; line-height:1.5!important;
}
body.single-product #page .v3-selected-color-stock strong { font-size:14px!important; }

body.single-product #page .variations th.label:has(label[for="pa_colore"]) {
 display:flex!important; align-items:baseline!important; justify-content:space-between!important; gap:12px!important; width:100%!important; box-sizing:border-box!important;
}
body.single-product #page .variations th.label label[for="pa_colore"] { flex:1 1 auto; margin:0!important; }
body.single-product #page .v3-selected-color-stock { flex:0 0 auto; margin:0!important; text-align:right; }

body.single-product #page .variations th.label label[for="pa_colore"] > span:first-child,
body.single-product #page .v3-selected-color-stock .v3-stock-caption {
 color:#ffffff!important; font-weight:700!important;
}
body.single-product #page .variations th.label label[for="pa_colore"] > span:first-child::after { color:#ffffff!important; font-weight:700!important; }
