/* ==========================================================================
   Home page: "How do you want your order?" type cards, and the "How it works" sheet
   (markup: storefront/partials/shop-ways and how-it-works,
    behaviour: js/storefront/cart.js and js/storefront/shop-ways.js)

   Colours: ink #1C1530 · deep purple #2A1052 · muted #6A6080 · lines #E2DCEB
            soft purple #F1ECFB / #F6F2FD / #5B21B6 · pink #D91E5B · faded #9A90AE
            "shopping for" line: #FFF6E5 with #FCE3B0 border, text #5A3A00, icon #C2410C
   ========================================================================== */

.shop-ways {
    padding: 6px var(--page-gutter) 4px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.shop-ways__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
}

.shop-ways__titles {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.shop-ways__title {
    font-size: 17px;
    font-weight: 800;
    line-height: 1.25;
    color: #1C1530;
}

.shop-ways__sub {
    font-size: 12px;
    color: #6A6080;
}

.shop-ways__help {
    flex-shrink: 0;
    padding: 4px 0;
    border: 0;
    background: none;
    color: #5B21B6;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.shop-ways__help:hover {
    color: #2A1052;
}

.shop-ways__help-icon {
    width: 16px;
    height: 16px;
    box-sizing: border-box;
    border-radius: 8px;
    border: 1.6px solid currentColor;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Two cards a row on phones; an odd last card takes the full row */
.shop-ways__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.shop-way:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

@media (min-width: 768px) {
    .shop-ways__grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .shop-way:last-child:nth-child(odd) {
        grid-column: auto;
    }
}

/* One type card */
.shop-way {
    position: relative;
    min-width: 0;
    padding: 10px;
    border: 1px solid #E2DCEB;
    border-radius: 14px;
    background: #FFFFFF;
    color: #1C1530;
    font: inherit;
    text-align: left;
    display: flex;
    align-items: flex-start;
    gap: 9px;
    cursor: pointer;
}

.shop-way:hover {
    border-color: #C9BDDB;
}

.shop-way:focus-visible {
    outline: 3px solid #D91E5B;
    outline-offset: 2px;
}

.shop-way[aria-selected="true"] {
    padding: 9px;                 /* keeps the size with the thicker border */
    border: 2px solid #2A1052;
    background: #F6F2FD;
}

.shop-way__icon {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 10px;
    background: #F1ECFB;
    color: #5B21B6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-way__icon .icon {
    width: 18px;
    height: 18px;
    stroke-width: 2.1;
}

.shop-way[aria-selected="true"] .shop-way__icon {
    background: #2A1052;
    color: #FFFFFF;
}

.shop-way__text {
    min-width: 0;
    padding-right: 22px;          /* room for the tick */
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.shop-way__name {
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
}

.shop-way__sub {
    font-size: 11px;
    line-height: 1.3;
    color: #6A6080;
}

/* "Cart: 2 items" / "Cart empty" (cart.js) */
.shop-way__cart {
    margin-top: 4px;
    font-size: 11px;
    font-weight: 800;
    color: #9A90AE;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.shop-way__cart.has-items {
    color: #D91E5B;
}

.shop-way__cart .icon {
    width: 12px;
    height: 12px;
    stroke-width: 2.4;
}

.shop-way__check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 18px;
    height: 18px;
    border-radius: 9px;
    background: #2A1052;
    color: #FFFFFF;
    display: none;
    align-items: center;
    justify-content: center;
}

.shop-way__check .icon {
    width: 11px;
    height: 11px;
    stroke-width: 3.4;
}

.shop-way[aria-selected="true"] .shop-way__check {
    display: flex;
}

/* Cannot be ordered right now (outside timings, paused): still opens its cart */
.shop-way.is-off:not([aria-selected="true"]) {
    border-style: dashed;
    background: #FAF9FC;
}

.shop-way.is-off .shop-way__sub {
    color: #B0124A;
}

/* "You are shopping for Fast delivery. Items you add go to the Fast cart." */
.shop-ways__now {
    margin: 0;
    padding: 9px 12px;
    border: 1px solid #FCE3B0;
    border-radius: 12px;
    background: #FFF6E5;
    color: #5A3A00;
    font-size: 13px;
    line-height: 1.35;
    display: flex;
    align-items: center;
    gap: 10px;
}

.shop-ways__now-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #C2410C;
}

.shop-ways__now strong {
    color: #2A1052;
}

/* ---------- How it works ---------- */

.how-it-works__panel {
    gap: 14px;
}

.how-it-works__title {
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 800;
    line-height: 1.15;
    color: #2A1052;
}

.how-it-works__steps {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.how-it-works__step {
    display: flex;
    gap: 12px;
}

.how-it-works__number {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 14px;
    background: #F1ECFB;
    color: #5B21B6;
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.how-it-works__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 13px;
    line-height: 1.4;
    color: #6A6080;
}

.how-it-works__text strong {
    font-size: 14px;
    color: #1C1530;
}

.how-it-works__note {
    margin: 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: #F4F2F8;
    font-size: 12px;
    line-height: 1.45;
    color: #3D3550;
}

.how-it-works__done {
    width: 100%;
    height: 48px;
    justify-content: center;
    font-size: 15px;
}
