/* Outer dialog styles never affect the desktop profile or normal mobile pages. */
.meet-profile-drawer-layer {
    position: fixed;
    z-index: 2147483000;
    left: 0;
    right: 0;
    top: 0;
    height: 100dvh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: rgba(0, 0, 0, .7);
    color: #fff;
    font: 16px/1.4 Arial, sans-serif;
    overscroll-behavior: none;
}
.meet-profile-drawer-layer [hidden] { display: none !important; }
.meet-profile-drawer-layer * { box-sizing: border-box; }
.meet-profile-drawer {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 768px;
    height: calc(100% - 24px);
    min-height: 0;
    overflow: hidden;
    background: #080808;
    border: 1px solid #b49a55;
    border-bottom: 0;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -8px 35px rgba(0, 0, 0, .4);
    transition: transform 180ms ease-out;
}
.meet-profile-drawer--expanded { height: 100%; border-radius: 0; }
.meet-profile-drawer--dragging { transition: none; }
.meet-profile-drawer-header {
    flex: 0 0 auto;
    background: #080808;
    border-bottom: 1px solid #403823;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    cursor: grab;
}
.meet-profile-drawer-grip { height: 23px; display: flex; align-items: center; justify-content: center; }
.meet-profile-drawer-grip[role="button"]:focus-visible { outline: 2px solid #e9cb7d; outline-offset: -3px; }
.meet-profile-drawer-grip span { width: 42px; height: 4px; border-radius: 4px; background: #b49a55; }
.meet-profile-drawer-heading { display: flex; align-items: center; min-height: 48px; padding: 0 8px 6px 16px; gap: 8px; }
.meet-profile-drawer-heading h2 { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 0; padding: 0; color: #fff; font: 600 18px/1.4 Arial, sans-serif; }
.meet-profile-drawer-layer button { appearance: none; -webkit-appearance: none; box-shadow: none; text-shadow: none; cursor: pointer; }
.meet-profile-drawer-close,
.meet-profile-drawer-back { flex: 0 0 44px; width: 44px; height: 44px; border: 1px solid #71613a; border-radius: 50%; color: #fff; background: #111; padding: 0; font: 30px/40px Arial, sans-serif; }
.meet-profile-drawer-back { font-size: 36px; }
.meet-profile-drawer-layer button:focus-visible,
.meet-profile-drawer-layer a:focus-visible { outline: 2px solid #e9cb7d; outline-offset: 3px; }
.meet-profile-drawer-notice { flex: 0 0 auto; padding: 10px 16px; color: #f7e7bc; background: #211c10; font-size: 14px; }
.meet-profile-drawer-action { flex: 0 0 auto; align-self: center; max-width: calc(100% - 32px); min-height: 44px; margin: 10px 16px; padding: 8px 18px; border: 1px solid #c8ab61; border-radius: 8px; color: #fff; background: #18140c; font: 600 15px/1.4 Arial, sans-serif; }
.meet-profile-drawer-body { position: relative; flex: 1 1 auto; min-height: 0; background: #080808; padding-bottom: env(safe-area-inset-bottom, 0); }
.meet-profile-drawer-frame { display: block; width: 100%; height: 100%; margin: 0; border: 0; background: #080808; }
.meet-profile-drawer-loading { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; padding: 24px; background: #080808; color: #e9cb7d; }
.meet-profile-drawer-fallback { display: block; margin: 24px; padding: 14px; border: 1px solid #c8ab61; border-radius: 8px; color: #fff; text-align: center; }
@media (prefers-reduced-motion: reduce) { .meet-profile-drawer { transition: none; } }

/* Loaded into the one profile iframe; profile tabs, toolbar and floatboxes remain intact. */
html.meet-profile-embedded #left,
html.meet-profile-embedded #right,
html.meet-profile-embedded #main > #header,
html.meet-profile-embedded .mobile_site_menu,
html.meet-profile-embedded #meet_back_button { display: none !important; }
html.meet-profile-embedded,
html.meet-profile-embedded body { min-width: 0 !important; max-width: 100%; overscroll-behavior-y: contain; }
/* Let gestures pass from the non-scrolling body to the document scroller. */
html.meet-profile-embedded body { overscroll-behavior-y: auto; padding-top: 0 !important; padding-bottom: 0 !important; }
html.meet-profile-embedded #main,
html.meet-profile-embedded #content { top: auto !important; left: 0 !important; right: 0 !important; margin-top: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; transform: none !important; width: 100% !important; }
html.meet-profile-embedded .owm_profile_block { max-width: 100%; }

/* Reserve attachment actions within the embedded profile's shorter viewport. */
html.meet-profile-embedded .owm_floatbox_wrap.att-floatbox {
    height: 100%;
    max-height: 100%;
    overflow: hidden;
}
html.meet-profile-embedded .att-floatbox > .owm_floatbox {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}
html.meet-profile-embedded .att-floatbox > .owm_floatbox > [data-tpl="header"],
html.meet-profile-embedded .att-floatbox > .owm_floatbox > [data-tpl="bottom"] {
    flex: 0 0 auto;
}
html.meet-profile-embedded .att-floatbox > .owm_floatbox > [data-tpl="body"] {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior-y: contain;
}
