
.modern-pricing-table {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  position: relative;
}

.modern-pricing-table--highlight {
  border: 2px solid #3b82f6;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.modern-pricing-table__badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #dbeafe;
  color: #3b82f6;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 9999px;
}

.modern-pricing-table__header {
  text-align: center;
  margin-bottom: 32px;
}

.modern-pricing-table__plan-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 16px;
}

.modern-pricing-table__plan-subtitle {
  margin-bottom: 8px;
}

.modern-pricing-table__price {
  margin-bottom: 8px;
  line-height: 1;
}

.modern-pricing-table__price-amount {
  font-size: 3rem;
  font-weight: 700;
  color: #111827;
}

.modern-pricing-table__original-price {
  font-size: 1.25rem;
  font-weight: 500;
  color: #6b7280;
  text-decoration: line-through;
}

.modern-pricing-table__price-period {
  color: #6b7280;
  margin-bottom: 16px;
}

.modern-pricing-table__annual-link {
  color: #2563eb;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.modern-pricing-table__annual-link:hover {
  color: #1d4ed8;
}

.modern-pricing-table__annual-icon {
  width: 16px;
  height: 16px;
  margin-left: 4px;
}

.modern-pricing-table__cta-button {
  display: block;
  text-align: center;
  width: 100%;
  background-color: #111827;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-bottom: 32px;
}

.modern-pricing-table__cta-button:hover {
  background-color: #1f2937;
  color: #ffffff
}

.modern-pricing-table__cta-button--featured {
  background-color: #2563eb;
}

.modern-pricing-table__cta-button--featured:hover {
  background-color: #1d4ed8;
}

.modern-pricing-table__features {
  list-style: none;
  margin: auto;
}

.modern-pricing-table__feature {
  display: flex;
  align-items: flex-start;
  margin-bottom: 16px;
}

.modern-pricing-table__feature:last-child {
  margin-bottom: 0;
}

.modern-pricing-table__feature--disabled {
  opacity: 0.4;
}

.modern-pricing-table__feature-icon {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  margin-right: 12px;
  flex-shrink: 0;
  fill: currentColor;
  color: #111827;
}

.modern-pricing-table__feature-icon--disabled {
  color: #9ca3af;
}

.modern-pricing-table__feature-text {
  color: #111827;
}

.modern-pricing-table__feature-text > p {
  margin: 0;
}

.modern-pricing-table__feature-text--disabled {
  color: #9ca3af;
  text-decoration: line-through;
}

/* ===== Pricing Toggle Widget ===== */
.mpt-section-header {
  text-align: center;
}

.mpt-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 12px;
}

.mpt-section-subtitle {
  color: #6b7280;
  max-width: 640px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

/* ===== Toggle Switch ===== */
.mpt-toggle-wrap {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.mpt-toggle-label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #374151;
  user-select: none;
}

.mpt-toggle {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  flex-shrink: 0;
  cursor: pointer;
}

.mpt-toggle-input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  margin: 0;
  cursor: pointer;
  z-index: 1;
}

.mpt-toggle-slider {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: #d1d5db;
  border-radius: 9999px;
  transition: background-color 0.25s ease;
  pointer-events: none;
}

.mpt-toggle-slider::before {
  content: '';
  position: absolute;
  height: 20px;
  width: 20px;
  left: 4px;
  top: 4px;
  background-color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: transform 0.25s ease;
}

.mpt-toggle-input:checked + .mpt-toggle-slider {
  background-color: #3b82f6;
}

.mpt-toggle-input:checked + .mpt-toggle-slider::before {
  transform: translateX(24px);
}

.mpt-toggle-input:focus-visible + .mpt-toggle-slider {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* ===== Monthly / Yearly Pricing Toggle ===== */
.mpt-price-yearly,
.mpt-period-yearly {
  display: none !important;
}

body.mpt-yearly-active .mpt-price-monthly,
body.mpt-yearly-active .mpt-period-monthly {
  display: none !important;
}

body.mpt-yearly-active .mpt-price-yearly {
  display: inline !important;
}

body.mpt-yearly-active span.mpt-period-yearly {
  display: inline !important;
}

body.mpt-yearly-active div.mpt-period-yearly {
  display: block !important;
}
