/*--------------------------------------------------------------
  Toast notifications — fixed position, out of document flow.
  Never affects layout or scrolling of the page underneath it.

  Classes are prefixed "dp-toast" (not just ".toast"): Bootstrap ships
  its own .toast component with ".toast:not(.show){display:none}", which
  is MORE specific than a plain ".toast{display:flex}" rule and silently
  hid every notification. Prefixing avoids the collision entirely instead
  of fighting Bootstrap's specificity with !important.
----------------------------------------------------------------*/
.dp-toast-region {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: min(380px, calc(100vw - 32px));
    pointer-events: none;
}

.dp-toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--white-color, #f9fbf3);
    color: var(--body-color, #1E1E1E);
    border-left: 4px solid var(--heading-color);
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .18);
    padding: 14px 16px;
    opacity: 0;
    transform: translateX(24px);
    transition: opacity .25s ease, transform .25s ease;
}

.dp-toast--visible {
    opacity: 1;
    transform: translateX(0);
}

.dp-toast--success {
    border-left-color: #2f8f4e;
}

.dp-toast--error {
    border-left-color: #d0342c;
}

.dp-toast--warning {
    border-left-color: #b98900;
}

.dp-toast--info {
    border-left-color: var(--heading-color);
}

.dp-toast__text {
    flex: 1;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.dp-toast__close {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: none;
    color: inherit;
    cursor: pointer;
    transition: background-color .2s ease;
}

.dp-toast__close:hover {
    background-color: rgba(0, 0, 0, .06);
}

.dp-toast__close:focus-visible {
    outline: 3px solid var(--gray-color, #FFFF15);
    outline-offset: 2px;
}

@media (max-width: 480px) {
    .dp-toast-region {
        top: auto;
        bottom: 16px;
        right: 16px;
        left: 16px;
        width: auto;
    }
}
