/* ===========================================================================
 *  Podaruj 1 zł — /podaruj1zl/ oraz blok na /konto/potwierdzono-email/
 *  Bazuje na układzie stron auth (auth_gr): .auth-centered-*
 * ===========================================================================
 */

/* ─── Karta organizacji ────────────────────────────────────────────────── */

.gift-beneficiary-card {
    box-sizing: border-box; /* <a> – reset `a { all: unset }` daje content-box, karta wychodziła poza kolumnę */
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #dfe1e6;
    border-radius: 12px;
    background-color: #ffffff;
    color: #22252a;
    text-decoration: none;
    transition: border-color 0.2s ease;
}

.gift-beneficiary-card:hover {
    border-color: #e40148;
    color: #22252a;
}

.gift-beneficiary-card__logo {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: contain;
    background-color: #ffffff;
}

.gift-beneficiary-card__logo--placeholder {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(228, 1, 72, 0.08);
    color: #e40148;
    font-family: 'Parkinsans', 'Helvetica Neue', Arial;
    font-size: 20px;
}

.gift-beneficiary-card__name {
    min-width: 0;
    font-family: 'DMSans', 'Helvetica Neue', Arial;
    font-size: 16px;
    line-height: 22.4px;
    font-weight: 500;
    text-align: left;
    overflow-wrap: anywhere;
}

/* elementy z display: flex/block nadpisywały atrybut [hidden] – np. „Zainstaluj przypominajkę”
   zostawało widoczne po wykryciu rozszerzenia */
.gift-1zl [hidden] {
    display: none;
}

/* ─── Kroki ────────────────────────────────────────────────────────────── */

.gift-steps {
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-flow: column;
    gap: 12px;
}

.gift-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    border: 1px solid #dfe1e6;
    border-radius: 16px;
    background-color: #ffffff;
}

.gift-step.is-current {
    border-color: #e40148;
}

.gift-step__marker {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #dfe1e6;
    color: #9096a3;
    font-family: 'DMSans', 'Helvetica Neue', Arial;
    font-size: 14px;
    font-weight: 700;
}

.gift-step.is-current .gift-step__marker {
    border-color: #e40148;
    background-color: #e40148;
    color: #ffffff;
}

/* ukończony krok: zielony znacznik z ptaszkiem zamiast numeru */
.gift-step.is-done .gift-step__marker {
    border-color: #0daa76;
    background-color: #0daa76;
    color: transparent;
    position: relative;
}

.gift-step.is-done .gift-step__marker::after {
    content: '';
    position: absolute;
    left: 11px;
    top: 7px;
    width: 9px;
    height: 14px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.gift-step.is-checking .gift-step__marker {
    animation: gift-step-pulse 1s ease-in-out infinite alternate;
}

@keyframes gift-step-pulse {
    from { opacity: 1; }
    to { opacity: 0.4; }
}

@media (prefers-reduced-motion: reduce) {
    .gift-step.is-checking .gift-step__marker {
        animation: none;
    }
}

.gift-step__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-flow: column;
    align-items: flex-start;
    gap: 8px;
}

.gift-step__title {
    margin: 0;
    padding-top: 4px;
    color: #22252a;
    font-family: 'Parkinsans', 'Helvetica Neue', Arial;
    font-size: 18px;
    line-height: 24px;
    font-weight: 400;
}

.gift-step__text {
    margin: 0;
    color: #9096a3;
    font-family: 'DMSans', 'Helvetica Neue', Arial;
    font-size: 14px;
    line-height: 19.6px;
}

.gift-step__actions {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    gap: 12px 16px;
    margin-top: 4px;
}

.gift-step__link {
    color: #22252a;
    font-family: 'DMSans', 'Helvetica Neue', Arial;
    font-size: 14px;
    line-height: 19.6px;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.gift-step__link:hover {
    color: #e40148;
}

/* ─── Komunikat statusu (naliczanie / błąd) ────────────────────────────── */

.gift-1zl-status {
    width: 100%;
    margin: 0;
    color: #22252a;
    font-family: 'DMSans', 'Helvetica Neue', Arial;
    font-size: 14px;
    line-height: 19.6px;
    text-align: center;
}

.gift-1zl-status.is-error {
    color: #e40148;
}

/* ─── Blok główny: tytuł, organizacja, tekst ───────────────────────────── */

.gift-1zl {
    width: 100%;
    display: flex;
    flex-flow: column;
    align-items: center;
    gap: 20px;
}

.gift-1zl__title {
    width: 100%;
    margin: 0;
    color: #22252a;
    font-family: 'Parkinsans', 'Helvetica Neue', Arial;
    font-size: 24px;
    line-height: 30px;
    font-weight: 400;
    text-align: center;
    overflow-wrap: anywhere;
}

.gift-1zl__title small {
    display: block;
    margin-top: 8px;
    color: #9096a3;
    font-family: 'DMSans', 'Helvetica Neue', Arial;
    font-size: 14px;
    line-height: 19.6px;
}

.gift-1zl__beneficiary {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-flow: column;
    align-items: center;
    gap: 8px;
}

.gift-1zl__text {
    margin: 0;
    color: #9096a3;
    font-family: 'DMSans', 'Helvetica Neue', Arial;
    font-size: 14px;
    line-height: 19.6px;
    text-align: center;
}

.gift-1zl__text a {
    color: #22252a;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.gift-1zl__text a:hover {
    color: #e40148;
}

.gift-1zl-done .gift-beneficiary-card {
    max-width: 480px;
}

.gift-1zl-cta {
    text-decoration: none;
}

/* ─── Kroki: brak rozszerzenia ──────────────────────────────────────── */

.gift-step__missing {
    display: flex;
    flex-flow: column;
    align-items: flex-start;
    gap: 8px;
}

.gift-step__browsers {
    display: inline-block;
    height: 16px;
    width: auto;
    margin: 0 4px;
    vertical-align: middle;
}

/* ─── Mobile ───────────────────────────────────────────────────────────── */

@media (max-width: 575px) {
    .gift-1zl-page .auth-centered-root {
        padding: 40px 16px 80px; /* 16px po bokach jak pozostałe strony auth */
    }

    .gift-step {
        padding: 16px;
        gap: 12px;
    }

    .gift-1zl__title {
        font-size: 20px;
        line-height: 26px;
    }
}
