/* Bundle Offers Widget - AfterStride Brand */
/* Base: 1rem = 10px (62.5% font-size) */

:root {
  /* AfterStride Brand Colors */
  --brand-orange: #ce532e;
  --brand-dark: #1e262d;
  --brand-cream: #f9f8f2;
  --brand-green: #42ae58;
  --brand-gold: #ffb128;

  /* Component Colors */
  --primary-color: var(--brand-orange);
  --primary-hover: #b8461f;
  --primary-light: #fdf5f2;
  --text-dark: var(--brand-dark);
  --text-medium: #4a5568;
  --text-light: #718096;
  --border-color: #e2e8f0;
  --border-active: var(--brand-orange);
  --background-white: #ffffff;
  --background-active: var(--brand-cream);
  --shadow-light: rgba(206, 83, 46, 0.08);
  --shadow-medium: rgba(206, 83, 46, 0.15);
  --shadow-strong: rgba(206, 83, 46, 0.25);
}

.bundle-offers-widget {
  max-width: 80rem; /* 800px */
  margin: 0 auto;
  font-family: inherit; /* Use site's default font */
  font-size: 1.6rem; /* 16px base */
}

.bundle-header {
  text-align: center;
  margin-bottom: 3rem; /* 30px */
}

.bundle-title {
  font-size: 2.8rem; /* 28px */
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 0.8rem 0;
  line-height: 1.3;
}

.bundle-subtitle {
  font-size: 1.6rem; /* 16px */
  color: var(--text-medium);
  margin: 0;
  font-weight: 400;
}

.bundle-options {
  display: flex;
  flex-direction: column;
  gap: 1.5rem; /* 15px */
  margin-bottom: 3rem; /* 30px */
}

/* Bundle Option Cards - Clean Medical Style */
.bundle-option {
  display: flex;
  align-items: center;
  padding: 2rem; /* 20px */
  border: 2px solid var(--border-color);
  border-radius: 1rem; /* 10px */
  background: var(--background-white);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  outline: none;
  min-height: 10rem; /* 100px */
}

.bundle-option:hover {
  border-color: var(--border-active);
  box-shadow: 0 4px 16px var(--shadow-light);
  transform: translateY(-1px);
}

.bundle-option--active {
  border-color: var(--border-active);
  background: var(--background-active);
  box-shadow: 0 4px 20px var(--shadow-medium);
}

.bundle-option:focus {
  border-color: var(--border-active);
  box-shadow: 0 0 0 3px var(--shadow-light);
}

/* Selection Indicator - Left Side */
.bundle-selector {
  flex-shrink: 0;
  width: 2.4rem; /* 24px */
  height: 2.4rem; /* 24px */
  margin-right: 2rem; /* 20px */
}

.radio-indicator {
  width: 2.4rem; /* 24px */
  height: 2.4rem; /* 24px */
  border: 2px solid var(--border-color);
  border-radius: 50%;
  position: relative;
  transition: all 0.2s ease;
}

.bundle-option:hover .radio-indicator {
  border-color: var(--primary-color);
}

.bundle-option--active .radio-indicator {
  border-color: var(--primary-color);
  background: var(--primary-color);
}

.bundle-option--active .radio-indicator::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1rem; /* 10px */
  height: 1rem; /* 10px */
  background: white;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

/* Savings Hero */
.bundle-savings-hero {
  flex-shrink: 0;
  text-align: left;
  margin-right: 2.5rem; /* 25px */
  min-width: 12rem; /* 120px */
}

.savings-amount {
  font-size: 2rem; /* 20px */
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.2;
  margin-bottom: 0.4rem; /* 4px */
}

