/* Admin preview ("View as business"): Views/Shared/_AdminPreviewBar.cshtml. Amber, striped and framed so an admin never
   mistakes the preview for their own account. */
.tn-preview-bar {
    position: sticky; top: 0; z-index: 1050;
    display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.1rem;
    padding: .7rem 1.25rem;
    background: repeating-linear-gradient(-45deg, #f5a623 0 14px, #f0b44c 14px 28px);
    color: #1a1a1a; font-size: .9rem; line-height: 1.35;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .45);
}
.tn-preview-bar--compact { padding: .45rem 1.25rem; font-size: .82rem; }
.tn-preview-bar__tag {
    background: #1a1a1a; color: #f5a623; border-radius: 4px; padding: .15rem .5rem;
    font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
}
.tn-preview-bar__text { flex: 1; min-width: 260px; }
.tn-preview-bar__text b { font-size: 1rem; }
.tn-preview-bar__expiry { opacity: .8; white-space: nowrap; }
.tn-preview-bar__link { color: #1a1a1a; font-weight: 700; text-decoration: underline; white-space: nowrap; }
.tn-preview-bar__link:hover { color: #000; }
.tn-preview-bar__exit { margin: 0; }
.tn-preview-bar__exit button {
    background: #1a1a1a; color: #fff; border: 0; border-radius: 6px; padding: .4rem .9rem;
    font-weight: 700; cursor: pointer; white-space: nowrap;
}
.tn-preview-bar__exit button:hover { background: #000; }
.tn-preview-bar--expired { background: #b33; color: #fff; }
.tn-preview-bar--expired .tn-preview-bar__link { color: #fff; }

/* The frame around the whole window, on portal pages only. */
body.tn-admin-preview::after {
    content: ""; position: fixed; inset: 0; z-index: 2000; pointer-events: none;
    border: 4px solid #f5a623;
}

.tn-preview-toast {
    position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 2100; max-width: 380px;
    background: #1a1a1a; color: #fff; border-left: 5px solid #f5a623; border-radius: 8px;
    padding: .8rem 1rem; font-size: .9rem; box-shadow: 0 8px 26px rgba(0, 0, 0, .5);
    opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s;
}
.tn-preview-toast.is-visible { opacity: 1; transform: none; }
