/* Taiwan last-mile delivery panel (新竹物流) — 2026-04-23 */

.tw-delivery {
    margin-top: .8rem;
    padding: .8rem .9rem;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
    font-size: .9rem;
}

.tw-delivery__header {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-weight: 600;
    font-size: .95rem;
    color: #0f172a;
    margin-bottom: .6rem;
}

.tw-delivery__header i {
    color: #0d7566;
}

.tw-city-select {
    width: 100%;
    padding: .5rem .6rem;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #fff;
    font-size: .88rem;
    font-weight: 500;
    color: #0f172a;
    margin-bottom: .55rem;
    cursor: pointer;
}

.tw-city-select:focus {
    outline: 2px solid #0d7566;
    outline-offset: 1px;
}

.tw-result {
    font-size: .85rem;
    line-height: 1.5;
}

.tw-summary {
    color: #475569;
    margin-bottom: .5rem;
    font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
    font-size: .82rem;
}

.tw-summary strong {
    color: #0f172a;
    font-weight: 700;
}

.tw-fee {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .5rem;
    padding: .55rem .7rem;
    background: #ecfdf5;
    border-radius: 7px;
    border-left: 4px solid #10b981;
}

.tw-fee__label {
    font-weight: 600;
    color: #065f46;
}

.tw-fee__amount {
    font-weight: 800;
    font-size: 1.05rem;
    color: #047857;
    white-space: nowrap;
}

.tw-alert {
    padding: .55rem .7rem;
    border-radius: 7px;
    font-size: .85rem;
    line-height: 1.45;
    margin-bottom: .4rem;
}

.tw-alert small {
    display: block;
    margin-top: .2rem;
    font-size: .78rem;
    opacity: .85;
}

.tw-alert--danger {
    background: #fef2f2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.tw-alert--warn {
    background: #fff7ed;
    color: #9a3412;
    border-left: 4px solid #f97316;
}

.tw-alert--info {
    background: #eff6ff;
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}

.tw-hint {
    color: #475569;
    padding: .45rem .7rem;
    background: #f1f5f9;
    border-radius: 7px;
    font-size: .83rem;
}

.tw-hint strong {
    color: #0f172a;
}

@media (max-width: 480px) {
    .tw-fee {
        flex-direction: column;
        align-items: flex-start;
        gap: .25rem;
    }
}
