/**
 * Styling for PrestaShop 9.1.x Widerrufsbutton Module
 */

.widerruf-wrapper {
  max-width: 680px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.widerruf-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 2.5rem;
  transition: all 0.3s ease;
}

.widerruf-header {
  text-align: center;
  margin-bottom: 2rem;
}

.widerruf-icon {
  font-size: 3rem;
  color: #0d9488; /* Deep Teal */
  background: #f0fdfa;
  padding: 1rem;
  border-radius: 50%;
  margin-bottom: 1rem;
  display: inline-block;
}

.widerruf-subtitle {
  font-size: 1.1rem;
  color: #4b5563; /* Cool gray */
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.widerruf-law-note {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9ca3af;
  font-weight: 600;
}

.widerruf-alert {
  border-radius: 8px;
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.widerruf-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.widerruf-group label {
  font-size: 0.95rem;
  color: #374151;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.widerruf-input,
.widerruf-textarea,
.widerruf-select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background-color: #f9fafb;
  color: #1f2937;
  transition: all 0.2s ease-in-out;
}

.widerruf-input:focus,
.widerruf-textarea:focus,
.widerruf-select:focus {
  border-color: #0d9488;
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.15);
  outline: none;
}

.widerruf-textarea {
  resize: vertical;
}

.widerruf-consent-group {
  display: flex;
  align-items: flex-start;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.widerruf-checkbox {
  width: 1.2rem;
  height: 1.2rem;
  margin-right: 0.75rem;
  margin-top: 0.15rem;
  cursor: pointer;
  accent-color: #0d9488;
}

.widerruf-checkbox + label {
  font-size: 0.95rem;
  color: #374151;
  cursor: pointer;
  line-height: 1.4;
  user-select: none;
}

.widerruf-terms-link {
  margin: 1.5rem 0;
}

.widerruf-link {
  color: #0d9488;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: 500;
}

.widerruf-link:hover {
  color: #0f766e;
  text-decoration: underline;
}

.widerruf-actions {
  margin-top: 2rem;
}

.btn-widerruf-submit {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  border: none;
  color: #ffffff;
  padding: 0.85rem 2rem;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.2);
}

.btn-widerruf-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.3);
  background: linear-gradient(135deg, #0f766e 0%, #115e59 100%);
}

.btn-widerruf-submit:active {
  transform: translateY(0);
}

/* Success Card styling */
.success-card {
  border-top: 6px solid #10b981;
}

.widerruf-success-icon {
  font-size: 4rem;
  color: #10b981;
  margin-bottom: 1rem;
  display: inline-block;
}

.widerruf-success-title {
  font-size: 1.75rem;
  color: #1f2937;
  font-weight: 700;
  margin-bottom: 1rem;
}

.widerruf-receipt-box {
  background-color: #f9fafb;
  border: 1px solid #f3f4f6;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
  text-align: left;
}

.widerruf-receipt-box h3 {
  font-size: 1.1rem;
  color: #374151;
  margin-bottom: 1rem;
  font-weight: 600;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 0.5rem;
}

.widerruf-receipt-table {
  width: 100%;
  margin-bottom: 0;
  background: transparent;
}

.widerruf-receipt-table td {
  padding: 0.75rem 0.5rem;
  font-size: 0.95rem;
  border: none;
  border-bottom: 1px dashed #e5e7eb;
}

.widerruf-receipt-table tr:last-child td {
  border-bottom: none;
}

.widerruf-receipt-table td:first-child {
  width: 40%;
  color: #6b7280;
}

.widerruf-receipt-table td:last-child {
  color: #1f2937;
  font-weight: 500;
}

.success-alert {
  background-color: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  border-radius: 8px;
  padding: 1rem;
  text-align: left;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
}

.btn-widerruf-back {
  background-color: #4b5563;
  border: none;
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-block;
}

.btn-widerruf-back:hover {
  background-color: #374151;
  color: #ffffff;
  text-decoration: none;
}

/* Footer Link micro-styling */
.widerrufsbutton-footer-link {
  display: inline-flex;
  align-items: center;
  color: #f3f4f6;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.widerrufsbutton-footer-link:hover {
  color: #38bdf8 !important; /* light sky blue */
}

/* Force footer title to be white in dark footer theme layouts */
.widerrufsbutton-footer .footer-block__title {
  color: #ffffff !important;
}

/* Responsive fixes */
@media (max-width: 576px) {
  .widerruf-card {
    padding: 1.5rem;
  }
  .widerruf-receipt-table td {
    display: block;
    width: 100% !important;
    padding: 0.4rem 0;
  }
  .widerruf-receipt-table td:first-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  .widerruf-receipt-table td:last-child {
    padding-top: 0;
  }
}
