/* ============================================================
   Delivery Estimator Widget — Front-End Styles
   ============================================================ */

.dew-widget {
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
}

/* ── Input / Applied Row ─────────────────────────────────── */
.dew-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f5f5f5;
    border-radius: 6px;
    padding: 10px 12px;
    box-sizing: border-box;
}

.dew-pin-icon {
    display: flex;
    align-items: center;
    color: #1a7a6e;
    font-size: 16px;
    flex-shrink: 0;
}

.dew-pin-icon svg,
.dew-pin-icon i {
    width: 1em;
    height: 1em;
}

.dew-pincode-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: inherit;
    font-family: inherit;
    color: #333;
    min-width: 0;
    padding: 0;
}

.dew-pincode-input::placeholder {
    color: #999;
}

/* Remove number input arrows */
.dew-pincode-input::-webkit-outer-spin-button,
.dew-pincode-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.dew-pincode-input[type=number] { -moz-appearance: textfield; }

.dew-pincode-display {
    flex: 1;
    font-weight: 500;
    color: #333;
    font-size: 15px;
}

.dew-apply-btn,
.dew-change-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: #1a7a6e;
    flex-shrink: 0;
    transition: color 0.2s;
    line-height: 1;
}

.dew-apply-btn:hover,
.dew-change-btn:hover {
    color: #145f56;
    text-decoration: underline;
}

/* ── Divider ─────────────────────────────────────────────── */
.dew-divider {
    border: none;
    border-top: 1px solid #e5e5e5;
    margin: 10px 0;
}

/* ── Delivery Row ─────────────────────────────────────────── */
.dew-delivery-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.dew-delivery-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dew-truck-icon {
    display: flex;
    align-items: center;
    color: #1a7a6e;
    font-size: 18px;
}

.dew-truck-icon svg,
.dew-truck-icon i {
    width: 1em;
    height: 1em;
}

.dew-by-label {
    font-size: 13px;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.dew-date-label {
    font-size: 14px;
    font-weight: 700;
    color: #222;
}

/* ── Loader / Spinner ─────────────────────────────────────── */
.dew-loader {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 13px;
    color: #777;
}

.dew-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ddd;
    border-top-color: #1a7a6e;
    border-radius: 50%;
    animation: dew-spin 0.7s linear infinite;
    flex-shrink: 0;
}

@keyframes dew-spin {
    to { transform: rotate(360deg); }
}

/* ── Error ────────────────────────────────────────────────── */
.dew-error {
    font-size: 13px;
    color: #cc0000;
    margin: 6px 0 0;
    padding: 0;
}

/* ── Transitions ──────────────────────────────────────────── */
.dew-input-row,
.dew-delivery-row,
.dew-divider,
.dew-error {
    transition: opacity 0.25s ease;
}
