//////////////// Modal Styles ///////////////////////
.branch-selector-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.location-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 10px;
    box-sizing: border-box;
}

.location-modal {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 480px;
    max-height: 80vh;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, #8db4a0, #7a9f8f);
    color: white;
    padding: 3px 20px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 22px;
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.close-btn:hover {
    background-color: rgba(255,255,255,0.1);
}

.service-toggle {
    display: flex;
    padding: 0px 16px 0 16px;
    gap: 0;
    /* flex-shrink: 0; */
}

.service-btn {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid #8db4a0;
    background: white;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

.service-btn:first-child {
    border-radius: 20px 0 0 20px;
}

.service-btn:last-child {
    border-radius: 0 20px 20px 0;
    border-left: none;
}

.service-btn.active {
    background: #8db4a0;
    color: white;
}

.modal-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.service-section {
    padding: 16px;
    display: none;
}

.service-section.active {
    display: block;
}

.service-section h3 {
    text-align: center;
    margin: 0 0 16px 0;
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

.location-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #856404;
    line-height: 1.4;
}

.notice-icon {
    font-size: 14px;
    margin-top: 1px;
    flex-shrink: 0;
}

.branch-list-container {
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 2px;
}

.branch-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.branch-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 60px;
}

.branch-item:hover {
    border-color: #8db4a0;
    background: #f8fffe;
}

.branch-item.selected {
    border-color: #8db4a0;
    background: #f0f8ff;
    box-shadow: 0 2px 6px rgba(141,180,160,0.15);
}

.branch-info {
    flex: 1;
    text-align: left;
    padding-right: 12px;
}

.branch-info h4 {
    margin: 0 0 4px 0;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.branch-info p {
    margin: 0;
    font-size: 13px;
    color: #666;
    line-height: 1.3;
}

.distance {
    font-size: 12px;
    color: #8db4a0;
    font-weight: 500;
    display: block;
    margin-top: 2px;
}

.branch-radio {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.branch-radio input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
}

.address-input-section {
    margin-bottom: 20px;
}

.input-group {
    margin-bottom: 16px;
}

.input-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.address-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.address-input-wrapper input {
    flex: 1;
    padding: 10px 40px 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

.address-input-wrapper input:focus {
    border-color: #8db4a0;
}

.search-btn {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.search-btn:hover {
    background-color: #f0f0f0;
}

.address-not-found {
    color: #8db4a0;
    text-decoration: underline;
    font-size: 12px;
    margin-top: 6px;
    display: inline-block;
}

#apt-number {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

#apt-number:focus {
    border-color: #8db4a0;
}

.results-count {
    text-align: center;
    margin-bottom: 16px;
    color: #666;
    font-weight: 500;
    font-size: 14px;
}

.delivery-list .branch-item {
    padding: 14px 12px;
}

.confirm-button-container {
    padding: 12px 16px;
    border-top: 1px solid #eee;
    background: white;
    flex-shrink: 0;
}

.confirm-btn {
    width: 100%;
    padding: 12px;
    background: #ddd;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: not-allowed;
    color: #999;
    transition: all 0.3s ease;
}

.confirm-btn.active {
    background: #8db4a0;
    color: white;
    cursor: pointer;
}

.confirm-btn.active:hover {
    background: #7a9f8f;
}

/* Scrollbar styling */
.branch-list-container::-webkit-scrollbar {
    width: 4px;
}

.branch-list-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.branch-list-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
}

.branch-list-container::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

.modal-content::-webkit-scrollbar {
    width: 4px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .location-modal-overlay {
        padding: 5px;
    }
    
    .location-modal {
        max-width: 100%;
        max-height: 95vh;
        border-radius: 8px;
    }
    
    .modal-header {
        padding: 12px 16px;
    }
    
    .modal-header h2 {
        font-size: 15px;
    }
    
    .service-toggle {
        padding: 12px 12px 0 12px;
    }
    
    .service-btn {
        padding: 8px 12px;
        font-size: 13px;
        gap: 4px;
    }
    
    .service-section {
        padding: 12px;
    }
    
    .service-section h3 {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .branch-item {
        padding: 10px;
        min-height: 55px;
    }
    
    .branch-info h4 {
        font-size: 14px;
    }
    
    .branch-info p {
        font-size: 12px;
    }
    
    .confirm-button-container {
        padding: 10px 12px;
    }
    
    .confirm-btn {
        padding: 10px;
        font-size: 14px;
    }
    
    .branch-list-container {
        max-height: 250px;
    }
}

@media (max-width: 400px) {
    .branch-item {
        padding: 8px;
        min-height: 50px;
    }
    
    .branch-info {
        padding-right: 8px;
    }
    
    .branch-info h4 {
        font-size: 13px;
    }
    
    .branch-info p {
        font-size: 11px;
    }
    
    .branch-radio input[type="radio"] {
        width: 16px;
        height: 16px;
    }
    
    .service-section {
        padding: 10px;
    }
}




////////////////////////New Styles////////////////////////
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f5f5f5;
    padding: 20px;
}

.order-nav-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    border: 1px solid #e5e5e5;
}

.order-section {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.order-section:hover {
    opacity: 0.8;
}

.order-details {
    flex-shrink: 0;
}

.order-details h3 {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.delivery-icon {
    width: 24px;
    height: 24px;
    background-color: #f0f0f0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.delivery-section {
    flex: 1;
    min-width: 0;
}

.delivery-header {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.delivery-address {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.delivery-address:hover {
    background-color: #e9ecef;
}

.location-icon {
    font-size: 16px;
    color: #666;
}

.address-text {
    flex: 1;
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-arrow {
    font-size: 12px;
    color: #666;
    margin-left: 8px;
}

.delivery-time {
    flex-shrink: 0;
}

.time-header {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.time-selectors {
    display: flex;
    gap: 12px;
}

.time-selector {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 14px;
    color: #333;
    white-space: nowrap;
}

.time-selector:hover {
    background-color: #e9ecef;
}

.time-selector .dropdown-arrow {
    margin-left: 4px;
    margin-right: 0;
}

/* Responsive design */
@media (max-width: 768px) {
    .order-nav-container {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
    }

    .delivery-section {
        width: 100%;
    }

    .time-selectors {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    .time-selector {
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .order-nav-container {
        padding: 12px;
        gap: 12px;
    }

    .time-selectors {
        gap: 6px;
    }
}

