/**
 * Cart Calendar Group Styles
 */

/* Card container for calendar groups */
.calendar-group-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Header with badge and remove button */
.calendar-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.calendar-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.calendar-badge i {
    font-size: 14px;
}

/* Remove button - clean X button without popup */
.calendar-remove-btn {
    background: none;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6c757d;
    transition: all 0.2s ease;
}

.calendar-remove-btn:hover {
    background: #f8d7da;
    color: #dc3545;
}

.calendar-remove-btn i {
    font-size: 18px;
}

/* Components section */
.calendar-components {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 10px;
}

.calendar-component {
    padding: 5px 0;
}

.calendar-component:not(:last-child) {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 10px;
    margin-bottom: 5px;
}

.component-image img {
    border: 1px solid #e9ecef;
    object-fit: cover;
}

.component-type {
    font-size: 10px;
    padding: 2px 6px;
}

.component-name {
    color: #495057;
}

/* Price and total */
.product-line__total {
    font-size: 1.1em;
}

/* Quantity input styling - use theme's qty component */
.cart__item--calendar-group .qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    overflow: hidden;
}

.cart__item--calendar-group .qty__btn {
    background: #f8f9fa;
    border: none;
    padding: 6px 10px;
    cursor: pointer;
    transition: background 0.2s;
}

.cart__item--calendar-group .qty__btn:hover {
    background: #e9ecef;
}

.cart__item--calendar-group .qty__input {
    width: 50px;
    text-align: center;
    border: none;
    border-left: 1px solid #dee2e6;
    border-right: 1px solid #dee2e6;
    padding: 6px;
}

/* Responsive */
@media (max-width: 576px) {
    .calendar-group-card {
        padding: 12px;
    }
    
    .calendar-components {
        padding: 8px;
    }
    
    .component-image img {
        width: 35px !important;
        height: 35px !important;
    }
}
