.ukvb-widget {
    max-width: 900px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: #363636;
}

body.ukvb-body-flow-open { overflow: hidden; }

.ukvb-widget.ukvb-flow-open {
    position: fixed;
    inset: 0;
    z-index: 999999;
    max-width: none;
    width: 100vw;
    min-height: 100vh;
    margin: 0;
    padding: 30px 18px 56px;
    background: #f6f9fb;
    overflow-y: auto;
    box-sizing: border-box;
}

.ukvb-widget.ukvb-flow-open > .ukvb-card,
.ukvb-widget.ukvb-flow-open > .ukvb-step-panel {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.ukvb-widget:not(.ukvb-flow-open) > .ukvb-stepper-card { display: none; }

.ukvb-card {
    background: #fff;
    border: 1px solid #e8eef2;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    padding: 22px 26px;
    margin-bottom: 18px;
}

/* Stepper */
.ukvb-stepper-card { padding: 18px 26px; }
.ukvb-stepper { display: flex; align-items: center; justify-content: space-between; }
.ukvb-step { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 90px; }
.ukvb-step-circle {
    width: 30px; height: 30px; border-radius: 50%;
    background: #eef3f6; color: #7d8b92; display: flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: 14px;
}
.ukvb-step.active .ukvb-step-circle { background: #2BB4EF; color: #fff; }
.ukvb-step-label { font-size: 12px; color: #999; }
.ukvb-step.active .ukvb-step-label { color: #2BB4EF; font-weight: 600; }
.ukvb-step-line { flex: 1; height: 2px; background: #e8eef2; margin: 0 8px; margin-bottom: 20px; }
.ukvb-step-line.filled { background: #2BB4EF; }

/* Headings */
.ukvb-heading { color: #363636; font-size: 16px; margin: 0 0 14px; font-weight: 700; }
.ukvb-heading-red { color: #2BB4EF; margin: 0 0 6px; }

/* Location step */
.ukvb-location-row { display: flex; gap: 16px; flex-wrap: wrap; }
.ukvb-location-field { flex: 1; min-width: 240px; position: relative; }
.ukvb-location-field label { display: block; font-size: 13px; color: #363636; margin-bottom: 6px; font-weight: 600; }
.ukvb-location-field input,
.ukvb-form-field input,
.ukvb-form-field select,
#ukvb-note {
    width: 100%; padding: 10px 12px; border: 1px solid #d9e1e5; border-radius: 6px;
    font-size: 14px; box-sizing: border-box;
}
.ukvb-location-field input:focus,
.ukvb-form-field input:focus,
.ukvb-form-field select:focus,
#ukvb-note:focus {
    border-color: #2BB4EF; box-shadow: 0 0 0 3px rgba(43,180,239,0.14); outline: none;
}
.ukvb-dropdown {
    position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    border: 1px solid #d9e1e5; border-radius: 6px; z-index: 50; max-height: 220px; overflow-y: auto;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08); display: none;
}
.ukvb-dropdown-item { padding: 9px 12px; font-size: 13px; cursor: pointer; border-bottom: 1px solid #f2f2f2; }
.ukvb-dropdown-item:hover { background: #eef9fe; }

.ukvb-results-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ukvb-route-summary { margin: -8px 0 0; color: #66757d; font-size: 13px; line-height: 1.4; }
.ukvb-loader { text-align: center; padding: 34px 26px; }
.ukvb-spinner {
    width: 48px; height: 48px; border: 5px solid #dff3fc; border-top-color: #2BB4EF;
    border-radius: 50%; margin: 0 auto 14px; animation: ukvb-spin 0.9s linear infinite;
}
.ukvb-loader h3 { color: #363636; font-size: 18px; margin: 0 0 6px; }
.ukvb-loader p { color: #66757d; font-size: 13px; margin: 0; }
@keyframes ukvb-spin { to { transform: rotate(360deg); } }
.ukvb-error { color: #c0392b; font-size: 13px; margin-top: 10px; }
.ukvb-step-actions { display: flex; justify-content: flex-end; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.ukvb-step-actions .ukvb-btn { min-width: 140px; justify-content: center; }

/* Vehicle cards (Step 1) */
.ukvb-vehicle-card { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; border-left: 4px solid #2BB4EF; }
.ukvb-vehicle-info { flex: 1; min-width: 220px; }
.ukvb-vehicle-title { font-size: 20px; color: #363636; font-weight: 700; margin: 0; }
.ukvb-vehicle-sub { color: #999; font-size: 13px; margin: 2px 0 12px; }
.ukvb-trip-pill {
    display: inline-flex; align-items: center; gap: 6px; border: 1px solid #cfeefa; border-radius: 20px;
    padding: 5px 12px; font-size: 12px; color: #277fa6; margin-bottom: 12px; background: #f1fbff;
}
.ukvb-underline { height: 2px; background: #2BB4EF; margin-bottom: 16px; }
.ukvb-vehicle-facts { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.ukvb-fact-box {
    border: 1px solid #e8eef2; border-radius: 6px; padding: 8px 12px; font-size: 13px; color: #555;
    display: flex; align-items: center; gap: 8px;
}
.ukvb-price-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ukvb-price { font-size: 26px; color: #2BB4EF; font-weight: 700; }
.ukvb-price-note { font-size: 11px; color: #999; }
.ukvb-rating { color: #363636; font-size: 13px; }
.ukvb-vehicle-image { flex: 1; min-width: 220px; text-align: center; }
.ukvb-vehicle-image img { max-width: 100%; max-height: 220px; }

/* Buttons */
.ukvb-btn {
    display: inline-flex; align-items: center; gap: 6px; border: none; border-radius: 6px;
    padding: 12px 20px; font-size: 14px; font-weight: 600; cursor: pointer;
    text-decoration: none;
    line-height: 1.2;
}
.ukvb-btn-primary { background: #2BB4EF !important; color: #fff !important; }
.ukvb-btn-primary:hover { background: #179bd3 !important; color: #fff !important; }
.ukvb-btn-dark { background: #363636 !important; color: #fff !important; }
.ukvb-btn-dark:hover { background: #242424 !important; color: #fff !important; }
.ukvb-btn-block { width: 100%; justify-content: center; margin-top: 14px; }

/* Booking form (Step 2) */
.ukvb-form-row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.ukvb-form-field { flex: 1; min-width: 180px; }
.ukvb-form-field label { display: block; font-size: 12px; color: #666; margin-bottom: 6px; }
#ukvb-note { min-height: 70px; margin: 10px 0 20px; resize: vertical; }
.ukvb-note-label { font-size: 13px; color: #666; }
.ukvb-cost-box {
    border: 1px solid #e8eef2; border-radius: 6px; padding: 14px; text-align: center;
    font-size: 15px; margin-bottom: 16px;
}
.ukvb-cost-box strong { color: #2BB4EF; }
.ukvb-payment-row,
.ukvb-addon-row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.ukvb-return-date-wrap {
    margin: 14px 0 18px;
    padding: 14px;
    border: 1px solid #e8eef2;
    border-radius: 6px;
    background: #f8fbfd;
}
.ukvb-payment-option {
    flex: 1; min-width: 200px; border: 1px solid #e8eef2; border-radius: 6px; padding: 12px 16px;
    display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px;
}
.ukvb-payment-option:has(input:checked) { border-color: #2BB4EF; background: #f1fbff; }
.ukvb-payment-option-static {
    border-color: #2BB4EF;
    background: #f1fbff;
    cursor: default;
    font-weight: 600;
}
.ukvb-disclaimer { font-size: 11px; color: #999; }

/* Confirmation (Step 3) */
.ukvb-confirm-header { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.ukvb-confirm-ref { text-align: right; }
.ukvb-confirm-ref span { font-size: 20px; font-weight: 700; color: #363636; display: block; }
.ukvb-confirm-ref small { font-size: 11px; color: #999; }
.ukvb-from-to-row { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.ukvb-from-to-box { flex: 1; background: #f1fbff; border-radius: 6px; padding: 14px; display: flex; gap: 10px; align-items: center; }
.ukvb-pin {
    min-width: 42px; border-radius: 16px; background: #2BB4EF; color: #fff; padding: 4px 8px;
    font-size: 11px; font-weight: 700; text-align: center;
}
.ukvb-from-to-dots { flex: 0 0 40px; border-top: 2px dotted #2BB4EF; height: 1px; }
.ukvb-confirm-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.ukvb-confirm-buttons .ukvb-btn { flex: 1; justify-content: center; }
.ukvb-journey-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 16px 0; }
.ukvb-journey-grid .ukvb-label { font-size: 11px; color: #999; }
.ukvb-total-cost-box {
    border: 1px solid #2BB4EF; border-radius: 6px; padding: 14px; text-align: center; font-size: 16px;
}
.ukvb-total-cost-box strong { color: #2BB4EF; }

@media (max-width: 700px) {
    .ukvb-journey-grid { grid-template-columns: repeat(2, 1fr); }
    .ukvb-stepper { flex-wrap: wrap; }
    .ukvb-results-header .ukvb-btn { width: 100%; justify-content: center; }
    .ukvb-step-actions .ukvb-btn { flex: 1; min-width: 0; }
}
