/* ===== Teljes nyitvatartás doboz ===== */
.cny-box {
  max-width: 400px;
  margin: 40px auto;
  padding: 26px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 12px 35px rgba(0,0,0,0.08);
  font-family: "Segoe UI", Roboto, sans-serif;
  position: relative;
  overflow: hidden;
  transition: 0.25s ease;
  box-sizing: border-box;
}

.cny-box::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(90deg,
    #00aeef 0 12.5%, #ec008c 12.5% 25%, #fff200 25% 37.5%, #231f20 37.5% 50%,
    #00aeef 50% 62.5%, #ec008c 62.5% 75%, #fff200 75% 87.5%, #231f20 87.5% 100%);
  background-size: 200% 100%;
  animation: cnySlideGradient 8s linear infinite;
}

/* Kék csík (Beállítások → Nyitvatartás → Felső csík színe: Kék) */
.cny-box.cny-stripe-blue::before,
.cny-today.cny-stripe-blue::before {
  background: linear-gradient(90deg, #2563eb, #3b82f6, #2563eb);
  background-size: 200% 100%;
  animation: cnySlideGradient 4s linear infinite;
}

@keyframes cnySlideGradient {
  0%   { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.cny-box h3 {
  text-align: center;
  margin: 0 0 12px;
  padding: 0;
  font-family: inherit;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 600;
  color: #111827;
  text-transform: none;
  letter-spacing: normal;
}

.cny-box .cny-badge {
  font-size: 13px;
  padding: 5px 14px;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-weight: 700;
  width: fit-content;
  text-align: center;
  margin: 0 auto 10px auto;
  box-shadow: 0 4px 15px rgba(37,99,235,0.3);
  animation: cnyFloatPulse 2s ease-in-out infinite;
}

@keyframes cnyFloatPulse {
  0%   { transform: translateY(0) scale(1);       box-shadow: 0 4px 15px rgba(37,99,235,0.3); }
  50%  { transform: translateY(-4px) scale(1.08); box-shadow: 0 8px 20px rgba(37,99,235,0.45); }
  100% { transform: translateY(0) scale(1);       box-shadow: 0 4px 15px rgba(37,99,235,0.3); }
}

.cny-box .cny-countdown {
  text-align: center;
  font-size: 13px;
  margin-bottom: 15px;
  color: #6b7280;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: color 0.3s ease;
  min-height: 1em;
}

.cny-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cny-box li::marker { content: none; }

.cny-box li {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  position: relative;
  transition: background 0.3s ease;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.6;
  color: #1f2937;
  margin: 0;
  list-style: none;
}

.cny-box li:last-child { border-bottom: none; }

.cny-box li.today {
  background: #eff6ff;
  border-radius: 8px;
}

.cny-box li.today::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  background: #2563eb;
  border-radius: 4px;
}

.cny-box .cny-time   { text-align: right; }
.cny-box .cny-closed { color: #dc2626; }

/* ===== Kompakt doboz: [compnet_nyitvatartas meret="kompakt"] ===== */
.cny-box.cny-compact {
  max-width: 320px;
  margin: 0 auto;
  padding: 16px 16px 12px;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.07);
  text-align: center;
}

.cny-box.cny-compact::before { height: 3px; border-radius: 0; }

.cny-box.cny-compact h3 {
  font-size: 17px;
  margin: 0 0 8px;
}

/* badge + visszaszámláló egy sorban */
.cny-box.cny-compact .cny-status,
.cny-box.cny-compact .cny-countdown {
  display: inline-block;
  vertical-align: middle;
}

.cny-box.cny-compact .cny-status { margin: 0 6px 8px 0; line-height: 1; }

.cny-box.cny-compact .cny-badge {
  font-size: 11px;
  padding: 3px 10px;
  margin: 0;
  animation-name: cnyFloatPulseSm;
}

.cny-box.cny-compact .cny-countdown {
  font-size: 12px;
  margin: 0 0 8px;
}

.cny-box.cny-compact ul { text-align: left; margin-top: 4px; }

.cny-box.cny-compact li {
  grid-template-columns: 110px 1fr;
  padding: 5px 10px;
  font-size: 13px;
  line-height: 1.4;
}

.cny-box.cny-compact li.today { border-radius: 6px; }
.cny-box.cny-compact li.today::before { top: 4px; bottom: 4px; width: 3px; }

/* ===== Egysoros fejléc widget ===== */
.cny-today {
  display: flex;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  justify-content: center;
  text-align: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  padding: 9px 18px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  font-family: "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 700;
  color: #1f2937;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  vertical-align: middle;
}

.cny-today.cny-align-left  { margin-left: 0; margin-right: auto; }
.cny-today.cny-align-right { margin-left: auto; margin-right: 0; }

.cny-today::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    #00aeef 0 12.5%, #ec008c 12.5% 25%, #fff200 25% 37.5%, #231f20 37.5% 50%,
    #00aeef 50% 62.5%, #ec008c 62.5% 75%, #fff200 75% 87.5%, #231f20 87.5% 100%);
  background-size: 200% 100%;
  animation: cnySlideGradient 8s linear infinite;
}

.cny-today .cny-today-main {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.cny-today.is-closed .cny-today-text { color: #dc2626; }

.cny-today .cny-loc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  color: #111827;
}

.cny-today .cny-badge {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(37,99,235,0.3);
  animation: cnyFloatPulseSm 2s ease-in-out infinite;
}

@keyframes cnyFloatPulseSm {
  0%   { transform: translateY(0) scale(1);       box-shadow: 0 3px 10px rgba(37,99,235,0.3); }
  50%  { transform: translateY(-2px) scale(1.06); box-shadow: 0 6px 14px rgba(37,99,235,0.45); }
  100% { transform: translateY(0) scale(1);       box-shadow: 0 3px 10px rgba(37,99,235,0.3); }
}

.cny-today .cny-sep {
  width: 1px;
  height: 16px;
  background: #e5e7eb;
}

.cny-today .cny-countdown {
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.cny-today .cny-countdown:empty { display: none; }

/* Keskeny kijelzőn tördeléskor ne lógjon az elválasztó */
@media (max-width: 600px) {
  .cny-today .cny-sep { display: none !important; }
}
