.wfd-variable-reward-choice {
    --wfd-accent: var(--global-palette1, currentColor);
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    margin: 22px 0 28px;
    padding: 18px;
    border: 2px solid var(--wfd-accent);
    border-radius: 10px;
    background: #fff;
    color: inherit;
}


/* Customer-selectable gift card presentation presets. */
.wfd-variable-reward-choice.wfd-gift-style-soft {
    border-width: 1px;
    border-color: color-mix(in srgb, var(--wfd-accent) 28%, transparent);
    background: color-mix(in srgb, var(--wfd-accent) 7%, #fff);
}

.wfd-variable-reward-choice.wfd-gift-style-minimal {
    border: 0;
    border-left: 4px solid var(--wfd-accent);
    border-radius: 4px;
    background: transparent;
    padding-left: 16px;
}

.wfd-variable-reward-choice.wfd-gift-style-highlight {
    border-width: 2px;
    border-color: var(--wfd-accent);
    background: color-mix(in srgb, var(--wfd-accent) 11%, #fff);
}

.wfd-variable-reward-choice.wfd-gift-style-highlight .wfd-reward-choice__eyebrow,
.wfd-variable-reward-choice.wfd-gift-style-soft .wfd-reward-choice__eyebrow {
    color: var(--wfd-accent);
}

.wfd-variable-reward-choice[hidden] {
    display: none !important;
}

.wfd-reward-choice__media {
    align-self: start;
}

.wfd-reward-choice__image {
    display: block;
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 8px;
}

.wfd-reward-choice__content {
    min-width: 0;
}

.wfd-reward-choice__eyebrow {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.wfd-reward-choice__title {
    display: block;
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
}

.wfd-reward-choice__text {
    margin: 5px 0 12px;
    font-size: 14px;
    line-height: 1.5;
}

.wfd-reward-choice__form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: stretch;
    margin: 0;
}

.wfd-reward-choice__select {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 46px;
    margin: 0;
    padding: 8px 40px 8px 12px;
    border: 1px solid rgba(0, 0, 0, .28);
    border-radius: 6px;
    background-color: #fff;
    color: inherit;
    font: inherit;
    line-height: 1.3;
}

.wfd-reward-choice__select:focus {
    border-color: var(--wfd-accent);
    outline: 2px solid color-mix(in srgb, var(--wfd-accent) 25%, transparent);
    outline-offset: 1px;
}

.wfd-reward-choice__button {
    min-height: 46px;
    white-space: nowrap;
}

.wfd-reward-choice__status {
    grid-column: 1 / -1;
    min-height: 1.25em;
    margin-top: 0;
    font-size: 13px;
    line-height: 1.4;
}

.wfd-reward-choice__status:empty {
    display: none;
}

.wfd-reward-choice__status.is-error {
    display: block;
    color: #b32d2e;
}

.wfd-reward-choice__button[disabled] {
    cursor: not-allowed;
    opacity: .55;
}

/* Keep the reward visually attached to the product list in WooCommerce Cart Blocks. */
.wp-block-woocommerce-cart-items-block > .wfd-variable-reward-choice,
.wc-block-components-main.wc-block-cart__main > .wfd-variable-reward-choice {
    margin-top: 18px;
}

/* Mini-carts are narrow, so use a compact single-column version. */
.widget_shopping_cart_content .wfd-variable-reward-choice,
.wc-block-mini-cart__drawer .wfd-variable-reward-choice {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
    margin: 12px 0;
    padding: 12px;
}

.widget_shopping_cart_content .wfd-reward-choice__image,
.wc-block-mini-cart__drawer .wfd-reward-choice__image {
    width: 56px;
    height: 56px;
}

.widget_shopping_cart_content .wfd-reward-choice__form,
.wc-block-mini-cart__drawer .wfd-reward-choice__form {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
}

@media (max-width: 600px) {
    .wfd-variable-reward-choice {
        grid-template-columns: 60px minmax(0, 1fr);
        gap: 11px;
        padding: 13px;
        margin: 16px 0 22px;
    }

    .wfd-reward-choice__image {
        width: 60px;
        height: 60px;
    }

    .wfd-reward-choice__title {
        font-size: 16px;
    }

    .wfd-reward-choice__text {
        margin-bottom: 10px;
        font-size: 13px;
    }

    .wfd-reward-choice__form {
        grid-column: 1 / -1;
        grid-template-columns: 1fr;
    }

    .wfd-reward-choice__select,
    .wfd-reward-choice__button {
        width: 100%;
        min-height: 46px;
        font-size: 16px;
    }
}
