/* ── Overlay ── */
.wb-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30,24,16,.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 20px;
  overflow-y: auto;
}

.wb-modal-overlay.open {
  display: flex;
}

/* ── Modal Box ── */
.wb-modal {
  background: #fff;
  border-radius: 24px;
  width: 100%;
  max-width: 480px;
  padding: 44px 40px;
  position: relative;
  box-shadow: 0 24px 80px rgba(30,24,16,.2);
  margin: auto;
  animation: wb-modal-in .3s cubic-bezier(.34,1.56,.64,1);
}

@keyframes wb-modal-in {
  from { opacity: 0; transform: translateY(16px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Close Button ── */
.wb-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--light);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  color: var(--mid);
  transition: background .15s;
  line-height: 1;
}

.wb-modal-close:hover {
  background: var(--border);
}

/* ── Heading ── */
.wb-modal h3 {
  font-family: 'Lora', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 8px;
  padding-right: 32px;
}

.wb-modal-subtitle {
  word-break: normal;
  overflow-wrap: break-word;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--mid);
  margin: 0 0 24px;
  line-height: 1.6;
}

/* ── Standort Liste ── */
.wb-modal-locations {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wb-modal-locations li .wb-modal-option-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  font-family: 'DM Sans', sans-serif;
}

.wb-modal-locations li .wb-modal-option-label:hover {
  border-color: rgba(30,24,16,.2);
  background: var(--light);
}

.wb-modal-locations li .wb-modal-option-label.selected {
  border-color: var(--dark);
  background: var(--light);
}

.wb-loc-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .15s, background .15s;
  position: relative;
}

.wb-modal-option-label.selected .wb-loc-radio {
  border-color: var(--dark);
  background: var(--dark);
}

.wb-modal-option-label.selected .wb-loc-radio::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
}

.wb-loc-content strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 2px;
}

.wb-loc-content span {
  font-size: 12px;
  color: var(--mid);
  line-height: 1.5;
}

/* ── Confirm Button ── */
.wb-modal-confirm {
  display: block;
  width: 100%;
  background: var(--dark);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  padding: 15px 24px;
  cursor: pointer;
  transition: background .2s, opacity .2s;
  opacity: .35;
  pointer-events: none;
}

.wb-modal-confirm.active {
  opacity: 1;
  pointer-events: all;
}

.wb-modal-confirm.active:hover {
  background: #3a3026;
}

/* ── Trigger Button ── */
.wb-pickup-trigger-wrap {
  margin: 0 0 16px;
}

.wb-pickup-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--dark);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  padding: 14px 24px;
  cursor: pointer;
  transition: background .2s, transform .15s;
  width: 100%;
  justify-content: center;
}

.wb-pickup-trigger:hover {
  background: #3a3026;
  transform: translateY(-1px);
}

/* ── Selected Anzeige ── */
.wb-pickup-selected {
  display: none;
  align-items: center;
  gap: 10px;
  background: #eef7f3;
  border: 1.5px solid rgba(46,125,94,.2);
  border-radius: 10px;
  padding: 12px 16px;
  margin-top: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
}

.wb-pickup-selected.visible {
  display: flex;
}

.wb-pickup-selected-icon {
  color: #2E7D5E;
  flex-shrink: 0;
}

.wb-pickup-selected-text strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
}

.wb-pickup-change {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--strawberry);
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  
}

/* ── Add-to-Cart deaktiviert ── */
.single_add_to_cart_button.disabled-until-pickup {
  opacity: .4 !important;
  pointer-events: none !important;
}

/* ── Mobil ── */
@media (max-width: 480px) {
  .wb-modal {
    padding: 32px 20px;
    border-radius: 18px;
  }

  .wb-modal-overlay {
    padding: 16px;
    align-items: flex-start;
  }
}

/* ── Info Link ── */
.wb-info-link {
  color: var(--strawberry);
  font-weight: 600;
  text-decoration: none;
  
}
.wb-info-link:hover {
  text-decoration: underline;
}

/* ── Info Modal ── */
.wb-info-overlay {
  z-index: 100000;
}

.wb-info-modal {
  max-width: 520px;
}

/* ── Info Karten ── */
.wb-info-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.wb-info-card {
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  background: var(--light);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  align-items: flex-start;
}

.wb-info-card-left {
  padding-top: 4px;
  flex-shrink: 0;
}

.wb-info-dot {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--strawberry);
}

.wb-info-card-body strong {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 2px;
}

.wb-info-addr {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: var(--mid);
  margin-bottom: 6px;
}

.wb-info-time {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--strawberry);
}

.wb-info-time svg {
  flex-shrink: 0;
  stroke: var(--strawberry);
}

/* ── Zurück Button ── */
.wb-info-back {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  padding: 10px 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--mid);
  cursor: pointer;
  transition: border-color .15s, color .15s;
}

.wb-info-back:hover {
  border-color: var(--dark);
  color: var(--dark);
}

.wb-info-back svg {
  stroke: currentColor;
}
