/**
 * Colliefields Combos – Styles
 * Accordion modal, dark green theme to match site
 */

/* ══════════════════════════════════════════
   COMBO BADGE (on product cards)
══════════════════════════════════════════ */
.cf-combo-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(220,53,69,.3);
  z-index: 2;
}

/* ══════════════════════════════════════════
   COMBO CARD GRID
══════════════════════════════════════════ */
.cf-combo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@media (min-width: 900px) {
  .cf-combo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ══════════════════════════════════════════
   MODAL WRAPPER
══════════════════════════════════════════ */
.cf-combo-modal {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 85vh;
  font-family: inherit;
}

/* ── HEADER ── */
.cf-combo-modal__header {
  flex: 0 0 auto;
  padding: 22px 28px 16px;
  border-bottom: 2px solid #e9ecef;
  background: #fff;
}

.cf-combo-modal__title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.cf-combo-modal__title h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  color: #1a1a1a;
}

.cf-combo-modal__price {
  font-size: 22px;
  font-weight: 900;
  color: #2d6a2d;   /* dark green */
}

.cf-combo-modal__subtitle {
  margin: 0;
  font-size: 14px;
  color: #6c757d;
}

/* ── BODY ── */
.cf-combo-modal__body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 0;
}

/* ── FOOTER ── */
.cf-combo-modal__footer {
  flex: 0 0 auto;
  padding: 16px 24px;
  border-top: 2px solid #e9ecef;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ══════════════════════════════════════════
   ACCORDION
══════════════════════════════════════════ */
.cf-accordion {
  border-bottom: 2px solid #e9ecef;
}

.cf-accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: #fff;
  border: 0;
  cursor: pointer;
  text-align: left;
  gap: 12px;
  transition: background 0.2s;
}

.cf-accordion__trigger:hover:not([disabled]) {
  background: #f8faf8;
}

.cf-accordion__trigger[disabled] {
  cursor: not-allowed;
  opacity: 0.55;
}

.cf-accordion__trigger-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cf-accordion__trigger-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Status circle */
.cf-status-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #ced4da;
  background: #fff;
  flex-shrink: 0;
  transition: all 0.25s;
}

.cf-status-circle.done {
  background: #2d6a2d;
  border-color: #2d6a2d;
  color: #fff;
}

.cf-status-circle.done::after {
  content: "✓";
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

/* Label */
.cf-accordion__label {
  font-size: 16px;
  font-weight: 800;
  color: #1a1a1a;
}

/* Counter badge */
.cf-accordion__counter {
  font-size: 12px;
  font-weight: 700;
  color: #6c757d;
  background: #f1f3f5;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.cf-accordion.is-complete .cf-accordion__counter {
  background: #d4edda;
  color: #155724;
}

/* Arrow */
.cf-accordion__arrow {
  font-size: 20px;
  color: #6c757d;
  transition: transform 0.25s;
  line-height: 1;
}

.cf-accordion.is-open .cf-accordion__arrow {
  transform: rotate(180deg);
}

/* Body */
.cf-accordion__body {
  padding: 0 24px 20px;
  background: #fafafa;
}

/* Loading */
.cf-accordion__loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
  text-align: center;
}

.cf-accordion__loading p {
  margin: 12px 0 0;
  color: #6c757d;
  font-weight: 700;
}

/* ══════════════════════════════════════════
   SPINNER
══════════════════════════════════════════ */
.cf-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e9ecef;
  border-top-color: #2d6a2d;
  border-radius: 50%;
  animation: cf-spin 0.75s linear infinite;
}

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

/* ══════════════════════════════════════════
   PIZZA CARDS
══════════════════════════════════════════ */
.cf-pizza-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 12px;
}

.cf-pizza-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px;
  background: #fff;
  border: 2px solid #dee2e6;
  border-radius: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.cf-pizza-card.selected {
  border-color: #2d6a2d;
  background: #f0f7f0;
  box-shadow: 0 2px 12px rgba(45,106,45,.15);
}

.cf-pizza-card__img {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #f1f3f5;
}

.cf-pizza-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cf-pizza-card__info {
  flex: 1;
  min-width: 0;
}

