@keyframes wave {
    0% {
        background-position: -200% 0%, 0% 0%;
    }

    50% {
        background-position: 0% 0%, 0% 0%;
    }

    100% {
        background-position: 200% 0%, 0% 0%;
    }
}

html.light-mode .kol-modern-toast-root,
html.dark-mode .kol-modern-toast-root {
    position: fixed;
    left: 5px;
    bottom: 60px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 8px;
    height: 352px;
    width: min(390px, calc(100vw - 10px));
    pointer-events: none;
}

html.light-mode .kol-modern-toast,
html.dark-mode .kol-modern-toast {
    position: relative;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 30px;
    grid-template-rows: auto auto;
    column-gap: 12px;
    align-items: center;
    min-height: 82px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 16px 14px 16px 18px;
    border-radius: 4px;
    box-shadow: none;
    overflow: hidden;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.32s ease, transform 0.32s ease, height 0.56s ease, padding 0.56s ease, margin 0.56s ease;
    pointer-events: auto;
}

html.light-mode .kol-modern-toast.is-visible,
html.dark-mode .kol-modern-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

html.light-mode .kol-modern-toast.is-leaving,
html.dark-mode .kol-modern-toast.is-leaving {
    margin: 0;
    opacity: 0;
    transform: translateY(18px);
    pointer-events: none;
}

html.light-mode .kol-modern-toast {
    background: #ffffff;
    color: #333333;
}

html.dark-mode .kol-modern-toast {
    background: #000000;
    color: #e0e0e0;
}

html.light-mode .kol-modern-toast.is-clickable,
html.dark-mode .kol-modern-toast.is-clickable {
    cursor: pointer;
}

html.light-mode .kol-modern-toast__close,
html.dark-mode .kol-modern-toast__close {
    grid-column: 3;
    grid-row: 1 / 3;
    position: relative;
    z-index: 2;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #888888;
    font-size: 30px;
    font-weight: 300;
    line-height: 28px;
    cursor: pointer;
}

html.light-mode .kol-modern-toast__close:hover,
html.light-mode .kol-modern-toast__close:focus,
html.dark-mode .kol-modern-toast__close:hover,
html.dark-mode .kol-modern-toast__close:focus {
    background: rgba(128, 128, 128, 0.14);
    outline: none;
}

html.light-mode .kol-modern-toast__icon,
html.dark-mode .kol-modern-toast__icon {
    grid-column: 1;
    grid-row: 1 / 3;
    position: relative;
    width: 26px;
    height: 26px;
    justify-self: center;
    border-radius: 50%;
}

html.light-mode .kol-modern-toast__header,
html.dark-mode .kol-modern-toast__header {
    grid-column: 2;
    grid-row: 1;
    display: block;
    min-width: 0;
    margin: 0 0 4px;
    padding: 0;
}

html.light-mode .kol-modern-toast__title,
html.dark-mode .kol-modern-toast__title {
    display: block;
    overflow-wrap: anywhere;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0;
}

html.light-mode .kol-modern-toast__badge,
html.dark-mode .kol-modern-toast__badge,
html.light-mode .kol-modern-toast__meta,
html.dark-mode .kol-modern-toast__meta {
    display: none;
}

html.light-mode .kol-modern-toast__message,
html.dark-mode .kol-modern-toast__message {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    font-size: 14px;
    line-height: 1.35;
    color: inherit;
}

html.light-mode .kol-modern-toast--info,
html.dark-mode .kol-modern-toast--info {
    border: 1px solid #2196f3;
}

html.light-mode .kol-modern-toast--error,
html.dark-mode .kol-modern-toast--error {
    border: 1px solid #ff3b4f;
}

html.light-mode .kol-modern-toast--success,
html.dark-mode .kol-modern-toast--success {
    border: 1px solid #59c9a5;
}

html.light-mode .kol-modern-toast--warning,
html.dark-mode .kol-modern-toast--warning {
    border: 1px solid #ff9f1a;
}

html.light-mode .kol-modern-toast--info .kol-modern-toast__icon,
html.dark-mode .kol-modern-toast--info .kol-modern-toast__icon {
    background: #4aa3df;
}

html.light-mode .kol-modern-toast--error .kol-modern-toast__icon,
html.dark-mode .kol-modern-toast--error .kol-modern-toast__icon {
    background: #d94b5c;
}

html.light-mode .kol-modern-toast--success .kol-modern-toast__icon,
html.dark-mode .kol-modern-toast--success .kol-modern-toast__icon {
    background: #59c9a5;
}

