/* =============================
   FRAX Subscription Block CSS
   ============================= */

.subscription-block {
  max-width: 100%;
  padding: 1rem;
  color: #222;
}

.subscription-block h3 {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 2rem;
  font-weight: 600;
}

.subscription-table-wrapper {
  overflow-x: auto;
  position: relative;
}

.subscription-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
}

.subscription-table th,
.subscription-table td {
  padding: 1rem;
  border: 1px solid #ddd;
  text-align: center;
  vertical-align: middle;
  transition: all 0.2s ease;
  position: relative;
}

.subscription-table th[data-col],
.subscription-table td[data-col] {
  cursor: auto;
}

.subscription-table thead th {
  position: sticky;
  top: 0;
  background-color: #f9f9f9;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.subscription-table th {
  font-weight: 600;
  font-size: 1rem;
}

.subscription-table th.js-plan-select {
  background-color: #f9f9f9;
  font-size: 1.1rem;
  font-weight: 700;
  color: #dc2626;
  border-bottom: 3px solid #dc2626;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  z-index: 20;
}


.subscription-table td.label,
.subscription-table th.label {
  text-align: left;
  background-color: #f6f6f6;
  font-weight: 500;
  width: 200px;
}

.subscription-table td.value {
  font-size: 0.95rem;
  color: #444;
}

.subscription-table .pricing-row td {
  font-weight: bold;
  background-color: #fafafa;
  font-size: 1.1rem;
}

.subscription-table .pricing-row td,
.subscription-table .pricing-row td * {
  cursor: default !important;
}

.subscription-addons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
}

.subscription-block .plans-title {
  margin-bottom: 1rem;
  text-align: center;
  font-weight: 600;
}
.subscription-block .addons-title {
  margin-top: 4rem;
  margin-bottom: 1rem;
  text-align: center;
  font-weight: 600;
  border-top: 2px solid #444;
  padding-top: 1rem;
}

.addons-description {
  text-align: center;
  color: #666;
  margin-bottom: 2rem;
  font-size: 1rem;
  line-height: 1.5;
}

.payment-info {
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  margin-top: 1rem;
  line-height: 1.4;
}

.addon-card {
  border: 2px solid #ddd;
  padding: 1.5rem;
  border-radius: 12px;
  max-width: 280px;
  flex: 1 1 250px;
  text-align: center;
  background: #FFF;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.addon-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: #dc2626;
}

.addon-card h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #333;
}

.addon-card p {
  font-size: 0.95rem;
  white-space: pre-line;
  margin-bottom: 1rem;
  color: #666;
  line-height: 0.9;
}

.addon-card .price {
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #dc2626;
}

.addon-card .cta {
  font-size: 0.9rem;
  color: #dc2626;
}

.subscription-btn {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  color: #FFF;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  text-decoration: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3);
}

.subscription-btn:hover {
  background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.subscription-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  background: #9ca3af;
  box-shadow: none;
}


.subscription-table td[data-col].hovered,
.subscription-table th[data-col].hovered {
  box-shadow: inset 3px 0 0 #dc2626, inset -3px 0 0 #dc2626;
  background-color: rgba(220, 38, 38, 0.02);
  transition: background-color 0.2s, box-shadow 0.2s;
}

.subscription-table thead th[data-col],
.subscription-table th[data-col] {
  transition: all 0.3s ease-in-out;
  box-shadow: inset 0 0 0 transparent, inset 0 0 0 transparent, inset 0 0 0 transparent;
}

.subscription-table th .header-text {
  display: inline-block;
  transition: transform 0.3s ease-in-out;
  text-transform: uppercase;
}

.subscription-table thead th[data-col].hovered .header-text,
.subscription-table th[data-col].thead-hovered .header-text {
  transform: translateY(-3px);
}

