/* Enhanced speed table */
.s-24-speed-table-container {
  /* Show container but hide only the table inside */
  display: block !important;
  margin-bottom: 2rem;
}

.s-24-speed-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 1rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  /* Hide the entire table */
  display: none !important;
}

/* Sidebar should scroll with page, not be sticky */
.s24-summary-sticky {
  position: static !important;
  top: auto !important;
}

/* Hide only the dark blue table header, keep container visible for info box */
.s-24-speed-table-container {
  display: block !important;
  margin-bottom: 2rem;
}

.s-24-speed-table {
  display: none !important;
}

/* Adding complete layout CSS for two-column layout */
/* Main layout wrapper - creates two-column layout */
.s24-layout-wrapper {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

/* Products section - left column */
.s24-products-section {
  min-width: 0; /* Prevents grid blowout */
}

/* Step header */
.s24-step-header {
  margin-bottom: 3rem;
}

.s24-step-title-main {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.s24-step-subtitle {
  font-size: 1rem;
  color: #666;
  line-height: 1.6;
}

/* Category sections */
.s24-category-section {
  margin-bottom: 3rem;
}

.s24-category-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 1.5rem;
}

.s24-category-title.required::after {
  content: " *";
  color: #e53e3e;
}

/* Products grid */
.s24-products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* Product cards */
.s24-product-card {
  position: relative;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  background: white;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.s24-product-card:hover {
  border-color: #60a5fa;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
  transform: translateY(-4px);
}

.s24-product-card.selected {
  border-color: #3b82f6;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.2);
}

.s24-product-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.s24-product-label {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  cursor: pointer;
  height: 100%;
}

/* Product badge */
.s24-product-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #065f46;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
  width: fit-content;
  box-shadow: 0 2px 4px rgba(6, 95, 70, 0.1);
}

.s24-product-badge svg {
  width: 16px;
  height: 16px;
}

/* Product header */
.s24-product-header {
  margin-bottom: 1rem;
  flex-grow: 1;
}

.s24-product-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.s24-product-subtitle {
  font-size: 0.875rem;
  color: #666;
  line-height: 1.5;
}

/* Product features */
.s24-product-features {
  margin: 1rem 0;
}

.s24-feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.s24-feature-item svg {
  width: 16px;
  height: 16px;
  color: #3b82f6;
  flex-shrink: 0;
}

/* Product footer with price and action */
.s24-product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.s24-product-price {
  display: flex;
  align-items: baseline;
  gap: 0.375rem;
}

.s24-price-amount {
  font-size: 1.75rem;
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1;
}

.s24-price-unit {
  font-size: 1.125rem;
  color: #64748b;
  font-weight: 600;
}

.s24-product-action {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.s24-product-card:hover .s24-product-action {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateX(4px);
}

.s24-select-text {
  font-size: 0.875rem;
  color: white;
  font-weight: 600;
  letter-spacing: 0.025em;
}

.s24-radio-indicator {
  width: 20px;
  height: 20px;
  border: 2px solid white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
}

.s24-radio-indicator svg {
  opacity: 0;
  transition: opacity 0.2s ease;
  color: white;
}

.s24-product-card.selected .s24-radio-indicator {
  background: white;
  border-color: white;
}

.s24-product-card.selected .s24-radio-indicator svg {
  opacity: 1;
  color: #3b82f6;
}

/* Summary sidebar styling */
.s24-summary-sidebar {
  position: relative;
}

.s24-summary-sticky {
  position: sticky;
  top: 2rem;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 2rem;
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.s24-summary-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e2e8f0;
}

.s24-summary-items {
  margin-bottom: 1.5rem;
}

.s24-summary-item {
  margin-bottom: 1rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 8px;
}

.s24-summary-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.s24-summary-category {
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
  text-transform: capitalize;
}

.s24-summary-collapse {
  background: none;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
  color: #64748b;
  transition: color 0.2s ease;
}

.s24-summary-collapse:hover {
  color: #1e293b;
}

.s24-summary-item-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.s24-summary-product-name {
  font-size: 0.875rem;
  color: #1e293b;
}

.s24-summary-product-price {
  font-size: 0.875rem;
  font-weight: 600;
  color: #3b82f6;
}

.s24-summary-divider {
  height: 2px;
  background: #e2e8f0;
  margin: 1.5rem 0;
}

.s24-summary-total {
  padding-top: 1rem;
}

.s24-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.s24-summary-row.s24-summary-monthly {
  padding-top: 0.75rem;
  border-top: 1px solid #e2e8f0;
}

.s24-summary-label {
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 500;
}

.s24-summary-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1e293b;
}

.s24-summary-value.monthly {
  color: #3b82f6;
  font-size: 1.5rem;
}

/* Light blue info box for available speeds */
.s24-speed-indicator {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border: 2px solid #93c5fd;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.speed-status {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.status-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e40af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e3a8a;
}

.speed-note {
  margin-top: 0.5rem;
}

.speed-note small {
  font-size: 0.875rem;
  color: #1e40af;
  font-style: italic;
}

/* Button container */
.s24-button-container {
  display: flex;
  justify-content: flex-end;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid #e2e8f0;
}

/* Responsive layout */
@media (max-width: 1024px) {
  .s24-layout-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .s24-summary-sticky {
    position: static;
    max-height: none;
  }
}

@media (max-width: 768px) {
  .s24-products-grid {
    grid-template-columns: 1fr;
  }

  .s24-layout-wrapper {
    padding: 1rem;
  }

  .s24-step-title-main {
    font-size: 1.5rem;
  }
}

/* Hide the "Ihr Abo:" sticky sidebar since we have "Zusammenfassung" */
.s-24-sticky-form {
  display: none !important;
}

/* Speed info box - light blue box showing available speeds at address */
.s24-speed-info-box {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border: 2px solid #60a5fa;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.s24-speed-info-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1e40af;
}

.s24-speed-info-icon svg {
  width: 24px;
  height: 24px;
}

.s24-speed-info-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.s24-speed-info-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #1e40af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.s24-speed-info-address {
  font-size: 0.95rem;
  color: #1e3a8a;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.s24-speed-info-speeds {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.s24-speed-info-speeds span {
  font-size: 0.875rem;
  color: #1e3a8a;
  font-weight: 500;
}

