/* KT Market Live — bestaande Claude-huisstijl */

#kt-market-live {
  margin: 28px 0;
  color: #292524;
}

#kt-market-live [hidden] {
  display: none !important;
}

#kt-market-live .ml-card {
  background: #fff;
  border: 1px solid #e7e5e4;
  border-top: 5px solid var(--ml-color, #ec4899);
  border-radius: 14px;
  padding: clamp(18px, 4vw, 32px);
  box-shadow: 0 12px 32px rgba(69,26,3,.07);
}

#kt-market-live .ml-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

#kt-market-live .ml-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: #92400e;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

#kt-market-live .ml-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f59e0b;
  flex-shrink: 0;
}

#kt-market-live[data-state="open"] .ml-dot {
  background: #16a34a;
  animation: ml-pulse 2s infinite;
}

#kt-market-live[data-state="open"] .ml-status {
  color: #166534;
}

#kt-market-live .ml-city {
  margin: 0;
  color: #451a03;
  font-size: clamp(1.7rem, 5vw, 2.8rem);
  font-weight: 900;
  line-height: 1.1;
}

#kt-market-live .ml-date {
  color: #57534e;
  margin: 10px 0 0;
  font-weight: 700;
}

#kt-market-live .ml-stall {
  width: clamp(80px, 24vw, 145px);
  flex-shrink: 0;
  animation: ml-float 4s ease-in-out infinite;
}

#kt-market-live .ml-details {
  border-top: 1px solid #e7e5e4;
  margin-top: 20px;
  padding-top: 16px;
}

#kt-market-live .ml-details p {
  margin: 9px 0;
  color: #57534e;
  line-height: 1.55;
}

#kt-market-live .ml-countdown {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 14px;
  padding: 18px 12px;
  margin-top: 22px;
  text-align: center;
}

#kt-market-live .ml-countdown-label {
  margin: 0 0 14px;
  color: #78350f;
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

#kt-market-live .ml-clock {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: clamp(5px, 2vw, 12px);
}

#kt-market-live .ml-clock div {
  padding: 12px 4px;
  background: #fff;
  border: 1px solid #e7e5e4;
  border-radius: 12px;
}

#kt-market-live .ml-clock b {
  display: block;
  font-size: clamp(1.5rem, 6vw, 2.7rem);
  line-height: 1;
  color: #451a03;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

#kt-market-live .ml-clock span {
  display: block;
  margin-top: 7px;
  color: #92400e;
  font-size: .68rem;
  text-transform: uppercase;
}

#kt-market-live .ml-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

#kt-market-live .ml-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border: 0;
  padding: 12px 20px;
  border-radius: 999px;
  background: #78350f;
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

#kt-market-live .ml-button:hover {
  background: #92400e;
}

#kt-market-live .ml-button:focus-visible {
  outline: 3px solid #f59e0b;
  outline-offset: 3px;
}

#kt-market-live .ml-secondary {
  color: #78350f;
  background: #fffbeb;
  border: 1px solid #d6b38a;
}

#kt-market-live .ml-secondary:hover {
  background: #fef3c7;
}

#kt-market-live .ml-note {
  font-size: .85rem;
  color: #78716c;
  line-height: 1.5;
}

#kt-market-live .ml-notice {
  padding: 12px;
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
  border-radius: 4px;
}

#kt-market-live .ml-nav {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid #e7e5e4;
  border-radius: 14px;
  background: #fffbeb;
}

#kt-market-live .ml-nav h3 {
  color: #451a03;
  margin: 0 0 12px;
}

#kt-market-live .ml-nav a,
#kt-market-live .ml-nav button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
  padding: 14px;
  margin: 8px 0;
  border: 1px solid #e7e5e4;
  border-radius: 12px;
  background: #fff;
  color: #451a03;
  text-decoration: none;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

#kt-market-live .ml-map {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid #e7e5e4;
  border-radius: 14px;
}

#kt-market-live .ml-map iframe {
  display: block;
  border: 0;
  width: 100%;
  height: 320px;
}

#kt-market-live .ml-week {
  margin-top: 22px;
  display: grid;
  gap: 14px;
  grid-template-columns:
    repeat(auto-fit,minmax(200px,1fr));
}

#kt-market-live .ml-week button {
  text-align: left;
  background: #fff;
  border: 1px solid #e7e5e4;
  border-top: 5px solid var(--ml-color);
  border-radius: 14px;
  padding: 18px;
  font: inherit;
  color: #292524;
  cursor: pointer;
}

#kt-market-live .ml-week strong {
  display: block;
  color: #1c1917;
  font-size: 1.1rem;
}

#kt-market-live .ml-week span {
  display: block;
  color: #57534e;
  margin-top: 5px;
  font-size: .9rem;
}

#kt-market-live .ml-week button[aria-pressed="true"] {
  outline: 2px solid #78350f;
  outline-offset: 2px;
}

@keyframes ml-float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes ml-pulse {
  0% { box-shadow: 0 0 0 0 #16a34a66; }
  100% { box-shadow: 0 0 0 12px #16a34a00; }
}

@media(max-width:480px) {
  #kt-market-live .ml-actions {
    flex-direction: column;
  }
}

@media(prefers-reduced-motion:reduce) {
  #kt-market-live *,
  #kt-market-live *::before,
  #kt-market-live *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Integratie in bestaande webshopvormgeving. */
.kt-market-app #kt-market-live .ml-card,
.kt-market-app #kt-market-live .ml-countdown,
.kt-market-app #kt-market-live .ml-clock div,
.kt-market-app #kt-market-live .ml-week button,
.kt-market-app #kt-market-live .ml-nav,
.kt-market-app #kt-market-live .ml-map {
  border-radius: 2px;
}

.kt-market-app #kt-market-live .ml-button {
  border-radius: 2px;
}
