@charset "UTF-8";
/**
 * PrestaShop Shipping Product Options Styles
 * 
 * @author Michael Tenenbaum
 * @copyright 2024
 * @license Academic Free License (AFL 3.0)
 */

.shipping-options-container {
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.shipping-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.shipping-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.delivery-info-modal-trigger {
    color: #007cba;
    text-decoration: underline;
    font-size: 14px;
    font-weight: 500;
}

.delivery-info-modal-trigger:hover {
    color: #005a87;
}

.shipping-options {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.shipping-option {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    transition: background 0.2s ease;
}

.shipping-option:last-child {
    border-bottom: none;
}

.shipping-option:hover {
    background: #f8f9fa;
}

.shipping-option.unavailable {
    background: #f5f5f5;
    opacity: 0.8;
}

.option-icon {
    margin-right: 15px;
    font-size: 20px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.option-content {
    flex: 1;
}

.option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.option-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.availability-status {
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.availability-status.available {
    color: #28a745;
}

.availability-status.unavailable {
    color: #dc3545;
}

.option-details {
    color: #666;
    font-size: 14px;
}

.store-availability-link {
    color: #007cba;
    text-decoration: underline;
    font-weight: 500;
    cursor: pointer;
    display: inline-block;
    margin-bottom: 4px;
}

.store-availability-link:hover {
    color: #005a87;
}

.delivery-info {
    margin: 0;
    color: #666;
    font-size: 13px;
}

/* Switch Toggle Styles */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: #28a745;
}

input:focus + .slider {
    box-shadow: 0 0 1px #28a745;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 24px;
}

.slider.round:before {
    border-radius: 50%;
}

.prestashipping-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.prestashipping-modal.show {
    display: flex !important;
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: none;
    overflow: visible;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    opacity: 1 !important;
    z-index: 10000;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e0e0e0;
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #333333;
}

.modal-body {
    padding: 24px;
}

.delivery-info-section {
    margin-bottom: 24px;
}

.delivery-info-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333333;
    margin: 0 0 12px 0;
}

.delivery-info-section ul {
    list-style: none;
    padding: 0;
    margin: 0 0 8px 0;
}

.delivery-info-section li {
    padding: 4px 0;
    font-size: 14px;
    color: #555555;
}

.text-success {
    color: #28a745 !important;
    font-weight: 600;
}

.text-primary {
    color: #007bff !important;
    font-weight: 600;
}

.info-text {
    font-size: 13px;
    color: #666666;
    font-style: italic;
    margin: 8px 0 0 0;
}

.delivery-info-footer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.disclaimer {
    font-size: 12px;
    color: #666666;
    line-height: 1.4;
    margin: 8px 0;
}

/* Store Availability Modal */
.stores-list {
    margin-bottom: 24px;
}

.store-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    margin-bottom: 12px;
    background: #fafafa;
}

.store-info {
    flex: 1;
}

.store-name {
    font-size: 15px;
    font-weight: 600;
    color: #333333;
    margin: 0 0 4px 0;
}

.store-address {
    font-size: 13px;
    color: #666666;
    margin: 0 0 4px 0;
}

.store-distance {
    font-size: 14px;
    font-weight: 600;
    color: #007bff;
    margin-left: 16px;
}

.distance {
    background: #e3f2fd;
    padding: 4px 8px;
    border-radius: 4px;
}

/* Store status indicator with colored dots */
.store-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.status-dot.available {
    background-color: #28a745;
}

.status-dot.unavailable {
    background-color: #dc3545;
}

.status-text {
    font-weight: 600;
    color: #333333;
}

.no-stores {
    text-align: center;
    color: #666666;
    font-style: italic;
    padding: 40px 20px;
}

.store-actions {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.btn {
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.btn-secondary {
    background: #6c757d;
    color: #ffffff;
    border-color: #6c757d;
}

.btn-secondary:hover {
    background: #5a6268;
    border-color: #545b62;
}

.btn-primary {
    background: #007bff;
    color: #ffffff;
    border-color: #007bff;
}

.btn-primary:hover {
    background: #0056b3;
    border-color: #004085;
}

.btn-more-stores {
    margin-bottom: 12px;
}

.store-search-help {
    font-size: 13px;
    color: #666666;
    margin: 0;
}

.search-again {
    color: #007bff;
    text-decoration: underline;
}

.search-again:hover {
    color: #0056b3;
}

.add-to-cart-section {
    text-align: center;
}

.btn-add-to-cart {
    font-size: 16px;
    padding: 12px 24px;
    min-width: 200px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .shipping-options-container {
        padding: 16px;
    }
    
    .shipping-option {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .shipping-icon {
        margin-bottom: 8px;
    }
    
    .shipping-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-body {
        padding: 16px;
    }
    
    .store-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .store-distance {
        margin-left: 0;
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .shipping-title {
        font-size: 16px;
    }
    
    .shipping-name {
        font-size: 14px;
    }
    
    .modal-header {
        padding: 16px;
    }
    
    .modal-header h3 {
        font-size: 18px;
    }
}
