/*
 * Alvoble Free Gift: the "choose your free gift" box on the cart page.
 * Plain CSS that works in Luma and in the Alvoble Storefront (it reads the theme's colour variables when they
 * exist). The gift label itself ("Offer: Free gift") is printed by Magento with the other product options.
 */
.alv-fg-chooser {
    margin: 0 0 1.5rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--color-primary, #1979c3);
    border-radius: 6px;
    background: var(--color-surface, #f8fafc);
    color: var(--color-ink, inherit);
}

.alv-fg-chooser__title {
    margin: 0 0 .75rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.alv-fg-chooser__form + .alv-fg-chooser__form {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, .1);
}

.alv-fg-chooser__fieldset {
    margin: 0 0 .75rem;
    padding: 0;
    border: 0;
}

.alv-fg-chooser__legend {
    margin: 0 0 .5rem;
    padding: 0;
    font-weight: 600;
}

.alv-fg-chooser__option {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .375rem 0;
}

.alv-fg-chooser__option input {
    flex: none;
    width: 1.125rem;
    height: 1.125rem;
    margin: 0;
}

.alv-fg-chooser__option label {
    cursor: pointer;
}

.alv-fg-chooser__option input:focus-visible,
.alv-fg-chooser__button:focus-visible {
    outline: 2px solid var(--color-primary, #1979c3);
    outline-offset: 2px;
}

.alv-fg-chooser__button {
    cursor: pointer;
}

@media (max-width: 640px) {
    .alv-fg-chooser {
        padding: .875rem 1rem;
    }

    .alv-fg-chooser__button {
        width: 100%;
    }
}

/* "Free gift with this product" under the price of a product page (off by default) */
.alv-fg-notice {
    margin: .75rem 0;
    padding: .5rem .75rem;
    border-left: 4px solid var(--color-primary, #1979c3);
    background: var(--color-surface, #f8fafc);
    color: var(--color-ink, inherit);
}

.alv-fg-notice__line {
    margin: .25rem 0;
    font-size: 1rem;
    line-height: 1.4;
}
