.drive-orb { color: #fff; text-decoration: none; }

.sd-state {
    grid-column: 1 / -1;
    margin: 0;
    padding: 14px 8px 4px;
    color: #526174;
    font-size: 13px;
    line-height: 1.45;
}

.sd-state strong {
    display: block;
    margin-bottom: 4px;
    color: #10243d;
    font-size: 14px;
}

.sd-state__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.biz-car__meta {
    display: block;
    padding: 0 8px 4px;
    color: #66788b;
    font-size: 11px;
    line-height: 1.35;
}

.biz-car em { padding-bottom: 4px; }

.biz-car__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 0 8px 8px;
}

.biz-car__actions button {
    min-height: 32px;
    padding: 4px 6px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    white-space: normal;
    cursor: pointer;
}

.biz-car__details {
    border: 1px solid #e1e8f0;
    background: #fff;
    color: #10243d;
}

.biz-car__book {
    border: 0;
    background: #f36a16;
    color: #fff;
}

.biz-car__actions button:focus-visible,
.drive-modal button:focus-visible,
.drive-modal a:focus-visible {
    outline: 2px solid #f36a16;
    outline-offset: 2px;
}

.drive-modal__panel {
    width: min(760px, calc(100% - 24px));
    max-height: 90vh;
}

[data-sd-view][hidden] { display: none; }

.sd-vehicle {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 8px;
    border: 1px solid #e7eef6;
    border-radius: 14px;
    background: #f7fafc;
}

.sd-vehicle[hidden] { display: none; }

.sd-vehicle img {
    width: 72px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    background: #e7eef6;
}

