#wcr-popup {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9000;
}

#wcr-popup.is-open {
  display: flex;
}

.wcr-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.wcr-modal {
  background: #fff;
  padding: 30px;
  border-radius: 20px;
  width: min(92vw, 720px);
  position: relative;
  z-index: 9001;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.wcr-modal h2 {
  font-size: 42px;
  line-height: 1.05;
  margin: 0 0 24px;
  font-weight: 800;
  color: #111827;
}

.wcr-modal label {
  display: block;
  margin: 0 0 8px;
  font-weight: 600;
  color: #111827;
}

.wcr-modal input[type="date"],
.wcr-modal select,
.wcr-box input[type="date"],
.wcr-box select {
  width: 100%;
  min-height: 58px;
  border: 1px solid #d1d5db;
  border-radius: 16px;
  padding: 0 18px;
  font-size: 22px;
  box-sizing: border-box;
  background: #fff;
  margin-bottom: 16px;
  color: #111827;
}

.wcr-primary-button {
  width: 100%;
  min-height: 62px;
  border: 0;
  border-radius: 14px;
  font-size: 22px;
  cursor: pointer;
  background: #111827;
  color: #fff;
}

.wcr-close {
  position: absolute;
  top: 10px;
  right: 18px;
  border: 0;
  background: none;
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
  color: #111827;
}

body.wcr-modal-open {
  overflow: hidden;
}

.wcr-box {
  margin: 20px 0;
  padding: 16px;
  border: 1px solid #ddd;
  background: #fafafa;
  border-radius: 14px;
}

/* Floating levering-knap */
.wcr-floating-button {
  position: fixed;
  left: 18px;
  right: auto;
  bottom: 18px;
  z-index: 1000;
  min-width: 220px;
  max-width: 280px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #ffffff;
  color: #111827;
  padding: 16px 18px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  line-height: 1.25;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wcr-floating-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.14);
}

.wcr-floating-button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.12), 0 12px 28px rgba(0, 0, 0, 0.12);
}

.wcr-floating-button strong {
  display: block;
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
  color: #111827;
}

.wcr-floating-button small {
  display: block;
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
  color: #6b7280;
}

.wcr-date-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 10px;
  flex-wrap: wrap;
}

.wcr-date-row--closed-day .wcr-date-input {
  width: 180px;
}

.wcr-date-input {
  width: 180px;
}

.wcr-checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-weight: 500;
}

.wcr-hours-table th,
.wcr-hours-table td {
  vertical-align: middle;
}

.wcr-popup-message {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid #d63638;
  background: #fff5f5;
  color: #8a1f1f;
  border-radius: 8px;
  font-weight: 500;
}

/* Opening hours shortcodes */

.wcr-opening-hours-wrap {
  display: grid;
  gap: 16px;
}

.wcr-opening-status-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
}

.wcr-opening-status-card.state-open {
  border-color: #d7eadf;
  background: #f7fbf8;
}

.wcr-opening-status-card.state-closed,
.wcr-opening-status-card.state-opening-later {
  border-color: #e5e7eb;
  background: #fff;
}

.wcr-opening-status-card--single {
  max-width: 680px;
}

.wcr-opening-status-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  background: #f1f3f4;
  color: #202124;
}

.state-open .wcr-opening-status-badge {
  background: #e6f4ea;
  color: #137333;
}

.state-closed .wcr-opening-status-badge,
.state-opening-later .wcr-opening-status-badge {
  background: #f1f3f4;
  color: #3c4043;
}

.wcr-opening-status-text {
  min-width: 0;
}

.wcr-opening-status-headline {
  font-size: 18px;
  line-height: 1.4;
  font-weight: 600;
  color: #202124;
}

.wcr-opening-status-detail {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.5;
  color: #5f6368;
}

.wcr-opening-hours {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

.wcr-opening-hours-table {
  width: 100%;
  border-collapse: collapse;
}

.wcr-opening-hours-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #f1f3f4;
}

.wcr-opening-hours-table tr:last-child td {
  border-bottom: 0;
}

.wcr-opening-hours-table td:first-child {
  font-weight: 600;
  color: #202124;
  width: 40%;
}

.wcr-opening-hours-table td:last-child {
  color: #5f6368;
}

/* Mobil */
@media (max-width: 767px) {
  .wcr-modal {
    width: min(94vw, 720px);
    padding: 22px 18px;
    border-radius: 18px;
  }

  .wcr-modal h2 {
    font-size: 30px;
    margin-bottom: 18px;
  }

  .wcr-modal input[type="date"],
  .wcr-modal select,
  .wcr-box input[type="date"],
  .wcr-box select {
    min-height: 52px;
    font-size: 18px;
    border-radius: 14px;
    padding: 0 14px;
  }

  .wcr-primary-button {
    min-height: 56px;
    font-size: 18px;
    border-radius: 12px;
  }

  .wcr-floating-button {
    left: 12px;
    right: auto;
    bottom: 12px;
    min-width: 190px;
    max-width: calc(100vw - 24px);
    padding: 12px 14px;
    border-radius: 14px;
  }

  .wcr-floating-button strong {
    font-size: 16px;
  }

  .wcr-floating-button small {
    font-size: 13px;
  }

  .wcr-opening-status-card {
    padding: 14px;
    border-radius: 14px;
  }

  .wcr-opening-hours {
    border-radius: 14px;
  }

  .wcr-opening-hours-table td {
    padding: 12px 14px;
  }
}

/* Pickup-only / opening-hours note hardening */
.wcr-opening-hours .wcr-time-main,
.wcr-opening-hours-table .wcr-time-main {
  display: block !important;
}

.wcr-opening-hours .wcr-time-note,
.wcr-opening-hours-table .wcr-time-note {
  display: block !important;
  margin-top: 4px;
  font-size: 0.86em;
  line-height: 1.35;
  color: #666;
}


/* Produktbygger lås: kræv dato/tid før kunden sammensætter menu */
.wcr-product-builder-lock {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
}

.wcr-product-builder-lock__title {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 800;
  color: #111827;
}

.wcr-product-builder-lock__text {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.45;
  color: #4b5563;
}

.wcr-product-builder-lock__button {
  min-height: 44px;
  border-radius: 12px !important;
  font-weight: 700 !important;
}

form.cart.wcr-menu-builder-is-locked {
  opacity: 0.55;
}

form.cart.wcr-menu-builder-is-locked input,
form.cart.wcr-menu-builder-is-locked select,
form.cart.wcr-menu-builder-is-locked textarea,
form.cart.wcr-menu-builder-is-locked button {
  cursor: not-allowed;
}
