/* Product page session picker */
.cbx-picker {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
}

.cbx-picker legend {
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

/* Make each option a block so inner line can control layout */
/* Each option row */
.cbx-radio {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .75rem;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  margin-bottom: .5rem;
}

.cbx-radio input {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.cbx-radio.cbx-disabled {
  opacity: .6;
}

.cbx-radio.cbx-selected {
  border-color: #111;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, .06) inset;
}

.cbx-hint {
  margin: .25rem 0 0;
  color: #6b7280;
  font-size: .9rem;
}

/* The line that contains date/meta (left) and status badge (right) */
.cbx-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

/* Left side = date text */
.cbx-meta {
  color: #111;
  font-weight: 600;
  flex: 1 1 auto;
  min-width: 0;
  padding-right: 8px;
}

/* Right side = badge */
.cbx-badge {
  flex: 0 0 auto;
}

/* Lists */
.cbx-session-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cbx-card {
  width: 100%;
}

.cbx-title {
  font-weight: 700;
  color: #000;
  /* black */
  font-size: 1.25rem;
  /* bigger (≈20px) */
  margin-bottom: 6px;
}

/* Subtext under title */
.cbx-subtext {
  color: #4b5563;
  /* muted gray */
  font-size: 0.9rem;
  /* slightly smaller */
  line-height: 1.4;
  margin: 4px 0 12px;
}

.cbx-btn {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 10px;
  background: #111;
  color: #fff;
  text-decoration: none;
  text-align: center;
}

/* Status badges */
.cbx-badge--ok {
  background: #DCFCE7;
  color: #14532D;
  border-radius: 10px;
  padding: 5px;
}

/* green */
.cbx-badge--full {
  background: #FEE2E2;
  color: #7F1D1D;
  border-radius: 10px;
  padding: 5px;
}

/* red */

.cbx-month {
  font-weight: 800;
  font-size: 1.1rem;
  margin: 20px 0 8px;
}

.cbx-note {
  color: #85888e;
  font-size: .9rem;
  margin-top: 4px;
}

.cbx-event-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 6px;
  color: #111;
}

.cbx-event-title .cbx-icon {
  font-size: 1.1rem;
  margin-right: 3px;
}

/* Month header + per-session note text */
.cbx-month {
  font-weight: 800;
  font-size: 1.1rem;
  margin: 20px 0 8px;
}

.cbx-note {
  color: #4b5563;
  font-size: .9rem;
  margin-top: 4px;
}

/* Event title + icon */
.cbx-event-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 6px;
  color: #111;
}

.cbx-event-title .cbx-icon {
  font-size: 1.1rem;
  margin-right: 6px;
}

/* Frontend note (in-card content box) */
.cbx-frontnote {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px;
  margin: 8px 0 10px;
  font-size: .95rem;
  color: #111;
}

.cbx-frontnote p {
  margin: 6px 0;
}

.cbx-frontnote ul {
  margin: 6px 0 0 18px;
}

/* Collapsible frontnote styles */
.cbx-collapsible-note {
  padding: 0;
}

.cbx-note-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s ease;
  border-radius: 10px;
}

.cbx-note-header:hover {
  background: #f3f4f6;
}

.cbx-note-header:active {
  background: #e5e7eb;
}

.cbx-note-preview {
  flex: 1;
  font-weight: 500;
  color: #374151;
  margin-right: 8px;
}

.cbx-toggle-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #e5e7eb;
  border-radius: 50%;
  font-size: 12px;
  color: #6b7280;
  transition: all 0.2s ease;
}

.cbx-note-header:hover .cbx-toggle-icon {
  background: #d1d5db;
  color: #374151;
}

.cbx-icon-collapse {
  display: none;
}

.cbx-note-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 12px;
}

.cbx-note-content.expanded {
  max-height: 500px;
  padding: 0 12px 12px 12px;
  transition: max-height 0.3s ease-in;
}

.cbx-collapsible-note.expanded .cbx-icon-expand {
  display: none;
}

.cbx-collapsible-note.expanded .cbx-icon-collapse {
  display: inline;
}

