/* 代驾费用估算 /css/tools/designated-driver-fee.css */

.ddf-total-box {
    border-radius: 14px;
    padding: 16px 18px;
    background: linear-gradient(135deg, rgba(124, 92, 255, 0.1), rgba(0, 184, 212, 0.08));
    border: 1px solid rgba(124, 92, 255, 0.3);
    margin-bottom: 12px;
}
.ddf-total-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.ddf-total-row .k { font-size: 13px; font-weight: 800; color: var(--c-text-sub); }
.ddf-total-row .v { font-size: 32px; font-weight: 900; color: #7c5cff; line-height: 1.1; }
.ddf-range { font-size: 12px; color: var(--c-text-muted); margin-top: 6px; }
.ddf-cond { font-size: 12px; color: var(--c-text-sub); margin-top: 4px; }

.ddf-detail {
    border: 1px solid var(--c-border);
    border-radius: 12px;
    padding: 6px 14px;
    margin-bottom: 12px;
    background: var(--c-surface-soft);
}
.ddf-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    font-size: 12.5px;
    color: var(--c-text-sub);
    line-height: 2.1;
    border-bottom: 1px dashed var(--c-border);
}
.ddf-row:last-child { border-bottom: none; }
.ddf-row .v { font-weight: 700; color: var(--c-text); white-space: nowrap; }
.ddf-row.is-muted { color: var(--c-text-muted); }

.ddf-cmp {
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 12.5px;
    line-height: 1.85;
    color: var(--c-text-sub);
    background: rgba(16, 185, 129, 0.07);
    border: 1px solid rgba(16, 185, 129, 0.3);
    margin-bottom: 10px;
}
.ddf-taxi {
    font-size: 12.5px;
    color: var(--c-text-muted);
    line-height: 1.9;
}

.ddf-tip {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-size: 12px;
    line-height: 1.75;
    color: var(--c-text-muted);
    border-top: 1px dashed var(--c-border);
    margin-top: 10px;
    padding-top: 10px;
}
.ddf-tip .ic { flex: none; }

.ddf-check {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--c-border);
    border-radius: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    font-size: 13px;
    background: var(--c-surface-soft);
    user-select: none;
}
.ddf-check input { width: 16px; height: 16px; accent-color: #7c5cff; flex: none; margin: 0; }
.ddf-check .sub { display: block; font-size: 11.5px; color: var(--c-text-muted); margin-top: 2px; }

.ddf-toast {
    position: fixed;
    left: 50%;
    bottom: 60px;
    transform: translateX(-50%) translateY(20px);
    background: rgba(15, 23, 42, 0.92);
    color: #fff;
    font-size: 13px;
    padding: 10px 18px;
    border-radius: 99px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 9999;
    max-width: 86vw;
    text-align: center;
}
.ddf-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

[data-theme="dark"] .ddf-total-row .v { color: #a78bff; }
[data-theme="dark"] .ddf-check input { accent-color: #a78bff; }
[data-theme="dark"] .ddf-toast { background: rgba(226, 232, 240, 0.95); color: #0f172a; }