html.light-mode .kol-modern-toast--warning .kol-modern-toast__icon,
html.dark-mode .kol-modern-toast--warning .kol-modern-toast__icon {
    background: transparent;
    border-right: 14px solid transparent;
    border-bottom: 24px solid #f2a64a;
    border-left: 14px solid transparent;
    border-radius: 0;
}

html.light-mode .kol-modern-toast--success .kol-modern-toast__icon::before,
html.dark-mode .kol-modern-toast--success .kol-modern-toast__icon::before {
    content: "";
    position: absolute;
    top: 6px;
    left: 9px;
    width: 6px;
    height: 12px;
    border-right: 3px solid #ffffff;
    border-bottom: 3px solid #ffffff;
    transform: rotate(45deg);
}

html.light-mode .kol-modern-toast--info .kol-modern-toast__icon::before,
html.dark-mode .kol-modern-toast--info .kol-modern-toast__icon::before {
    content: "i";
    position: absolute;
    inset: 0;
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    line-height: 26px;
    text-align: center;
}

html.light-mode .kol-modern-toast--error .kol-modern-toast__icon::before,
html.dark-mode .kol-modern-toast--error .kol-modern-toast__icon::before {
    content: "!";
    position: absolute;
    inset: 0;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    line-height: 26px;
    text-align: center;
}

html.light-mode .kol-modern-toast--warning .kol-modern-toast__icon::before,
html.dark-mode .kol-modern-toast--warning .kol-modern-toast__icon::before {
    content: "!";
    position: absolute;
    top: 7px;
    left: -3px;
    width: 6px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
}

html.light-mode .kol-modern-toast__progress,
html.dark-mode .kol-modern-toast__progress {
    display: none;
}

html.light-mode .kol-modern-toast-test-panel,
html.dark-mode .kol-modern-toast-test-panel {
    box-sizing: border-box;
    width: 100%;
    max-width: 720px;
    padding: 14px;
    border-radius: 8px;
}

html.light-mode .kol-modern-toast-test-panel {
    border: 1px solid #e5e7eb;
    background: #f3f4f6;
    color: #1f2937;
}

html.dark-mode .kol-modern-toast-test-panel {
    border: 1px solid #333333;
    background: #1a1a1a;
    color: #e0e0e0;
}

html.light-mode .kol-modern-toast-test-actions,
html.dark-mode .kol-modern-toast-test-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

html.light-mode .kol-modern-toast-test-button,
html.dark-mode .kol-modern-toast-test-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    box-sizing: border-box;
    padding: 0 15px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    line-height: 32px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
}

html.light-mode .kol-modern-toast-test-panel.is-testing .kol-modern-toast-test-button,
html.dark-mode .kol-modern-toast-test-panel.is-testing .kol-modern-toast-test-button {
    opacity: 0.65;
    pointer-events: none;
}

html.light-mode .kol-modern-toast-test-button--info,
html.dark-mode .kol-modern-toast-test-button--info,
html.light-mode .kol-modern-toast-test-button--all,
html.dark-mode .kol-modern-toast-test-button--all {
    border-top: 1px solid #f0f0f0;
    border-right: 1px solid #b0b0b0;
    border-bottom: 1px solid #b0b0b0;
    border-left: 1px solid #f0f0f0;
    background: linear-gradient(#e2e2e2, #d4d4d4);
    color: #2d2d2d;
}

html.light-mode .kol-modern-toast-test-button--error,
html.dark-mode .kol-modern-toast-test-button--error {
    border-top: 1px solid #555555;
    border-right: 1px solid #282828;
    border-bottom: 1px solid #282828;
    border-left: 1px solid #555555;
    background: linear-gradient(#383838, #343434);
    color: #ffffff;
}

html.light-mode .kol-modern-toast-test-button--success,
html.dark-mode .kol-modern-toast-test-button--success {
    border-top: 1px solid #3d9d3d;
    border-right: 1px solid #1a4d1a;
    border-bottom: 1px solid #1a4d1a;
    border-left: 1px solid #3d9d3d;
    background: linear-gradient(#2d7c2d, #1f5f1f);
    color: #ffffff;
}

html.light-mode .kol-modern-toast-test-button--warning,
html.dark-mode .kol-modern-toast-test-button--warning {
    border: 2px solid #00cc99;
    background: linear-gradient(#ccfff6, #99ffe8);
    box-shadow: 0 0 0 3px rgba(0, 204, 153, 0.15), 0 4px 8px rgba(0, 204, 153, 0.2);
    color: #007755;
}

@media (max-width: 640px) {
    html.light-mode .kol-modern-toast-root,
    html.dark-mode .kol-modern-toast-root {
        left: 5px;
        right: 5px;
        bottom: 60px;
        height: 352px;
        width: auto;
    }
}
