/* Work Heights Checkout Styles */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Brandon Grotesque', 'Brandon Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f5f5f3;
  color: #000;
  line-height: 1.5;
}

.checkout-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

/* Header */
.checkout-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 0;
  max-width: 1340px;
  margin: 0 auto;
}

/* Progress Bar */
.progress-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 660px;
  max-width: 100%;
}

.progress-step {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: capitalize;
  color: #999;
  white-space: nowrap;
  transition: color 0.3s ease;
  flex-shrink: 0;
}

.progress-step.clickable {
  cursor: pointer;
}

.progress-step.clickable:hover {
  color: #666;
}

.progress-step.active {
  color: #000;
}

.progress-step.active.clickable:hover {
  color: #000;
}

.progress-arrow {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 30px;
  color: #999;
  margin: 0 10px;
}

.arrow-back {
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-right: 5px solid #999;
  display: none;
  flex-shrink: 0;
}

.arrow-back.visible {
  display: block;
}

.arrow-line {
  flex: 1;
  height: 1px;
  background-color: #999;
}

.arrow-head {
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 5px solid #999;
  flex-shrink: 0;
}

/* Footer Logo */
.footer-logo-container {
  display: flex;
  justify-content: center;
  padding: 30px 0;
}

.footer-logo {
  max-width: 98px;
  height: auto;
}

/* Mobile Progress Bar */
@media (max-width: 600px) {
  .checkout-header {
    padding: 20px 0;
  }

  .progress-bar {
    width: 100%;
    max-width: 320px;
  }

  .progress-step {
    font-size: 13px;
    letter-spacing: 0.5px;
  }

  .arrow-head {
    border-top-width: 3px;
    border-bottom-width: 3px;
    border-left-width: 4px;
  }

  .arrow-back {
    border-top-width: 3px;
    border-bottom-width: 3px;
    border-right-width: 4px;
  }

  .progress-arrow {
    margin: 0 6px;
  }

  .footer-logo-container {
    padding: 20px 0;
  }
}

@media (max-width: 400px) {
  .progress-step {
    font-size: 11px;
    letter-spacing: 0;
  }

  .arrow-head {
    border-top-width: 2px;
    border-bottom-width: 2px;
    border-left-width: 3px;
  }

  .arrow-back {
    border-top-width: 2px;
    border-bottom-width: 2px;
    border-right-width: 3px;
  }

  .progress-arrow {
    margin: 0 4px;
  }
}

/* Step Sections */
.checkout-step {
  display: none;
}

.checkout-step.active {
  display: block;
}

/* Rate Cards Grid */
.rate-cards-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
  justify-content: center;
  align-items: flex-start;
  max-width: 1340px;
  margin-left: auto;
  margin-right: auto;
}

.rate-cards-grid .rate-card {
  width: 320px;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .rate-cards-grid .rate-card {
    width: 100%;
    max-width: 320px;
  }
}

/* Rate Card - No hover effect */
.rate-card {
  background: #DCDAD1;
  border: 1px solid #000;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 8px 19px rgba(0, 0, 0, 0.28);
}

.rate-card[data-membership="10-day-pass"] {
  background: #C6C4BC;
}

.rate-card[data-membership="10-day-pass"] .includes-btn:hover {
  background: #9E9D96;
}

.rate-card[data-membership="10-day-pass"] .includes-label {
  color: #5C5C5C;
}

.rate-card.premium {
  background: #fff;
  border: 1px solid #000;
}


.card-content {
  padding: 24px 20px;
  text-align: center;
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.card-subtitle {
  font-size: 12px;
  font-weight: 500;
  color: #169156;
  margin-bottom: 0;
}

.card-subtitle.best-value::before {
  content: "⭐ ";
}

/* Toggle */
.toggle-spacer {
  height: 56px;
}

.toggle-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  gap: 10px;
}

.toggle-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #666;
  transition: color 0.3s ease;
}

.toggle-label.active {
  color: #000;
}

.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  background: #B0AEA7;
  border: 1px solid #000;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.rate-card.premium .toggle-switch {
  background: #f5f5f5;
}

.toggle-switch.value {
  background: #169156;
}

.rate-card.premium .toggle-switch.value {
  background: #169156;
}

