/* Dự toán lăn bánh — VinFast style */

.dlb-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px 56px;
    font-family: inherit;
    color: #333;
    background: transparent;
    line-height: 1.5;
}

.dlb-header { text-align: center; margin-bottom: 32px; }
.dlb-title {
    font-size: 28px; font-weight: 700; margin: 0 0 8px;
    color: #1a1a1a; letter-spacing: 0;
}
.dlb-subtitle {
    color: #757575; margin: 0 auto; font-size: 15px;
    max-width: 560px; line-height: 1.5;
}

/* === Layout === */
.dlb-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}
.dlb-col-left {
    flex: 0 0 55%;
    width: 55%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.dlb-col-right {
    flex: 0 0 calc(45% - 24px);
    width: calc(45% - 24px);
}
@media (max-width: 992px) {
    .dlb-layout { flex-direction: column; }
    .dlb-col-left,
    .dlb-col-right {
        flex: 1 1 100%;
        width: 100%;
    }
}

/* === Cards === */
.dlb-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .05);
    padding: 24px;
    margin-bottom: 0;
}
.dlb-col-left > .dlb-card { margin-bottom: 0; }
.dlb-card-summary {
    position: sticky;
    top: 24px;
}

.dlb-section-title,
.dlb-summary-title {
    font-size: 14px; font-weight: 700; letter-spacing: .5px;
    margin: 0 0 20px; color: #1a1a1a; text-transform: uppercase;
}
.dlb-summary-title { font-size: 16px; margin-bottom: 24px; }

/* === Config row: Dòng xe + Phiên bản === */
.dlb-config-row {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}
.dlb-config-row .dlb-float-field {
    flex: 1;
    min-width: 0;
    margin-bottom: 0;
}
@media (max-width: 768px) {
    .dlb-config-row {
        flex-direction: column;
        gap: 20px;
    }
}

.dlb-segment-display {
    margin: -8px 0 20px;
}
.dlb-segment-display.is-hidden { display: none !important; }
.dlb-segment-label {
    display: block;
    font-size: 14px;
    color: #757575;
    margin-bottom: 4px;
}
.dlb-segment-value {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

/* === Form fields === */
.dlb-float-field { position: relative; margin-bottom: 20px; }
.dlb-float-field > label,
.dlb-inline-label {
    display: block;
    font-size: 13px;
    color: #757575;
    margin-bottom: 8px;
    font-weight: 500;
    position: static;
    background: none;
    padding: 0;
    pointer-events: auto;
}
.dlb-province-field,
.dlb-vinclub-field { margin-bottom: 0; }
.dlb-req { color: #e53935; }

.dlb-select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fff;
    font-size: 15px;
    color: #333;
    appearance: none;
    cursor: pointer;
    font-family: inherit;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M7%2010l5%205%205-5%22%20stroke%3D%22%23757575%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    transition: border-color .15s, box-shadow .15s;
    outline: none;
}
.dlb-select:focus {
    border-color: #1464f4;
    box-shadow: 0 0 0 3px rgba(20, 100, 244, .1);
}
.dlb-select:disabled {
    background-color: #f8f9fa;
    color: #999;
    cursor: not-allowed;
}

/* === Custom dropdown === */
.dlb-custom-select {
    position: relative;
    user-select: none;
}
.dlb-custom-select-trigger {
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fff;
    font-size: 15px;
    cursor: pointer;
    text-align: left;
    transition: border-color .15s, box-shadow .15s;
    font: inherit;
    color: inherit;
    position: relative;
}
.dlb-custom-select-trigger:hover:not(:disabled) { border-color: #b0b0b0; }
.dlb-custom-select.is-open .dlb-custom-select-trigger,
.dlb-custom-select-trigger:focus {
    outline: none;
    border-color: #1464f4;
    box-shadow: 0 0 0 3px rgba(20, 100, 244, .1);
}
.dlb-custom-select.is-disabled .dlb-custom-select-trigger {
    background: #f8f9fa;
    color: #999;
    cursor: not-allowed;
}
.dlb-custom-select-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}
.dlb-custom-thumb,
.dlb-option-thumb {
    width: 48px;
    height: auto;
    max-height: 32px;
    object-fit: contain;
    flex-shrink: 0;
}
.dlb-custom-thumb-logo { opacity: .9; }
.dlb-custom-label {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dlb-custom-select-inner.is-empty .dlb-custom-label {
    font-weight: 400;
    color: #999;
}
.dlb-custom-select-chevron {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-left: 8px;
    background: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M7%2010l5%205%205-5%22%20stroke%3D%22%23757575%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E") no-repeat center;
    transition: transform .2s;
}
.dlb-custom-select.is-open .dlb-custom-select-chevron { transform: rotate(180deg); }

.dlb-custom-select-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 100%;
    margin: 0;
    padding: 6px 0;
    list-style: none;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .1);
    z-index: 100;
    max-height: 250px;
    overflow-y: auto;
}
.dlb-custom-select-dropdown[hidden] { display: none !important; }
.dlb-custom-select-option {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: background .12s;
    font-size: 15px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}
