/**
 * Gift Card buyer form (single-product page).
 *
 * Layered on top of the storefront's `.tejcart-single-product-actions`
 * stack. Inherits typography from the active theme; only spacing,
 * borders, and the denomination chip geometry are owned here.
 */

.tejcart-gift-card-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0 0 1rem;
    padding: 1rem;
    border: 1px solid rgba( 0, 0, 0, 0.08 );
    border-radius: 8px;
    background: rgba( 0, 0, 0, 0.015 );
}

.tejcart-gift-card-amounts {
    border: 0;
    margin: 0;
    padding: 0;
}

.tejcart-gift-card-amounts > legend {
    padding: 0;
    margin: 0 0 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.tejcart-gift-card-denominations {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tejcart-gift-card-denomination {
    position: relative;
    cursor: pointer;
    user-select: none;
}

.tejcart-gift-card-denomination > input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    pointer-events: none;
}

.tejcart-gift-card-denomination > span {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid rgba( 0, 0, 0, 0.15 );
    border-radius: 999px;
    background: #fff;
    font-weight: 500;
    line-height: 1.2;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.tejcart-gift-card-denomination > input[type="radio"]:checked + span {
    background: #111;
    border-color: #111;
    color: #fff;
}

.tejcart-gift-card-denomination > input[type="radio"]:focus-visible + span {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

.tejcart-gift-card-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tejcart-gift-card-row--recipient {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

@media ( max-width: 540px ) {
    .tejcart-gift-card-row--recipient {
        grid-template-columns: 1fr;
    }
}

.tejcart-gift-card-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.tejcart-gift-card-field > label {
    font-size: 0.875rem;
    font-weight: 500;
}

.tejcart-gift-card-required {
    color: #d63638;
    margin-left: 0.125rem;
}

.tejcart-gift-card-input {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border: 1px solid rgba( 0, 0, 0, 0.18 );
    border-radius: 6px;
    background: #fff;
    font: inherit;
    line-height: 1.4;
    box-sizing: border-box;
}

.tejcart-gift-card-input:focus {
    outline: 2px solid #2271b1;
    outline-offset: 1px;
    border-color: #2271b1;
}

.tejcart-gift-card-input--message {
    resize: vertical;
    min-height: 4rem;
}

.tejcart-gift-card-input--amount,
.tejcart-gift-card-input--date {
    max-width: 16rem;
}

.tejcart-gift-card-error {
    margin: 0;
    color: #d63638;
    font-size: 0.85rem;
    line-height: 1.3;
}

.tejcart-gift-card-hint {
    margin: 0;
    color: rgba( 0, 0, 0, 0.6 );
    font-size: 0.8rem;
    line-height: 1.3;
}
