/**
 * Karam Translation Notice — frontend modal
 * Palette pulled from karamshaar.com:
 *   --ktn-blue:    rgb(119, 141, 170)
 *   --ktn-cream:   rgb(244, 236, 220)
 *   --ktn-gold:    rgb(184, 156, 94)
 *   --ktn-gold-dk: rgb(175, 127, 79)
 *   --ktn-text:    rgb(52, 44, 44)
 *   --ktn-muted:   rgb(81, 89, 98)
 */

.ktn-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(52, 44, 44, 0.55);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}

.ktn-modal-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.ktn-modal-overlay[data-direction="rtl"] {
    direction: rtl;
}

.ktn-modal {
    position: relative;
    width: 100%;
    max-width: 460px;
    padding: 40px 32px 32px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(52, 44, 44, .35),
                0 0 0 1px rgba(119, 141, 170, .08);
    text-align: center;
    font-family: inherit;
    transform: translateY(16px) scale(.97);
    transition: transform .3s cubic-bezier(.16, 1, .3, 1);
}

.ktn-modal-overlay.is-visible .ktn-modal {
    transform: translateY(0) scale(1);
}

.ktn-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgb(244, 236, 220);
    color: rgb(119, 141, 170);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease, color .2s ease;
}

.ktn-modal-overlay[data-direction="rtl"] .ktn-modal__close {
    right: auto;
    left: 14px;
}

.ktn-modal__close:hover,
.ktn-modal__close:focus {
    background: rgb(119, 141, 170);
    color: #fff;
    outline: 0;
}

.ktn-modal__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgb(244, 236, 220);
    color: rgb(119, 141, 170);
}

.ktn-modal__title {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
    color: rgb(119, 141, 170);
}

.ktn-modal__message {
    margin: 0 0 26px;
    font-size: 15px;
    line-height: 1.6;
    color: rgb(81, 89, 98);
}

.ktn-modal__actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.ktn-modal__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 130px;
    padding: 11px 22px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    border: 0;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s ease, color .2s ease, transform .12s ease;
}

.ktn-modal__btn:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.ktn-modal__btn--primary {
    background: rgb(184, 156, 94);
    color: #fff;
}

.ktn-modal__btn--primary:hover,
.ktn-modal__btn--primary:focus {
    background: rgb(175, 127, 79);
    color: #fff;
    outline: 0;
}

.ktn-modal__btn--secondary {
    background: rgb(244, 236, 220);
    color: rgb(52, 44, 44);
}

.ktn-modal__btn--secondary:hover,
.ktn-modal__btn--secondary:focus {
    background: rgb(119, 141, 170);
    color: #fff;
    outline: 0;
}

@media (max-width: 480px) {
    .ktn-modal {
        padding: 32px 20px 24px;
    }
    .ktn-modal__title {
        font-size: 19px;
    }
    .ktn-modal__actions {
        flex-direction: column;
    }
    .ktn-modal__btn {
        width: 100%;
    }
}
