.amaes-of {
    --amaes-gap: 20px;
    position: fixed;
    z-index: 99999;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.5;
}
.amaes-of, .amaes-of * { box-sizing: border-box; }
.amaes-of--bottom-right { right: max(var(--amaes-gap), env(safe-area-inset-right)); bottom: max(var(--amaes-gap), env(safe-area-inset-bottom)); }
.amaes-of--bottom-left { left: max(var(--amaes-gap), env(safe-area-inset-left)); bottom: max(var(--amaes-gap), env(safe-area-inset-bottom)); }
.amaes-of--top-right { right: max(var(--amaes-gap), env(safe-area-inset-right)); top: max(var(--amaes-gap), env(safe-area-inset-top)); }
.amaes-of--top-left { left: max(var(--amaes-gap), env(safe-area-inset-left)); top: max(var(--amaes-gap), env(safe-area-inset-top)); }
body.admin-bar .amaes-of--top-right, body.admin-bar .amaes-of--top-left { top: calc(var(--amaes-gap) + 32px); }
.amaes-of button { font: inherit; cursor: pointer; text-transform: none; letter-spacing: normal; }
.amaes-of .amaes-of__trigger { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border: 2px solid #133f87; border-radius: 999px; background: #225bb5; color: #fff; font-weight: 700; box-shadow: 0 6px 24px #0003; }
.amaes-of [hidden], .amaes-of__panel:not([open]) { display: none !important; }
.amaes-of .amaes-of__trigger:hover { background: #133f87; }
.amaes-of__panel { position: fixed; inset: 0; margin: auto; width: 380px; max-width: calc(100vw - 32px); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); padding: 24px; border: 1px solid #d2deef; border-radius: 20px; background: #fff; color: #15345f; box-shadow: 0 16px 60px #0004; overflow: auto; font: inherit; text-align: left; }
.amaes-of__panel::backdrop { background: rgb(10 24 48 / 55%); }
.amaes-of__header { display: flex; align-items: flex-start; gap: 12px; justify-content: space-between; }
.amaes-of #amaes-of-title { margin: 4px 0 0; font: 700 22px/1.3 system-ui, sans-serif; color: #15345f; overflow-wrap: anywhere; }
.amaes-of .amaes-of__close { flex: 0 0 44px; width: 44px; height: 44px; min-height: 44px; padding: 0; border: 1px solid #b9cbe5; border-radius: 50%; background: #f0f5fc; color: #15345f; font-size: 28px; line-height: 1; }
.amaes-of #amaes-of-description { margin: 12px 0 20px; color: #425b80; font-size: 15px; }
.amaes-of .amaes-of__contacts { display: grid; gap: 8px; padding: 0; margin: 0; list-style: none; }
.amaes-of__contacts li { margin: 0; padding: 0; list-style: none; }
.amaes-of__contacts a { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 12px; min-height: 48px; border: 1px solid #c6d6ee; border-radius: 10px; background: #f4f7fd; color: #174a99; font-size: 16px; line-height: 1.5; text-decoration: none; box-shadow: none; overflow-wrap: anywhere; }
.amaes-of__contacts a:hover { background: #e6effc; }
.amaes-of__name { font-weight: 700; }
.amaes-of__phone { text-decoration: underline; }
.amaes-of button:focus-visible, .amaes-of a:focus-visible { outline: 3px solid #225bcb; outline-offset: 3px; }
@media (max-width: 782px) { body.admin-bar .amaes-of--top-right, body.admin-bar .amaes-of--top-left { top: calc(var(--amaes-gap) + 46px); } }
@media (max-width: 480px) { .amaes-of { --amaes-gap: 12px; } .amaes-of__panel { padding: 18px; } }
@media print { .amaes-of, .amaes-of__panel { display: none !important; } }

.amaes-of .amaes-of__trigger { gap: 9px; }
.amaes-of .amaes-of__icon { display: block; flex: 0 0 22px; width: 22px; height: 22px; }
