/**
 * Shipping Banner & Modal Styles
 */

/* === STICKY BANNER === */
.brezen-shipping-banner {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: #0073aa;
    color: #fff;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.brezen-shipping-banner.not-configured {
    background: #d63638;
    cursor: pointer;
}

.brezen-shipping-banner.configured {
    background: #0073aa;
}

.banner-summary {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* SVG Icon styling */
.brezen-icon {
    width: 24px;
    height: 24px;
    display: inline-block;
    vertical-align: middle;
}

/* White icons in banner (dark background) */
.brezen-shipping-banner .brezen-icon {
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(1);
}

/* Dark icons in modal method cards */
.method-card-icon .brezen-icon {
    width: 56px;
    height: 56px;
    filter: none;
}

.banner-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.banner-text {
    flex: 1;
    font-size: 15px;
    line-height: 1.4;
}

.banner-text strong {
    font-weight: 700;
}

.banner-change-btn,
.banner-config-btn {
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.4);
    padding: 6px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.2s;
}

.banner-change-btn:hover,
.banner-config-btn:hover {
    background: rgba(255,255,255,0.35);
}

/* === MODAL === */
.brezen-shipping-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    width: 90%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-content h2 {
    margin: 0 0 25px 0;
    font-size: 24px;
    color: #1d2327;
    text-align: center;
}

.modal-content h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #1d2327;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

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

/* Method Cards */
.method-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.method-card {
    border: 2px solid #ddd;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.method-card:hover {
    border-color: #0073aa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.method-card.selected {
    border-color: #0073aa;
    background: #f0f8ff;
}

.method-card-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.method-card h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
    text-align: center;
}

.method-card p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

/* Modal Fields */
.modal-field {
    margin-bottom: 18px;
}

.modal-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
    color: #1d2327;
}

.modal-field input,
.modal-field select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.modal-field input:focus,
.modal-field select:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,115,170,0.15);
}

.field-hint {
    margin: 4px 0 0;
    font-size: 12px;
    color: #888;
}

.required {
    color: #d63638;
}

/* Modal Actions */
.modal-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #eee;
}

.btn-back {
    background: #f0f0f0;
    color: #333;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-back:hover {
    background: #e0e0e0;
}

.btn-confirm {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-confirm:hover {
    background: #005a87;
}

.btn-confirm:disabled {
    background: #999;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 600px) {
    .modal-content {
        padding: 25px 20px;
        width: 95%;
    }
    
    .method-cards {
        grid-template-columns: 1fr;
    }
    
    .banner-summary {
        padding: 10px 15px;
    }
    
    .banner-text {
        font-size: 13px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
}
