/* Capri Blu Totem v0.4.61 - contrasto verifica + badge portata centrato */

/* Il video resta visibile, ma le schede devono avere contrasto reale. */
#screen-review .review-list > .review-row,
#screen-review .review-table-box,
#screen-review .cart-total-box,
#screen-review .allergen-notice {
  background: linear-gradient(135deg, rgba(3, 24, 41, .91), rgba(7, 47, 72, .86)) !important;
  border: 1px solid rgba(255,255,255,.30) !important;
  box-shadow: 0 12px 30px rgba(0,0,0,.30) !important;
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.28);
}

#screen-review .review-row > div > strong,
#screen-review .review-row > strong,
#screen-review .review-row p,
#screen-review .review-table-box span,
#screen-review .review-table-box strong,
#screen-review .cart-total-box span,
#screen-review .allergen-notice {
  color: #fff !important;
  opacity: 1 !important;
}

#screen-review #review-total {
  color: #fff1c7 !important;
  opacity: 1 !important;
  text-shadow: 0 1px 3px rgba(0,0,0,.45) !important;
}

/* Prezzo riga molto leggibile sul vetro. */
#screen-review .review-row > strong:last-child {
  color: #fff !important;
  font-weight: 900 !important;
  min-width: 92px;
  text-align: right;
}

/* Il badge SUBITO / 1a / 2a / SEGUITO sta al centro della riga. */
#screen-review .review-row:not(.cover-review-row) {
  position: relative !important;
  min-height: 70px;
  padding: 16px 20px !important;
}

#screen-review .review-row:not(.cover-review-row) .cb-review-course {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  margin: 0 !important;
  min-height: 30px !important;
  padding: 6px 13px !important;
  border: 1px solid rgba(255,255,255,.52) !important;
  box-shadow: 0 5px 16px rgba(0,0,0,.22) !important;
  font-size: .75rem !important;
  white-space: nowrap !important;
}

#screen-review .cb-review-course.course-subito {
  background: rgba(38, 116, 168, .94) !important;
  color: #fff !important;
}

#screen-review .cb-review-course.course-prima {
  background: rgba(216, 151, 39, .96) !important;
  color: #fff !important;
}

#screen-review .cb-review-course.course-seconda {
  background: rgba(20, 76, 119, .98) !important;
  color: #fff !important;
}

/* Il coperto non e' una portata. */
#screen-review .cover-review-row .cb-review-course {
  display: none !important;
}

/* Separatori di portata molto piu visibili sul video. */
#screen-review .cb-course-divider-subito,
#screen-review .cb-course-divider-prima,
#screen-review .cb-course-divider-seconda {
  margin: 22px 0 13px !important;
  gap: 14px !important;
  color: #fff !important;
  font-size: 1.08rem !important;
  font-weight: 900 !important;
  letter-spacing: .08em !important;
  text-shadow: 0 2px 5px rgba(0,0,0,.60) !important;
}

#screen-review .cb-course-divider-subito span,
#screen-review .cb-course-divider-prima span,
#screen-review .cb-course-divider-seconda span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 150px;
  min-height: 36px;
  padding: 7px 18px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255,255,255,.46) !important;
  background: rgba(5, 35, 55, .88) !important;
  box-shadow: 0 7px 20px rgba(0,0,0,.23) !important;
}

#screen-review .cb-course-divider-prima span {
  background: rgba(150, 99, 15, .92) !important;
}

#screen-review .cb-course-divider-seconda span {
  background: rgba(10, 58, 93, .94) !important;
}

#screen-review .cb-course-divider-subito::before,
#screen-review .cb-course-divider-subito::after,
#screen-review .cb-course-divider-prima::before,
#screen-review .cb-course-divider-prima::after,
#screen-review .cb-course-divider-seconda::before,
#screen-review .cb-course-divider-seconda::after {
  height: 2px !important;
  opacity: 1 !important;
  background: linear-gradient(90deg, rgba(255,255,255,.10), rgba(255,255,255,.78)) !important;
  box-shadow: 0 1px 4px rgba(0,0,0,.35);
}

#screen-review .cb-course-divider-subito::after,
#screen-review .cb-course-divider-prima::after,
#screen-review .cb-course-divider-seconda::after {
  background: linear-gradient(90deg, rgba(255,255,255,.78), rgba(255,255,255,.10)) !important;
}

/* Il coperto resta separato visivamente dalle portate. */
#screen-review .cover-review-row {
  margin-top: 20px !important;
  border-color: rgba(245,216,148,.48) !important;
}

@media (max-width: 900px) {
  #screen-review .review-row:not(.cover-review-row) .cb-review-course {
    position: static !important;
    transform: none !important;
    margin-top: 8px !important;
  }

  #screen-review .cb-course-divider-subito span,
  #screen-review .cb-course-divider-prima span,
  #screen-review .cb-course-divider-seconda span {
    min-width: 120px;
  }
}
