/* Wollelini Hochzeitstorten Popup */

/* CTA Button */
.wl-torte-trigger {
  background: rgb(255, 64, 124);
  color: #fff;
  border: none;
  padding: 14px 32px;
  font-size: 16px;
  font-family: inherit;
  font-weight: 500;
  border-radius: 0.3rem;
  cursor: pointer;
  transition: background 0.3s ease;
  display: inline-block;
  text-decoration: none;
  line-height: 1.4;
}
.wl-torte-trigger:hover {
  background: rgb(255, 84, 138);
  color: #fff;
}

/* Overlay */
.wl-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 999999;
  justify-content: center;
  align-items: center;
}
.wl-overlay.active {
  display: flex;
  animation: wl-fadeIn 0.3s ease;
}

@keyframes wl-fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes wl-slideUp {
  from { opacity: 0; transform: translateY(30px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Pop-up Container */
.wl-popup {
  background: #fff;
  border-radius: 0.3rem;
  width: 90%;
  max-width: 520px;
  position: relative;
  animation: wl-slideUp 0.4s ease;
  overflow: hidden;
  max-height: 90vh;
  overflow-y: auto;
}

/* Header */
.wl-popup-header {
  background: linear-gradient(135deg, rgb(255, 64, 124), rgb(255, 120, 160));
  padding: 32px 36px 28px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.wl-popup-header::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}
.wl-popup-header::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 30%;
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 50%;
}
.wl-popup-header h2 {
  margin: 0 0 8px 0;
  position: relative;
  z-index: 1;
  color: #fff !important;
}
.wl-popup-header p {
  font-size: 14px;
  font-weight: 300;
  opacity: 0.92;
  line-height: 1.5;
  position: relative;
  z-index: 1;
  margin: 0;
}

/* Close */
.wl-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  z-index: 2;
  line-height: 1;
  padding: 0;
}
.wl-close:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* Form Body */
.wl-popup-body {
  padding: 28px 36px 36px;
}

.wl-form-group {
  margin-bottom: 20px;
  position: relative;
}
.wl-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #555;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.wl-form-group input,
.wl-form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #e0e0e0;
  border-radius: 0.3rem;
  font-family: inherit;
  font-size: 15px;
  font-weight: 300;
  color: #333;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  outline: none;
  background: #fafafa;
}
.wl-form-group input:focus,
.wl-form-group textarea:focus {
  border-color: rgb(255, 64, 124);
  box-shadow: 0 0 0 3px rgba(255, 64, 124, 0.1);
  background: #fff;
}
.wl-form-group input::placeholder,
.wl-form-group textarea::placeholder {
  color: #bbb;
  font-weight: 300;
}
.wl-form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* Two columns */
.wl-form-row {
  display: flex;
  gap: 16px;
}
.wl-form-row .wl-form-group {
  flex: 1;
}

/* Submit */
.wl-submit {
  width: 100%;
  padding: 14px;
  background: rgb(255, 64, 124);
  color: #fff;
  border: none;
  border-radius: 0.3rem;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.15s ease;
  letter-spacing: 0.02em;
}
.wl-submit:hover {
  background: rgb(255, 84, 138);
  transform: translateY(-1px);
}
.wl-submit:active {
  transform: translateY(0);
}
.wl-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Error */
.wl-error {
  margin-top: 12px;
  padding: 10px 14px;
  background: #fff0f0;
  border: 1px solid #ffcccc;
  border-radius: 0.3rem;
  color: #cc3333;
  font-size: 14px;
  text-align: center;
}

/* Success */
.wl-success {
  display: none;
  text-align: center;
  padding: 40px 36px;
}
.wl-success.active {
  display: block;
}
.wl-success-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgb(255, 64, 124), rgb(255, 120, 160));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
  color: #fff;
}
.wl-success h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  color: #333;
  margin-bottom: 8px;
}
.wl-success p {
  font-size: 14px;
  color: #777;
  line-height: 1.5;
}

/* ==============================
   Torte bestellen Sektion (Widget)
   ============================== */
.wl-ts-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.wl-ts-icon {
  line-height: 1;
  margin-bottom: 20px;
}
.wl-ts-divider {
  width: 40px;
  height: 2px;
  margin: 0 auto 16px;
  opacity: 0.4;
}
.wl-ts-heading {
  margin: 0 0 8px 0;
}
.wl-ts-desc {
  margin: 0 0 24px 0;
  color: #666;
}
.wl-ts-btn {
  display: inline-block;
  border: none;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.3s ease;
  text-decoration: none;
  line-height: 1.4;
}

/* ==============================
   Inline Formular (Shortcode)
   ============================== */
.wl-inline-form-wrapper {
  max-width: 560px;
  margin: 0 auto;
}
.wl-inline-success {
  display: none;
  text-align: center;
  padding: 40px 0;
}
.wl-inline-success .wl-success-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgb(255, 64, 124), rgb(255, 120, 160));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
  color: #fff;
}
.wl-inline-success h3 {
  color: #333;
  margin-bottom: 8px;
}
.wl-inline-success p {
  color: #777;
  line-height: 1.5;
}

/* Datenschutz Checkbox */
.wl-privacy-check label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  cursor: pointer;
}
.wl-privacy-check input[type="checkbox"] {
  width: auto;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: rgb(255, 64, 124);
}
.wl-privacy-check a {
  color: rgb(255, 64, 124);
  text-decoration: underline;
}
.wl-privacy-check a:hover {
  color: rgb(255, 84, 138);
}

/* Responsive */
@media (max-width: 560px) {
  .wl-popup { width: 95%; }
  .wl-popup-header { padding: 24px 24px 20px; }
  .wl-popup-body { padding: 20px 24px 28px; }
  .wl-form-row { flex-direction: column; gap: 0; }
  .wl-popup-header h2 { font-size: 20px; }
}
