.hok-opening-hours {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: inherit;
}

.hok-opening-hours__status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
  cursor: pointer;
}

.hok-opening-hours__label {
  font-weight: 600;
  transition: color 200ms ease;
}

.hok-opening-hours__indicator {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--hok-color-success, #2f7d4f);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25);
}

.hok-opening-hours--closed .hok-opening-hours__indicator {
  background: var(--hok-color-danger, #ab2346);
}

.hok-opening-hours__toggle {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
}

.hok-opening-hours__toggle:hover,
.hok-opening-hours__toggle:focus-visible {
  background: rgba(255, 255, 255, 0.16);
}

.hok-opening-hours__panel {
  position: absolute;
  inset-inline-start: 0;
  top: calc(100% + 0.5rem);
  min-width: min(320px, 90vw);
  background: rgba(5, 29, 64, 0.95);
  color: #fff;
  padding: 1rem 1.25rem;
  border-radius: 16px;
  box-shadow: 0 28px 50px rgba(5, 29, 64, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.18);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 200ms ease, transform 200ms ease, visibility 200ms ease;
  z-index: 300;
}

.hok-opening-hours__panel[aria-hidden="false"] {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.hok-opening-hours__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.hok-opening-hours__table th,
.hok-opening-hours__table td {
  text-align: left;
  padding-block: 0.35rem;
}

.hok-opening-hours__table tr + tr td,
.hok-opening-hours__table tr + tr th {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.hok-opening-hours--layout {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  background: var(--bg-surface, rgba(6, 30, 64, 0.85));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: var(--hok-radius-lg, 16px);
  border: 1px solid var(--border-glass, rgba(203, 213, 222, 0.18));
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  color: var(--c-platinum, #EDEDED);
  margin-bottom: 30px;
}

.hok-opening-hours--layout .hok-opening-hours__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.hok-opening-hours--layout .hok-opening-hours__title {
  margin: 0;
  font-family: var(--wp--preset--font-family--poppins, "Poppins", sans-serif);
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
}

.hok-opening-hours--layout .hok-opening-hours__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1.15rem;
  border-radius: 999px;
  background: rgba(115, 169, 205, 0.12);
  border: 1px solid rgba(115, 169, 205, 0.3);
}

.hok-opening-hours--layout .hok-opening-hours__toggle {
  display: none !important;
}

.hok-opening-hours--layout .hok-opening-hours__content {
  width: 100%;
}

.hok-opening-hours--layout .hok-opening-hours__panel {
  position: static !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  min-width: 100% !important;
  width: 100% !important;
  z-index: 1 !important;
}

.hok-opening-hours--layout.hok-opening-hours--open .hok-opening-hours__label {
  color: #34d399;
  font-weight: 700;
}

.hok-opening-hours--layout.hok-opening-hours--closed .hok-opening-hours__label {
  color: #f87171;
  font-weight: 700;
}

.hok-opening-hours--layout .hok-opening-hours__meta {
  color: var(--c-pale-slate-2, #CBD5DE);
  font-size: 0.88rem;
  margin-left: 0.25rem;
}

.hok-opening-hours--layout .hok-opening-hours__table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
}

.hok-opening-hours--layout .hok-opening-hours__table tr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0;
  border-top: 1px solid rgba(203, 213, 222, 0.14);
}

.hok-opening-hours--layout .hok-opening-hours__table tr:first-child {
  border-top: none;
}

.hok-opening-hours--layout .hok-opening-hours__table th {
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  padding: 0 !important;
  border: none !important;
}

.hok-opening-hours--layout .hok-opening-hours__table td {
  color: var(--c-platinum, #EDEDED) !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  padding: 0 !important;
  border: none !important;
  text-align: right !important;
}

@media (max-width: 600px) {
  .hok-opening-hours__panel {
    position: fixed;
    inset-inline: 1.5rem;
    top: auto;
    bottom: 1.5rem;
  }
}
