/* ─── Delivery Widget — structural only, theme owns visual styles ── */
.mfcs-delivery-widget {
    margin-top: 1.2em;
    margin-bottom: 0.5em;
}

/* Label row */
.mfcs-dw-label {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0 0 8px !important;
    font-size: 0.85em;
    font-weight: 600;
    opacity: 0.75;
}

.mfcs-dw-icon {
    flex-shrink: 0;
    display: block;
    width: 13px !important;
    height: 13px !important;
}

/* Input row */
.mfcs-dw-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mfcs-dw-input {
    max-width: 260px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 10px 14px !important;
    font-size: 15px !important;
    letter-spacing: 0.12em;
}

/* Spinner — shown inside the row while loading */
.mfcs-dw-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    opacity: 0.5;
    animation: mfcs-spin 0.7s linear infinite;
    flex-shrink: 0;
}
.mfcs-dw-spinner.active { display: inline-block; }

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

/* Result area */
.mfcs-dw-result {
    margin-top: 8px;
    font-size: 0.85em;
    display: none;
    line-height: 1.5;
}
.mfcs-dw-result.visible { display: block; }

/* Success */
.mfcs-dw-ok {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    color: #276732;
}
.mfcs-dw-ok .mfcs-dw-status-icon { color: #276732; flex-shrink: 0; margin-top: 2px; }

/* Fail */
.mfcs-dw-fail {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    color: #8b1a1a;
}
.mfcs-dw-fail .mfcs-dw-status-icon { color: #8b1a1a; flex-shrink: 0; margin-top: 2px; }

.mfcs-dw-msg-wrap { flex: 1; }

.mfcs-dw-fee {
    font-weight: 600;
    margin-top: 2px;
}

/* Change link */
.mfcs-dw-change {
    display: inline;
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    font-size: 0.95em;
    cursor: pointer;
    text-decoration: underline;
    color: inherit;
    opacity: 0.7;
    margin-left: 6px;
}
.mfcs-dw-change:hover { opacity: 1; }
