/**
 * 2007-2026 PrestaShop
 *
 * @author    Prestaelements <info@prestaelements.com>
 * @copyright 2026 Prestaelements
 * @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
 */

/* Page ---------------------------------------------------------------------- */

.gfe-page__intro {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.gfe-offer {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fff;
}

.gfe-offer__head {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.gfe-offer__image {
    width: 96px;
    height: auto;
    border-radius: 6px;
    flex-shrink: 0;
}

.gfe-offer__name {
    margin: 0 0 0.25rem;
    font-size: 1.35rem;
}

/* Form ---------------------------------------------------------------------- */

.gfe-form {
    --gfe-color: #b8860b;
}

.gfe-form__grid {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 1.5rem;
}

.gfe-product .gfe-form__grid {
    grid-template-columns: minmax(0, 1fr);
}

.gfe-product .gfe-form__preview {
    display: none;
}

@media (max-width: 767px) {
    .gfe-form__grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.gfe-form__group {
    margin: 0 0 1rem;
    padding: 0;
    border: 0;
}

.gfe-form__legend {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.gfe-form__row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

.gfe-form__field {
    margin-bottom: 0.75rem;
}

.gfe-form__field label,
.gfe-custom label,
.gfe-form__qty label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.gfe-form__hint {
    display: block;
    margin-top: 0.25rem;
    color: #777;
    font-size: 0.85rem;
}

.gfe-amounts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.gfe-amount {
    position: relative;
    margin: 0;
    cursor: pointer;
}

.gfe-amount input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.gfe-amount span {
    display: inline-block;
    min-width: 4.5rem;
    padding: 0.55rem 0.9rem;
    border: 2px solid #ddd;
    border-radius: 999px;
    text-align: center;
    font-weight: 600;
    transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}

.gfe-amount input:checked + span {
    border-color: var(--gfe-color);
    background: var(--gfe-color);
    color: #fff;
}

.gfe-amount input:focus-visible + span {
    outline: 2px solid var(--gfe-color);
    outline-offset: 2px;
}

.gfe-custom {
    max-width: 16rem;
    margin-top: 0.75rem;
}

.gfe-choice {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    margin: 0 0 0.5rem;
    cursor: pointer;
}

.gfe-choice input {
    margin-top: 0.3rem;
}

.gfe-choice small {
    display: block;
    color: #777;
}

.gfe-form__buy {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
    margin-top: 0.5rem;
}

.gfe-form__qty input {
    width: 5.5rem;
}

.gfe-form__submit {
    min-height: 2.6rem;
}

.gfe-form__status:empty {
    display: none;
}

.gfe-form__status {
    margin-top: 0.75rem;
    padding: 0.6rem 0.8rem;
    border-radius: 6px;
}

.gfe-form__status p {
    margin: 0 0 0.35rem;
}

.gfe-form__status--ok {
    background: #e9f7ef;
    color: #1e6b3a;
}

.gfe-form__status--error {
    background: #fdecea;
    color: #a12622;
}

/* Card ---------------------------------------------------------------------- */

.gfe-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 14rem;
    padding: 1.5rem;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--gfe-color), #222);
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow-wrap: anywhere;
}

.gfe-card__top {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.9;
}

.gfe-card__amount {
    margin: 0.75rem 0 0.25rem;
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.1;
}

.gfe-card__message {
    font-style: italic;
    white-space: pre-line;
}

.gfe-card__from,
.gfe-card__to {
    font-size: 0.95rem;
}

.gfe-card__image {
    max-width: 100%;
    max-height: 12rem;
    object-fit: cover;
    border-radius: 8px;
}

.gfe-card__code {
    margin-top: auto;
    padding-top: 0.75rem;
}

.gfe-card__code small {
    display: block;
    opacity: 0.8;
}

.gfe-card__code strong {
    font-family: Menlo, Consolas, monospace;
    font-size: 1.35rem;
    letter-spacing: 0.08em;
}

.gfe-card--large {
    max-width: 34rem;
    margin: 0 auto;
    min-height: 20rem;
}

/* Balance, account, card page --------------------------------------------- */

.gfe-balance {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 8px;
    background: #f7f7f7;
}

.gfe-balance__form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-width: 32rem;
}

.gfe-balance__form input {
    flex: 1 1 14rem;
    text-transform: uppercase;
}

.gfe-state {
    display: inline-block;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    background: #eee;
    font-size: 0.85rem;
}

.gfe-state--sent {
    background: #e9f7ef;
    color: #1e6b3a;
}

.gfe-state--scheduled {
    background: #eef4fd;
    color: #1d4f91;
}

.gfe-state--failed,
.gfe-state--cancelled {
    background: #fdecea;
    color: #a12622;
}

.gfe-print__info {
    max-width: 34rem;
    margin: 1.5rem auto 0;
    text-align: center;
}

@media print {
    header,
    footer,
    #header,
    #footer,
    .breadcrumb,
    .gfe-print__actions,
    #notifications {
        display: none !important;
    }

    .gfe-card {
        box-shadow: none;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
