/* The shared order screen on WooCommerce (phase one): the start of the order on the product page, the sizes sheet and
   the full-screen frame. */
.cbz-sos-button {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  margin: 0;
  padding: 0 20px;
  border: 0;
  border-radius: 10px;
  background: var(--cbz-sos-primary, #2854a3);
  color: var(--cbz-sos-on-primary, #ffffff);
  font: inherit;
  font-size: 1rem;
  font-weight: 650;
  cursor: pointer;
  touch-action: manipulation;
}
.cbz-sos-button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cbz-sos-button:focus-visible { outline: 3px solid #5b7fd8; outline-offset: 2px; }

dialog.cbz-sos {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #ffffff;
}
dialog.cbz-sos::backdrop { background: rgb(15 30 50 / 50%); }
.cbz-sos__frame { display: block; width: 100%; height: 100%; border: 0; }
html.cbz-sos-open, html.cbz-sos-open body { overflow: hidden; }

/* The start of the order, right under the price. Never wider than a product column (on a wide landing page the button
   stretched across the page). */
.cbz-sos-start { display: grid; gap: 10px; max-width: 440px; margin: 14px 0 18px; }
.cbz-sos-start--center { margin-left: auto; margin-right: auto; }

/* Phones: the Choose a photo button alone. Tablets and computers: a quiet drop area around it (drag a photo in, or
   choose one), in the store's colours; the sizes sheet stays on phones (Get an instant quote does that job there). */
.cbz-sos-drop { display: grid; gap: 10px; justify-items: stretch; }
.cbz-sos-drop__title, .cbz-sos-drop__note { display: none; }
@media (min-width: 768px) {
  .cbz-sos-drop {
    justify-items: center;
    padding: 22px 20px 18px;
    border: 2px dashed var(--cbz-sos-border, #7f93ab);
    border-radius: 16px;
    background: #ffffff;
    text-align: center;
    transition: border-color .15s ease, background-color .15s ease;
  }
  .cbz-sos-drop__title { display: block; margin: 0; font-size: 1.05rem; font-weight: 600; line-height: 1.35; color: var(--cbz-sos-text, #172b43); }
  .cbz-sos-drop__note { display: block; margin: 0; font-size: .85rem; line-height: 1.4; color: var(--cbz-sos-muted, #5b6f86); }
  .cbz-sos-drop .cbz-sos-button { width: auto; min-width: 220px; padding: 0 28px; border-radius: var(--cbz-sos-radius, 10px); }
  .cbz-sos-drop .cbz-sos-or { justify-self: stretch; }
  .cbz-sos-drop.is-over { border-color: var(--cbz-sos-primary, #2854a3); background: #f6fbfb; }
  .cbz-sos-start .cbz-sos-link[data-cbz-sos-sizes] { display: none; }
}
@media (prefers-reduced-motion: reduce) { .cbz-sos-drop { transition: none; } }
.cbz-sos-button--quiet { background: #ffffff; color: var(--cbz-sos-text, #172b43); border: 1px solid var(--cbz-sos-border, #7f93ab); }
/* Reprint from your library (only for a signed-in customer with earlier prints, setting on; 1.0.91 owner's design):
   inside the drop area under Choose a photo, an "or" line, an outlined button in the store's main colour and a plain
   line with how many prints were ordered here before. Phones: the drop area's parts join the start block's own column,
   so Take a photo stays right under Choose a photo and Reprint follows the "or". */
.cbz-sos-or { display: flex; align-items: center; gap: 12px; margin: 2px 0; color: var(--cbz-sos-muted, #5b6f86); font-size: .85rem; }
.cbz-sos-or::before, .cbz-sos-or::after { content: ""; flex: 1; height: 1px; background: var(--cbz-sos-border, #7f93ab); }
.cbz-sos-start .cbz-sos-library { background: transparent; color: var(--cbz-sos-primary, #2854a3); border: 2px solid var(--cbz-sos-primary, #2854a3); }
.cbz-sos-library__count { margin: 0; font-size: .85rem; line-height: 1.4; text-align: center; color: var(--cbz-sos-muted, #5b6f86); }
/* Not signed in, a returning customer (1.0.92): the same place, "Ordered here before? Sign in to reprint from your
   library."; hidden until the page's script finds the marker. */
.cbz-sos-invite { display: grid; gap: 10px; justify-self: stretch; }
.cbz-sos-invite[hidden] { display: none; }
.cbz-sos-invite__text { margin: 0; font-size: .9rem; line-height: 1.45; text-align: center; color: var(--cbz-sos-text, #172b43); }
.cbz-sos-invite__text a { color: var(--cbz-sos-primary, #2854a3); font-weight: 650; text-decoration: underline; text-underline-offset: 2px; }
.cbz-sos-invite__text a:focus-visible { outline: 3px solid #5b7fd8; outline-offset: 2px; border-radius: 2px; }
@media (max-width: 767px) {
  .cbz-sos-drop:has(.cbz-sos-library), .cbz-sos-drop:has(.cbz-sos-invite:not([hidden])) { display: contents; }
  .cbz-sos-drop > .cbz-sos-or, .cbz-sos-drop > .cbz-sos-library, .cbz-sos-drop > .cbz-sos-library__count, .cbz-sos-drop > .cbz-sos-invite { order: 2; }
  .cbz-sos-start > .cbz-sos-link { order: 3; }
}
/* A computer has no camera button: its file picker is the only one. */
@media (hover: hover) and (pointer: fine) { .cbz-sos-start > .cbz-sos-camera { display: none !important; } }
.cbz-sos-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.cbz-sos-link {
  justify-self: center;
  min-height: 44px;
  padding: 0 8px;
  border: 0;
  background: none;
  color: var(--cbz-sos-primary, #2854a3);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-transform: none;
  letter-spacing: normal;
  box-shadow: none;
}
.cbz-sos-link:focus-visible, .cbz-sos-sheet__close:focus-visible { outline: 3px solid #5b7fd8; outline-offset: 2px; }

/* The sizes and prices: a sheet from the bottom on phones, a dialog in the middle on larger screens. */
dialog.cbz-sos-sheet {
  box-sizing: border-box;
  width: min(440px, 100vw);
  max-height: 85vh;
  margin: auto;
  padding: 8px 20px 20px;
  border: 0;
  border-radius: 16px;
  background: #ffffff;
  color: var(--cbz-sos-text, #172b43);
  overflow-y: auto;
  overscroll-behavior: contain;
}
dialog.cbz-sos-sheet::backdrop { background: rgb(15 30 50 / 45%); }
@media (max-width: 767px) {
  dialog.cbz-sos-sheet {
    width: 100vw;
    max-width: none;
    margin: auto 0 0;
    border-radius: 18px 18px 0 0;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  }
}
.cbz-sos-sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cbz-sos-sheet__head h2:focus { outline: none; }
.cbz-sos-sheet__head h2 { margin: 0; font-size: 1.15rem; line-height: 1.3; color: inherit; text-transform: none; letter-spacing: 0; }
.cbz-sos-sheet__close { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -10px; padding: 0; border: 0; border-radius: 50%; background: none; color: inherit; cursor: pointer; }
.cbz-sos-sheet__close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.cbz-sos-sheet__note { margin: 0 0 6px; font-size: .88rem; line-height: 1.45; color: var(--cbz-sos-muted, #5b6f86); }
.cbz-sos-sheet__table { width: 100%; margin: 0 0 16px; border: 0; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.cbz-sos-sheet__table td { padding: 12px 0; border: 0; border-bottom: 1px solid var(--cbz-sos-line, #dce3ed); background: none; font-size: 1rem; }
.cbz-sos-sheet__table td:last-child { text-align: right; font-weight: 650; }
html:has(dialog.cbz-sos-sheet[open]) { overflow: hidden; }

/* A simple upload product is bought through the order screen only (the theme's quantity and Add to cart go). */
body.cbz-sos-product form.cart .quantity,
body.cbz-sos-product form.cart .single_add_to_cart_button { display: none !important; }