.cbx-collapsible-note.expanded .cbx-toggle-icon {
  background: #3b82f6;
  color: white;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .cbx-note-header {
    padding: 14px;
    min-height: 48px;
    /* Ensure touch-friendly size */
  }

  .cbx-toggle-icon {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .cbx-note-preview {
    font-size: 0.9rem;
    line-height: 1.4;
  }
}

/* === Responsive grid layout for session cards === */
.cbx-session-list {
  grid-template-columns: 1fr;
  /* default mobile: 1 column */
}

/* ≥640px (tablet): 2 columns */
@media (min-width: 640px) {
  .cbx-session-list {
    grid-template-columns: 1fr 1fr;
  }
}

/* ≥1024px (desktop): 3 columns */
@media (min-width: 1024px) {
  .cbx-session-list {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* Cards equal height + CTA pinned at bottom */
.cbx-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.cbx-btn,
.cbx-card>strong {
  margin-top: auto;
  /* push button or "Completo" to bottom */
}

/* Ensure lines behave consistently inside cards and picker */
.cbx-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.cbx-radio .cbx-line {
  width: 100%;
}

/* Make section headers span the full grid width inside the grid */
.cbx-session-list>.cbx-title,
.cbx-session-list>.cbx-month,
.cbx-session-list>.cbx-event-head {
  grid-column: 1 / -1;
}

/* (Optional) ensure event header has a little spacing */
.cbx-event-head {
  margin-top: 4px;
  margin-bottom: 4px;
}

/* Early Bird Discount Styles */
.cbx-badge--early-bird {
  background: #FEF3C7;
  color: #92400E;
  border-radius: 10px;
  padding: 5px;
  font-weight: 600;
  margin-right: 6px;
}

.cbx-early-bird-card {
  border: 2px solid #FEF3C7;
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
}

.cbx-early-bird-session {
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
  border-color: #F59E0B;
}

.cbx-pricing {
  margin: 8px 0;
  font-weight: 600;
}

/* Early bird discounted price - target WooCommerce structure */
.cbx-discounted-price,
.cbx-discounted-price .woocommerce-Price-amount,
.cbx-discounted-price .amount,
.cbx-discounted-price .woocommerce-Price-currencySymbol {
  color: #059669 !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
}

/* Original price - target WooCommerce structure */
.cbx-original-price,
.cbx-original-price .woocommerce-Price-amount,
.cbx-original-price .amount,
.cbx-original-price .woocommerce-Price-currencySymbol {
  color: #dc2626 !important;
  text-decoration: line-through !important;
  font-size: 0.9rem !important;
  margin-left: 8px;
  font-weight: 600 !important;
}

/* Also target the early bird class in general */
.cbx-early-bird,
.cbx-early-bird .woocommerce-Price-amount,
.cbx-early-bird .amount,
.cbx-early-bird .woocommerce-Price-currencySymbol {
  color: #059669 !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
}

.cbx-price {
  color: #111;
  font-size: 1rem;
  font-weight: 600;
}

.cbx-early-bird-message {
  background: #FEF3C7;
  border: 1px solid #F59E0B;
  border-radius: 8px;
  padding: 8px 12px;
  margin: 6px 0;
  font-size: 0.9rem;
  color: #92400E;
  font-weight: 500;
}

/* Product page picker early bird styles */
.cbx-picker .cbx-early-bird-message {
  margin: 4px 0 0 0;
  padding: 6px 10px;
  font-size: 0.85rem;
}

/* Product page picker early bird styles - target WooCommerce structure */
.cbx-picker .cbx-price,
.cbx-picker .cbx-discounted-price,
.cbx-picker .cbx-original-price {
  font-size: 0.9rem;
}

.cbx-picker .cbx-early-bird,
.cbx-picker .cbx-early-bird .woocommerce-Price-amount,
.cbx-picker .cbx-early-bird .amount,
.cbx-picker .cbx-early-bird .woocommerce-Price-currencySymbol {
  color: #059669 !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  margin-left: 8px;
}

.cbx-picker .cbx-original-price,
.cbx-picker .cbx-original-price .woocommerce-Price-amount,
.cbx-picker .cbx-original-price .amount,
.cbx-picker .cbx-original-price .woocommerce-Price-currencySymbol {
  color: #dc2626 !important;
  text-decoration: line-through !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
}