/* ==============================
   GLOBAL NOTICE / FEEDBACK
   (TVO Portal – rød theme)
   ============================== */

:root {
    --tvo-red: #dc3545;
    /* skift hvis du har en specifik TVO-rød */
    --tvo-red-soft: #ffecec;
    --tvo-green: #28a745;
    --tvo-blue: #0d6efd;
    --tvo-gray: #f5f5f5;
    --tvo-text: #222;
}

.notice {
    position: relative;
    padding: 14px 16px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-size: 15px;
    line-height: 1.4;
    border-left: 5px solid transparent;
    background: var(--tvo-gray);
    color: var(--tvo-text);

    opacity: 1;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.notice.hide {
    opacity: 0;
    transform: translateY(-5px);
}

/* SUCCESS */
.notice.success {
    background: #e6ffed;
    border-color: var(--tvo-green);
}

/* WARNING (TVO-rød) */
.notice.warning {
    background: var(--tvo-red-soft);
    border-color: var(--tvo-red);
}

/* ERROR */
.notice.error {
    background: var(--tvo-red-soft);
    border-color: var(--tvo-red);
}

/* INFO */
.notice.info {
    background: #eef5ff;
    border-color: var(--tvo-blue);
}

/* Close button (hvis du bruger den i JS) */
.notice-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #555;
}

.notice-close:hover {
    color: #000;
}

/* Actions inde i notice (fx knap/link) */
.notice-actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

/* HTML5UP buttons har ofte margin – nulstil inde i notice */
.notice-actions .button {
    margin: 0 !important;
}

/* TVO Demo banner */
.tvoDemoBanner {
    width: calc(100% - 2rem);
    max-width: 1180px;
    margin: 14px auto 0;
    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    padding: 8px 12px;
    border-radius: 12px;

    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-left: 6px solid #cc0000;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.tvoDemoLeft {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.tvoDemoPill {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    background: #cc0000;
    color: #fff;
    border-radius: 999px;
    padding: 4px 10px;

    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.tvoDemoText {
    font-weight: 650;
    color: rgba(0, 0, 0, 0.80);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tvoDemoMeta {
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.65);
    white-space: nowrap;

    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 4px 10px;
    border-radius: 999px;
}

.tvoDemoMetaSep {
    opacity: .5;
    margin: 0 8px;
}

@media (max-width: 720px) {
    .tvoDemoBanner {
        flex-direction: column;
        align-items: flex-start;
    }

    .tvoDemoMeta {
        white-space: normal;
    }
}