/* ============================================================
   Klinik Opening Hours – koh.css  v4
   Kun sidebar + trigger. Ingen block-styling – du styler selv.
   ============================================================ */

/* Trigger – arver al typografi fra YOOtheme */
.koh-trigger,
.koh-trigger:hover,
.koh-trigger:focus,
.koh-trigger:visited,
a.koh-trigger,
a.koh-trigger:hover {
    cursor: pointer;
    text-decoration: none !important;
}

.koh-trigger:hover {
    opacity: 0.75;
}

.koh-trigger:focus {
    outline: 2px solid currentColor;
    outline-offset: 3px;
    border-radius: 2px;
}

/* Backdrop */
.koh-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.30);
    z-index: 99998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.koh-backdrop.is-open {
    opacity: 1;
    pointer-events: all;
}

/* Sidebar */
.koh-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 400px;
    max-width: 100vw;
    background: #ffffff;
    box-shadow: -4px 0 32px rgba(0, 0, 0, 0.12);
    z-index: 99999;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

.koh-sidebar.is-open {
    transform: translateX(0);
}

.koh-sidebar-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
}

/* Sidebar header */
.koh-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 28px 20px;
    border-bottom: 1px solid #e8edf2;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
}

.koh-sidebar-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #0d2340;
    margin: 0;
    padding: 0;
    border: none;
    line-height: 1;
}

.koh-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid #dce4ed;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    color: #0d2340;
    transition: background 0.2s;
    padding: 0;
}

.koh-close:hover  { background: #f0f4f8; }
.koh-close:focus  { outline: 2px solid #0d2340; outline-offset: 2px; }

/* Hours list */
.koh-list {
    list-style: none;
    margin: 0;
    padding: 8px 0;
    flex: 1;
}

.koh-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 13px 28px;
    font-size: 15px;
    color: #0d2340;
    border-bottom: 1px solid #f0f4f8;
}

.koh-row:last-child { border-bottom: none; }

.koh-row.koh-today {
    background: #f0f6ff;
    font-weight: 700;
}

.koh-row.koh-today .koh-day::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #0d2340;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

.koh-row.koh-closed .koh-time {
    color: #aab8c8;
    font-style: italic;
    font-weight: 400;
}

.koh-day  { flex: 0 0 auto; min-width: 90px; }
.koh-time { text-align: right; }

.koh-note {
    display: block;
    font-size: 12px;
    color: #8a9db5;
    font-style: italic;
    font-weight: 400;
    margin-top: 2px;
}

/* Responsive */
@media (max-width: 480px) {
    .koh-sidebar { width: 100vw; }
    .koh-sidebar-header,
    .koh-row { padding-left: 20px; padding-right: 20px; }
}
