:root {
    --location-share-primary: var(--partner-primary-color, #1940A3);
    --location-share-ink: #17243a;
    --location-share-muted: #667792;
    --location-share-surface: #ffffff;
    --location-share-soft: #f2f6fc;
    --location-share-success: #16a66a;
}

.location-share-modal-window .modal-dialog { max-width: 720px; }
.location-share-modal-window .modal-content {
    border: 0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(15, 35, 69, .28);
}
.location-share-modal-header {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 0;
    color: #fff;
    padding: 20px 24px;
    background: linear-gradient(135deg, var(--location-share-primary), #2f72dd);
}
.location-share-modal-header .close { color: #fff; opacity: .9; text-shadow: none; }
.location-share-modal-header h3 { margin: 0; font-size: 22px; font-weight: 800; }
.location-share-modal-header p { margin: 3px 0 0; opacity: .84; }
.location-share-title-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 14px;
    background: rgba(255,255,255,.18);
    font-size: 20px;
}
.location-share-modal-body { padding: 24px; color: var(--location-share-ink); }
.location-share-lead { margin: 0 0 16px; color: var(--location-share-muted); }
.location-share-duration-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}
.location-share-duration-grid button {
    min-height: 108px;
    padding: 13px 8px;
    border: 1px solid #d9e3f1;
    border-radius: 14px;
    background: #fff;
    color: #29405f;
    transition: .18s ease;
}
.location-share-duration-grid button:hover { border-color: #8cb5f2; transform: translateY(-1px); }
.location-share-duration-grid button.is-selected {
    color: var(--location-share-primary);
    border-color: var(--location-share-primary);
    background: #eef4ff;
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--location-share-primary) 14%, transparent);
}
.location-share-duration-grid i { display: block; margin-bottom: 8px; font-size: 22px; }
.location-share-duration-grid strong { display: block; font-size: 13px; }
.location-share-duration-grid small { display: block; margin-top: 4px; color: #8090a8; font-size: 10px; }
.location-share-destination {
    margin-top: 18px;
    padding: 15px;
    border: 1px solid #d8e3f2;
    border-radius: 15px;
    background: var(--location-share-soft);
}
.location-share-section-heading { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.location-share-section-heading strong,
.location-share-section-heading small { display: block; }
.location-share-section-heading small { margin-top: 3px; color: var(--location-share-muted); }
.location-share-selected { align-self: center; color: var(--location-share-success); font-weight: 700; white-space: nowrap; }
#location-share-destination-map { height: 260px; border-radius: 12px; border: 1px solid #ccd9e9; background: #dce7f5; }
.location-share-radius { display: grid; grid-template-columns: 130px 180px 1fr; align-items: center; gap: 12px; margin-top: 12px; }
.location-share-radius label { margin: 0; }
.location-share-radius small { color: var(--location-share-muted); }
.location-share-privacy-note {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    margin: 18px 0;
    padding: 13px 15px;
    border-radius: 12px;
    background: #eef8f5;
    color: #276652;
    font-size: 12px;
}
.location-share-privacy-note i { margin-top: 2px; font-size: 18px; }
.location-share-actions { display: flex; justify-content: flex-end; gap: 10px; }
.location-share-actions .btn-primary {
    border-color: var(--location-share-primary);
    background: var(--location-share-primary);
}
.location-share-success { text-align: center; padding: 4px 0 10px; }
.location-share-success-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: #e8f8f1;
    color: var(--location-share-success);
    font-size: 26px;
}
.location-share-success h3 { margin: 0 0 6px; font-weight: 800; }
.location-share-success p { color: var(--location-share-muted); }
.location-share-link-box { display: flex; gap: 8px; margin: 18px 0; }
.location-share-link-box input { background: #f6f8fb; font-size: 12px; }
.location-share-active { margin-top: 22px; padding-top: 18px; border-top: 1px solid #e2e8f1; }
.location-share-active h4 { margin: 0 0 10px; font-weight: 800; }
.location-share-active-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin-top: 7px;
    border-radius: 10px;
    background: #f5f8fc;
}
.location-share-active-row strong,
.location-share-active-row small { display: block; }
.location-share-active-row small { margin-top: 2px; color: var(--location-share-muted); }
.vehicle-modal-heading { width: 100%; padding-right: 4px; }
.vehicle-modal-heading .vehicle-title { min-width: 0; margin-bottom: 0; }

.location-share-navigation-tab {
    color: var(--location-share-primary);
    font-weight: 500;
}

@media (max-width: 700px) {
    .location-share-modal-window .modal-dialog { margin: 8px; }
    .location-share-modal-body { padding: 18px; }
    .location-share-duration-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .location-share-duration-grid button:last-child { grid-column: 1 / -1; min-height: 84px; }
    .location-share-radius { grid-template-columns: 1fr; gap: 6px; }
    #location-share-destination-map { height: 230px; }
    .location-share-actions { flex-direction: column-reverse; }
    .location-share-actions .btn { width: 100%; }
    .location-share-link-box { flex-direction: column; }
}