.subscription-table thead th[data-col].hovered,
.subscription-table th[data-col].thead-hovered {
  box-shadow: inset 3px 0 0 #dc2626, inset -3px 0 0 #dc2626, inset 0 3px 0 #dc2626;
  background-color: rgba(220, 38, 38, 0.05);
  transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.subscription-table tr:first-child th[data-col] {
  transition: box-shadow 0.3s ease;
}

.subscription-table tr:first-child th[data-col].hovered,
.subscription-table tr:first-child th[data-col].thead-hovered {
  box-shadow: inset 3px 0 0 #dc2626, inset -3px 0 0 #dc2626, inset 0 3px 0 #dc2626;
  transition: box-shadow 0.3s ease;
}

.subscription-table tr:last-child td[data-col].hovered {
  box-shadow: inset 3px 0 0 #dc2626, inset -3px 0 0 #dc2626, inset 0 -3px 0 #dc2626;
}


@keyframes selection-pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}

.addon-card.selected {
  animation: selection-pulse 0.3s ease;
}

.selection-status {
  text-align: center;
  margin-top: 2rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 6px;
  font-weight: 500;
}

.selection-status.has-selection {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.06) 0%, rgba(220, 38, 38, 0.03) 100%);
  border: 1px solid rgba(220, 38, 38, 0.2);
  color: #991b1b;
}

@keyframes highlight-addons {
  0% {
    background-color: transparent;
  }
  50% {
    background-color: rgba(220, 38, 38, 0.05);
  }
  100% {
    background-color: transparent;
  }
}

.addons-highlighted {
  animation: highlight-addons 1s ease-in-out;
  border-radius: 8px;
  padding: 1rem;
  margin: -1rem;
}

.subscription-table .feature-available {
  display: inline-block;
  font-size: 32px;
  line-height: 1;
  color: #22c55e;
  font-weight: bold;
  text-align: center;
  position: relative;
}

.subscription-action-btn {
  display: block;
  width: 100%;
  background: #dc2626;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.75rem 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 auto;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
  text-decoration: none;
  transform: translateY(0);
  position: relative;
  text-transform: uppercase;
}

.subscription-action-btn.btn-hovered {
  background: #b91c1c;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  color: white;
}

.subscription-action-btn small {
  display: block;
  font-size: 0.9em;
  font-weight: 400;
  color: #fff;
  opacity: 0.85;
}

.subscription-action-btn:hover,
.subscription-action-btn:focus {
  background: #b91c1c;
  transform: translateY(-3px);
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  color: #FFF;
}

.subscription-action-btn:hover *,
.subscription-action-btn:focus * {
  color: #FFF;
}

.subscription-table .pricing-row td .subscription-action-btn,
.subscription-table .pricing-row td .subscription-action-btn * {
  cursor: pointer !important;
}

.addon-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  flex: 1 1 250px;
  max-width: 280px;
  display: flex;
}

.addon-card-link:hover,
.addon-card-link:focus {
  text-decoration: none;
  color: inherit;
}

.addon-buy-button {
  display: block;
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.75rem 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #FFF;
  background: #dc2626;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  text-align: center;
  text-transform: uppercase;
}

.addon-card-link:hover .addon-buy-button,
.addon-card-link:focus .addon-buy-button {
  background: #b91c1c;
  color: #FFF;
}

.price-action-spacing {
  height: 15px;
  display: block;
  width: 100%;
}

.price-display {
  display: inline-block;
  margin-bottom: 15px;
}

.price-amount {
  font-size: 1.3rem;
  font-weight: 700;
  color: #222;
}

.price-period {
  font-size: 0.85rem;
  font-weight: 400;
  color: #666;
  vertical-align: middle;
}

/* =============================
   DISABLED ADDON BUTTON STYLES
   ============================= */

/* Prevent cursor change and hover effects on cards with disabled buttons */
.addon-card-no-hover {
  cursor: default ;
}

.addon-card-no-hover .addon-card {
  cursor: default ;
}

.addon-card-no-hover:hover,
.addon-card-no-hover:focus {
  transform: none ;
}

.addon-card-no-hover .addon-card:hover {
  transform: none ;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.addon-buy-button-disabled {
  background-color: #e0e0e0 ;
  color: #888 ;
  cursor: not-allowed ;
  pointer-events: none;
  border: 1px solid #ccc;
}

.addon-buy-button-disabled:hover,
.addon-buy-button-disabled:focus {
  background-color: #e0e0e0;
  color: #888;
  transform: none ;
}
