/* WB-YSA-R R8 (#6086): Pre-permission screens (frames 4b, 4d, and notifications) */

#wb-permission-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(env(safe-area-inset-top, 0px) + 60px) 24px calc(env(safe-area-inset-bottom, 0px) + 32px);
  background: #F2F2F7;
  color: #0B1220;
  font-family: var(--wb-font, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif);
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-color-scheme: dark) {
  html:not([data-wb-scheme="light"]) #wb-permission-screen {
    background: #0F1524;
    color: #F2F4F8;
  }
}
html[data-wb-scheme="dark"] #wb-permission-screen {
  background: #0F1524;
  color: #F2F4F8;
}

#wb-permission-screen .wb-perm-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: auto auto;
  max-width: 360px;
  width: 100%;
}

#wb-permission-screen .wb-perm-ic {
  width: 88px;
  height: 88px;
  border-radius: 44px;
  background: #E3EDFF;
  color: #1F5FD1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  flex: none;
}

html.android #wb-permission-screen .wb-perm-ic {
  border-radius: 30px;
}

@media (prefers-color-scheme: dark) {
  html:not([data-wb-scheme="light"]) #wb-permission-screen .wb-perm-ic {
    background: #1C2740;
    color: #4C8DF6;
  }
  html:not([data-wb-scheme="light"]) #wb-permission-screen[data-kind="mic"] .wb-perm-ic {
    background: #5A2B17;
    color: #FFDBCD;
  }
}
html[data-wb-scheme="dark"] #wb-permission-screen .wb-perm-ic {
  background: #1C2740;
  color: #4C8DF6;
}
html[data-wb-scheme="dark"] #wb-permission-screen[data-kind="mic"] .wb-perm-ic {
  background: #5A2B17;
  color: #FFDBCD;
}

/* WB-YSA-R2 S2 (#6264), frame 10g: the bell sits on the orange tint. */
#wb-permission-screen[data-kind="notifications"] .wb-perm-ic { background: #FDE3D8; color: #C2410C; }
@media (prefers-color-scheme: dark) {
  html:not([data-wb-scheme="light"]) #wb-permission-screen[data-kind="notifications"] .wb-perm-ic { background: #3D1F14; color: #FF9A70; }
}
html[data-wb-scheme="dark"] #wb-permission-screen[data-kind="notifications"] .wb-perm-ic { background: #3D1F14; color: #FF9A70; }

#wb-permission-screen .wb-perm-title {
  font-size: var(--wb-text-h1, 28px);          /* #6740 (T1): the h1 ladder; was 28/34 at every width */
  line-height: var(--wb-text-h1-lh, 34px);
  font-weight: 700;
  margin: 0 0 12px;
  text-wrap: balance;
}

#wb-permission-screen .wb-perm-sub {
  font-size: 17px;
  line-height: 24px;
  color: #5F6775;
  margin: 0;
  text-wrap: pretty;
}

@media (prefers-color-scheme: dark) {
  html:not([data-wb-scheme="light"]) #wb-permission-screen .wb-perm-sub {
    color: #B4BCCD;
  }
}
html[data-wb-scheme="dark"] #wb-permission-screen .wb-perm-sub {
  color: #B4BCCD;
}

#wb-permission-screen .wb-perm-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}

#wb-permission-screen .wb-perm-continue {
  height: 56px;
  border-radius: 28px;
  background: #FF7A4A;
  color: #0B1220;
  border: none;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

#wb-permission-screen .wb-perm-continue:active {
  filter: brightness(0.95);
}

#wb-permission-screen .wb-perm-not-now {
  height: 50px;
  border-radius: 25px;
  background: transparent;
  color: var(--wb-orange-text, #C0451A);
  border: none;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

@media (prefers-color-scheme: dark) {
  html:not([data-wb-scheme="light"]) #wb-permission-screen .wb-perm-not-now {
    color: #FF8F6B;
  }
}
html[data-wb-scheme="dark"] #wb-permission-screen .wb-perm-not-now {
  color: #FF8F6B;
}
