/* ============================================================
   Delhivery B2C Pro – Product Page Pincode Widget
   ============================================================ */

.dbf2c-pin-widget {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    border: 1.5px solid #e0e6f0;
    border-radius: 10px;
    padding: 14px 16px;
    margin: 16px 0;
    background: #fafcff;
    max-width: 480px;
}

/* ── Header ── */
.dbf2c-pin-header {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 10px;
}
.dbf2c-pin-icon  { font-size: 16px; }
.dbf2c-pin-title {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a2e;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* ── Input Row ── */
.dbf2c-pin-input-row {
    display: flex;
    gap: 8px;
    align-items: center;
}
.dbf2c-pin-input {
    flex: 1;
    padding: 9px 12px;
    border: 1.5px solid #ccd6e0;
    border-radius: 7px;
    font-size: 14px;
    color: #1a1a2e;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
    min-width: 0;
}
.dbf2c-pin-input:focus {
    outline: none;
    border-color: #d7282f;
    box-shadow: 0 0 0 3px rgba(215,40,47,.1);
}
.dbf2c-pin-input::placeholder { color: #aab; }

.dbf2c-pin-check-btn {
    background: #d7282f;
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s, opacity .15s;
    flex-shrink: 0;
}
.dbf2c-pin-check-btn:hover    { background: #b01e24; }
.dbf2c-pin-check-btn:disabled { opacity: .6; cursor: default; }

/* ── Result Panel ── */
.dbf2c-pin-result { margin-top: 12px; }

/* ── Serviceable ── */
.dbf2c-pin-ok {
    background: #f0fff4;
    border: 1px solid #a8e6bf;
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.dbf2c-pin-location {
    font-size: 13px;
    color: #1a1a2e;
    line-height: 1.4;
}
.dbf2c-pin-check-icon { font-size: 15px; }

/* Flags */
.dbf2c-pin-flags { display: flex; flex-wrap: wrap; gap: 6px; }
.dbf2c-flag {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
}
.dbf2c-flag-prepaid { background: #e8f4fd; color: #1a6fa5; border: 1px solid #a8d4f0; }
.dbf2c-flag-cod     { background: #e8fdf0; color: #1a6e2a; border: 1px solid #a8e6bf; }
.dbf2c-flag-no-cod  { background: #fff4f4; color: #a00;    border: 1px solid #f5c2c2; }

/* EDD List */
.dbf2c-edd-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 2px;
}
.dbf2c-edd-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    flex-wrap: wrap;
}
.dbf2c-edd-mode {
    background: #fff;
    border: 1px solid #dde6f0;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    letter-spacing: .4px;
    flex-shrink: 0;
}
.dbf2c-edd-by   { color: #666; }
.dbf2c-edd-date { color: #1a1a2e; }
.dbf2c-edd-date strong { color: #d7282f; }

/* Change pin */
.dbf2c-change-pin {
    background: none;
    border: none;
    color: #4a7fa5;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    align-self: flex-start;
    margin-top: 2px;
}
.dbf2c-change-pin:hover { color: #d7282f; }

/* ── Not Serviceable ── */
.dbf2c-pin-fail {
    background: #fff4f4;
    border: 1px solid #f5c2c2;
    border-radius: 8px;
    padding: 11px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    color: #7a0000;
    line-height: 1.5;
}
.dbf2c-pin-fail-icon { font-size: 15px; }

/* ── Error / Info inline ── */
.dbf2c-pin-error {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 7px;
    padding: 9px 12px;
    font-size: 13px;
    color: #7a5800;
}

/* ── Responsive ── */
@media (max-width: 400px) {
    .dbf2c-pin-widget     { padding: 12px; }
    .dbf2c-edd-row        { flex-direction: column; align-items: flex-start; gap: 2px; }
}

/* ODA notice */
.dbf2c-oda-notice {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 6px;
    padding: 7px 10px;
    font-size: 12px;
    color: #7a5800;
}