.cf-pizza-card__name {
  font-weight: 900;
  font-size: 15px;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.cf-pizza-card__desc {
  font-size: 12px;
  color: #6c757d;
  line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Variation radio buttons */
.cf-pizza-card__variations {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.cf-pizza-variation {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #f8f9fa;
  border: 2px solid #dee2e6;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

.cf-pizza-variation:hover {
  border-color: #2d6a2d;
  background: #f0f7f0;
}

.cf-pizza-variation input[type="radio"] {
  width: 16px;
  height: 16px;
  margin: 0;
  cursor: pointer;
  accent-color: #2d6a2d;
}

.cf-pizza-variation input[type="radio"]:checked + .cf-pizza-variation__label {
  color: #2d6a2d;
  font-weight: 900;
}

.cf-pizza-variation__label {
  font-size: 13px;
  font-weight: 700;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cf-var-surcharge {
  color: #c82333;
  font-weight: 900;
  font-size: 12px;
}

/* ══════════════════════════════════════════
   SIDES CARDS  (grid)
══════════════════════════════════════════ */
.cf-sides-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding-top: 12px;
}

@media (min-width: 480px) {
  .cf-sides-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 700px) {
  .cf-sides-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.cf-side-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px 10px;
  background: #fff;
  border: 2px solid #dee2e6;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.cf-side-card:hover {
  border-color: #2d6a2d;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(45,106,45,.15);
}

.cf-side-card.selected {
  border-color: #2d6a2d;
  background: #f0f7f0;
  box-shadow: 0 4px 14px rgba(45,106,45,.2);
}

.cf-side-card__img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: #f1f3f5;
  margin-bottom: 8px;
}

.cf-side-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cf-side-card__name {
  font-weight: 800;
  font-size: 13px;
  color: #1a1a1a;
  line-height: 1.3;
}

/* Check mark overlay */
.cf-side-card__check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #dee2e6;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.cf-side-card.selected .cf-side-card__check {
  background: #2d6a2d;
}

.cf-check-icon {
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.2s;
}

.cf-side-card.selected .cf-check-icon {
  opacity: 1;
}

/* ══════════════════════════════════════════
   FOOTER: VALIDATION + ADD TO CART BUTTON
══════════════════════════════════════════ */
.cf-combo-validation {
  font-size: 13px;
  font-weight: 700;
  color: #c82333;
  text-align: center;
  min-height: 18px;
  opacity: 0;
  transition: opacity 0.3s;
}

.cf-combo-validation.is-visible {
  opacity: 1;
}

.cf-btn {
  padding: 15px 24px;
  border: 0;
  border-radius: 14px;
  font-weight: 900;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.cf-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.cf-btn--success {
  background: linear-gradient(135deg, #2d6a2d 0%, #1e4d1e 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(45,106,45,.3);
}

.cf-btn--success:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45,106,45,.4);
}

/* ══════════════════════════════════════════
   CART COMBO DISPLAY
══════════════════════════════════════════ */
.combo-selections {
  font-size: 0.9em;
  color: #666;
  margin-top: 8px;
  padding-left: 8px;
}

.combo-selections > div {
  padding: 2px 0;
  line-height: 1.4;
}

/* ══════════════════════════════════════════
   MOBILE
══════════════════════════════════════════ */
@media (max-width: 600px) {
  .cf-combo-modal__title h2 {
    font-size: 18px;
  }

  .cf-combo-modal__price {
    font-size: 18px;
  }

  .cf-accordion__trigger {
    padding: 14px 16px;
  }

  .cf-accordion__body {
    padding: 0 14px 16px;
  }

  .cf-pizza-card__img {
    width: 64px;
    height: 64px;
  }

  .cf-accordion__label {
    font-size: 14px;
  }
}

/* ══════════════════════════════════════════
   LOADING STATE
══════════════════════════════════════════ */
.cf-products-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.cf-products-loading p {
  margin: 12px 0 0;
  color: #6c757d;
  font-weight: 700;
}

/* ══════════════════════════════════════════
   LOCKED SECTION HINT
══════════════════════════════════════════ */
.cf-accordion--locked .cf-accordion__label::after {
  content: " 🔒";
  font-size: 12px;
}

.cf-accordion.is-complete .cf-accordion__label::after {
  content: "";
}




/* =============================================================
   WINGS COMBO STYLES
   4 flavour cards stacked vertically — tap any 2 to select
   ============================================================= */

/* Wings reuses #cfWingsList inside .cf-accordion__body
   Override any inherited overflow/scroll from stepper era */
#cfWingsList {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    overflow: visible !important;
    overflow-x: visible !important;
    padding: 8px 0 12px !important;
    width: 100% !important;
}

/* Wing card — full width row: image | name+desc | tick */
.cf-wing-card {
    display: grid !important;
    grid-template-columns: 56px 1fr 36px !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px 14px !important;
    background: #ffffff !important;
    border: 2px solid #e9ecef !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    user-select: none !important;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* reset any column/flex-column from .cf-side-card */
    flex-direction: unset !important;
    text-align: left !important;
}

.cf-wing-card:hover {
    border-color: #adb5bd !important;
}

.cf-wing-card.selected {
    border-color: #cc0000 !important;
    background: #fff8f8 !important;
    box-shadow: 0 2px 10px rgba(204,0,0,0.12) !important;
}

/* Image cell */
.cf-wing-card .cf-side-card__img {
    width: 56px !important;
    height: 56px !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    background: #f1f3f5 !important;
}

.cf-wing-card .cf-side-card__img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* Name + description cell */
.cf-wing-card .cf-side-card__name {
    font-weight: 800 !important;
    font-size: 14px !important;
    color: #1a1a1a !important;
    line-height: 1.3 !important;
}

.cf-wing-card .cf-side-card__desc {
    font-size: 12px !important;
    color: #6c757d !important;
    font-weight: 400 !important;
    margin-top: 3px !important;
    line-height: 1.4 !important;
}

/* Tick circle */
.cf-wing-card .cf-side-card__check {
    width: 32px !important;
    height: 32px !important;
    border: 2px solid #dee2e6 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    transition: all 0.18s ease !important;
    background: #ffffff !important;
}

.cf-wing-card .cf-check-icon {
    color: transparent !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    transition: color 0.15s ease !important;
}

.cf-wing-card.selected .cf-side-card__check {
    background: #cc0000 !important;
    border-color: #cc0000 !important;
}

.cf-wing-card.selected .cf-check-icon {
    color: #ffffff !important;
}

/* Chips auto-include notice (wings_chips only) */
.cf-wings-chips-notice {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 16px 0 4px;
    padding: 14px 16px;
    background: #f1f8e9;
    border: 2px solid #9ccc65;
    border-radius: 12px;
}

.cf-wings-chips-notice__icon {
    font-size: 28px;
    flex-shrink: 0;
}

.cf-wings-chips-notice strong {
    display: block;
    font-weight: 900;
    font-size: 14px;
    color: #33691e;
    margin-bottom: 2px;
}

.cf-wings-chips-notice p {
    margin: 0;
    font-size: 13px;
    color: #558b2f;
}
