/*!
 * Labios Openingstijden 1.1.1 — (c) 2026 Labios-ai
 * Kleuren zijn aan te passen met de CSS-variabelen hieronder (bv. in YOOtheme › Custom CSS).
 */
.labios-oh {
    --loh-open-bg: #e8f5ec;   --loh-open-fg: #1b5e33;   --loh-open-dot: #22a34a;
    --loh-soon-bg: #fff4e0;   --loh-soon-fg: #7a4300;   --loh-soon-dot: #e08a00;
    --loh-before-bg: #eef2fb; --loh-before-fg: #1e3a8a; --loh-before-dot: #3b6fd8;
    --loh-closed-bg: #fbecec; --loh-closed-fg: #8a1f1a; --loh-closed-dot: #d23b33;
    --loh-up-bg: rgba(30, 135, 240, .06); --loh-up-border: rgba(30, 135, 240, .2);
    --loh-radius: 10px;
}
.labios-oh--size-small { font-size: .875rem; }
.labios-oh--size-large { font-size: 1.125rem; }

/* Status */
.labios-oh__status { display: flex; align-items: center; gap: .65em; padding: .75em 1em; border-radius: var(--loh-radius); margin: 0 0 1.1em; line-height: 1.35; }
.labios-oh__rows + .labios-oh__status,
.labios-oh__upcoming + .labios-oh__status { margin: 1.1em 0 0; }
.labios-oh__dot { width: .6em; height: .6em; border-radius: 50%; flex-shrink: 0; }
.labios-oh__status--open   { background: var(--loh-open-bg);   color: var(--loh-open-fg); }
.labios-oh__status--soon   { background: var(--loh-soon-bg);   color: var(--loh-soon-fg); }
.labios-oh__status--before { background: var(--loh-before-bg); color: var(--loh-before-fg); }
.labios-oh__status--closed { background: var(--loh-closed-bg); color: var(--loh-closed-fg); }
.labios-oh__status--open .labios-oh__dot   { background: var(--loh-open-dot); box-shadow: 0 0 0 .3em rgba(34, 163, 74, .18); }
.labios-oh__status--soon .labios-oh__dot   { background: var(--loh-soon-dot); }
.labios-oh__status--before .labios-oh__dot { background: var(--loh-before-dot); }
.labios-oh__status--closed .labios-oh__dot { background: var(--loh-closed-dot); }

/* Titel */
.labios-oh__thead { margin-bottom: .9em; }

/* Rijen */
.labios-oh__row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.2fr); align-items: baseline; gap: .5em; padding: .55em .75em; margin: 0 -.75em; border-radius: 8px; }
.labios-oh--nodates .labios-oh__row,
.labios-oh--compact .labios-oh__row { grid-template-columns: minmax(0, 1fr) auto; }
.labios-oh__date { font-variant-numeric: tabular-nums; opacity: .8; font-size: .9em; }
.labios-oh__hours { text-align: right; font-variant-numeric: tabular-nums; }
.labios-oh__note { display: block; font-size: .8em; opacity: .75; font-weight: normal; }
.labios-oh__row.is-closed:not(.is-today) .labios-oh__hours { opacity: .7; }
.labios-oh--band .labios-oh__row.is-today { background: rgba(0, 0, 0, .04); background: color-mix(in srgb, currentColor 9%, transparent); }
.labios-oh--bold .labios-oh__row.is-today { font-weight: 600; }
.labios-oh--rows-divider .labios-oh__row + .labios-oh__row { border-top: 1px solid rgba(0, 0, 0, .08); }
.labios-oh--rows-divider .labios-oh__row { border-radius: 0; }
.labios-oh--rows-striped .labios-oh__row:nth-child(odd):not(.is-today) { background: rgba(0, 0, 0, .03); }

/* Afwijkingen */
.labios-oh__upcoming { margin-top: 1.1em; background: var(--loh-up-bg); border: 1px solid var(--loh-up-border); border-radius: var(--loh-radius); padding: .9em 1.1em; }
.labios-oh__upcoming[hidden], .labios-oh__next[hidden] { display: none; }
.labios-oh__uptitle { font-weight: 600; margin-bottom: .4em; }
.labios-oh__uprow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2em 1em; padding: .2em 0; }
.labios-oh__uphours { font-variant-numeric: tabular-nums; text-align: right; }
.labios-oh__uphours.is-closed { color: var(--loh-closed-fg); font-weight: 500; }
.labios-oh__tz { font-size: .8em; opacity: .7; margin-top: 1em; }

/* Compact */
.labios-oh--compact .labios-oh__row { margin: 0; padding: .3em 0; }
.labios-oh--compact.labios-oh--band .labios-oh__row.is-today { margin: 0 -.5em; padding: .3em .5em; }
.labios-oh__chead { display: flex; align-items: center; justify-content: space-between; gap: .75em; flex-wrap: wrap; margin-bottom: .6em; }
.labios-oh--compact .labios-oh__status { background: none; padding: 0; margin: 0; font-size: .9em; }
.labios-oh__next { font-size: .85em; opacity: .8; margin-top: .75em; padding-top: .6em; border-top: 1px solid rgba(128, 128, 128, .25); }

/* Alleen status */
.labios-oh--status { display: inline-block; }
.labios-oh--status .labios-oh__status { display: inline-flex; margin: 0; border-radius: 999px; padding: .45em .9em; font-size: .9em; }

/* Mobiel: datum onder de dagnaam */
@media (max-width: 479px) {
    .labios-oh--table:not(.labios-oh--nodates) .labios-oh__row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 0; }
    .labios-oh--table:not(.labios-oh--nodates) .labios-oh__date { grid-column: 1; grid-row: 2; }
    .labios-oh--table:not(.labios-oh--nodates) .labios-oh__hours { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
}
