/*
 * WaterMelon notification theme for toastr (design only).
 *
 * toastr ships a blue/green/red/orange coloured card with white text and
 * white PNG icons marked !important. This file restyles the same markup as a
 * white card with black text that sits on the dark WaterMelon pages: one round
 * signal mark per type (Watermelon red for notices and errors, rind green for
 * success, amber for warnings). Behaviour, position, timing and markup are
 * toastr's own and are not changed here.
 *
 * Selectors carry the element name (div.toast-*) so they outrank toastr's
 * "#toast-container > .toast-*" rules whatever the load order.
 */
#toast-container > div.toast {
    --wm-toast-ink: #0A0A0A;
    --wm-toast-muted: #5C5C5C;
    --wm-toast-line: rgba(10, 10, 10, 0.08);
    --wm-toast-red: #F9100C;
    --wm-toast-green: #02674F;
    --wm-toast-amber: #F2A900;

    padding: 14px 18px 14px 50px;
    border: 1px solid var(--wm-toast-line);
    border-radius: 12px;
    background-color: #FFFFFF;
    background-position: 16px 14px;
    background-size: 22px 22px;
    background-repeat: no-repeat;
    color: var(--wm-toast-ink);
    font-family: "Mulish", "Noto Sans KR", sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 22px;
    letter-spacing: -0.01em;
    opacity: 1;
    -ms-filter: none;
    filter: none;
    -webkit-box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32), 0 2px 6px rgba(0, 0, 0, 0.18);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32), 0 2px 6px rgba(0, 0, 0, 0.18);
}

#toast-container > div.toast:hover {
    opacity: 1;
    -webkit-box-shadow: 0 14px 36px rgba(0, 0, 0, 0.38), 0 2px 8px rgba(0, 0, 0, 0.22);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.38), 0 2px 8px rgba(0, 0, 0, 0.22);
}

#toast-container > div.toast .toast-title {
    margin-bottom: 2px;
    color: var(--wm-toast-ink);
    font-weight: 800;
}

#toast-container > div.toast .toast-message {
    color: var(--wm-toast-ink);
    /* Break between words (Korean included), never inside "cart" or "필요합니다". */
    word-break: keep-all;
    overflow-wrap: break-word;
}

#toast-container > div.toast .toast-message a,
#toast-container > div.toast .toast-message label {
    color: var(--wm-toast-ink);
    text-decoration: underline;
    text-underline-offset: 2px;
}

#toast-container > div.toast .toast-message a:hover {
    color: var(--wm-toast-red);
}

#toast-container > div.toast .toast-close-button {
    top: -2px;
    right: -6px;
    color: var(--wm-toast-muted);
    font-weight: 400;
    -webkit-text-shadow: none;
    text-shadow: none;
    opacity: 1;
}

#toast-container > div.toast .toast-close-button:hover,
#toast-container > div.toast .toast-close-button:focus {
    color: var(--wm-toast-ink);
    opacity: 1;
}

#toast-container > div.toast .toast-progress {
    height: 3px;
    background-color: var(--wm-toast-red);
    opacity: 1;
}

/* Signal marks: a filled 22px disc with a white (or black on amber) glyph. */
#toast-container > div.toast-info {
    background-color: #FFFFFF;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Ccircle cx='11' cy='11' r='11' fill='%23F9100C'/%3E%3Ccircle cx='11' cy='6.6' r='1.5' fill='%23fff'/%3E%3Crect x='9.7' y='9.4' width='2.6' height='7.4' rx='1.3' fill='%23fff'/%3E%3C/svg%3E") !important;
}

#toast-container > div.toast-error {
    background-color: #FFFFFF;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Ccircle cx='11' cy='11' r='11' fill='%23F9100C'/%3E%3Crect x='9.7' y='5.2' width='2.6' height='7.6' rx='1.3' fill='%23fff'/%3E%3Ccircle cx='11' cy='15.9' r='1.5' fill='%23fff'/%3E%3C/svg%3E") !important;
}

#toast-container > div.toast-success {
    background-color: #FFFFFF;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Ccircle cx='11' cy='11' r='11' fill='%2302674F'/%3E%3Cpath d='M6.6 11.4l3 3 5.8-6.2' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}

#toast-container > div.toast-warning {
    background-color: #FFFFFF;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Ccircle cx='11' cy='11' r='11' fill='%23F2A900'/%3E%3Crect x='9.7' y='5.2' width='2.6' height='7.6' rx='1.3' fill='%230A0A0A'/%3E%3Ccircle cx='11' cy='15.9' r='1.5' fill='%230A0A0A'/%3E%3C/svg%3E") !important;
}

/* toastr narrows the card on phones; keep the mark and text aligned there. */
@media all and (max-width: 480px) {
    #toast-container > div.toast {
        padding: 12px 14px 12px 46px;
        background-position: 14px 12px;
        font-size: 13px;
        line-height: 21px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #toast-container > div.toast {
        -webkit-transition: none;
        transition: none;
    }
}
