/* bag_label_alert_html — the modal shown after printing a bag label group.
 *
 * Kept here because the Anvil server strips a <style> block out of an HTML
 * template. Each rule is scoped by its selector prelude.
 *
 * .bla-container is the form ROOT (the template's single top-level node), so
 * its rule stays a bare class per guide step 3 — the leaf is a child component
 * mounted by another form, never navigated to, so it takes no position,
 * flex or min-height. Every other rule is scoped :where(.bla-container),
 * which adds zero specificity and so cannot change which rule wins.
 *
 * Head-link order audit: no .bla-* class appears in any other template, in
 * theme/assets/theme.css, or in the dependency's injected theme, and no rule
 * here declares a .px-* class, so moving these rules ahead of the runtime
 * theme injection has no tie to lose. The --px-font and --bla-* custom
 * properties resolve at use time on the element, not by cascade order.
 */

.bla-container {
  --bla-fridge: #2196F3;
  --bla-cd: #F44336;
  --bla-tray: #FF9800;
  --bla-main: #9C27B0;
  --bla-accent: #3b82f6;
  font-family: var(--px-font);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 480px;
  margin: 0 auto;
}

:where(.bla-container) .bla-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px 32px;
  border: none;
  border-radius: 12px;
  font-family: var(--px-font);
  font-size: 28px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  color: #050505;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  width: 100%;
}

:where(.bla-container) .bla-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

:where(.bla-container) .bla-btn:active:not(:disabled) {
  transform: translateY(0);
}

:where(.bla-container) .bla-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

:where(.bla-container) .bla-btn-fridge {
  background: var(--bla-fridge);
}

:where(.bla-container) .bla-btn-cd {
  background: var(--bla-cd);
}

:where(.bla-container) .bla-btn-tray {
  background: var(--bla-tray);
}

:where(.bla-container) .bla-btn-main {
  background: var(--bla-main);
}

:where(.bla-container) .bla-btn-icon {
  font-size: 30px;
}

:where(.bla-container) .bla-spacer {
  height: 60px;
}

:where(.bla-container) .bla-sibling-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 24px;
  border: none;
  border-radius: 12px;
  font-family: var(--px-font);
  font-size: 20px;
  font-weight: 700;
  font-style: italic;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  color: #050505;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
  width: 100%;
}

:where(.bla-container) .bla-sibling-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

:where(.bla-container) .bla-sibling-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Keeps its !important: nothing beats it today and dropping it would be a
   behaviour change. The four type buttons ship hidden in the template and
   blaInit un-hides exactly one. */
:where(.bla-container) .bla-hidden {
  display: none !important;
}

@media (max-width: 600px) {
  .bla-container {
    padding: 16px;
    gap: 16px;
  }

  :where(.bla-container) .bla-btn {
    font-size: 22px;
    padding: 20px 24px;
  }

  :where(.bla-container) .bla-sibling-btn {
    font-size: 16px;
    padding: 16px 20px;
  }

  :where(.bla-container) .bla-spacer {
    height: 40px;
  }
}
