.htmx-indicator {
    display: none;
}

.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
    display: inline-block;
}

.yasi-toast-container {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 100;
    display: flex;
    width: min(24rem, calc(100vw - 2rem));
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.yasi-toast {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border: 1px solid #e2e8f0;
    border-right-width: 4px;
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.98);
    color: #334155;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.8;
    pointer-events: auto;
    animation: yasi-toast-enter 180ms ease-out both;
}

.yasi-toast[data-type="success"] {
    border-right-color: #16a34a;
}

.yasi-toast[data-type="error"] {
    border-right-color: #e11d48;
}

.yasi-toast[data-type="warning"] {
    border-right-color: #d97706;
}

.yasi-toast[data-type="info"] {
    border-right-color: #7b2c83;
}

.yasi-toast__icon {
    margin-top: 0.2rem;
    color: #7b2c83;
}

.yasi-toast[data-type="success"] .yasi-toast__icon {
    color: #16a34a;
}

.yasi-toast[data-type="error"] .yasi-toast__icon {
    color: #e11d48;
}

.yasi-toast[data-type="warning"] .yasi-toast__icon {
    color: #d97706;
}

.yasi-toast__message {
    flex: 1;
}

.yasi-toast__close {
    border: 0;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
}

.yasi-toast--leaving {
    animation: yasi-toast-leave 150ms ease-in both;
}

@keyframes yasi-toast-enter {
    from {
        opacity: 0;
        transform: translateY(-0.5rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes yasi-toast-leave {
    to {
        opacity: 0;
        transform: translateY(-0.35rem);
    }
}

@media (max-width: 640px) {
    .yasi-toast-container {
        top: 0.75rem;
        right: 0.75rem;
        left: 0.75rem;
        width: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .yasi-toast,
    .yasi-toast--leaving {
        animation: none;
    }
}

[data-otp-digit][data-filled="true"] {
    background-color: #fff;
    border-color: #c4b5fd;
}

[data-otp-digit][data-active="true"] {
    background-color: #fff;
    border-color: #ec4899;
    box-shadow: 0 0 0 3px rgb(236 72 153 / 14%);
}

input[type="checkbox"].ys-monthly-reminder-checkbox {
    position: relative;
    display: inline-block;
    width: 1.1rem;
    height: 1.1rem;
    min-width: 1.1rem;
    margin: 0;
    appearance: none;
    border: 1.5px solid rgb(255 255 255 / 65%);
    border-radius: 0.3rem;
    background-color: rgb(255 255 255 / 12%);
    cursor: pointer;
}

input[type="checkbox"].ys-monthly-reminder-checkbox:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

input[type="checkbox"].ys-monthly-reminder-checkbox:checked {
    border-color: #ec4899;
    background-color: #ec4899;
}

input[type="checkbox"].ys-monthly-reminder-checkbox:checked::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 44%;
    width: 0.3rem;
    height: 0.55rem;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -50%) rotate(45deg);
}
.ys-rich-content > :first-child {
    margin-top: 0;
}

.ys-rich-content > :last-child {
    margin-bottom: 0;
}

.ys-rich-content p,
.ys-rich-content ul,
.ys-rich-content ol,
.ys-rich-content blockquote {
    margin: 0.75rem 0;
}

.ys-rich-content ul,
.ys-rich-content ol {
    padding-inline-start: 1.5rem;
}

.ys-rich-content ul {
    list-style: disc;
}

.ys-rich-content ol {
    list-style: decimal;
}

.ys-rich-content h1,
.ys-rich-content h2,
.ys-rich-content h3,
.ys-rich-content h4 {
    color: #1e293b;
    font-weight: 900;
    line-height: 1.8;
    margin: 1rem 0 0.5rem;
}

.ys-rich-content a {
    color: #7e22ce;
    text-decoration: underline;
}

.ys-rich-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
}
