/*
 * Purchase panel: the buying area of a product page - the brand and the name
 * (the page's h1), the price, availability, the colours, the order form, and
 * the facts and shipping information beside it. It composes the components
 * (price-tag, availability, swatch-list, quantity-calculator,
 * reassurance-list, shipping-info) and sets only their order and spacing.
 * Decision 23.
 */

.purchase-panel {
    display: grid;
    align-content: start;
    gap: var(--shop-space-5);
    min-width: 0;
}

.purchase-panel__header {
    display: grid;
    gap: var(--shop-space-1);
}

.purchase-panel__brand {
    justify-self: start;
    color: var(--shop-accent);
    font-size: var(--shop-text-sm);
    font-weight: var(--shop-weight-semibold);
    line-height: 1.3;
    letter-spacing: var(--shop-tracking-eyebrow);
    text-decoration: none;
    text-transform: uppercase;
}

.purchase-panel__brand:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* The page's one h1, set in full here (Foundation sizes h1 itself). */
.purchase-panel__title {
    margin: 0;
    color: var(--shop-ink);
    font-family: var(--shop-font);
    font-size: var(--shop-text-2xl);
    font-weight: var(--shop-weight-bold);
    line-height: var(--shop-leading-display);
    letter-spacing: -0.01em;
    overflow-wrap: break-word;
    text-wrap: balance;
}

.purchase-panel__meta {
    margin: 0;
    color: var(--shop-text-soft);
    font-size: var(--shop-text-sm);
    line-height: var(--shop-leading-snug);
}

.purchase-panel__colours {
    display: grid;
    gap: var(--shop-space-2);
}

.purchase-panel__more-colours summary span:last-child,
.purchase-panel__more-colours[open] summary span:first-child {
    display: none;
}

.purchase-panel__more-colours[open] summary span:last-child {
    display: inline;
}

.purchase-panel__more-colours summary {
    display: inline-flex;
    align-items: center;
    min-height: var(--shop-tap);
    color: var(--shop-accent);
    font-size: var(--shop-text-md);
    font-weight: var(--shop-weight-semibold);
    cursor: pointer;
}

.purchase-panel__more-colours[open] summary {
    margin-block-end: var(--shop-space-2);
}

.purchase-panel__label {
    margin: 0;
    color: var(--shop-text);
    font-size: var(--shop-text-md);
    line-height: var(--shop-leading-snug);
}

.purchase-panel__label strong {
    color: var(--shop-ink);
}

.purchase-panel__notice p {
    margin: 0;
    font-size: inherit;
    line-height: inherit;
}

.purchase-panel__notice p + p {
    margin-block-start: var(--shop-space-1);
}

.purchase-panel__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--shop-space-2);
}

.purchase-panel__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0 var(--shop-space-5);
    margin: 0;
    padding: 0;
    font-size: var(--shop-text-md);
    list-style: none;
}

.purchase-panel__links a {
    display: inline-flex;
    align-items: center;
    min-height: var(--shop-tap);
}

@media (min-width: 1024px) {
    .purchase-panel__title {
        font-size: var(--shop-text-3xl);
    }
}