.toggle-indicator {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: #fff;
  border: 1px solid #000;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.toggle-switch.value .toggle-indicator {
  transform: translateX(20px);
}

/* Value Bonus */
.value-bonus {
  font-size: 11px;
  font-weight: 700;
  color: #169156;
  text-align: center;
  height: 18px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.value-bonus.visible {
  opacity: 1;
}

.value-bonus-spacer {
  height: 18px;
}

/* Price */
.price-container {
  margin: 8px 0 4px 0;
}

.price {
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
}

.price-term {
  font-size: 12px;
  color: #666;
  margin-bottom: 16px;
}

/* Action Row - Quantity Selector, Add Button, Checkout Button */
.action-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

/* Quantity Selector */
.quantity-selector {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #000;
  border-radius: 4px;
  flex: 0 0 25%;
  height: 40px;
}

.qty-btn {
  width: 28px;
  height: 100%;
  border: none;
  background: transparent;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  color: #000;
  transition: background 0.2s ease;
}

.qty-btn:hover {
  background: #f5f5f5;
}

.qty-value {
  flex: 1;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
}

/* Add Button */
.add-btn {
  flex: 1;
  padding: 10px 8px;
  background: #fff;
  color: #000;
  border: 1px solid #000;
  border-radius: 4px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease;
  height: 40px;
}

.add-btn:hover {
  background: #f5f5f5;
}

.add-btn.added {
  background: #fff;
  color: #169156;
  border-color: #000;
}

.add-btn.added:hover {
  background: #f5f5f5;
}

/* Checkout Button */
.checkout-btn {
  flex: 0 0 25%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px;
  background: #fff;
  color: #999;
  border: 1px solid #000;
  border-radius: 4px;
  cursor: default;
  transition: background 0.2s ease, color 0.2s ease;
  height: 40px;
}

.checkout-btn.has-items {
  background: #169156;
  color: #fff;
  border: 1px solid #000;
  cursor: pointer;
}

.checkout-btn.has-items:hover {
  background: #148a4e;
}

.checkout-btn.has-items svg.cart-icon {
  fill: #fff;
}

.checkout-btn svg.cart-icon {
  width: 18px;
  height: 18px;
}

.checkout-btn .arrow-icon {
  display: none;
  font-size: 10px;
  color: #fff;
}

.checkout-btn.has-items:hover .arrow-icon {
  display: inline;
}

/* Includes Button */
.includes-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 20px;
  background: transparent;
  border: 1px solid #000;
  border-radius: 4px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #000;
  cursor: pointer;
  transition: background 0.2s ease;
}

.includes-btn:hover {
  background: #B0AEA7;
}

.rate-card.premium .includes-btn:hover {
  background: #f5f5f5;
}

.includes-arrow {
  transition: transform 0.3s ease;
  font-size: 10px;
}

.includes-btn.expanded .includes-arrow {
  transform: rotate(180deg);
}

/* Includes Wrapper */
.includes-wrapper {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.5s ease-out;
}

.includes-wrapper.expanded {
  max-height: 350px;
}

.includes-list {
  padding: 12px 0 0 0;
  text-align: left;
}

.includes-list ul {
  list-style: none;
}

.includes-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.includes-list li:last-child {
  border-bottom: none;
}

.includes-label {
  color: #666;
  font-weight: 500;
}

.includes-value {
  color: #000;
  font-weight: 600;
  text-align: right;
}

.perk-line {
  display: block;
  padding: 10px 0 4px 0;
  border-bottom: none !important;
}

.includes-perk {
  color: #169156;
  font-weight: 700;
  font-size: 11px;
  text-align: center;
  display: block;
}

.includes-perk::before {
  content: "⭐ ";
}

/* Step 2 Styles */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: transparent;
  border: 1px solid #000;
  border-radius: 4px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 24px;
  transition: background 0.2s ease;
}

.back-btn:hover {
  background: #f5f5f5;
}

/* Cart Summary */
.cart-summary {
  /* Uses form-section styles */
}

