/* One material for both sizes; only the launcher changes, never the drawer. */
.customer-task-launcher {
  position: fixed;
  z-index: 900;
  top: clamp(16px, 34%, calc(100dvh - 196px));
  right: env(safe-area-inset-right, 0px);
  width: 62px;
  height: 184px;
  max-height: calc(100dvh - 28px);
  box-sizing: border-box;
  padding: 0 3px 4px 5px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 32px;
  border: 2px solid #9a783d;
  border-right: 0;
  border-left-width: 3px;
  border-radius: 32px 0 0 32px;
  background: linear-gradient(180deg, #285f8d 0%, #194b76 48%, #123d65 100%);
  box-shadow: -5px 7px 16px rgba(17, 43, 68, .25),
    inset 0 2px 0 rgba(255, 255, 255, .24), inset 0 -3px 0 rgba(7, 31, 53, .28);
  transition: height 480ms cubic-bezier(.22, .72, .24, 1),
    transform 360ms cubic-bezier(.22, .72, .24, 1), opacity 220ms ease;
}
.customer-task-launcher[data-locale="ja"] { z-index: 9402; }
.customer-task-launcher[hidden],
body:not(.auth-ready) .customer-task-launcher[data-locale="ja"] { display: none; }
.customer-task-launcher.is-compact { height: 88px; }
.customer-task-launcher.is-dragging { transition: none; }
.customer-task-launcher.is-dragging button.customer-task-quick-open { cursor: grabbing; }
.customer-task-launcher button.customer-task-quick-open {
  position: relative;
  z-index: auto;
  inset: auto;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  padding: 10px 0 5px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
  filter: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  transition: none;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.customer-task-launcher button.customer-task-quick-open::before { content: none; }
.customer-task-launcher button.customer-task-quick-open > span,
.customer-task-launcher button.customer-task-quick-open.has-pending > span {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border: 1px solid #b99c67;
  border-radius: 50%;
  background: linear-gradient(180deg, #fffdf7, #e9dbc0);
  color: #174d78;
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 1px 0 #fff;
  box-shadow: inset 0 1px 0 #fff, 0 2px 4px rgba(6, 29, 49, .28);
}
.customer-task-launcher button.customer-task-quick-open > small {
  color: #fff8e9;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
  writing-mode: vertical-rl;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(5, 25, 43, .36);
}
.customer-task-launcher button.customer-task-quick-open > small[hidden] { display: none; }
.customer-task-launcher button.customer-task-quick-open > b {
  top: -11px;
  right: -1px;
  left: auto;
  min-width: 26px;
  height: 26px;
  padding: 0 5px;
  border: 2px solid #fff;
  border-radius: 13px;
  background: linear-gradient(160deg, #ed6265, #cb3440);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 22px;
  text-shadow: none;
  box-shadow: 0 2px 4px rgba(112, 27, 35, .25);
}
.customer-task-launcher .customer-task-launcher-toggle {
  display: grid;
  place-items: center;
  width: 100%;
  min-width: 0;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border: 0;
  border-top: 1px solid rgba(238, 215, 174, .22);
  border-radius: 0 0 0 22px;
  background: transparent;
  color: #fff8e9;
  font-family: Arial, sans-serif;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow: none;
  text-shadow: 0 1px 2px rgba(5, 25, 43, .4);
}
.customer-task-launcher button.customer-task-quick-open:hover > span {
  box-shadow: inset 0 1px 0 #fff, 0 3px 6px rgba(6, 29, 49, .35);
}
.customer-task-launcher .customer-task-launcher-toggle:hover { background: rgba(255, 255, 255, .1); }
.customer-task-launcher .customer-task-launcher-toggle:active { background: rgba(0, 0, 0, .12); }
.customer-task-launcher button:focus-visible {
  outline: 2px solid #ffe0a3;
  outline-offset: -2px;
}
body.customer-task-drawer-open .customer-task-launcher {
  opacity: 0;
  pointer-events: none;
  transform: translateX(100%);
}
body:has(> .edit-backdrop:not(.hidden):not([hidden])) .customer-task-launcher,
body:has(> .action-modal-backdrop:not(.hidden):not([hidden])) .customer-task-launcher,
body:has(> .action-final-confirmation-backdrop:not(.hidden):not([hidden])) .customer-task-launcher {
  visibility: hidden;
  pointer-events: none;
}
@media (max-width: 760px) {
  .customer-task-launcher { top: auto; bottom: min(112px, calc(100dvh - 200px)); }
  .customer-task-launcher[data-locale="ja"] { bottom: min(82px, calc(100dvh - 200px)); }
}
@media (prefers-reduced-motion: reduce) {
  .customer-task-launcher { transition: none; }
}
