/* Ordinary controls share the unadorned painted button. Product cards and
   customer portraits keep their content surfaces; flowers are opt-in below. */
.phone .legacy-new-overlay .legacy-new-actions { display:flex; flex-direction:column; }
.phone .legacy-new-overlay .legacy-new-actions > button + button { margin-top:12px; }
.phone .legacy-new-overlay .legacy-new-warning { padding:12px; border:2px solid #9c342c; border-radius:8px; background:#fff0e8; color:#892b24; }
.phone .legacy-new-overlay .legacy-new-actions button.legacy-new-danger { background:#9c342c; color:#fff; border:2px solid #75251f; border-radius:10px; text-shadow:none; min-height:52px; }
.phone .legacy-new-overlay button.legacy-new-danger:focus { outline:3px solid #75251f; outline-offset:3px; }
.phone button:not(.item):not(.queue-face) {
  position: relative;
  border-radius: 0;
  background: transparent var(--button-art, url("./assets/ui/buttons-v7/green-2.webp")) center / contain no-repeat;
  border: 0;
  box-shadow: none;
  color: #fff9e6;
  text-shadow: 0 1px 1px #263222;
}
.phone .primary { padding-left: 20px; padding-right: 20px; }
/* Both widths of the catalogue quantity buttons use the smallest green plate. */
.phone [data-stock-all] .stock-stepper > button { --button-art: url("./assets/ui/buttons-v7/green-0.webp"); }
.phone .game-menu button + button { margin-top: var(--ui-space-sm); }
.phone .tabs button.active:before { display: none; }
.phone .tabs button.active, .phone .stock-tabs button.active {
  box-shadow: none;
  filter: none;
}
.phone button[data-action="checkout"],
.phone button[data-action="quote"],
.phone button[data-action="next"],
.phone button[data-action="close-sold-out"],
.phone button.primary[data-action="share"],
.phone button[data-action="settle"],
.phone button[data-action="open"],
.phone button[data-action="new"],
.phone button[data-action="continue"],
.phone button[data-action="stock-review"],
.phone button[data-action="stock-finish"],
.phone button[data-action="stock-confirm"],
.phone button.advance-button {
  --button-tone: floral;
}
.phone .primary.advance-button,
.phone .primary[data-action="checkout"],
.phone .primary[data-action="quote"],
.phone .primary[data-action="next"],
.phone .primary[data-action="close-sold-out"],
.phone .primary[data-action="settle"],
.phone .primary[data-action="open"],
.phone .primary[data-action="new"],
.phone .primary[data-action="continue"],
.phone .primary[data-action="stock-review"],
.phone .primary[data-action="stock-finish"],
.phone .primary[data-action="stock-confirm"] { padding-left: 32px; padding-right: 20px; }
/* Every button has one complete bitmap. No frame/texture/flower overlays. */
.phone button:not(.item):not(.queue-face):after { content: none; display: none; }
.phone button.stock-owner:not(.item):not(.queue-face) {
  border: 0;
  border-radius: 50%;
  background: none;
  box-shadow: none;
  color: inherit;
  text-shadow: none;
}

/* Returning, cancelling and sending a customer away are quiet paper controls. */
.phone button[data-action="tutorial"]:not(.item),
.phone button[data-action="back"]:not(.item),
.phone button[data-action="stock-back"]:not(.item),
.phone button[data-action="cancel"]:not(.item),
.phone button[data-action="send"]:not(.item),
.phone button.white-button[data-action] {
  --button-tone: white;
  border: 0;
  box-shadow: none;
  color: #685436;
  text-shadow: none;
  padding-left: 14px;
  padding-right: 14px;
}
.phone button.restore[data-action] { position: absolute; }
.phone .tab-stock { z-index: 1; }

.phone .game-menu button + button { border-top: 0; }
.sound-settings { display: flex; margin-bottom: 6px; }
.phone .game-menu .sound-settings button { flex: 1; min-width: 0; margin-top: 0; white-space: nowrap; }
.phone .game-menu .sound-settings button + button { margin-left: 8px; }

/* Category labels and counts must remain crisp at their small display size. */
.phone .tabs button[data-slot],
.phone .tabs button[data-stock-category],
.phone .stock-tabs button,
.phone .tabs button *,
.phone .tab-stock { text-shadow: none; }
.phone .tabs svg { filter: none; }

.phone button.retention-dismiss[data-action="cancel"] {
  --button-tone: green;
  color: #fff9e6;
}

/* A green tab identifies the current category; other tabs use ivory paper. */
.phone .tabs button[data-slot],
.phone .tabs button[data-stock-category] {
  --button-tone: white;
  color: #685436;
}
.phone .tabs button[data-slot].active,
.phone .tabs button[data-stock-category].active {
  --button-tone: green;
  color: #fff9e6;
}
/* Only the choices inside the stock filter popover use quiet paper controls. */
.phone button.stock-filter-choice:not(.item):not(.queue-face) {
  border: 1px solid #d8c7a8;
  border-radius: 5px;
  background: #fffaf0;
  color: #66583c;
  text-shadow: none;
  box-shadow: none;
}
.phone button.stock-filter-choice.selected:not(.item):not(.queue-face) {
  border-color: #a34d31;
  background: #a34d31;
  color: #fff9ec;
  text-shadow: none;
}
.phone button.stock-filter-choice.selected:not(.item):not(.queue-face):focus {
  background: #a34d31;
}
@media (hover: hover) and (pointer: fine) {
  .phone button.stock-filter-choice:not(.item):not(.queue-face):not(.selected):hover {
    border-color: #a34d31;
    background: #fff4e8;
  }
}
/* Keep the shop visible while a tutorial or confirmation is open. */
.phone .quote-overlay { background: rgba(37, 42, 32, .28); }
.phone .intro-overlay { background: rgba(37, 42, 32, .32); }
.phone.screen-fitting button[data-fitting-preference]:not(.item):not(.queue-face){background:none;border:0;box-shadow:none;color:#79684d;text-shadow:none}
.phone.screen-fitting button[data-fitting-preference=heart][aria-pressed=true]:not(.item):not(.queue-face){color:#4c704c}
.phone.screen-fitting button[data-fitting-preference=broken][aria-pressed=true]:not(.item):not(.queue-face){color:#a05448}
.phone.screen-fitting button[data-fitting-preference]:focus{outline:2px solid #967755;outline-offset:1px;border-radius:5px}
.phone.screen-fitting button[data-fitting-preference]:focus:not(:focus-visible){outline:none}
