/**
 * Dhondaley Shiprocket - Product Page Delivery & Pincode Estimator
 * Fluid Responsive styling with zero element overlapping
 */

.shiprocket-delivery-estimator {
    box-sizing: border-box;
    margin: 18px 0;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    max-width: 440px;
    width: 100%;
}

.shiprocket-delivery-estimator * {
    box-sizing: border-box;
}

.shiprocket-delivery-estimator .estimator-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    flex-wrap: wrap;
}

.shiprocket-delivery-estimator .estimator-input-wrapper {
    display: flex;
    gap: 8px;
    width: 100%;
}

.shiprocket-delivery-estimator .sr-pincode-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 40px;
    padding: 6px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    letter-spacing: 1px;
    color: #0f172a;
    background: #ffffff;
}

.shiprocket-delivery-estimator .sr-pincode-input:focus {
    border-color: #0284c7;
    outline: none;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.18);
}

.shiprocket-delivery-estimator .sr-pincode-btn {
    flex: 0 0 auto;
    height: 40px;
    padding: 0 18px;
    background: #0284c7;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.15s ease;
    white-space: nowrap;
}

.shiprocket-delivery-estimator .sr-pincode-btn:hover {
    background: #0369a1;
}

.shiprocket-delivery-estimator .sr-estimator-loading {
    padding: 8px 0;
    font-size: 13px;
    color: #64748b;
}

.shiprocket-delivery-estimator .sr-estimator-result {
    padding-top: 6px;
}

.shiprocket-delivery-estimator .sr-eta-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.shiprocket-delivery-estimator .sr-bolt {
    color: #f59e0b;
}

.shiprocket-delivery-estimator .sr-courier-sub {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 6px;
    line-height: 1.4;
    word-break: break-word;
}

.shiprocket-delivery-estimator .sr-cod-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #dcfce7;
    color: #166534;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.shiprocket-delivery-estimator .sr-change-pin a {
    font-size: 12px;
    color: #0284c7;
    text-decoration: underline;
    cursor: pointer;
    font-weight: 600;
}

.shiprocket-delivery-estimator .sr-estimator-error {
    color: #dc2626;
    font-size: 13px;
    padding: 6px 0;
    line-height: 1.4;
    word-break: break-word;
}

@media (max-width: 360px) {
    .shiprocket-delivery-estimator .estimator-input-wrapper {
        flex-direction: column;
    }
    .shiprocket-delivery-estimator .sr-pincode-btn {
        width: 100%;
    }
}
