/* Unified popup, modal and toast polish for client pages. */
.swal2-popup {
    border-radius: 20px !important;
    padding: 22px !important;
    border: 1px solid #ffe0d5 !important;
    box-shadow: 0 24px 70px rgba(20, 31, 54, .18) !important;
    font-family: Inter, Arial, sans-serif !important;
}

.swal2-title {
    color: #16233a !important;
    font-size: 20px !important;
    font-weight: 900 !important;
    line-height: 1.25 !important;
}

.swal2-html-container {
    color: #60708a !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.55 !important;
}

.swal2-icon {
    margin-top: 8px !important;
}

.swal2-confirm,
.swal2-cancel,
.swal2-deny {
    border-radius: 12px !important;
    min-height: 42px !important;
    padding: 10px 18px !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    box-shadow: none !important;
}

.swal2-confirm {
    background: linear-gradient(90deg, #ff9f0a, #ff671f) !important;
}

.swal2-cancel,
.swal2-deny {
    background: #eef3f9 !important;
    color: #526079 !important;
}

.swal2-actions {
    gap: 8px !important;
}

.swal2-toast {
    border-radius: 16px !important;
    border: 1px solid #ffe0d5 !important;
    box-shadow: 0 16px 40px rgba(20, 31, 54, .16) !important;
}

.toast,
#toast {
    border-radius: 16px !important;
    box-shadow: 0 16px 40px rgba(20, 31, 54, .18) !important;
}

.modal-alert {
    background: rgba(15, 23, 42, .42) !important;
    backdrop-filter: blur(5px);
}

.modal-alert-content,
.modal-content {
    border-radius: 20px !important;
    border: 1px solid #ffe0d5 !important;
    box-shadow: 0 24px 70px rgba(20, 31, 54, .18) !important;
}

.modal-header {
    border-bottom-color: #f1f4f8 !important;
}

.modal-footer {
    border-top-color: #f1f4f8 !important;
}

@media (max-width: 640px) {
    .swal2-popup {
        width: calc(100% - 24px) !important;
        padding: 18px !important;
        border-radius: 18px !important;
    }

    .swal2-title {
        font-size: 18px !important;
    }

    .swal2-confirm,
    .swal2-cancel,
    .swal2-deny {
        min-height: 40px !important;
        font-size: 12px !important;
    }
}

body.in-app-browser-notice-open {
    overflow: hidden;
}

.in-app-browser-notice[hidden] {
    display: none !important;
}

.in-app-browser-notice {
    position: fixed;
    z-index: 1090;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    overflow-y: auto;
    background: rgba(15, 23, 42, .58);
    backdrop-filter: blur(6px);
}

.in-app-browser-notice__card {
    position: relative;
    width: min(100%, 460px);
    padding: 28px;
    border: 1px solid #ffe0d5;
    border-radius: 22px;
    background: #fff;
    color: #16233a;
    box-shadow: 0 26px 80px rgba(20, 31, 54, .25);
    text-align: center;
    animation: inAppBrowserNoticeIn .2s ease-out;
}

@keyframes inAppBrowserNoticeIn {
    from { opacity: 0; transform: translateY(12px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.in-app-browser-notice__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #edf1f6;
    border-radius: 50%;
    background: #f8fafc;
    color: #64748b;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.in-app-browser-notice__close:hover,
.in-app-browser-notice__close:focus {
    border-color: #ffd5c2;
    background: #fff3ed;
    color: #ff401a;
    outline: none;
}

.in-app-browser-notice__icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 16px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff401a, #ff8a1f);
    color: #fff;
    font-size: 24px;
    box-shadow: 0 12px 26px rgba(255, 64, 26, .24);
}

.in-app-browser-notice h2 {
    margin: 0 34px 10px;
    color: #16233a;
    font-size: 21px;
    font-weight: 900;
    line-height: 1.3;
}

.in-app-browser-notice__card > p {
    margin: 0;
    color: #60708a;
    font-size: 14px;
    line-height: 1.6;
}

.in-app-browser-notice__instruction {
    margin-top: 18px !important;
    padding: 14px 16px;
    border: 1px solid #ffe5da;
    border-radius: 16px;
    background: #fff8f4;
    color: #35445d;
    text-align: left;
}

.in-app-browser-notice__continue {
    width: 100%;
    min-height: 46px;
    margin-top: 20px;
    padding: 11px 18px;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(135deg, #ff401a, #ff7a1f);
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 11px 24px rgba(255, 64, 26, .22);
}

.in-app-browser-notice__continue:hover,
.in-app-browser-notice__continue:focus {
    color: #fff;
    transform: translateY(-1px);
    outline: none;
}

@media (max-width: 640px) {
    .in-app-browser-notice {
        align-items: flex-start;
        padding: 70px 12px 18px;
    }

    .in-app-browser-notice__card {
        padding: 24px 18px 20px;
        border-radius: 20px;
    }

    .in-app-browser-notice h2 {
        margin-right: 30px;
        margin-left: 30px;
        font-size: 19px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .in-app-browser-notice__card { animation: none; }
}
