:root {
    --oteesa-ui-navy: #071B45;
    --oteesa-ui-blue: #0D5BC6;
    --oteesa-ui-cyan: #19B5FE;
    --oteesa-ui-surface: #F4F7FC;
    --oteesa-ui-text: #14213D;
    --oteesa-ui-muted: #6F7F9D;
    --oteesa-ui-border: #D8E2F0;
    --oteesa-ui-success: #059669;
    --oteesa-ui-warning: #D97706;
    --oteesa-ui-danger: #DC2626;
    --oteesa-ui-white: #FFFFFF;
    --oteesa-ui-shadow-float:
        0 22px 64px rgba(7, 27, 69, 0.14),
        0 7px 20px rgba(13, 91, 198, 0.07);
    --oteesa-ui-shadow-toast:
        0 18px 44px rgba(7, 27, 69, 0.15),
        0 4px 14px rgba(13, 91, 198, 0.06);
    --oteesa-ui-focus:
        0 0 0 3px rgba(25, 181, 254, 0.14);
}

.oteesa-toast-region {
    position: fixed;
    z-index: 2147483000;
    top: 24px;
    right: 24px;
    display: flex;
    width: min(390px, calc(100vw - 32px));
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.oteesa-toast {
    position: relative;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 32px;
    gap: 11px;
    align-items: start;
    overflow: hidden;
    padding: 12px 12px 12px 14px;
    border: 1px solid rgba(216, 226, 240, 0.92);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.97);
    color: var(--oteesa-ui-text);
    box-shadow:
        0 14px 34px rgba(7, 27, 69, 0.12),
        0 3px 10px rgba(13, 91, 198, 0.04);
    font-family:
        "Plus Jakarta Sans",
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    pointer-events: auto;
    transform: translateX(10px) scale(0.992);
    opacity: 0;
    transition:
        opacity 180ms ease,
        transform 180ms cubic-bezier(.2, .8, .2, 1);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}


.oteesa-toast::before {
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 0;
    width: 3px;
    border-radius: 0 999px 999px 0;
    background: var(--oteesa-ui-blue);
    content: "";
}

.oteesa-toast--success::before {
    background: var(--oteesa-ui-success);
}

.oteesa-toast--warning::before {
    background: var(--oteesa-ui-warning);
}

.oteesa-toast--error::before {
    background: var(--oteesa-ui-danger);
}

.oteesa-toast.is-visible {
    transform: translateX(0) scale(1);
    opacity: 1;
}

@keyframes oteesa-toast-refresh {
    0% {
        transform:
            translateX(0)
            scale(1);
    }

    45% {
        transform:
            translateX(-2px)
            scale(1.006);
    }

    100% {
        transform:
            translateX(0)
            scale(1);
    }
}

.oteesa-toast.oteesa-toast--refreshed {
    animation:
        oteesa-toast-refresh
        180ms
        cubic-bezier(.2, .8, .2, 1);
}

.oteesa-toast.is-leaving {
    transform: translateX(7px) scale(0.994);
    opacity: 0;
}

.oteesa-toast__symbol {
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 11px;
}

.oteesa-toast__symbol svg,
.oteesa-dialog__symbol svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.oteesa-toast--success .oteesa-toast__symbol {
    border-color: #BBF7D0;
    background: #ECFDF5;
    color: var(--oteesa-ui-success);
}

.oteesa-toast--info .oteesa-toast__symbol {
    border-color: #CFE1F7;
    background: #EDF6FF;
    color: var(--oteesa-ui-blue);
}

.oteesa-toast--warning .oteesa-toast__symbol {
    border-color: #FDE68A;
    background: #FFFBEB;
    color: var(--oteesa-ui-warning);
}

.oteesa-toast--error .oteesa-toast__symbol {
    border-color: #FECACA;
    background: #FEF2F2;
    color: var(--oteesa-ui-danger);
}

.oteesa-toast__content {
    min-width: 0;
    padding-top: 1px;
    padding-right: 4px;
}

.oteesa-toast__title {
    margin: 0;
    color: var(--oteesa-ui-navy);
    font-size: 0.91rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.015em;
}

.oteesa-toast__message {
    margin: 3px 0 0;
    color: var(--oteesa-ui-muted);
    font-size: 0.81rem;
    font-weight: 600;
    line-height: 1.48;
}

.oteesa-toast__close {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: var(--oteesa-ui-muted);
    cursor: pointer;
    opacity: 0.72;
    transition:
        opacity 140ms ease,
        color 140ms ease,
        background-color 140ms ease,
        border-color 140ms ease;
}

.oteesa-toast:hover
.oteesa-toast__close {
    opacity: 1;
}

.oteesa-toast__close:focus-visible {
    opacity: 1;
}

.oteesa-toast__close:hover {
    border-color: var(--oteesa-ui-border);
    background: var(--oteesa-ui-surface);
    color: var(--oteesa-ui-navy);
}

.oteesa-toast__close:focus-visible,
.oteesa-dialog__button:focus-visible,
.swal2-close.oteesa-dialog__close:focus-visible {
    outline: none !important;
    box-shadow: var(--oteesa-ui-focus) !important;
}

.oteesa-toast__close svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.oteesa-toast__progress {
    display: none;
}

.oteesa-toast__progress::after {
    display: block;
    width: 100%;
    height: 100%;
    background: currentColor;
    content: "";
    transform-origin: left center;
    animation:
        oteesa-toast-progress var(--oteesa-toast-duration, 4000ms)
        linear forwards;
}

