/* ==========================================================================
   "How many?" popup, the one-time tip, and the product page quick row
   (markup: storefront/partials/qty-sheet.blade.php and storefront/product/_buy-bar.blade.php,
    behaviour: js/storefront/qty-picker.js; popup frame: components/sheet.css)

   Colours: ink #1C1530 · muted #6A6080 · lines #E2DCEB / #F0ECF5
            chosen #2A1052 · disabled #F4F2F8 with #C9C2D6 · remove #B0124A · tip #1C1530
   ========================================================================== */

.qty-sheet__panel {
    gap: 14px;
}

.qty-sheet__head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qty-sheet__media {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 12px;
    border: 1px solid #F0ECF5;
    background: #FAF9FC;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.qty-sheet__photo {
    width: 86%;
    height: 86%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.qty-sheet__photo[hidden] {
    display: none;
}

.qty-sheet__titles {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.qty-sheet__label {
    font-size: 12px;
    font-weight: 700;
    color: #6A6080;
}

.qty-sheet__name {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
    color: #1C1530;
}

.qty-sheet__each {
    font-size: 12px;
    color: #6A6080;
}

/* 1 2 3 4 5 6 / 8 10 12 15 18 20 */
.qty-sheet__grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
}

/* Wholesale: 3 6 12 18 24 / 36 48 60 72 */
.qty-sheet__grid--wholesale {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.qty-sheet__choice {
    height: 44px;
    border: 1.5px solid #E2DCEB;
    border-radius: 12px;
    background: #FFFFFF;
    color: #1C1530;
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
}

.qty-sheet__choice:hover:not(:disabled) {
    border-color: #C9BDDB;
}

.qty-sheet__choice.is-selected {
    border-color: #2A1052;
    background: #2A1052;
    color: #FFFFFF;
}

.qty-sheet__choice:disabled {
    border-color: #F4F2F8;
    background: #F4F2F8;
    color: #C9C2D6;
    cursor: not-allowed;
}

.qty-sheet__other {
    height: 48px;
    padding: 0 6px 0 12px;
    border: 1.5px solid #E2DCEB;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-sheet__other:focus-within {
    border-color: #2A1052;
}

.qty-sheet__other-label {
    flex: 1 1 auto;
    font-size: 13px;
    color: #6A6080;
}

.qty-sheet__input {
    width: 80px;
    height: 36px;
    border: 0;
    border-radius: 8px;
    background: #F4F2F8;
    color: #1C1530;
    font: inherit;
    font-size: 16px;
    font-weight: 800;
    text-align: center;
}

.qty-sheet__limit {
    margin: -6px 0 0;
    font-size: 12px;
    font-weight: 600;
    color: #6A6080;
}

.qty-sheet__actions {
    display: flex;
    gap: 8px;
}

.qty-sheet__remove {
    height: 50px;
    padding: 0 16px;
    border: 1px solid #E2DCEB;
    border-radius: 12px;
    background: #FFFFFF;
    color: #B0124A;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.qty-sheet__remove[hidden] {
    display: none;
}

.qty-sheet__save {
    flex: 1 1 auto;
    height: 50px;
    justify-content: center;
    font-size: 15px;
}

/* ---------- One-time tip after the first ADD ---------- */

.qty-tip {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(150px + env(safe-area-inset-bottom));
    z-index: 70;
    max-width: 520px;
    margin: 0 auto;
    padding: 12px 14px;
    border-radius: 14px;
    background: #1C1530;
    color: #FFFFFF;
    box-shadow: 0 8px 20px rgba(28, 21, 48, 0.30);
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-tip[hidden] {
    display: none;
}

.qty-tip__text {
    flex: 1 1 auto;
    font-size: 13px;
    line-height: 1.5;
}

.qty-tip__chip {
    padding: 1px 6px;
    border-radius: 6px;
    background: #D91E5B;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.qty-tip__chip .icon {
    width: 10px;
    height: 10px;
    stroke-width: 3;
}

.qty-tip__close {
    flex-shrink: 0;
    border: 0;
    background: none;
    color: #F9A8C9;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

/* ---------- Product page: "Qty 1 2 3 5 10 More" above Add to cart ---------- */

.qty-quick {
    flex: 1 1 100%;
    display: flex;
    align-items: center;
    gap: 6px;
}

.qty-quick[hidden] {
    display: none;
}

.qty-quick__label {
    margin-right: 2px;
    font-size: 12px;
    font-weight: 700;
    color: #6A6080;
}

.qty-quick__button {
    flex: 1 1 0;
    min-width: 0;
    height: 36px;
    padding: 0 4px;
    border: 1.5px solid #E2DCEB;
    border-radius: 10px;
    background: #FFFFFF;
    color: #2A1052;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.qty-quick__button.is-selected {
    border-color: #2A1052;
    background: #2A1052;
    color: #FFFFFF;
}

.qty-quick__button:disabled {
    color: #C9C2D6;
    cursor: not-allowed;
}

/* Narrow phones: the quick quantity buttons keep room around their words */
@media (max-width: 380px) {
    .qty-quick {
        gap: 4px;
    }

    .qty-quick__button {
        font-size: 12px;
    }
}
