/**
 * Click-and-Collect Frontend Styles
 */

.brezen-cc-info {
    padding: 15px;
    background: #f0f8ff;
    border-left: 4px solid #0073aa;
    margin: 20px 0;
}

/* Modal Styles */
.brezen-modal {
    display: block;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
}

.brezen-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.brezen-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    line-height: 20px;
    cursor: pointer;
}

.brezen-modal-close:hover,
.brezen-modal-close:focus {
    color: #000;
}

.brezen-modal h2 {
    margin-top: 0;
    color: #333;
}

.brezen-modal h3 {
    color: #666;
    font-size: 16px;
    margin: 20px 0 10px 0;
}

/* Date Selection */
#brezen-dates-list,
#brezen-timeslots-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    margin: 15px 0;
}

.brezen-date-option,
.brezen-timeslot-option {
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    background: #f9f9f9;
}

.brezen-date-option:hover,
.brezen-timeslot-option:hover {
    border-color: #0073aa;
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.2);
}

.brezen-date-option.selected,
.brezen-timeslot-option.selected {
    border-color: #0073aa;
    background: #e5f3ff;
    font-weight: bold;
}

.brezen-timeslot-option small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

/* Confirmation */
#brezen-confirmation {
    margin-top: 20px;
    padding: 20px;
    background: #f0f0f0;
    border-radius: 6px;
}

#brezen-summary {
    margin: 15px 0;
    line-height: 1.6;
}

#brezen-confirm-pickup {
    background: #0073aa;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

#brezen-confirm-pickup:hover {
    background: #005a87;
}

/* Checkout */
.brezen-pickup-selection {
    margin-top: 15px;
}

.brezen-pickup-selection h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
}

#brezen-select-branch {
    background: #0073aa;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

#brezen-select-branch:hover {
    background: #005a87;
}

/* Search Box Styling */
.brezen-search-box {
    margin-bottom: 20px;
    position: relative;
}

#brezen-branch-search {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 2px solid #0073aa;
    border-radius: 6px;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

#brezen-branch-search:focus {
    outline: none;
    border-color: #005a87;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

#brezen-branch-search::placeholder {
    color: #999;
}

.brezen-search-count {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    color: #666;
    font-style: italic;
}

/* Branch Selection Styling */
.brezen-branch-option {
    background: #f9f9f9;
    border: 2px solid #ddd;
    border-radius: 6px;
    padding: 12px 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.brezen-branch-option:hover {
    background: #e8f4f8;
    border-color: #0073aa;
    transform: translateX(5px);
}

.brezen-branch-option strong {
    display: block;
    color: #333;
    font-size: 16px;
    margin-bottom: 4px;
}

/* Date Selection Styling */
.brezen-date-option {
    background: #f0f8ff;
    border: 2px solid #0073aa;
    border-radius: 6px;
    padding: 12px 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.brezen-date-option:hover {
    background: #0073aa;
    color: #fff;
}

.brezen-date-option strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
}

.brezen-date-option.selected {
    background: #005a87;
    color: #fff;
    border-color: #005a87;
}

/* Timeslot Selection Styling */
.brezen-timeslot-option {
    background: #f0fff0;
    border: 2px solid #28a745;
    border-radius: 6px;
    padding: 12px 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.brezen-timeslot-option:hover {
    background: #28a745;
    color: #fff;
}

.brezen-timeslot-option.selected {
    background: #218838;
    color: #fff;
    border-color: #218838;
}

/* Back Button Styling */
.brezen-back-btn {
    background: #6c757d;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 15px;
    font-size: 14px;
}

.brezen-back-btn:hover {
    background: #5a6268;
}

/* Selected Info Display */
#brezen-selected-branch-info,
#brezen-selected-date-info {
    background: #e8f4f8;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    border-left: 4px solid #0073aa;
}

/* Scrollable Lists */
#brezen-branches-list,
#brezen-dates-list,
#brezen-timeslots-list {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}

/* Scrollbar Styling */
#brezen-branches-list::-webkit-scrollbar,
#brezen-dates-list::-webkit-scrollbar,
#brezen-timeslots-list::-webkit-scrollbar {
    width: 8px;
}

#brezen-branches-list::-webkit-scrollbar-track,
#brezen-dates-list::-webkit-scrollbar-track,
#brezen-timeslots-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

#brezen-branches-list::-webkit-scrollbar-thumb,
#brezen-dates-list::-webkit-scrollbar-thumb,
#brezen-timeslots-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

#brezen-branches-list::-webkit-scrollbar-thumb:hover,
#brezen-dates-list::-webkit-scrollbar-thumb:hover,
#brezen-timeslots-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

#brezen-pickup-summary {
    margin-top: 15px;
}

#brezen-pickup-summary strong {
    color: #333;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .brezen-modal-content {
        margin: 10% 10px;
        padding: 20px;
    }
    
    #brezen-dates-list,
    #brezen-timeslots-list {
        grid-template-columns: 1fr;
    }
}