.dlb-custom-select-option:last-child { border-bottom: none; }
.dlb-custom-select-option:hover,
.dlb-custom-select-option.is-focused { background: #f8f9fa; }
.dlb-custom-select-option.is-selected {
    background: rgba(20, 100, 244, .05);
    color: #1464f4;
    font-weight: 500;
}
.dlb-custom-select-option.is-disabled {
    color: #999;
    cursor: default;
    pointer-events: none;
}
.dlb-custom-select-option.is-selected::after {
    content: '';
    margin-left: auto;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%231464f4' d='M6.5 11.5L3 8l1-1 2.5 2.5 5-5 1 1z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}
.dlb-option-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

/* === Carousel & colors === */
.dlb-color-block { margin-top: 10px; }
.dlb-carousel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    position: relative;
}
.dlb-carousel-viewport {
    flex: 1;
    min-height: 200px;
    max-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
}
.dlb-carousel-viewport img {
    max-width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: contain;
    display: block;
}
.dlb-carousel-viewport img.dlb-car-photo {
    margin: 0 auto;
}
.dlb-carousel-viewport .dlb-placeholder-logo {
    max-width: 280px;
    width: 70%;
    height: auto;
    opacity: .85;
}
.dlb-color-placeholder {
    color: #aaa;
    font-size: 14px;
    text-align: center;
    padding: 40px 16px;
}

.dlb-carousel-btn {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #1464f4;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color .2s, opacity .2s, transform .15s;
    box-shadow: none;
}
.dlb-carousel-icon {
    display: block;
    width: 40px;
    height: 40px;
    pointer-events: none;
}
.dlb-carousel-btn:hover:not(:disabled) {
    color: #0d4ac0;
    transform: scale(1.05);
}
.dlb-carousel-btn:disabled {
    opacity: .35;
    cursor: not-allowed;
    transform: none;
}

.dlb-color-swatches {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.dlb-swatch {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    padding: 3px;
    border: 2px solid transparent;
    cursor: pointer;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .15s, transform .15s, box-shadow .15s;
    box-sizing: border-box;
}
.dlb-swatch:hover { border-color: #90b4f8; transform: scale(1.08); }
.dlb-swatch.is-active {
    border-color: #1464f4;
    box-shadow: 0 0 0 2px rgba(20, 100, 244, .2);
    transform: scale(1.08);
}
.dlb-swatch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}
.dlb-swatch-color {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #ddd;
    display: block;
}

/* === Promo section === */
.dlb-promo-intro {
    font-size: 14px;
    color: #757575;
    line-height: 1.5;
    margin: -8px 0 16px;
}
.dlb-promo-body {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #eef0f2;
}
.dlb-vinclub-field { margin-bottom: 24px !important; }
.dlb-promo-section.is-locked .dlb-promo-body {
    opacity: .55;
    pointer-events: none;
    user-select: none;
}
.dlb-promo-section.is-locked .dlb-guide-link { pointer-events: auto; }

.dlb-toggle-block {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e0e0e0;
    background: none;
    border-radius: 0;
    padding-left: 0;
    padding-right: 0;
    padding-top: 0;
}
.dlb-toggle-block:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.dlb-toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.dlb-toggle-text { flex: 1; min-width: 0; }
.dlb-toggle-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    cursor: pointer;
    line-height: 1.45;
}
.dlb-toggle-desc {
    display: block;
    font-size: 13px;
    color: #666;
    line-height: 1.45;
    font-weight: 400;
}
.dlb-toggle-amount {
    display: block;
    font-size: 14px;
    color: #1464f4;
    font-weight: 500;
}
.dlb-guide-link {
    font-size: 12px;
    color: #1464f4;
    text-decoration: none;
    display: inline-block;
    margin-top: 8px;
    font-weight: 500;
}
.dlb-guide-link:hover { text-decoration: underline; }

