/* CC Preferences — two-column layout for Chef's Choice plan */

/* Tagline above the card */
.dtec-cc-pref__tagline {
  font-size: 32px;
  font-weight: 600;
  text-align: center;
  color: var(--dtec-text);
  margin-top: var(--space-3xl);
  margin-bottom: 0;
}

/* Main two-column card */
.dtec-cc-pref {
  display: flex;
  background: var(--dtec-white);
  border: 1px solid rgba(46, 40, 38, 0.15);
  border-radius: 30px;
  box-shadow: 0 0 40px 0 rgba(161, 161, 161, 0.25);
  overflow: hidden;
  max-width: 1700px;
  margin: 0 auto;
}

/* Left column — dietary choice */
.dtec-cc-pref__left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 60px;
  background: var(--dtec-white);
  border-right: 1px solid rgba(46, 40, 38, 0.15);
}

/* Right column — selectors + price */
.dtec-cc-pref__right {
  flex: 1;
  padding: 60px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Numbered heading */
.dtec-cc-pref__heading {
  display: flex;
  align-items: center;
  gap: var(--space-m);
}

.dtec-cc-pref__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  padding: 10px;
  gap: 10px;
  border-radius: 500px;
  background: var(--dtec-cta);
  color: var(--dtec-white);
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}

.dtec-cc-pref__heading h3 {
  font-size: 32px;
  font-weight: 600;
  color: var(--dtec-text);
  margin: 0;
}

.dtec-cc-pref__desc {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(46, 40, 38, 0.75);
  margin: 0;
  text-align: left;
}

/* Dietary choice cards */
.dtec-cc-pref__diet-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-m);
}

.dtec-cc-pref__diet-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex: 1 0 0;
  padding: 20px 40px 40px;
  background: var(--dtec-white);
  border: 2px solid rgba(46, 40, 38, 0.15);
  border-radius: 10px;
  cursor: pointer;
  transition:
    border-color 250ms ease,
    border-width 250ms ease,
    transform 250ms ease,
    box-shadow 250ms ease,
    background-color 250ms ease;
}

.dtec-cc-pref__diet-card:hover {
  border-color: var(--dtec-cta);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(160, 186, 24, 0.15);
  background: transparent !important;
}

.dtec-cc-pref__diet-card--active {
  border-color: var(--dtec-cta);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(160, 186, 24, 0.2);
}

.dtec-cc-pref__diet-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(46, 40, 38, 0.15);
  flex-shrink: 0;
  align-self: flex-end;
  position: relative;
  transition: background-color 250ms ease, border-color 250ms ease;
}

.dtec-cc-pref__diet-check::after {
  content: '';
  position: absolute;
  inset: 3px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='6 12 10 16 18 8'/%3E%3C/svg%3E");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(0.3);
  transition: opacity 250ms ease, transform 250ms ease;
}

.dtec-cc-pref__diet-card--active .dtec-cc-pref__diet-check {
  background: var(--dtec-cta);
  border-color: var(--dtec-cta);
}

.dtec-cc-pref__diet-card--active .dtec-cc-pref__diet-check::after {
  opacity: 1;
  transform: scale(1);
}

.dtec-cc-pref__diet-card img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
}

.dtec-cc-pref__diet-label {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  font-size: 18px;
  font-weight: 400;
  line-height: 160%;
  color: rgba(46, 40, 38, 0.75);
  text-align: center;
}


/* Google reviews row */
.dtec-cc-pref__reviews {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding-bottom: var(--space-xs);
}

.dtec-cc-pref__google-icon {
  display: flex;
  align-items: center;
}

.dtec-cc-pref__stars {
  display: flex;
  gap: 2px;
}

.dtec-cc-pref__rating {
  font-size: 16px;
  font-weight: 700;
  color: var(--dtec-text);
}

/* Right-column title */
.dtec-cc-pref__title {
  font-size: 38px;
  font-weight: 700;
  color: var(--dtec-text);
  line-height: 1.15;
  margin: 0;
}

.dtec-cc-pref__subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(46, 40, 38, 0.75);
  margin: 0;
}

/* Segments use shared .dtec-pref__segment / .dtec-pref__seg-btn from plan-builder-preferences.css */

/* Price breakdown card */
.dtec-cc-pref__breakdown {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(46, 40, 38, 0.15);
  border-radius: 10px;
  overflow: hidden;
}

.dtec-cc-pref__breakdown-header {
  padding: 18px 30px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dtec-cc-pref__breakdown-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--dtec-text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0;
  text-align: left;
}

.dtec-cc-pref__breakdown-summary {
  font-size: 16px;
  color: var(--dtec-cta);
  font-weight: 400;
  margin: 0;
  text-align: left;
}

.dtec-cc-pref__breakdown-lines {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  padding: 18px 30px;
  border-top: 1px solid rgba(46, 40, 38, 0.15);
}

.dtec-cc-pref__breakdown-line {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 600;
  color: var(--dtec-text);
}

.dtec-cc-pref__breakdown-line--discount {
  color: var(--dtec-primary);
}

.dtec-cc-pref__breakdown-line--free span:last-child {
  color: var(--dtec-primary);
  font-weight: 700;
}

.dtec-cc-pref__breakdown-line--total {
  font-size: 20px;
  font-weight: 700;
  color: var(--dtec-text);
  padding-top: var(--space-s);
  margin-top: var(--space-2xs);
  border-top: 1px solid rgba(46, 40, 38, 0.15);
}

.dtec-cc-pref__breakdown-line--total span:last-child {
  color: var(--dtec-cta);
}

/* Continue button — matches Figma exactly */
.dtec-cc-pref__continue {
  width: 100%;
  max-width: 268px;
  height: 64px;
  background: var(--dtec-cta);
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--dtec-duration-fast), transform var(--dtec-duration-fast);
  will-change: transform;
  margin-top: var(--space-m);
}

.dtec-cc-pref__continue:hover:not(:disabled) {
  background: var(--dtec-cta-hover);
  transform: translateY(-2px);
}

.dtec-cc-pref__continue:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Responsive */
@media (max-width: 1024px) {
  .dtec-cc-pref {
    flex-direction: column;
  }

  .dtec-cc-pref__left {
    border-right: none;
    border-bottom: 1px solid rgba(46, 40, 38, 0.15);
  }

  .dtec-cc-pref__left,
  .dtec-cc-pref__right {
    padding: var(--space-2xl);
  }
}

@media (max-width: 480px) {
  .dtec-cc-pref__right {
    padding: var(--space-l);
  }

  .dtec-cc-pref__title {
    font-size: 28px;
  }

  .dtec-cc-pref__tagline {
    font-size: 22px;
  }

  .dtec-cc-pref__seg-btn--pill {
    width: 56px;
  }

  .dtec-cc-pref__continue {
    width: 100%;
  }
}
