/* ============================================
   SNUGWEAVE PACK SELECTOR + WHAT'S IN YOUR BOX
   Location: /assets/css/single-product/snugweave-pack.css
   GENERATED by products/snugweave-rope-cat-basket/tools/build_pack_css.py from the AquaPaw
   selector rules in aquapaw.css (copied verbatim, aquapaw-* renamed snugweave-*, every
   selector scoped under .pk-snugweave-pack, which appears only in this product's markup).
   SnugWeave-only additions come last (tools/pack_css_extra.css). Edit those, not this file.
   ============================================ */

/* ── Hide the default pack / size / colour rows + swatches (driven by the builder), only
   in a form that holds the builder ── */
form.variations_form:has(.pk-snugweave-pack) tr:has(select[name="attribute_pack"]),
form.variations_form:has(.pk-snugweave-pack) tr:has(select[name="attribute_size"]),
form.variations_form:has(.pk-snugweave-pack) tr:has(select[name="attribute_color"]),
form.variations_form:has(.pk-snugweave-pack) ul.cgkit-attribute-swatches[data-attribute="attribute_pack"],
form.variations_form:has(.pk-snugweave-pack) ul.cgkit-attribute-swatches[data-attribute="attribute_size"],
form.variations_form:has(.pk-snugweave-pack) ul.cgkit-attribute-swatches[data-attribute="attribute_color"],
form.variations_form:has(.pk-snugweave-pack) .cfvsw_optin[data-attribute="attribute_pack"],
form.variations_form:has(.pk-snugweave-pack) .cfvsw_optin[data-attribute="attribute_size"],
form.variations_form:has(.pk-snugweave-pack) .cfvsw_optin[data-attribute="attribute_color"] {
    display: none !important;
}

/* ── Pack selector ── */
.pk-snugweave-pack .snugweave-pack-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #222;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pk-snugweave-pack .snugweave-pack-chosen {
    font-weight: 400;
    color: #222;
    text-transform: none;
    font-size: 14px;
}

.pk-snugweave-pack .snugweave-pack-options {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-bottom: 8px;
    padding-top: 8px;
}

.pk-snugweave-pack .snugweave-pack-option {
    position: relative;
    cursor: pointer;
    text-align: center;
}

/* ── Badges ── */
.pk-snugweave-pack .snugweave-pack-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
    z-index: 4;
    pointer-events: none;
}

