/* ================================================
   Combo Detail – Step Cards
   ================================================ */
.combo-step-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.combo-step-card:hover {
    border-color: #fe9923;
    box-shadow: 0 6px 12px rgba(254, 153, 35, 0.08);
}
.step-badge {
    background-color: #fe9923;
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.group-item-container {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}
.group-item-container:hover {
    background-color: #fffaf5;
    border-color: #fed8b1;
}
.group-item-container.active {
    background-color: #fff6ed;
    border-color: #fe9923;
}
.product-modifiers-wrapper {
    border-top: 1px dashed #e9ecef;
    margin-top: 12px;
    padding-top: 12px;
}

/* ================================================
   Combo Topping Cards – Override to match image UI
   (red primary theme, vertical layout, top-right badge)
   ================================================ */

/* Card base override – row layout matching product-detail */
.combo-selection-block .topping-card {
    flex-direction: row;
    align-items: center;
    padding: 12px 14px;
    border: 2px solid #dee2e6;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    position: relative;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    overflow: visible;
}

.combo-selection-block .topping-card:hover {
    border-color: #e53935;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(229,57,53,0.1);
}

/* Selected state – red theme */
.combo-selection-block .topping-card.selected {
    border-color: #e53935;
    background-color: #fff5f5;
    box-shadow: 0 4px 14px rgba(229,57,53,0.12);
}

/* Top row: icon + name side-by-side (kept for backwards compat, no longer used as wrapper) */
.combo-selection-block .topping-card .topping-card-top {
    display: contents;
}

/* Emoji icon */
.combo-selection-block .topping-card .topping-illustration {
    font-size: 1.8rem;
    line-height: 1;
    flex-shrink: 0;
    width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Name + price text block */
.combo-selection-block .topping-card .topping-details,
.combo-selection-block .topping-card .topping-detail {
    flex: 1;
    min-width: 0;
    padding-left: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.combo-selection-block .topping-card .topping-name,
.combo-selection-block .topping-card .topping-name-text {
    font-size: 0.88rem;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.3;
    white-space: normal;
    word-break: break-word;
}

.combo-selection-block .topping-card .topping-price,
.combo-selection-block .topping-card .topping-price-text {
    font-size: 0.78rem;
    font-weight: 700;
    color: #e53935;
    margin-top: 3px;
    white-space: nowrap;
}

/* Qty stepper – centered below the top row */
.combo-selection-block .topping-card .option-qty-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 4px;
}

.combo-selection-block .topping-card .qty-controls {
    display: inline-flex;
    align-items: center;
    background: #f0f0f0;
    border-radius: 30px;
    padding: 3px 6px;
    gap: 6px;
}

.combo-selection-block .topping-card .qty-controls button {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: #333;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: background 0.15s, color 0.15s;
}

.combo-selection-block .topping-card .qty-controls button:hover {
    background: #e53935;
    color: #fff;
}

.combo-selection-block .topping-card .qty-controls span.opt-qty-display {
    min-width: 28px;
    text-align: center;
    font-size: 14px;
    font-weight: 800;
    color: #1a1a1a;
}

/* Select badge – top-right corner, red circle ✓ */
.combo-selection-block .topping-card .select-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #e53935;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    box-shadow: 0 3px 8px rgba(229,57,53,0.4);
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 5;
}

.combo-selection-block .topping-card.selected .select-badge {
    opacity: 1;
    transform: scale(1);
}

/* ================================================
   Modal Topping Cards – Same red theme for the 
   edit-combo modal (.modal-selection-block scope)
   ================================================ */
.modal-selection-block .topping-card {
    flex-direction: row;
    align-items: center;
    padding: 12px 14px;
    border: 2px solid #dee2e6;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    position: relative;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    overflow: visible;
}

.modal-selection-block .topping-card:hover {
    border-color: #e53935;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(229,57,53,0.1);
}

.modal-selection-block .topping-card.selected {
    border-color: #e53935;
    background-color: #fff5f5;
    box-shadow: 0 4px 14px rgba(229,57,53,0.12);
}

.modal-selection-block .topping-card .topping-card-top {
    display: contents;
}

.modal-selection-block .topping-card .topping-illustration {
    font-size: 1.8rem;
    line-height: 1;
    flex-shrink: 0;
    width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-selection-block .topping-card .topping-details,
.modal-selection-block .topping-card .topping-detail {
    flex: 1;
    min-width: 0;
    padding-left: 12px;
}

.modal-selection-block .topping-card .topping-name,
.modal-selection-block .topping-card .topping-name-text {
    font-size: 0.88rem;
    font-weight: 800;
    color: #1a1a1a;
}

.modal-selection-block .topping-card .topping-price,
.modal-selection-block .topping-card .topping-price-text {
    font-size: 0.78rem;
    font-weight: 700;
    color: #e53935;
}

.modal-selection-block .topping-card .option-qty-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 4px;
}

.modal-selection-block .topping-card .qty-controls {
    display: inline-flex;
    align-items: center;
    background: #f0f0f0;
    border-radius: 30px;
    padding: 3px 6px;
    gap: 6px;
}

.modal-selection-block .topping-card .qty-controls button {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: #333;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: background 0.15s, color 0.15s;
}

.modal-selection-block .topping-card .qty-controls button:hover {
    background: #e53935;
    color: #fff;
}

.modal-selection-block .topping-card .qty-controls span.opt-qty-display {
    min-width: 28px;
    text-align: center;
    font-size: 14px;
    font-weight: 800;
    color: #1a1a1a;
}

.modal-selection-block .topping-card .select-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #e53935;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    box-shadow: 0 3px 8px rgba(229,57,53,0.4);
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 5;
}

.modal-selection-block .topping-card.selected .select-badge {
    opacity: 1;
    transform: scale(1);
}

/* ================================================
   Order Summary Card Redesign Overrides
   ================================================ */
#selected_combo_choices_summary li {
    position: relative !important;
    padding-right: 0 !important;
    margin-bottom: 16px !important;
    border-bottom: 1px solid #eee !important;
    padding-bottom: 8px !important;
    display: block !important;
}

#selected_combo_choices_summary li:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

#selected_combo_choices_summary span,
#selected_combo_choices_summary small,
#selected_combo_choices_summary div {
    position: static !important;
}

#selected_combo_choices_summary .float-end {
    float: right !important;
}

