.emergency-contact-dialog { box-sizing: border-box; width: min(540px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); margin: auto; padding: 0; overflow-y: auto; border: 1px solid #e9d7ac; border-radius: 18px; color: #26384f; background: #fff; box-shadow: 0 22px 80px #12285238; font-family: inherit; }
.emergency-contact-dialog::backdrop { background: #13244388; backdrop-filter: blur(3px); }
.emergency-contact-dialog header { display: flex; justify-content: space-between; align-items: start; gap: 12px; padding: 22px 22px 15px; }
.emergency-contact-dialog header span { color: #8b631e; font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .1em; }
.emergency-contact-dialog h2 { margin: 6px 0; color: #233d80; font-size: 23px; line-height: 1.25; }
.emergency-contact-dialog header p { margin: 0; color: #60718b; font-size: 13px; overflow-wrap: anywhere; }
.emergency-contact-dialog button, .emergency-contact-dialog footer a, [data-emergency-contact] a { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 6px; box-sizing: border-box; padding: 11px 14px; border: 1px solid #cbd7ef; border-radius: 9px; color: #233d80; background: #f3f6fd; font: inherit; font-size: 13px; font-weight: 650; text-align: center; text-decoration: none; cursor: pointer; }
.emergency-contact-dialog [hidden] { display: none !important; }
.emergency-contact-dialog [data-emergency-close] { flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; font-size: 27px; color: #65758f; }
.emergency-contact-content { padding: 0 22px 18px; font-size: 14px; line-height: 1.6; }
.emergency-contact-content > p:first-child { margin-top: 0; }
.emergency-contact-content [data-emergency-status] { padding: 12px; border: 1px solid #efd8a7; border-radius: 9px; background: #fff7e8; color: #704e16; font-size: 13px; overflow-wrap: anywhere; }
.emergency-contact-note, [data-emergency-contact] p { color: #6b7b93; font-size: 12px; }
[data-emergency-contact] { padding: 15px; border: 1px solid #cbd7ef; border-radius: 12px; }
[data-emergency-number] { display: block; margin-bottom: 12px; color: #233d80; font-size: 24px; overflow-wrap: anywhere; }
[data-emergency-contact] > div { display: flex; flex-wrap: wrap; gap: 8px; }
.emergency-contact-dialog footer { position: sticky; bottom: 0; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: end; gap: 8px; padding: 15px 22px max(18px, env(safe-area-inset-bottom)); border-top: 1px solid #e2e8f3; background: #fff; }
.emergency-contact-dialog [data-emergency-enable], .emergency-contact-dialog [data-emergency-reveal] { background: #233d80; color: #fff; border-color: #233d80; }
.emergency-contact-dialog [data-emergency-revoke] { color: #9e2c28; border-color: #ebc7c4; background: #fff4f3; }
.emergency-contact-dialog button:disabled { opacity: .55; cursor: default; }
.emergency-contact-dialog :is(button, a):focus-visible, .driver-emergency-launch:focus-visible, .owner-emergency-launch:focus-visible { outline: 3px solid #8dafff; outline-offset: 3px; }
.driver-emergency-card { border-top: 1px solid #e1e7f0; }
.driver-base-shortcut { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; margin-left: auto; padding: 8px 11px; border: 1px solid #cbd7ef; border-radius: 10px; color: #233d80; background: #f3f6fd; font-size: 12px; font-weight: 700; white-space: nowrap; text-decoration: none; }
.driver-emergency-launch, .owner-emergency-launch { min-height: 44px; padding: 10px 14px; border: 1px solid #e6d6b6; border-radius: 9px; background: #fffaf0; color: #7a5619; font: inherit; font-size: 12px; font-weight: 650; cursor: pointer; }
.driver-emergency-card > .driver-emergency-launch { width: 100%; border: 0; border-radius: 0; }
.driver-private-contact > .driver-emergency-launch { width: 100%; }
.owner-emergency-launch { display: block; margin-top: 12px; }
.driver-card-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.driver-card-actions [data-call-base] { border-right: 1px solid #e1e7f0; padding: 10px 5px; }
#booking-dialog[data-booking-mode="driver"] .dialog-actions { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
#booking-dialog[data-booking-mode="driver"] .dialog-actions #driver-base-link { display: inline-flex; align-items: center; justify-content: center; gap: 5px; white-space: nowrap; }
#booking-dialog:not([data-booking-mode="driver"]) #driver-base-link { display: none; }
@media (max-width: 420px) { .emergency-contact-dialog header { padding: 18px 16px 12px; } .emergency-contact-content { padding-inline: 16px; } .emergency-contact-dialog h2 { font-size: 21px; } .emergency-contact-dialog footer { padding-inline: 16px; } .emergency-contact-dialog footer :is(button, a) { flex: 1 1 auto; } [data-emergency-contact] a { width: 100%; } }
