#olial-plz-overlay {
  position: fixed;
  inset: 0;
  background: rgba(25, 42, 61, 0.75);
  backdrop-filter: blur(3px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: default;
}
#olial-plz-overlay.visible {
  opacity: 1;
}

#olial-plz-card {
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem 2rem 2rem;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  text-align: center;
  position: relative;
}

#olial-plz-logo {
  margin-bottom: 1.5rem;
}
#olial-plz-logo img {
  max-height: 48px;
  width: auto;
}
#olial-plz-logo span {
  font-size: 24px;
  font-weight: 700;
  color: #d45533;
  letter-spacing: -0.5px;
}

#olial-plz-card h2 {
  font-size: 20px;
  font-weight: 700;
  color: #192a3d;
  margin: 0 0 0.5rem;
  line-height: 1.3;
}
#olial-plz-card p {
  font-size: 14px;
  color: #666;
  margin: 0 0 1.5rem;
  line-height: 1.6;
}

#olial-plz-input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 0.75rem;
}
#olial-plz-input {
  flex: 1;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s;
  color: #192a3d;
}
#olial-plz-input:focus {
  border-color: #d45533;
}
#olial-plz-input.error {
  border-color: #e53e3e;
}
#olial-plz-input.success {
  border-color: #38a169;
}

#olial-plz-submit {
  background: #d45533;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.25rem;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
#olial-plz-submit:hover {
  background: #b84728;
}

#olial-plz-error {
  display: none;
  background: #fff5f5;
  border: 1px solid #fed7d7;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 13px;
  color: #c53030;
  margin-bottom: 0.75rem;
  text-align: left;
  line-height: 1.5;
}
#olial-plz-error.visible {
  display: block;
}
#olial-plz-success {
  display: none;
  background: #f0fff4;
  border: 1px solid #c6f6d5;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 13px;
  color: #276749;
  margin-bottom: 0.75rem;
  text-align: left;
}
#olial-plz-success.visible {
  display: block;
}

#olial-plz-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
  color: #bbb;
  font-size: 12px;
}
#olial-plz-divider::before,
#olial-plz-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #eee;
}

#olial-plz-geo {
  width: 100%;
  background: #fff;
  color: #192a3d;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 0.7rem 1rem;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: border-color 0.2s, color 0.2s;
}
#olial-plz-geo:hover {
  border-color: #d45533;
  color: #d45533;
}
#olial-plz-geo svg {
  flex-shrink: 0;
}
#olial-plz-geo-status {
  font-size: 12px;
  color: #999;
  margin-top: 0.5rem;
  min-height: 18px;
}

#olial-plz-hint {
  margin-top: 1.25rem;
  font-size: 12px;
  color: #aaa;
}
#olial-plz-hint a {
  color: #d45533;
  text-decoration: none;
}

@media (max-width: 480px) {
  #olial-plz-card {
    padding: 2rem 1.25rem 1.5rem;
    border-radius: 12px;
  }
  #olial-plz-input-row {
    flex-direction: column;
  }
  #olial-plz-submit {
    width: 100%;
  }
}

/* Modal max-height für mobile – Card scrollbar wenn nötig */
#olial-plz-card {
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
}

/* Datenschutz-Toggle */
#olial-plz-privacy-toggle {
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
  color: #d45533;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
#olial-plz-privacy-toggle:hover {
  color: #b84728;
}
#olial-plz-privacy-arrow {
  display: inline-block;
  font-size: 10px;
  margin-left: 2px;
  transition: transform 0.2s ease;
}

/* Ausgeklappter Datenschutz-Block */
#olial-plz-privacy-text {
  background: #f7f9fc;
  border: 1px solid #e0e8f0;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-top: 0.5rem;
  text-align: left;
}
#olial-plz-privacy-text p {
  font-size: 12px;
  color: #555;
  margin: 0 0 0.5rem;
  line-height: 1.5;
}
#olial-plz-privacy-text p:last-child { margin-bottom: 0; }
#olial-plz-privacy-text a {
  color: #d45533;
  text-decoration: underline;
}
#olial-plz-privacy-text code {
  font-size: 11px;
  background: #eef2f7;
  padding: 1px 4px;
  border-radius: 3px;
}

#olial-delivery-label { color: inherit; }
#olial-delivery-btn.plz-ok #olial-delivery-label::before {
  content: '● ';
  color: #2ecc71;
}