.pk-snugweave-pack .snugweave-pack-badge--empty { visibility: hidden; }
.pk-snugweave-pack .snugweave-pack-badge--blue { background: #2a5298; color: #fff; }
.pk-snugweave-pack .snugweave-pack-badge--purple { background: #6d7a5f; color: #fff; }
.pk-snugweave-pack .snugweave-star { color: #FFD700; }

/* ── Cards ── */
.pk-snugweave-pack .snugweave-pack-card {
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px 6px;
    background: #fff;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    min-height: 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.pk-snugweave-pack .snugweave-pack-option:hover .snugweave-pack-card {
    border-color: #2a5298;
    box-shadow: 0 2px 8px rgba(42,82,152,0.12);
}

.pk-snugweave-pack .snugweave-pack-option.active .snugweave-pack-card {
    border-color: #2a5298;
    background: #eef2ff;
    box-shadow: 0 0 0 1px #2a5298, 0 2px 8px rgba(42,82,152,0.15);
}

.pk-snugweave-pack .snugweave-pack-name {
    font-size: 14px;
    font-weight: 700;
    color: #111;
    display: block;
    margin-bottom: 2px;
}

.pk-snugweave-pack .snugweave-pack-option.active .snugweave-pack-name { color: #2a5298; }

.pk-snugweave-pack .snugweave-pack-sub {
    font-size: 11px;
    font-weight: 500;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    line-height: 1.4;
    flex-wrap: nowrap;
}

@media (max-width: 1078px) {
    .pk-snugweave-pack .snugweave-pack-sub {
        flex-direction: column;
        gap: 0;
    }
}

.pk-snugweave-pack .snugweave-pack-sub--gray { color: #888; font-weight: 400; }
.pk-snugweave-pack .snugweave-pack-sub--green { color: #2a5298; }
.pk-snugweave-pack .snugweave-pack-sub--purple { color: #6d7a5f; }

.pk-snugweave-pack.snugweave-pack-selector {
    margin-bottom: 12px;
}

/* ── Gift box ── */
.pk-snugweave-pack.snugweave-gift-box {
    margin-bottom: 12px;
}

.pk-snugweave-pack .snugweave-gift-box__inner {
    background: #f0fdf4;
    border-radius: 10px;
    padding: 14px 16px;
}

.pk-snugweave-pack .snugweave-gift-box__title {
    font-size: 12px;
    font-weight: 700;
    color: #3a6f5b;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.pk-snugweave-pack .snugweave-icon--check {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 6px;
    flex-shrink: 0;
}

.pk-snugweave-pack .snugweave-gift-box__items {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pk-snugweave-pack .snugweave-gift-box__item {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-size: 13px;
    color: #333;
    gap: 0;
}

.pk-snugweave-pack .snugweave-gift-box__savings {
    font-size: 12px;
    font-weight: 600;
    color: #3a6f5b;
    margin-top: 10px;
}

/* ── Bundle builder: per-mat size slots ── */
.pk-snugweave-pack .snugweave-slots { margin: 12px 0 4px; }
.pk-snugweave-pack .snugweave-slot-head {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 12px; font-weight: 600; color: #222; margin-bottom: 8px;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.pk-snugweave-pack .snugweave-slot-reset { font-size: 11px; font-weight: 500; color: #2a5298; cursor: pointer; text-transform: none; letter-spacing: normal; }
.pk-snugweave-pack .snugweave-slot-reset:hover { text-decoration: underline; }
.pk-snugweave-pack .snugweave-slot-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.pk-snugweave-pack .snugweave-slot-label { font-size: 11px; color: #888; width: 42px; flex-shrink: 0; }
.pk-snugweave-pack .snugweave-slot-chips { display: flex; gap: 5px; flex: 1; }
.pk-snugweave-pack .snugweave-chip {
    flex: 1; font-size: 11px; font-weight: 500; padding: 8px 2px;
    border-radius: 8px; cursor: pointer; text-align: center;
    border: 1.5px solid #e5e7eb; background: #fff; color: #555;
    transition: border-color .15s, background .15s, color .15s;
}
.pk-snugweave-pack .snugweave-chip:hover { border-color: #2a5298; }
.pk-snugweave-pack .snugweave-chip.active { border-color: #2a5298; background: #eef2ff; color: #2a5298; }
.pk-snugweave-pack .snugweave-slot-or { font-size: 11px; color: #888; margin: 12px 0 6px; }

/* 3-mat complete set hero */
.pk-snugweave-pack .snugweave-3set {
    position: relative; cursor: pointer;
    border: 2px solid #e5e7eb; background: #fff; border-radius: 10px;
    padding: 12px 12px 11px; margin: 8px 0 4px;
    transition: border-color .15s, background .15s;
}
.pk-snugweave-pack .snugweave-3set:hover { border-color: #2a5298; }
.pk-snugweave-pack .snugweave-3set.active { border-color: #2a5298; background: #eef2ff; }
.pk-snugweave-pack .snugweave-3set__badge {
    position: absolute; top: -9px; left: 12px;
    font-size: 9px; font-weight: 700; padding: 2px 8px; border-radius: 20px;
    background: #6d7a5f; color: #fff; white-space: nowrap;
}
.pk-snugweave-pack .snugweave-3set__row { display: flex; justify-content: space-between; align-items: center; }
.pk-snugweave-pack .snugweave-3set__name { font-size: 13px; font-weight: 700; color: #111; }
.pk-snugweave-pack .snugweave-3set.active .snugweave-3set__name { color: #2a5298; }
.pk-snugweave-pack .snugweave-3set__tick { color: #2a5298; font-weight: 700; font-size: 14px; }
.pk-snugweave-pack .snugweave-3set__sub { font-size: 11px; color: #666; margin-top: 3px; }

/* ── Save pill in the box header ── */
.pk-snugweave-pack .snugweave-gift-box__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.pk-snugweave-pack .snugweave-gift-box__head .snugweave-gift-box__title { margin-bottom: 0; }
.pk-snugweave-pack .snugweave-save-pill {
    font-size: 11px; font-weight: 700; white-space: nowrap;
    padding: 4px 10px; border-radius: 20px;
    background: #fdecea; color: #c0392b;
}

/* ── #4 Multi-mat upsell pills ── */
/* Multi-mat upsell — caption + hover/tap tooltip (Option C) */
.pk-snugweave-pack .snugweave-usecase { position: relative; margin: 2px 0 10px; }
.pk-snugweave-pack .snugweave-usecase__info { display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; background: none; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pk-snugweave-pack .snugweave-usecase__paw { flex-shrink: 0; color: #3a6f5b; display: block; }
.pk-snugweave-pack .snugweave-usecase__caption { font-size: 12px; color: #666; }
.pk-snugweave-pack .snugweave-usecase__why { font-size: 12px; font-weight: 500; color: #2a5298; text-decoration: underline; white-space: nowrap; }
.pk-snugweave-pack .snugweave-usecase__info:hover .snugweave-usecase__why,
.pk-snugweave-pack .snugweave-usecase__info:focus .snugweave-usecase__why { color: #1e3d70; }
.pk-snugweave-pack .snugweave-usecase__pop {
    position: absolute; left: 0; top: calc(100% + 6px); z-index: 20;
    display: flex; flex-wrap: wrap; gap: 5px; width: max-content; max-width: 260px;
    background: #fff; border: 1px solid #e6e8ee; border-radius: 10px; padding: 22px 10px 9px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    opacity: 0; visibility: hidden; transform: translateY(-3px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.pk-snugweave-pack .snugweave-usecase__info:hover ~ .snugweave-usecase__pop,
.pk-snugweave-pack .snugweave-usecase.is-open .snugweave-usecase__pop { opacity: 1; visibility: visible; transform: translateY(0); }
.pk-snugweave-pack .snugweave-usecase__close { position: absolute; top: 4px; right: 5px; width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0; background: none; color: #9aa3b8; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pk-snugweave-pack .snugweave-usecase__close:hover { color: #444; }
.pk-snugweave-pack .snugweave-usecase__pill { font-size: 11px; color: #3a6f5b; background: #eef7f1; border-radius: 20px; padding: 4px 10px; white-space: nowrap; }

/* ── #1 Gift-unlock nudge ── */
.pk-snugweave-pack .snugweave-nudge { margin: 12px 0 4px; padding: 10px 12px; border: 1px dashed #b7d8c6; border-radius: 10px; background: #f4fbf7; cursor: pointer; transition: border-color .15s, background .15s; }
.pk-snugweave-pack .snugweave-nudge:hover { border-color: #3a6f5b; background: #eef7f1; }
.pk-snugweave-pack .snugweave-nudge__row { display: flex; align-items: center; gap: 8px; }
.pk-snugweave-pack .snugweave-nudge__ico { flex-shrink: 0; }
.pk-snugweave-pack .snugweave-nudge__text { flex: 1; font-size: 12.5px; color: #1f1f1f; line-height: 1.4; }
.pk-snugweave-pack .snugweave-nudge__text strong { color: #3a6f5b; }
.pk-snugweave-pack .snugweave-nudge__cta { font-size: 12px; font-weight: 700; color: #2a5298; white-space: nowrap; }
.pk-snugweave-pack .snugweave-nudge__bar { height: 5px; border-radius: 6px; background: #dcebe2; overflow: hidden; margin-top: 8px; }
.pk-snugweave-pack .snugweave-nudge__fill { height: 100%; background: #3a6f5b; border-radius: 6px; transition: width .3s ease; }
.pk-snugweave-pack .snugweave-nudge--done { cursor: default; border-style: solid; border-color: #3a6f5b; background: #eef7f1; }
.pk-snugweave-pack .snugweave-nudge--done:hover { border-color: #3a6f5b; background: #eef7f1; }
.pk-snugweave-pack .snugweave-nudge__cta--done { color: #3a6f5b; }

/* ── #6 3-pack anchor: emphasized via the ✦✦ Best Value ✦✦ badge (no card tint) ── */
/* ── Free-gift chips inside the box ── */
.pk-snugweave-pack .snugweave-box-gifts { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }

/* ── Box contents + total-value line ── */
.pk-snugweave-pack .snugweave-box-size { color: #888; font-weight: 400; }
.pk-snugweave-pack .snugweave-gift-box__savings { padding-top: 10px; margin-top: 10px; border-top: 1px solid #d3ece0; }
.pk-snugweave-pack .snugweave-gift-box__savings s { color: #9aa3b8; }
/* ── Pack trigger ── */
.pk-snugweave-pack .snugweave-pack-trigger {
    display: block;
    font-size: 10px;
    color: #888;
    margin-top: 4px;
    line-height: 1.3;
    text-align: center;
}

/* ═══ SnugWeave-only additions (everything above is AquaPaw's, renamed) ═══
   Why each exists: a second axis (colour), a per-basket mix, the kitten preset card
   (AquaPaw's 3-mat hero card, reused), gifts on the pack cards (Tej: "the selection box
   shows free gifts"), and 44 px tap targets on phones. */

/* Buttons where AquaPaw had spans/divs: strip theme button styling so they look the same */
.pk-snugweave-pack button.snugweave-chip,
.pk-snugweave-pack button.snugweave-3set,
.pk-snugweave-pack button.snugweave-slot-reset {
    font-family: inherit; text-transform: none; letter-spacing: normal; box-shadow: none;
    margin: 0; line-height: 1.25; -webkit-tap-highlight-color: transparent; -webkit-appearance: none; appearance: none;
}

/* Size + colour chips: AquaPaw chip look, 44 px tall, name over detail */
.pk-snugweave-pack .snugweave-chip {
    min-height: 44px; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
}
.pk-snugweave-pack .snugweave-chip__name { font-size: 12px; font-weight: 600; line-height: 1.2; }
.pk-snugweave-pack .snugweave-chip__sub { font-size: 10px; font-weight: 400; color: #888; line-height: 1.2; text-align: center; }
.pk-snugweave-pack .snugweave-chip.active .snugweave-chip__sub { color: #2a5298; }
.pk-snugweave-pack .snugweave-chip--colour { flex-direction: row; gap: 6px; }
.pk-snugweave-pack .snugweave-dot {
    width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12);
}
.pk-snugweave-pack .snugweave-chip:focus-visible,
.pk-snugweave-pack .snugweave-3set:focus-visible,
.pk-snugweave-pack .snugweave-slot-reset:focus-visible,
.pk-snugweave-pack .snugweave-pack-option:focus-visible,
.pk-snugweave-pack .snugweave-nudge:focus-visible,
.pk-snugweave-pack .snugweave-usecase__info:focus-visible {
    outline: 2px solid #2a5298; outline-offset: 2px;
}
.pk-snugweave-pack .snugweave-pack-option:focus { outline: none; }
.pk-snugweave-pack .snugweave-pack-option:focus-visible { outline-offset: 4px; border-radius: 10px; }

/* One basket row = label + a size row and a colour row */
.pk-snugweave-pack .snugweave-slot-row { align-items: flex-start; }
.pk-snugweave-pack .snugweave-slot-row--multi { padding-top: 8px; margin-bottom: 8px; border-top: 1px solid #f0f1f4; }
.pk-snugweave-pack .snugweave-slot-row--multi:first-of-type { border-top: 0; }
.pk-snugweave-pack .snugweave-slot-row--multi .snugweave-slot-label { width: 52px; padding-top: 14px; font-weight: 600; color: #555; }
.pk-snugweave-pack .snugweave-slot-pickers { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 0; }
.pk-snugweave-pack .snugweave-slot-note { font-size: 11px; color: #888; margin: -4px 0 8px; line-height: 1.4; }
.pk-snugweave-pack .snugweave-slot-reset {
    border: 0; background: none; padding: 12px 0 12px 12px; margin: -12px 0;
    font-size: 11px; font-weight: 500; color: #2a5298; cursor: pointer;
}

/* Presets (two the same / kitten pair / one of each) = AquaPaw's 3-mat "Complete Set" hero card, as radio buttons */
.pk-snugweave-pack .snugweave-presets { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 10px; }
.pk-snugweave-pack .snugweave-3set { display: block; width: 100%; text-align: left; margin: 0; padding: 9px 12px 8px; min-height: 44px; font: inherit; color: inherit; }
.pk-snugweave-pack .snugweave-3set__sub { display: block; }

/* Size hint under a single basket's chips, and the kitten shortcut (a text link, like AquaPaw's "see why") */
.pk-snugweave-pack .snugweave-slot-hint { font-size: 11px; color: #666; line-height: 1.4; margin-top: 1px; }
.pk-snugweave-pack button.snugweave-kitten-hint {
    display: inline-flex; align-items: center; min-height: 44px; margin: 0 0 -6px; padding: 0; border: 0; background: none; box-shadow: none;
    font: inherit; font-size: 12px; font-weight: 500; color: #2a5298; text-decoration: underline; text-transform: none; letter-spacing: normal; cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.pk-snugweave-pack .snugweave-kitten-hint:focus-visible { outline: 2px solid #2a5298; outline-offset: 2px; }

/* Card price over the saving (AquaPaw's sub line, two short lines on phones) */
.pk-snugweave-pack .snugweave-pack-sub--green .snugweave-pack-sub-price,
.pk-snugweave-pack .snugweave-pack-sub--purple .snugweave-pack-sub-price { color: #555; font-weight: 500; }

/* Free gifts on the pack cards */
.pk-snugweave-pack .snugweave-pack-gifts {
    display: inline-flex; align-items: center; justify-content: center; gap: 3px; margin-top: 5px; min-height: 20px;
}
.pk-snugweave-pack .snugweave-pack-gifts--none { visibility: hidden; }
.pk-snugweave-pack .snugweave-pack-gift {
    width: 18px; height: 18px; border-radius: 4px; object-fit: cover; background: #fff; border: 1px solid #e3ede7; display: block;
}
.pk-snugweave-pack .snugweave-pack-gifts__free {
    font-size: 9px; font-weight: 700; color: #fff; background: #3a6f5b; padding: 2px 5px; border-radius: 4px; line-height: 1.2; margin-left: 1px;
}

/* Box: the "included" tag on the catnip line, and a 44 px hit area on the gift "view" arrow */
.pk-snugweave-pack .snugweave-box-tag {
    font-size: 10px; font-weight: 600; color: #3a6f5b; background: #e4f6ec; border-radius: 6px; padding: 1px 6px; margin-left: 2px; white-space: nowrap;
}
.pk-snugweave-pack .snugweave-usecase__info { min-height: 32px; }
.pk-snugweave-pack .snugweave-usecase__close::after { content: ""; position: absolute; inset: -13px; }

@media (max-width: 400px) {
    .pk-snugweave-pack .snugweave-chip__sub { font-size: 9px; }
    .pk-snugweave-pack .snugweave-slot-row--multi .snugweave-slot-label { width: 46px; font-size: 10.5px; }
}

/* ── Compact "In your box" rows (18 Nov) — same block in every product sheet that has a box ── */
.pkb-host { display: block !important; gap: 0 !important; margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; font-size: 13px !important; font-weight: 400 !important; color: #1F1F1F !important; text-align: left !important; line-height: 1.3 !important; }
.pkb-row { display: flex; align-items: center; gap: 8px; padding: 3px 0; font-size: 13px; line-height: 1.3; color: #1F1F1F; }
.pkb-row > svg { width: 16px; height: 16px; flex-shrink: 0; }
.pkb-lab { flex: 1 1 auto; min-width: 0; }
.pkb-sub { color: #5F6672; }
.pkb-was { color: #8A919B; font-size: 12px; white-space: nowrap; }
.pkb-now { font-weight: 700; white-space: nowrap; }
.pkb-thumbs { display: inline-flex; flex-shrink: 0; }
.pkb-thumbs img { width: 22px !important; height: 22px !important; border-radius: 5px; object-fit: cover; border: 1px solid #DCEBE0; background: #fff; }
.pkb-thumbs img + img { margin-left: -6px; }
.pkb-free { display: inline-block; padding: 1px 7px; border-radius: 5px; background: #256B43; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .4px; white-space: nowrap; }
.pkb-row--sum { padding-left: 24px; }