.savings-percentage {
  font-size: 1.2rem; /* 12px */
  font-weight: 600;
  color: var(--primary-color);
  background: var(--primary-light);
  padding: 0.4rem 0.8rem; /* 4px 8px */
  border-radius: 0.4rem; /* 4px */
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Bundle Info */
.bundle-info {
  flex: 1;
  margin-right: 2rem; /* 20px */
}

.bundle-quantity {
  font-size: 1.4rem; /* 14px */
  font-weight: 600;
  color: var(--text-medium);
  margin-bottom: 0.4rem; /* 4px */
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bundle-badges {
  display: flex;
  gap: 0.8rem; /* 8px */
  margin-bottom: 0.8rem; /* 8px */
  flex-wrap: wrap;
}

.badge {
  font-size: 1rem; /* 10px */
  font-weight: 700;
  padding: 0.4rem 0.8rem; /* 4px 8px */
  border-radius: 0.4rem; /* 4px */
  text-transform: uppercase;
  letter-spacing: 0.8px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem; /* 4px */
}

.badge i {
  font-size: 0.9rem; /* 9px */
}

.badge--popular {
  background: var(--brand-orange);
  color: white;
}

.badge--value {
  background: var(--brand-green);
  color: white;
}

.bundle-title {
  font-size: 1.8rem; /* 18px */
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 0.5rem 0; /* 5px */
  line-height: 1.3;
}

.bundle-description {
  font-size: 1.4rem; /* 14px */
  color: var(--text-medium);
  line-height: 1.4;
  font-weight: 400;
}

/* Pricing - Clean & Clear */
.bundle-pricing {
  text-align: right;
  flex-shrink: 0;
  min-width: 10rem; /* 100px */
}

.current-price {
  font-size: 2.8rem; /* 28px */
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1;
}

.original-price {
  font-size: 1.6rem; /* 16px */
  color: var(--text-light);
  text-decoration: line-through;
  margin-top: 0.2rem; /* 2px */
  font-weight: 400;
}

.price-per-unit {
  font-size: 1.2rem; /* 12px */
  color: var(--text-medium);
  margin-top: 0.2rem; /* 2px */
  font-weight: 400;
}

/* Call to Action - Medical/Professional Style */
.bundle-cta-section {
  text-align: center;
}

.bundle-cta-button {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 1.8rem 3.5rem; /* 18px 35px */
  font-size: 1.6rem; /* 16px */
  font-weight: 600;
  border-radius: 0.8rem; /* 8px */
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px var(--shadow-medium);
  position: relative;
  overflow: hidden;
  min-width: 28rem; /* 280px */
  margin-bottom: 2rem; /* 20px */
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bundle-cta-button:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--shadow-strong);
}

.bundle-cta-button:active {
  transform: translateY(0);
}

.bundle-cta-button.loading {
  opacity: 0.7;
  cursor: not-allowed;
}

.bundle-cta-button.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2rem; /* 20px */
  height: 2rem; /* 20px */
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  transform: translate(-50%, -50%);
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.cta-text {
  display: block;
  font-size: 1.6rem; /* 16px */
  line-height: 1.2;
}

.cta-savings {
  display: block;
  font-size: 1.2rem; /* 12px */
  opacity: 0.9;
  margin-top: 0.3rem; /* 3px */
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
}

/* Guarantees - Clean Medical Style */
.bundle-guarantees {
  display: flex;
  justify-content: center;
  gap: 2.5rem; /* 25px */
  margin-top: 1.5rem; /* 15px */
  flex-wrap: wrap;
}

.guarantee-item {
  display: flex;
  align-items: center;
  gap: 0.6rem; /* 6px */
  font-size: 1.3rem; /* 13px */
  color: var(--text-medium);
  font-weight: 500;
}

.guarantee-icon {
  font-size: 1.4rem; /* 14px */
  color: var(--brand-green);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .bundle-offers-widget {
    font-size: 1.4rem; /* 14px base on mobile */
  }

  .bundle-title {
    font-size: 2.4rem; /* 24px */
  }

  .bundle-subtitle {
    font-size: 1.4rem; /* 14px */
  }

  .bundle-option {
    flex-direction: column;
    text-align: center;
    padding: 1.8rem; /* 18px */
    min-height: auto;
    align-items: stretch;
  }

  .bundle-selector {
    position: absolute;
    top: 1.5rem; /* 15px */
    left: 1.5rem; /* 15px */
    margin-right: 0;
  }

  .bundle-savings-hero {
    margin-right: 0;
    margin-bottom: 1.5rem; /* 15px */
    min-width: auto;
    text-align: center;
    padding-top: 1rem; /* 10px */
  }

  .savings-amount {
    font-size: 2.2rem; /* 22px */
  }

  .bundle-info {
    margin-right: 0;
    margin-bottom: 1.5rem; /* 15px */
    text-align: center;
  }

  .bundle-title {
    font-size: 1.8rem; /* 18px */
  }

  .bundle-description {
    font-size: 1.4rem; /* 14px */
  }

  .bundle-pricing {
    text-align: center;
    min-width: auto;
  }

  .current-price {
    font-size: 2.4rem; /* 24px */
  }

  .bundle-cta-button {
    width: 100%;
    padding: 2rem; /* 20px */
    font-size: 1.6rem; /* 16px */
    min-width: auto;
  }

  .bundle-guarantees {
    gap: 1.5rem; /* 15px */
  }

  .guarantee-item {
    flex-direction: column;
    text-align: center;
    gap: 0.4rem; /* 4px */
    font-size: 1.2rem; /* 12px */
  }
}

@media (max-width: 480px) {
  .bundle-title {
    font-size: 2rem; /* 20px */
  }

  .bundle-option {
    padding: 1.5rem; /* 15px */
  }

  .savings-amount {
    font-size: 2rem; /* 20px */
  }

  .current-price {
    font-size: 2.2rem; /* 22px */
  }

  .bundle-cta-button {
    padding: 1.8rem; /* 18px */
    font-size: 1.5rem; /* 15px */
  }
}
