/* Gift cards (M11): the buy page, the balance, the recipient's card, the
   printed card. Colours from the theme. */

.gift-cards__step {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.gift-cards__designs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
}

.gift-cards__design {
    cursor: pointer;
    border: 2px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    overflow: hidden;
}

.gift-cards__design img {
    width: 100%;
    aspect-ratio: 1.586;
    object-fit: cover;
    display: block;
}

.gift-cards__design:has(input:checked) {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
}

.gift-cards__design:has(input:focus-visible) {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

.gift-cards__custom {
    max-width: 10rem;
}

.gift-cards__egift {
    max-width: 36rem;
}

.gift-cards__face {
    position: relative;
    aspect-ratio: 1.586;
    border-radius: 1rem;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-secondary));
    color: #fff;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* The house card, until the owner uploads a design: the brand's colour,
   deepened toward one corner, with a soft ring of light behind the logo. */
.gift-cards__face--house {
    background:
        radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.18) 0 22%, transparent 23%),
        radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.08) 0 38%, transparent 39%),
        linear-gradient(135deg, var(--bs-primary), color-mix(in srgb, var(--bs-primary) 55%, #000));
}

.gift-cards__face-brand {
    position: absolute;
    left: 1rem;
    top: 0.9rem;
    right: 1rem;
}

.gift-cards__face-logo {
    display: inline-block;
    background: #fff;
    border-radius: 0.5rem;
    padding: 0.35rem 0.6rem;
}

.gift-cards__face-logo img {
    display: block;
    height: 2rem;
    max-width: 10rem;
    object-fit: contain;
}

.gift-cards__face-name {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.gift-cards__face-label {
    position: absolute;
    left: 1rem;
    bottom: 0.95rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.9;
}

.gift-cards__preview {
    max-width: 22rem;
}

.gift-cards__face-picture {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gift-cards__face-amount {
    position: absolute;
    right: 1rem;
    bottom: 0.75rem;
    font-size: 1.75rem;
    font-weight: 700;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.gift-cards__message {
    font-style: italic;
    border-left: 3px solid var(--bs-border-color);
    padding-left: 0.75rem;
}

.gift-cards__qr {
    width: 140px;
    height: 140px;
}

.gift-cards__qr svg {
    width: 100%;
    height: 100%;
}

/* A batch's printed card sheet. */
@media print {
    .gift-cards-print-hide {
        display: none !important;
    }
}
