/* Match the Home navigation position on every service screen. */
:root {
  --service-status-height: 50px;
  --service-header-height: 48px;
  --service-header-gutter: 14px;
  --service-safe-top: env(safe-area-inset-top, 0px);
  --service-safe-right: env(safe-area-inset-right, 0px);
  --service-safe-bottom: env(safe-area-inset-bottom, 0px);
  --service-safe-left: env(safe-area-inset-left, 0px);
  --service-header-top-inset: var(--service-safe-top);
  --service-title-size: 16px;
  --service-title-line-height: 20px;
  --service-card-expand-duration: 240;
  --service-card-expand-easing: cubic-bezier(.22, .61, .36, 1);
  --service-sheet-open: 300ms cubic-bezier(.25, .7, .35, 1);
  --service-sheet-close: 250ms cubic-bezier(.55, 0, .75, .4);
  --service-nav-height: 62px;
  --service-nav-tools-height: 48px;
  --service-nav-tools-gap: 16px;
  --service-floating-height: 28px;
  --service-scroll-up-gap: 8px;
  --service-nav-tools-edge: 22px;
  --service-nav-right-gutter: 19px;
  --service-nav-bottom: 23px;
  --service-nav-desktop-indicator-space: 18px;
}
@keyframes beatoz-sheet-open {
  from { transform: translate3d(0, 100%, 0); }
  to { transform: translate3d(0, 0, 0); }
}
@keyframes beatoz-sheet-close {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, 100%, 0); }
}
/* The iOS Home Screen status-bar effect can extend below the reported inset. */
:root[data-ios-standalone] { --service-header-top-inset: calc(var(--service-safe-top) + 16px); }
@media (max-width: 600px), (hover: none) and (pointer: coarse) and (max-width: 1024px) {
  :root { --service-nav-bottom: max(23px, calc(5px + var(--service-safe-bottom))); }
}
.app-tabs svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.app-tabs .nav-selected-icon { display: none; }
.app-tabs [aria-current="page"] .nav-outline-icon { display: none; }
.app-tabs [aria-current="page"] .nav-selected-icon { display: initial; }
.app-tabs [aria-current="page"] .nav-icon-fill { fill: currentColor; }
.app-tabs [aria-current="page"] .nav-icon-cutout { stroke: #fff; }
.app-tabs .nav-wallet-mark { fill: currentColor; stroke: none; }
.app-tabs [aria-current="page"] .nav-wallet-mark { fill: #fff; }
.app-gnb { position: relative; margin: 0 var(--service-nav-right-gutter) calc(var(--service-nav-bottom) - var(--service-nav-desktop-indicator-space)) 14px; display: grid; grid-template-columns: minmax(0, 1fr) 60px; gap: 14px; align-items: center; }
.app-tabs { min-width: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 5px; gap: 2px; border-radius: 999px; background: #fff; }
.app-tabs a { min-width: 0; min-height: 52px; display: grid; justify-items: center; align-content: center; gap: 3px; padding: 0; border: 0; border-radius: 999px; background: transparent; color: #45474e; cursor: pointer; text-decoration: none; font-size: 10px; line-height: 12px; }
.app-tabs a[aria-current="page"] { background: #eff1f3; color: #171819; font-weight: 700; }
.app-messenger-icon { position: relative; display: grid; place-items: center; }
.app-messenger-badge {
  position: absolute;
  top: -4px;
  inset-inline-start: calc(100% - 4px);
  transform: translateX(-20%);
  min-width: 15px;
  padding-inline: 3px;
  border-radius: 999px;
  background: #d9233c;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  line-height: 15px;
  text-align: center;
}
.beatoz-button {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  padding: 0;
  border: 1px solid #dbdde2;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 12px rgb(33 40 57 / 10%);
  color: #29c7ee;
  font-family: ui-rounded, "Arial Rounded MT Bold", Pretendard, system-ui, sans-serif;
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer; text-decoration: none;
}
.beatoz-button:not([aria-current="page"]) span {
  background: linear-gradient(145deg, #a1eefe 5%, #2ac8ef 80%);
  background-clip: text;
  color: transparent;
}
.beatoz-button[aria-current="page"] {
  border-color: transparent;
  background: radial-gradient(ellipse at 37% 30%, #a1e6fc 0%, #98e2fb 38%, transparent 75%),
    linear-gradient(155deg, #9bdff9 12%, #78dbf9 55%, #12c9ef 84%, #03bce9) border-box;
  box-shadow: inset 0 1px 2px rgb(255 255 255 / 38%), inset -1px -2px 4px rgb(0 143 222 / 26%);
  color: #fff;
}

.gnb-region .app-gnb { margin-bottom: 0; }
.gnb-region .ui69 { display: none; }

@media (max-width: 600px), (hover: none) and (pointer: coarse) and (max-width: 1024px) {
  #signed-in > .app-gnb { margin-bottom: var(--service-nav-bottom); }
}

#signed-in > .app-gnb { margin-top: var(--service-nav-tools-height); }
#signed-in:has(.messenger-list-view:not([hidden])):has(.messenger:not([hidden])) > .app-gnb { margin-top: 0; }
.app-nav-switch {
  box-sizing: border-box;
  width: 60px;
  height: 28px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border: 1px solid rgb(255 255 255 / 31%);
  border-radius: 999px;
  color: #fff;
  background: rgb(35 38 42 / 43%);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 1px rgb(255 255 255 / 17%), 0 2px 6px rgb(22 38 51 / 15%);
  text-shadow: 0 1px 1px rgb(0 0 0 / 22%);
  font-family: inherit;
  font-size: 12px;
  line-height: 18px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.app-ai-switch {
  background: rgb(44 213 253 / 70%);
  border-color: #e4e4e4;
  border-radius: 100px;
  position: absolute;
  bottom: calc(100% + var(--service-nav-tools-gap));
  right: calc(var(--service-nav-tools-edge) - var(--service-nav-right-gutter));
}
.app-ai-switch span { font-size: 15px; }

.app-nav-tools {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: var(--service-nav-tools-height);
  flex: none;
  padding-right: var(--service-nav-tools-edge);
}
.app-nav-tools .app-ai-switch { position: static; }
.ui2:has(.app-nav-tools) {
  --gnb-top-space: 0px;
  --gnb-region-height: calc(var(--gnb-height) + var(--gnb-bottom-space));
}
.app-nav-tools + .purchase-bar > .scroll-up,
#checkout .app-nav-tools + .service-footer > .scroll-up {
  bottom: calc(100% + var(--service-nav-tools-height) + var(--service-scroll-up-gap));
}

:is(.app-header, .messenger-room-header, .service-header, .profile-picker-header, .account-menu-header, .messenger-peer-header) {
  background-color: var(--service-header-surface, #fff);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.app-header.beatoz-bell-host,
.messenger-room-header.beatoz-bell-host,
.product-page > .service-header.beatoz-bell-host,
#checkout .service-header .ui10 { display: flex; align-items: center; text-align: left; }
.ui2 > .ui3 { flex: 0 0 var(--service-status-height); height: var(--service-status-height); }
.app-header.beatoz-bell-host { flex: 0 0 var(--service-header-height); padding-block: 4px; }
#checkout .service-header .pay-back { order: -1; }
.beatoz-bell-host :is(#screen-title, .messenger-room-title, #catalog-title, strong),
#checkout .service-header .ui12 { font-size: var(--service-title-size); font-weight: 600; line-height: var(--service-title-line-height); }
.beatoz-default-avatar { border-radius: 50%; background: url('/commerce/assets/profile-avatars.png') left top / 1163.333% auto no-repeat; }
.beatoz-bell-host :is(#screen-title, .messenger-room-title, .catalog-title-group),
.product-page > .beatoz-bell-host > strong,
#checkout .service-header .ui11 {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.beatoz-bell-host > :is(.icon, .messenger-back), #checkout .service-header .pay-back { flex: none; width: 36px; }
.beatoz-header-actions { display: flex; flex: none; align-items: center; margin-left: auto; }
.beatoz-header-actions :is(.beatoz-bell, .beatoz-menu, .beatoz-header-search) {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #222;
}
.beatoz-bell, .beatoz-menu:enabled, .beatoz-header-search { cursor: pointer; }
.beatoz-menu:disabled { cursor: default; opacity: 1; }
.beatoz-header-actions :is(.beatoz-bell, .beatoz-menu, .beatoz-header-search) svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.beatoz-bell-badge { position: absolute; top: 1px; right: 0; min-width: 14px; height: 14px; padding: 0 3px; border-radius: 999px; background: #d9233c; color: white; font-size: 9px; line-height: 14px; text-align: center; }
.beatoz-notifications { width: min(340px, calc(100% - 32px)); padding: 16px; border: 0; border-radius: 18px; background: #fff; color: #171819; font: 14px Pretendard, system-ui, sans-serif; }
.beatoz-notifications::backdrop { background: rgb(0 0 0 / 35%); }
.beatoz-notifications-header { margin: 0; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.beatoz-notifications h2 { margin: 0; font-size: 17px; }
.beatoz-notifications button, .beatoz-notifications a { padding: 8px; color: #17658a; background: #edf8ff; border: 0; border-radius: 8px; text-decoration: none; cursor: pointer; font: inherit; }
.beatoz-notifications ul { list-style: none; padding: 0; margin: 12px 0 0; max-height: 240px; overflow: auto; }
.beatoz-notifications li { padding: 6px 0; }
.beatoz-notifications li + li { border-top: 1px solid #eef1f3; }
.beatoz-notifications li a { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 0; color: #171819; background: none; }
.beatoz-notifications li a span { min-width: 0; overflow-wrap: anywhere; }
.beatoz-notifications li time { flex-shrink: 0; font-size: 12px; color: #62666c; white-space: nowrap; }
.beatoz-notification-confirm h2 { text-align: center; }
.beatoz-notification-confirm-actions { display: flex; gap: 8px; margin-top: 16px; }
.beatoz-notification-confirm-actions button { flex: 1; min-height: 40px; color: #171819; background: #f1f3f5; }
.beatoz-notification-confirm-actions .beatoz-notification-confirm-primary { color: #fff; background: #212121; }
.beatoz-push-error p { margin: 12px 0 0; text-align: center; overflow-wrap: anywhere; }
.beatoz-notification-switch {
  appearance: none;
  position: relative;
  flex: none;
  box-sizing: border-box;
  width: 49px;
  height: 24px;
  margin: 0;
  padding: 0;
  border: solid transparent;
  border-width: 4px 0;
  border-radius: 8px / 12px;
  cursor: pointer;
  background: #e3e8ee padding-box;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 200ms ease;
}
.beatoz-notification-switch::before { content: ""; position: absolute; top: 50%; left: 0; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgb(0 0 0 / 18%); transform: translateY(-50%); transition: transform 200ms ease; }
.beatoz-notification-switch::after { content: "OFF"; position: absolute; top: 50%; right: 4px; width: 18px; color: #171819; font-size: 8px; font-weight: 700; line-height: 1; text-align: center; transform: translateY(-50%); }
.beatoz-notification-switch:checked { background-color: #4cc5f9; }
.beatoz-notification-switch:checked::before { transform: translate(25px, -50%); }
.beatoz-notification-switch:checked::after { content: "ON"; left: 4px; right: auto; color: #fff; }
.beatoz-notification-switch:focus-visible { outline: 2px solid #23759c; outline-offset: 2px; }

@media (prefers-reduced-motion: no-preference) {
  .beatoz-notification-confirm[open] { animation: beatoz-confirm-enter 160ms ease-out both; }
  .beatoz-notification-confirm[open]::backdrop { animation: beatoz-confirm-backdrop-enter 160ms ease-out both; }
}
@keyframes beatoz-confirm-enter { from { opacity: 0; transform: translateY(6px); } }
@keyframes beatoz-confirm-backdrop-enter { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .beatoz-notification-switch, .beatoz-notification-switch::before { transition: none; }
}

:is(.screen, .ui2):has(.beatoz-message-notice) { position: relative; }
.beatoz-message-notice {
  position: absolute;
  z-index: 20;
  left: 20px;
  right: 20px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgb(34 34 34 / 85%);
  color: #fff;
  font: 13px/20px Pretendard, system-ui, sans-serif;
  text-align: center;
  overflow-wrap: anywhere;
  pointer-events: none;
}
.beatoz-message-notice.is-centered {
  --notice-left: max(20px, var(--service-safe-left));
  --notice-right: max(20px, var(--service-safe-right));
  --notice-available-width: calc(100% - var(--notice-left) - var(--notice-right));
  inset: 50% var(--notice-right) auto var(--notice-left);
  box-sizing: border-box;
  width: max-content;
  min-width: min(240px, var(--notice-available-width));
  max-width: var(--notice-available-width);
  margin-inline: auto;
  transform: translateY(-50%);
}

/* Figma 비토즈_프리뷰 → 스타일 → card (62:107338). */
.app-tabs,
.launchpad,
.profile-card,
.presence-card,
.messenger-peer-card,
.cart-item,
.cart-summary,
.order-card,
.catalog-page:not(.catalog-brand-view) .catalog-brand-card,
#checkout .screen-body > .ui17 {
  border: 0;
  box-shadow: 0 6px 28px 0 rgb(0 0 0 / 10%);
}