.sd-vehicle strong,
.sd-vehicle em { display: block; }
.sd-vehicle strong { color: #10243d; font-size: 14px; }
.sd-vehicle em { color: #526174; font-size: 12px; font-style: normal; }

.sd-textbtn {
    border: 0;
    background: transparent;
    color: #f36a16;
    font-weight: 700;
    cursor: pointer;
}

.drive-field textarea {
    width: 100%;
    min-height: 88px;
    padding: 10px 12px;
    border: 1px solid #e1e8f0;
    border-radius: 12px;
    background: #fff;
    color: #10243d;
    resize: vertical;
}

.drive-field textarea:focus {
    outline: 2px solid rgba(243, 106, 22, 0.35);
    border-color: #f36a16;
}

.sd-avail { margin: 0; font-size: 14px; font-weight: 700; }
.sd-avail[hidden],
.sd-quote[hidden],
[data-sd-redate][hidden] { display: none; }
.sd-avail.is-ok { color: #16803c; }
.sd-avail.is-wait { color: #526174; font-weight: 600; }
.sd-avail.is-bad { color: #c24141; }

.sd-quote {
    display: grid;
    gap: 6px;
    padding: 12px;
    border: 1px solid #e7eef6;
    border-radius: 14px;
    background: #f7fafc;
}

.sd-quote p { margin: 0; color: #526174; font-size: 13px; }
.sd-quote div { display: flex; justify-content: space-between; gap: 12px; color: #10243d; font-size: 14px; }
.sd-quote div[hidden] { display: none; }
.sd-total { font-weight: 800; }

.sd-submitbar {
    position: sticky;
    bottom: 0;
    padding-top: 8px;
    background: linear-gradient(rgba(255, 255, 255, 0), #fff 10px);
}

.sd-submitbar .drive-submit { width: 100%; }

.sd-gallery { display: grid; gap: 8px; }
.sd-gallery__stage {
    position: relative;
    height: 220px;
    overflow: hidden;
    border-radius: 16px;
    background: #f4f7fb;
}

.sd-gallery__stage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sd-gallery__nav {
    position: absolute;
    top: 50%;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #10243d;
    font-size: 20px;
    transform: translateY(-50%);
    cursor: pointer;
}

.sd-gallery__nav--prev { left: 10px; }
.sd-gallery__nav--next { right: 10px; }

.sd-thumbs { display: flex; gap: 8px; overflow-x: auto; }
.sd-thumbs button {
    width: 64px;
    height: 48px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    background: #f4f7fb;
    cursor: pointer;
}

.sd-thumbs button.is-active { border-color: #f36a16; }
.sd-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.sd-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.sd-facts span {
    padding: 6px 10px;
    border-radius: 999px;
    background: #f4f7fb;
    color: #10243d;
    font-size: 12px;
    font-weight: 700;
}

.sd-copy { margin: 0 0 12px; color: #526174; font-size: 14px; line-height: 1.5; }
.sd-features { margin: 0 0 12px; padding: 0; list-style: none; }
.sd-features li { margin: 0 0 6px; color: #10243d; font-size: 14px; }
.sd-price-line { margin: 0 0 6px; color: #10243d; font-size: 14px; }
.sd-bookrow { margin-top: 14px; }

.sd-pick {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    width: 100%;
    margin: 0 0 8px;
    padding: 8px;
    border: 1px solid #e7eef6;
    border-radius: 14px;
    background: #fff;
    text-align: left;
    cursor: pointer;
}

.sd-pick img { width: 72px; height: 48px; object-fit: cover; border-radius: 8px; background: #f4f7fb; }
.sd-pick strong { display: block; color: #10243d; }
.sd-pick em { color: #f36a16; font-size: 12px; font-style: normal; font-weight: 700; }
.sd-pick span { color: #f36a16; font-weight: 800; }

.sd-success-actions {
    position: sticky;
    bottom: 0;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    margin-top: 16px;
    padding-top: 12px;
    background: linear-gradient(rgba(255, 255, 255, 0), #fff 12px);
}
.sd-success-actions .btn { justify-content: center; min-height: 44px; }
.sd-success-body { display: grid; gap: 8px; color: #526174; }
.sd-success-body p { margin: 0; }
.sd-success-body strong { color: #10243d; }

html.drive-lock .float-wa,
html.drive-lock .to-top { visibility: hidden; }
.sd-done [hidden] { display: none !important; }
.sd-done__mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin: 0 0 10px;
    border-radius: 50%;
    background: #e8f8ef;
    color: #15803d;
    font-size: 22px;
    font-weight: 800;
}
.sd-done__thanks { margin: 0 0 14px; color: #526174; }
.sd-done__number,
.sd-done__car,
.sd-done__trip article,
.sd-done__bill,
.sd-done__next {
    border: 1px solid #e7eef6;
    border-radius: 14px;
    background: #f7fafc;
}
.sd-done__number {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 10px;
    align-items: center;
    margin-bottom: 12px;
    padding: 12px;
}
.sd-done__number span,
.sd-done__trip span,
.sd-done__days { color: #64748b; font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.sd-done__number strong { grid-column: 1; color: #10243d; font-size: 18px; letter-spacing: -0.02em; }
.sd-done__number button {
    grid-row: 1 / span 2;
    grid-column: 2;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid #e3eaf2;
    border-radius: 10px;
    background: #fff;
    color: #10243d;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}
.sd-done__car {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
    padding: 10px;
}
.sd-done__car img { width: 84px; height: 56px; object-fit: cover; border-radius: 10px; background: #e7eef6; }
.sd-done__car strong,
.sd-done__car em,
.sd-done__trip strong,
.sd-done__trip em { display: block; }
.sd-done__car strong,
.sd-done__trip strong { color: #10243d; }
.sd-done__car em,
.sd-done__trip em { color: #64748b; font-size: 13px; font-style: normal; }
.sd-done__car b {
    grid-column: 1 / -1;
    justify-self: start;
    padding: 4px 10px;
    border-radius: 999px;
    background: #fff1e8;
    color: #c2410c;
    font-size: 12px;
}
.sd-done__trip { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sd-done__trip article { padding: 12px; }
.sd-done__days { margin: 10px 0 0; text-transform: none; letter-spacing: 0; font-size: 13px; }
.sd-done__bill { display: grid; gap: 8px; margin-top: 10px; padding: 12px; }
.sd-done__bill div { display: flex; justify-content: space-between; gap: 12px; color: #10243d; font-size: 14px; }
.sd-done__bill .is-total { padding-top: 8px; border-top: 1px solid #e3eaf2; font-weight: 800; }
.sd-done__next { margin-top: 12px; padding: 12px 12px 12px 28px; }
.sd-done__next strong { display: block; margin: 0 0 6px -16px; color: #10243d; }
.sd-done__next ol { margin: 0; padding: 0 0 0 16px; color: #526174; font-size: 13px; }
.sd-done__next li + li { margin-top: 4px; }
@media (max-width: 560px) {
    .sd-done__trip,
    .sd-success-actions { grid-template-columns: 1fr; }
    .sd-success-actions .btn { width: 100%; }
}

@media (max-width: 767px) {
    .drive-modal { padding: 12px; }
    .drive-modal__panel {
        width: calc(100vw - 24px);
        max-width: 600px;
        max-height: 90vh;
    }
}
