/* ============================================================
   WC Pincode Delivery Checker — pincode.css  v1.2
   ============================================================ */

.wcpd-wrap {
    margin: 24px 0 6px;
    padding: 20px;
    border-radius: 14px;
    border: 1.5px solid #ebebeb;
    background: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #18181b;
    box-sizing: border-box;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

/* ── Header: icon + bold title ───────────────────────────── */
.wcpd-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 700;
    color: #18181b !important;
    margin: 0 0 4px;
    line-height: 1.3;
    background: none !important;
    padding: 0 !important;
    border: none !important;
}

.wcpd-label .wcpd-pin-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #5b21b6;
}

/* ── Subtitle ─────────────────────────────────────────────── */
.wcpd-subtitle {
    font-size: 13px;
    color: #71717a !important;
    margin: 0 0 14px;
    line-height: 1.5;
    background: none !important;
    padding: 0 !important;
}

/* ── Input row ────────────────────────────────────────────── */
.wcpd-row {
    display: flex;
    gap: 10px;
    align-items: center;
    background: none !important;
}

.wcpd-input {
    flex: 1;
    min-width: 0;
    min-height: 44px;
    padding: 0 16px;
    border: 1.5px solid #e4e4e7 !important;
    border-radius: 10px;
    font-size: 14px;
    color: #18181b;
    background: #ffffff !important;
    outline: none;
    transition: border-color 0.18s, box-shadow 0.18s;
    box-sizing: border-box;
    font-family: inherit;
    -moz-appearance: textfield;
    box-shadow: none !important;
}

.wcpd-input::-webkit-outer-spin-button,
.wcpd-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.wcpd-input:focus {
    border-color: #5b21b6 !important;
    box-shadow: 0 0 0 3px rgba(91,33,182,0.12) !important;
    background: #ffffff !important;
}

.wcpd-input::placeholder { color: #a1a1aa; }

/* ── Check button ─────────────────────────────────────────── */
.wcpd-btn {
    height: 44px;
    padding: 0 30px;
    background: #5b21b6 !important;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    border: none !important;
    border-radius: 7px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.18s, transform 0.1s;
    box-sizing: border-box;
    box-shadow: none !important;
    text-shadow: none !important;
    line-height: 1;
}

.wcpd-btn:hover  { background: #4c1d95 !important; }
.wcpd-btn:active { transform: scale(0.97); }
.wcpd-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ── Result messages ──────────────────────────────────────── */
.wcpd-result {
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.5;
    background: none !important;
}

.wcpd-result:empty { display: none; }

.wcpd-result--success {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 14px;
    background: #f0fdf4 !important;
    border: 1px solid #bbf7d0 !important;
    border-radius: 8px;
    color: #15803d !important;
}

.wcpd-result--success svg { color: #16a34a; flex-shrink: 0; margin-top: 2px; }
.wcpd-result--success strong { color: #14532d; }

.wcpd-result--error {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 14px;
    background: #fef2f2 !important;
    border: 1px solid #fecaca !important;
    border-radius: 8px;
    color: #b91c1c !important;
}

.wcpd-result--error svg { color: #dc2626; flex-shrink: 0; margin-top: 1px; }

.wcpd-result--loading {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #a1a1aa;
}

.wcpd-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #e4e4e7;
    border-top-color: #5b21b6;
    border-radius: 50%;
    animation: wcpdSpin 0.6s linear infinite;
    flex-shrink: 0;
}

@keyframes wcpdSpin { to { transform: rotate(360deg); } }
