/* Vanguard Simple Shipping - Weight Entry Styles */

.vss-weight-entry {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.vss-weight-entry h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #333;
}

.vss-weight-entry > p {
    margin: 0 0 15px 0;
    color: #666;
}

.vss-weight-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.vss-weight-input-row label {
    font-weight: 600;
    color: #333;
}

.vss-weight-input-row input[type="number"] {
    width: 100px;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    text-align: center;
}

.vss-weight-input-row input[type="number"]:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

.vss-unit {
    color: #666;
    font-size: 14px;
}

.vss-weight-input-row .button {
    background: #0073aa;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.vss-weight-input-row .button:hover {
    background: #005a87;
}

.vss-weight-input-row .button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.vss-weight-help {
    margin: 10px 0 0 0;
}

.vss-weight-help small {
    color: #888;
    font-size: 12px;
}

.vss-weight-notice {
    background: #fff8e5;
    border: 1px solid #ffcc00;
    border-radius: 4px;
    padding: 12px 15px;
    margin-top: 15px;
}

.vss-weight-notice p {
    margin: 0;
    font-size: 13px;
    color: #666;
}

.vss-weight-notice strong {
    color: #856404;
}

#vss-weight-status {
    margin-top: 10px;
}

#vss-weight-status .success {
    background: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #c3e6cb;
}

#vss-weight-status .error {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #f5c6cb;
}

#vss-weight-status .loading {
    color: #666;
    font-style: italic;
}

/* Checkout page warning */
.vss-weight-warning {
    background: #fff3cd;
    color: #856404;
    padding: 12px 16px;
    border-radius: 4px;
    border: 1px solid #ffc107;
    text-align: center;
}

.vss-weight-warning a {
    color: #533f03;
    font-weight: 600;
}

/* Mobile responsive */
@media (max-width: 600px) {
    .vss-weight-input-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .vss-weight-input-row label {
        margin-bottom: 5px;
    }
    
    .vss-weight-input-row input[type="number"] {
        width: 100%;
    }
    
    .vss-weight-input-row .button {
        width: 100%;
        margin-top: 10px;
    }
}
