/* The site's toast: see ocToast() in global.js. */
.oc-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: calc(100% - 32px);
    padding: 14px 24px;
    /* The sidebar's paper. */
    background: url('../img/bg.jpg') center center / cover no-repeat #f4f1ea;
    box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.3);
    color: #000;
    font-size: 12px;
    font-weight: 600;
    line-height: 18px;
    letter-spacing: 2px;
    text-align: center;
    text-transform: uppercase;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    /* Past the 20px gap, so it starts fully off the right edge. */
    transform: translateX(calc(100% + 20px));
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

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

/* On a phone: along the bottom, sliding up. */
@media (max-width: 767px) {
    .oc-toast {
        top: auto;
        right: 16px;
        bottom: 16px;
        left: 16px;
        max-width: none;
        transform: translateY(calc(100% + 16px));
    }

    .oc-toast.visible {
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .oc-toast {
        transition: none;
    }
}