.oteesa-toast--success .oteesa-toast__progress {
    color: var(--oteesa-ui-success);
}

.oteesa-toast--warning .oteesa-toast__progress {
    color: var(--oteesa-ui-warning);
}

.oteesa-toast--error .oteesa-toast__progress {
    color: var(--oteesa-ui-danger);
}

@keyframes oteesa-toast-progress {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

.swal2-container.oteesa-dialog-container {
    background: rgba(7, 27, 69, 0.36) !important;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.swal2-popup.oteesa-dialog {
    position: relative !important;
    width: min(480px, calc(100vw - 28px)) !important;
    padding: 24px 24px 22px !important;
    border: 1px solid var(--oteesa-ui-border) !important;
    border-radius: 24px !important;
    background: var(--oteesa-ui-white) !important;
    color: var(--oteesa-ui-text) !important;
    box-shadow: var(--oteesa-ui-shadow-float) !important;
    font-family:
        "Plus Jakarta Sans",
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif !important;
}

.swal2-popup.oteesa-dialog .swal2-title {
    margin: 0 !important;
    padding: 4px 48px 0 60px !important;
    color: var(--oteesa-ui-navy) !important;
    font-size: 1.32rem !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    letter-spacing: -0.025em !important;
    text-align: left !important;
}

.swal2-popup.oteesa-dialog .swal2-html-container {
    margin: 7px 0 0 !important;
    padding: 0 8px 0 60px !important;
    color: var(--oteesa-ui-muted) !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    line-height: 1.58 !important;
    text-align: left !important;
}

.swal2-popup.oteesa-dialog .swal2-actions {
    width: 100% !important;
    margin: 24px 0 0 !important;
    gap: 9px !important;
    justify-content: flex-end !important;
}

.oteesa-dialog__symbol {
    position: absolute;
    top: 24px;
    left: 24px;
    display: flex;
    width: 44px;
    height: 44px;
    margin: 0;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 13px;
}

.oteesa-dialog__symbol--info,
.oteesa-dialog__symbol--question {
    border-color: #CFE1F7;
    background: #EDF6FF;
    color: var(--oteesa-ui-blue);
}

.oteesa-dialog__symbol--success {
    border-color: #BBF7D0;
    background: #ECFDF5;
    color: var(--oteesa-ui-success);
}

.oteesa-dialog__symbol--warning {
    border-color: #FDE68A;
    background: #FFFBEB;
    color: var(--oteesa-ui-warning);
}

.oteesa-dialog__symbol--error,
.oteesa-dialog__symbol--danger {
    border-color: #FECACA;
    background: #FEF2F2;
    color: var(--oteesa-ui-danger);
}

.oteesa-dialog__button {
    min-height: 46px !important;
    margin: 0 !important;
    padding: 0 20px !important;
    border: 1px solid transparent !important;
    border-radius: 13px !important;
    font-family: inherit !important;
    font-size: 0.9rem !important;
    font-weight: 800 !important;
    cursor: pointer !important;
}

.oteesa-dialog__button--primary {
    border-color: var(--oteesa-ui-blue) !important;
    background: var(--oteesa-ui-blue) !important;
    color: var(--oteesa-ui-white) !important;
}

.oteesa-dialog__button--danger {
    border-color: var(--oteesa-ui-danger) !important;
    background: var(--oteesa-ui-danger) !important;
    color: var(--oteesa-ui-white) !important;
}

.oteesa-dialog__button--warning {
    border-color: var(--oteesa-ui-warning) !important;
    background: var(--oteesa-ui-warning) !important;
    color: var(--oteesa-ui-white) !important;
}

.oteesa-dialog__button--secondary {
    border-color: var(--oteesa-ui-border) !important;
    background: var(--oteesa-ui-white) !important;
    color: #33415C !important;
}


.swal2-close.oteesa-dialog__close svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.swal2-close.oteesa-dialog__close {
    top: 14px !important;
    right: 14px !important;
    width: 38px !important;
    height: 38px !important;
    border: 1px solid transparent !important;
    border-radius: 11px !important;
    background: transparent !important;
    color: var(--oteesa-ui-muted) !important;
}

.oteesa-button-loading {
    cursor: wait !important;
    pointer-events: none !important;
}

.oteesa-button-loading__content {
    display: inline-flex;
    gap: 9px;
    align-items: center;
    justify-content: center;
}

.oteesa-button-loading__label {
    min-width: 0;
    line-height: 1.25;
}

.oteesa-button-loading:disabled {
    opacity: 0.94;
    transform: none !important;
}

.oteesa-button-spinner {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 999px;
    animation: oteesa-spinner 650ms linear infinite;
}

@keyframes oteesa-spinner {
    to { transform: rotate(360deg); }
}

@media (max-width: 560px) {
    .oteesa-toast-region {
        top: 12px;
        right: 12px;
        left: 12px;
        width: auto;
    }

    .swal2-popup.oteesa-dialog {
        padding: 24px 18px 18px !important;
        border-radius: 20px !important;
    }

    .swal2-popup.oteesa-dialog .swal2-actions {
        flex-direction: column-reverse !important;
    }

    .swal2-popup.oteesa-dialog .swal2-actions button {
        width: 100% !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .oteesa-toast,
    .oteesa-dialog__button {
        transition-duration: 0.01ms !important;
    }

    .oteesa-toast__progress::after,
    .oteesa-button-spinner {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