/* Toggle — tránh xung đột class .slider / .switch của theme */
.dlb-wrap .dlb-switch-ui {
    position: relative;
    display: inline-block;
    width: 48px !important;
    height: 26px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    flex-shrink: 0;
}
.dlb-wrap .dlb-switch-ui input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
}
.dlb-wrap .dlb-switch-track {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 48px !important;
    height: 26px !important;
    background: #cbd5e1;
    border-radius: 26px;
    cursor: pointer;
    transition: background .2s;
    display: block;
    box-sizing: border-box;
}
.dlb-wrap .dlb-switch-track::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform .2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .2);
}
.dlb-wrap .dlb-switch-ui input:checked + .dlb-switch-track { background: #1464f4; }
.dlb-wrap .dlb-switch-ui input:checked + .dlb-switch-track::before { transform: translateX(22px); }
.dlb-wrap .dlb-switch-ui input:focus-visible + .dlb-switch-track {
    box-shadow: 0 0 0 3px rgba(20, 100, 244, .25);
}

/* === Summary card === */
.dlb-lines { list-style: none; margin: 0 0 16px; padding: 0; }
.dlb-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 15px;
    gap: 16px;
}
.dlb-line-label {
    color: #757575;
    font-weight: 500;
    flex: 1;
}
.dlb-line-label small {
    display: block;
    font-size: 12px;
    margin-top: 2px;
    color: #888;
    font-weight: 400;
}
.dlb-line-value {
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.dlb-hr {
    border: none;
    border-top: 1px dashed #e0e0e0;
    margin: 16px 0;
}

.dlb-fees-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    cursor: pointer;
    user-select: none;
    border-radius: 4px;
    transition: background .15s;
}
.dlb-fees-head:hover { background: #fafafa; }
.dlb-fees-head .dlb-line-label { color: #333; font-weight: 600; }
.dlb-fees-head-right {
    display: flex;
    align-items: center;
    gap: 10px;
}
.dlb-chevron {
    font-size: 18px;
    color: #757575;
    transition: transform .3s ease;
    display: inline-block;
    line-height: 1;
}
.dlb-fees-head.is-closed .dlb-chevron { transform: rotate(-90deg); }

.dlb-fees-detail {
    padding-left: 16px;
    max-height: 500px;
    overflow: hidden;
    transition: max-height .4s ease, opacity .4s ease;
    opacity: 1;
}
.dlb-fees-detail.is-closed {
    max-height: 0;
    opacity: 0;
    margin-bottom: 0;
    padding-left: 16px;
}
.dlb-line-sub {
    font-size: 14px;
    padding: 6px 0;
    color: #757575;
}
.dlb-line-sub span:first-child { color: #757575; }
.dlb-line-sub span:last-child { color: #333; font-weight: 500; }

.dlb-line-discount .dlb-line-label { color: #e53935; }
.dlb-line-discount .dlb-line-value { color: #e53935; }

.dlb-adjusted {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    font-weight: 600;
    margin: 20px 0;
}
.dlb-copy-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}
.dlb-adjusted-price {
    font-size: 17px;
    font-weight: 700;
    color: #333;
}
.dlb-copy-btn {
    font-size: 13px;
    color: #1464f4;
    background: rgba(20, 100, 244, .1);
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.dlb-copy-btn:hover {
    background: #1464f4;
    color: #fff;
}

.dlb-total-box {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid #eef0f2;
}
.dlb-total-box label {
    display: block;
    font-size: 14px;
    color: #757575;
    margin-bottom: 8px;
    font-weight: 500;
}
.dlb-total {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.dlb-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    margin-bottom: 24px;
    transition: background .15s, color .15s;
}
.dlb-btn-outline {
    border: 2px solid #1464f4;
    color: #1464f4;
    background: transparent;
}
.dlb-btn-outline:hover {
    background: #1464f4;
    color: #fff;
}
.dlb-btn-outline[aria-disabled="true"] {
    opacity: .4;
    pointer-events: none;
    cursor: not-allowed;
}

.dlb-disclaimer {
    font-size: 12px;
    color: #757575;
    text-align: center;
    margin-bottom: 12px;
    line-height: 1.6;
}
.dlb-hotline {
    font-size: 13px;
    color: #757575;
    text-align: center;
    font-weight: 500;
    margin: 0;
}
.dlb-hotline a {
    color: #1464f4;
    font-weight: 700;
    text-decoration: none;
}