.cart-summary .section-title {
  margin-bottom: 16px;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-item {
  display: flex;
  align-items: center;
  padding: 12px;
  background: #DCDAD1;
  border: 1px solid #000;
  border-radius: 4px;
}

.cart-item[data-membership="10-day-pass"] {
  background: #C6C4BC;
}

.cart-item.six-month {
  background: #fff;
}

.cart-item-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.cart-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  margin-right: 12px;
}

.cart-item-name {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.cart-item-term {
  font-size: 12px;
  color: #666;
}

.cart-item-term.six-month-text {
  color: #169156;
}

.cart-item-qty {
  font-size: 12px;
  font-weight: 500;
  color: #666;
}

.cart-item-qty.six-month-text {
  color: #169156;
}

.cart-item-price {
  font-size: 14px;
  font-weight: 700;
}

.cart-item-remove {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin-left: 0;
  background: transparent;
  border: none;
  color: #999;
  cursor: pointer;
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.cart-item-remove:hover {
  color: #dc2626;
}

/* Form Layout */
.checkout-form-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

@media (max-width: 900px) {
  .checkout-form-container {
    grid-template-columns: 1fr;
  }
}

.form-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-column-left {
  min-width: 0;
}

.form-column-right {
  /* Right column just holds the sticky wrapper */
}

/* Sticky Payment Section (Desktop only) */
@media (min-width: 901px) {
  .payment-sticky-wrapper {
    position: sticky;
    top: 20px;
  }
}

.form-section {
  background: #fff;
  border: 1px solid #000;
  border-radius: 4px;
  padding: 24px;
  box-shadow: 0 8px 19px rgba(0, 0, 0, 0.28);
}

.section-title {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
}

/* When followed by subtitle, remove border from title */
.section-title + .section-subtitle {
  margin-top: -12px;
}

.section-title:has(+ .section-subtitle) {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 4px;
}

.section-subtitle {
  font-size: 13px;
  color: #666;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
}

/* Date Section */
.date-section {
  /* Date section specific styles */
}

/* Calendar Styles */
.calendar-container {
  width: 100%;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.calendar-month-year {
  font-size: 16px;
  font-weight: 700;
}

.calendar-nav {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  background: transparent;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.calendar-nav:hover:not(:disabled) {
  background: #f5f5f5;
  border-color: #000;
}

.calendar-nav:disabled {
  cursor: not-allowed;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 8px;
}

.calendar-weekdays span {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: #666;
  padding: 8px 0;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  border: none;
  background: transparent;
  color: #000;
}

.calendar-day:hover:not(.disabled):not(.selected) {
  background: #f5f5f5;
}

.calendar-day.disabled {
  color: #ccc;
  cursor: not-allowed;
}

.calendar-day.today {
  border: 1px solid #169156;
}

.calendar-day.selected {
  background: #169156;
  color: #fff;
  border: 1px solid #000;
}

.calendar-day.other-month {
  color: #ccc;
}

/* Calendar mobile adjustments */
@media (max-width: 600px) {
  .calendar-day {
    min-height: 40px;
    font-size: 13px;
  }

  .calendar-weekdays span {
    font-size: 10px;
  }

  .calendar-nav {
    width: 40px;
    height: 40px;
  }
}

/* Terms Section */
.terms-section {
  display: flex;
  flex-direction: column;
}

.terms-action {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
}

.terms-btn {
  padding: 16px 32px;
  background: #fff;
  color: #000;
  border: 1px solid #000;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.terms-btn:hover {
  background: #000;
  color: #fff;
}

.terms-btn.agreed,
.terms-btn.agreed:hover {
  background: #169156;
  color: #fff;
  border: 1px solid #000 !important;
}

.terms-btn.agreed::before {
  content: "✓ ";
}

/* Terms Modal */
.terms-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  z-index: 1000;
  overflow: hidden;
}

.terms-modal.active {
  display: flex;
  flex-direction: column;
}

.terms-modal-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.terms-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
}

.terms-modal-header h2 {
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.terms-modal-close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 24px;
  color: #000;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.terms-modal-close:hover {
  background: #f5f5f5;
  border-color: #000;
}

.terms-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 0;
  font-size: 14px;
  line-height: 1.7;
  color: #333;
}

.terms-modal-body h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 24px 0 12px 0;
  text-transform: uppercase;
}

.terms-modal-body h3:first-child {
  margin-top: 0;
}

