/*
 * Akcepto v2 – okna weryfikacji telefonu / e-maila / NIP (projekt FormEmail / FormPhone + wersje mobile).
 * Okna tworzy JS wtyczki ze stylami inline, stąd !important. Klasy ak-verify* dokłada js/verify.js.
 */
.alm-modal-overlay.ak-verify {
    background: rgba(30, 14, 1, .62) !important;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    padding: 16px;
    box-sizing: border-box;
    font-family: 'Outfit', system-ui, sans-serif;
}

.ak-verify .alm-modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    width: 100% !important;
    max-width: 520px !important;
    box-sizing: border-box;
    padding: 36px 36px 30px !important;
    border-radius: 28px !important;
    background: #FFFFFF !important;
    box-shadow: 0 30px 80px rgba(122, 61, 0, .22) !important;
    color: #2A1602;
    text-align: center !important;
}

.ak-verify__handle {
    display: none;
}

.ak-verify__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: #FFF6EA;
    color: #5A4330;
    cursor: pointer;
}

.ak-verify__close:hover {
    background: #FFE2BF;
    color: #2A1602;
}

.ak-verify__icon {
    position: relative;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 36px 36px 36px 10px;
    background: #FFF1DE;
    color: #C26A00;
}

.ak-verify__badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 3px solid #FFFFFF;
    border-radius: 50%;
    background: #FF9F0A;
    color: #2E1702;
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
}

.ak-verify .alm-modal-content h3 {
    margin: 0 0 -10px !important;
    padding: 0;
    font-family: inherit;
    font-size: 26px !important;
    line-height: 1.2;
    font-weight: 700 !important;
    letter-spacing: -.3px;
    color: #2A1602 !important;
}

.ak-verify .ak-verify__desc {
    margin: 0;
    font-size: 16px;
    line-height: 1.55;
    color: #5A4330;
}

.ak-verify .ak-verify__value,
.ak-verify .ak-verify__values {
    width: 100%;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 16px;
    border: 1.5px dashed #F0C27F;
    border-radius: 16px;
    background: #FFF6EA;
    color: #2A1602;
    font-size: 20px;
    font-weight: 700 !important;
    word-break: break-all;
}

.ak-verify--phone .ak-verify__value {
    letter-spacing: 1px;
}

/* Okno łączone: Telefon / Email jako wiersze w jednym polu */
.ak-verify .ak-verify__values {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: baseline;
    gap: 10px 14px;
    font-size: 17px;
    text-align: left !important;
}

.ak-verify .ak-verify__values > * {
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
}

.ak-verify .ak-verify__values > div {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #6B5540 !important;
}

/* Przyciski: „Nie, poprawię” (główny) po prawej, na mobile na górze */
.ak-verify .alm-modal-content > div:last-child {
    display: flex !important;
    flex-direction: row !important;
    gap: 12px !important;
    width: 100%;
}

.ak-verify .alm-next-step-button,
.ak-verify .alm-revoke-consent-button {
    flex: 1 1 0 !important;
    height: 58px;
    margin: 0 !important;
    padding: 0 20px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px !important;
    font-family: inherit;
    font-size: 17px !important;
    line-height: 1.2;
    text-transform: none;
    cursor: pointer;
}

.ak-verify .alm-revoke-consent-button {
    order: 2;
    border: 0 !important;
    background: #FF9F0A !important;
    color: #2E1702 !important;
    font-weight: 700 !important;
    box-shadow: 0 8px 20px rgba(255, 159, 10, .32) !important;
}

.ak-verify .alm-revoke-consent-button:hover {
    background: #E88705 !important;
}

.ak-verify .alm-next-step-button {
    order: 1;
    border: 2px solid #EADBC8 !important;
    background: #FFFFFF !important;
    color: #2A1602 !important;
    font-weight: 600 !important;
    box-shadow: none !important;
}

.ak-verify .alm-next-step-button:hover {
    border-color: #D9C3A6 !important;
    background: #FFFBF5 !important;
}

.ak-verify .alm-modal-content button:focus-visible {
    outline: 3px solid #2A1602;
    outline-offset: 3px;
}

/* Mobile: dolny arkusz z uchwytem */
@media (max-width: 768px) {
    .alm-modal-overlay.ak-verify {
        align-items: flex-end !important;
        padding: 12px;
    }

    .ak-verify .alm-modal-content {
        max-width: none !important;
        gap: 16px;
        padding: 14px 20px 28px !important;
        box-shadow: 0 20px 60px rgba(0, 0, 0, .35) !important;
    }

    .ak-verify__handle {
        display: block;
        width: 44px;
        height: 5px;
        margin-bottom: 6px;
        border-radius: 3px;
        background: #E3D3BE;
    }

    .ak-verify .alm-modal-content h3 {
        font-size: 22px !important;
        margin-bottom: -8px !important;
    }

    .ak-verify .ak-verify__value {
        font-size: 18px;
    }

    .ak-verify .alm-modal-content > div:last-child {
        flex-direction: column !important;
    }

    .ak-verify .alm-next-step-button,
    .ak-verify .alm-revoke-consent-button {
        flex: none !important;
        height: 56px;
    }

    .ak-verify .alm-revoke-consent-button {
        order: 1;
    }

    .ak-verify .alm-next-step-button {
        order: 2;
    }
}
