/* =========================================================
   WooCommerce Pincode Checker – Frontend Styles
   ========================================================= */

.wpc-pincode-checker {
    margin: 20px 0;
    padding: 18px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fafafa;
    font-family: inherit;
    box-sizing: border-box;
}

/* Header */
.wpc-checker-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.wpc-icon {
    font-size: 20px;
    line-height: 1;
}

.wpc-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

/* Input row */
.wpc-input-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.wpc-input {
    flex: 1 1 180px;
    min-width: 140px;
    padding: 10px 14px;
    border: 1.5px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    letter-spacing: 2px;
    color: #333;
    background: #fff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.wpc-input:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.15);
}

.wpc-input.wpc-input-error {
    border-color: #d32f2f;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.12);
}

/* Button */
.wpc-btn {
    flex-shrink: 0;
    padding: 10px 20px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    white-space: nowrap;
}

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

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

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

/* Result area */
.wpc-result {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
    animation: wpc-fade-in 0.25s ease;
}

@keyframes wpc-fade-in {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Result states */
.wpc-result.wpc-available {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    color: #1b5e20;
}

.wpc-result.wpc-unavailable {
    background: #fce4ec;
    border: 1px solid #f48fb1;
    color: #880e4f;
}

.wpc-result.wpc-error,
.wpc-result.wpc-invalid {
    background: #fff3e0;
    border: 1px solid #ffcc80;
    color: #e65100;
}

.wpc-result.wpc-checking {
    background: #e3f2fd;
    border: 1px solid #90caf9;
    color: #0d47a1;
}

/* Pincode tag shown in result */
.wpc-pincode-tag {
    display: inline-block;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 480px) {
    .wpc-input-row {
        flex-direction: column;
        align-items: stretch;
    }
    .wpc-btn {
        width: 100%;
    }
}