.terms-modal-body p {
  margin-bottom: 16px;
}

.terms-modal-body ul {
  margin: 0 0 16px 24px;
}

.terms-modal-body li {
  margin-bottom: 8px;
}

.terms-modal-footer {
  padding: 24px 0;
  border-top: 1px solid #eee;
  flex-shrink: 0;
}

.signature-section {
  margin-bottom: 20px;
}

.signature-section label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  color: #333;
}

.signature-input {
  width: 100%;
  padding: 14px 16px;
  font-family: 'Brush Script MT', 'Segoe Script', cursive;
  font-size: 20px;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: border-color 0.2s ease;
}

.signature-input:focus {
  outline: none;
  border-color: #000;
}

.agree-section {
  margin-bottom: 20px;
}

.agree-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
}

.agree-checkbox input {
  display: none;
}

.agree-checkbox .checkmark {
  width: 24px;
  height: 24px;
  border: 1px solid #000;
  border-radius: 4px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.agree-checkbox input:checked + .checkmark {
  background: #169156;
  border: 1px solid #000;
}

.agree-checkbox.disabled {
  cursor: not-allowed;
}

.agree-checkbox.disabled .checkmark {
  border-color: #ccc;
}

.agree-checkbox.disabled .agree-text {
  color: #ccc;
}

.agree-checkbox.ready .checkmark {
  border: 2px solid #169156;
}

.agree-checkbox input:checked + .checkmark::after {
  content: "✓";
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.agree-text {
  line-height: 24px;
}

.terms-accept-btn {
  width: 100%;
  padding: 16px 24px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.terms-accept-btn:hover:not(:disabled) {
  background: #333;
}

.terms-accept-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Form Inputs */
.form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.form-row:last-child {
  margin-bottom: 0;
}

.form-group {
  flex: 1;
}

.form-group.full-width {
  flex: 0 0 100%;
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  color: #333;
}

.form-group input {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 16px; /* Prevents iOS auto-zoom on focus */
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: border-color 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input:focus {
  outline: none;
  border-color: #000;
}

.form-group input::placeholder {
  color: #999;
}

/* Date input styling for Safari/iOS */
.form-group input[type="date"] {
  min-height: 44px;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input[type="date"]::-webkit-date-and-time-value {
  text-align: left;
}

.form-group input.invalid {
  border-color: #dc2626;
  background-color: #fef2f2;
}

.form-group input.invalid:focus {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Pricing Section */
.pricing-section {
  /* Section styling */
}

.pricing-breakdown {
  margin-bottom: 16px;
}

.pricing-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 14px;
}

.pricing-line.total {
  font-size: 18px;
  font-weight: 700;
}

.pricing-label {
  color: #333;
}

.pricing-amount {
  font-weight: 600;
}

.pricing-divider {
  height: 1px;
  background: #000;
  margin: 8px 0;
}

.pricing-note {
  font-size: 12px;
  color: #666;
  padding: 12px;
  background: #fff;
  border: 1px solid #000;
  border-radius: 4px;
  line-height: 1.6;
}

/* Discount Code Section */
.discount-input-row {
  display: flex;
  gap: 12px;
}

.discount-input-row input {
  flex: 1;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: border-color 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.discount-input-row input:focus {
  outline: none;
  border-color: #000;
}

.discount-input-row input::placeholder {
  color: #999;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.discount-apply-btn {
  padding: 12px 24px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}

.discount-apply-btn:hover:not(:disabled) {
  background: #333;
}

.discount-apply-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.discount-applied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: #f0fdf4;
  border: 1px solid #169156;
  border-radius: 4px;
}

.discount-code-text {
  font-size: 14px;
  font-weight: 700;
  color: #169156;
}

.discount-remove-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #999;
  font-size: 18px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.discount-remove-btn:hover {
  color: #dc2626;
}

.discount-message {
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 13px;
}

.discount-message.error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.discount-message.success {
  background: #f0fdf4;
  color: #169156;
  border: 1px solid #bbf7d0;
}

.pricing-line.discount-line .pricing-label {
  color: #169156;
}

.pricing-line.discount-line .pricing-amount {
  color: #169156;
  font-weight: 700;
}

/* Payment Logo */
.payment-logo-container {
  display: flex;
  justify-content: center;
  padding-top: 30px;
  margin-top: 20px;
  border-top: 1px solid #eee;
}

.payment-logo {
  max-width: 104px;
  height: auto;
}

/* Step 1 Logo */
.step-logo-container {
  display: flex;
  justify-content: center;
  padding: 30px 0;
}

/* Payment Section */
.payment-section {
  background: #fff;
}

#express-checkout-element {
  margin-bottom: 20px;
}

.payment-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0;
  color: #666;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.payment-divider::before,
.payment-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #ddd;
}

#payment-element {
  margin-bottom: 24px;
}

.payment-message {
  padding: 12px;
  margin-bottom: 16px;
  border-radius: 4px;
  font-size: 14px;
}

.payment-message.error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.payment-message.hidden {
  display: none;
}

.submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 24px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}

#button-price {
  font-size: 16px;
  font-weight: 700;
}