.s24-speed-info-speeds strong {
  font-weight: 700;
  color: #1e40af;
}

.s24-technology-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(30, 64, 175, 0.1);
  color: #1e40af;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 0.25rem;
  width: fit-content;
}

/* Unavailable product styling */
.s24-product-card.s24-product-unavailable {
  opacity: 0.6;
  cursor: not-allowed;
  background: #f8fafc;
  border-color: #cbd5e0;
}

.s24-product-card.s24-product-unavailable:hover {
  transform: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border-color: #cbd5e0;
}

.s24-product-card.s24-product-unavailable .s24-product-label {
  cursor: not-allowed;
}

.s24-product-card.s24-product-unavailable .s24-product-action {
  background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
  cursor: not-allowed;
}

.s24-product-card.s24-product-unavailable:hover .s24-product-action {
  transform: none;
  background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
}

.s24-product-card.s24-product-unavailable .s24-select-text {
  color: white;
}

.s24-product-card.s24-product-unavailable .s24-radio-indicator {
  background: rgba(255, 255, 255, 0.3);
  border-color: white;
}

.s24-product-card.s24-product-unavailable .s24-product-title {
  color: #64748b;
}

.s24-product-card.s24-product-unavailable .s24-price-amount {
  color: #94a3b8;
}

/* Keep old class for backwards compatibility */
.s24-product-card.s24-speed-unavailable {
  opacity: 0.65;
  cursor: not-allowed;
  background: #f8fafc;
}

.s24-product-card.s24-speed-unavailable:hover {
  transform: none;
  box-shadow: none;
  border-color: #e2e8f0;
}

.s24-product-card.s24-speed-unavailable .s24-product-badge {
  background: #fee2e2;
  color: #991b1b;
}

.s24-product-card.s24-speed-unavailable .s24-product-label {
  cursor: not-allowed;
}

.s24-product-badge.s24-badge-unavailable {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: #991b1b;
  border: 1px solid #fca5a5;
  box-shadow: 0 2px 4px rgba(153, 27, 27, 0.1);
}
