/* ===========================================
   Şase Doğrulama + Kargo Seçimi Stilleri
   volta.com.tr checkout step2
   =========================================== */

/* Ana container */
.chassis-validator {
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.chassis-header {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
}

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

.chassis-header p {
    margin: 5px 0 0 0;
    font-size: 13px;
}

.chassis-body {
    padding: 20px;
}

/* Input grubu */
.chassis-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.chassis-input-group input[type="text"] {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    font-family: monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: border-color 0.2s;
}

.chassis-input-group input[type="text"]:focus {
    border-color: #95c11f;
    outline: none;
    box-shadow: 0 0 0 3px rgba(149, 193, 31, 0.15);
}

.chassis-input-group input[type="text"]::placeholder {
    text-transform: none;
    letter-spacing: normal;
    font-family: inherit;
    color: #aaa;
}

.btn-validate-chassis {
    background: #95c11f;
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s, transform 0.1s;
}

.btn-validate-chassis:hover {
    background: #7da619;
}

.btn-validate-chassis:active {
    transform: scale(0.98);
}

.btn-validate-chassis:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Sonuç alanları */
.chassis-result {
    margin-top: 15px;
    padding: 15px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
}

.chassis-result.success {
    background: #e8f5e9;
    border: 1px solid #95c11f;
    color: #2e7d32;
}

.chassis-result.success .result-icon {
    color: #95c11f;
    font-size: 20px;
    margin-right: 8px;
}

.chassis-result.error {
    background: #fde8e8;
    border: 1px solid #ef5350;
    color: #c62828;
}

.chassis-result.error .result-icon {
    color: #ef5350;
    font-size: 20px;
    margin-right: 8px;
}

.chassis-result .result-header {
    display: flex;
    align-items: center;
    font-weight: 600;
    margin-bottom: 8px;
}

.chassis-result .model-badge {
    display: inline-block;
    background: #95c11f;
    color: #fff;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    margin-left: 8px;
}

/* Uyumsuz ürün listesi */
.incompatible-list {
    margin-top: 10px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 4px;
}

.incompatible-list ul {
    margin: 5px 0 0 0;
    padding-left: 20px;
}

.incompatible-list li {
    padding: 3px 0;
    font-size: 13px;
}

.incompatible-list li .product-models {
    color: #888;
    font-size: 12px;
}

/* Kargo alanı */
.custom-kargo-display {
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.custom-kargo-display .kargo-header {
    background: #f8f9fa;
    padding: 12px 20px;
    border-bottom: 1px solid #e0e0e0;
    font-weight: 600;
    font-size: 15px;
    color: #333;
}

.custom-kargo-display .kargo-body {
    padding: 15px 20px;
}

.kargo-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border: 2px solid #95c11f;
    border-radius: 6px;
    background: #f0f7e0;
}

.kargo-option .kargo-radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #95c11f;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.kargo-option .kargo-radio::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #95c11f;
}

.kargo-option .kargo-name {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

/* Karma sepet uyarısı */
.mixed-cart-warning {
    margin-bottom: 20px;
    border: 2px solid #ff9800;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.mixed-warning-content {
    padding: 20px;
    background: #fff8e1;
}

.mixed-warning-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.mixed-warning-header .warning-icon {
    font-size: 28px;
    color: #f57c00;
}

.mixed-warning-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #e65100;
}

.mixed-warning-text {
    font-size: 14px;
    color: #795548;
    margin-bottom: 15px;
    line-height: 1.5;
}

.mixed-products-detail {
    display: flex;
    gap: 20px;
}

.mixed-products-column {
    flex: 1;
    padding: 10px 15px;
    border-radius: 6px;
}

.mixed-products-column.spare {
    background: rgba(149, 193, 31, 0.1);
    border: 1px solid rgba(149, 193, 31, 0.3);
}

.mixed-products-column.regular {
    background: rgba(33, 150, 243, 0.08);
    border: 1px solid rgba(33, 150, 243, 0.3);
}

.mixed-products-column h6 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #555;
}

.mixed-products-column ul {
    margin: 0;
    padding-left: 18px;
}

.mixed-products-column li {
    font-size: 13px;
    padding: 2px 0;
    color: #333;
}

/* Doğrulama modalı */
.chassis-validation-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chassis-validation-modal {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 99999;
}

.chassis-validation-modal .modal-icon {
    font-size: 48px;
    color: #ff9800;
    margin-bottom: 15px;
}

.chassis-validation-modal h4 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #333;
}

.chassis-validation-modal p {
    margin: 0 0 20px 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.chassis-validation-modal .btn-modal-close {
    background: #95c11f;
    color: #fff;
    border: none;
    padding: 10px 30px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.chassis-validation-modal .btn-modal-close:hover {
    background: #7da619;
}

/* Responsive */
@media (max-width: 768px) {
    .chassis-input-group {
        flex-direction: column;
    }

    .chassis-input-group input[type="text"] {
        width: 100%;
    }

    .btn-validate-chassis {
        width: 100%;
    }

    .mixed-products-detail {
        flex-direction: column;
        gap: 10px;
    }

    .chassis-validation-modal {
        margin: 0 15px;
    }
}