#button-price::before {
  content: " - ";
}

.submit-btn:hover:not(:disabled) {
  background: #333;
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner.hidden {
  display: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
  text-align: center;
  font-size: 12px;
  color: #666;
}

.lock-icon {
  opacity: 0.6;
}

/* Step 3: Confirmation */
.confirmation-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: 20px 20px 40px;
}

.success-icon {
  margin-bottom: 20px;
}

.heading-break {
  display: inline;
}

@media (max-width: 600px) {
  .heading-break {
    display: block;
  }
}

.confirmation-message {
  font-size: 16px;
  color: #666;
  margin-bottom: 4px;
}

.confirmation-email {
  font-size: 16px;
  color: #000;
  margin-bottom: 30px;
}

.confirmation-email a,
.confirmation-email strong {
  color: #000;
  text-decoration: none;
  pointer-events: none;
}

.confirmation-heading {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.confirmation-card-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
}

.confirmation-details {
  background: #fff;
  border: 1px solid #000;
  border-radius: 4px;
  padding: 24px;
  margin-bottom: 30px;
  text-align: left;
  box-shadow: 0 8px 19px rgba(0, 0, 0, 0.28);
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  color: #666;
  font-size: 14px;
}

.detail-value {
  font-weight: 600;
  font-size: 14px;
}

.next-steps {
  background: #fff;
  border: 1px solid #000;
  border-radius: 4px;
  padding: 24px;
  margin-bottom: 30px;
  text-align: left;
  box-shadow: 0 8px 19px rgba(0, 0, 0, 0.28);
}

.next-steps h3 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
}

.next-steps-list {
  display: flex;
  flex-direction: column;
}

.next-step-item {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  font-size: 14px;
  color: #333;
}

.next-step-item:last-child {
  border-bottom: none;
}

.confirm-purchase-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.confirm-purchase-row #confirmItems {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.confirm-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.confirm-item-qty {
  color: #169156;
  font-weight: 700;
}

.confirm-item-name {
  color: #000;
  font-weight: 600;
}

.return-btn {
  display: inline-block;
  padding: 14px 32px;
  background: #000;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background 0.2s ease;
}

.return-btn:hover {
  background: #333;
}

/* Mobile Adjustments */
@media (max-width: 600px) {
  .checkout-container {
    padding: 16px;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .form-group {
    margin-bottom: 16px;
  }

  .cart-item {
    gap: 12px;
  }

  .cart-item-name {
    font-size: 13px;
  }

  .cart-item-term,
  .cart-item-qty {
    font-size: 11px;
  }

  .cart-item-price {
    font-size: 13px;
  }

  .cart-item-remove {
    width: 24px;
    height: 24px;
  }

  .action-row {
    flex-wrap: nowrap;
    gap: 8px;
  }

  .quantity-selector {
    flex: 0 0 70px;
    width: 70px;
  }

  .add-btn {
    flex: 1;
  }

  .checkout-btn {
    flex: 0 0 70px;
    width: 70px;
  }

  .discount-apply-btn {
    padding: 12px 16px;
  }

  .form-section {
    padding: 20px;
  }


  .submit-btn {
    flex-direction: column;
    gap: 4px;
  }

  #button-price::before {
    content: none;
  }
}
