/* Mobile CSS note: ordered top-to-bottom by page flow. */
/* Principle: base styles first, then component styles, then small surgical overrides. */
/* Avoid moving blocks unless necessary: Tapin2/Bootstrap specificity can be touchy. */

/* Colors: black #2b2b2b; grey #63727A; primary purple #2c0675; accent yellow #FFC72C; terracotta #ab2e08 */

@font-face {
  font-family: dinmed;
  src: url(https://storage.tapin2.co/fonts/din-medium-regular.ttf);
}

@font-face {
  font-family: light;
  src: url('https://storage.tapin2.co/fonts/dinnextltpro-light.ttf');
}

/* ========== home page (seat / landing) ========== */

#page-home {
  color: #2b2b2b;
  background: #f2f0d0;
  font-family: dinmed;
}

#page-home .login.row,
#page-review .login-link {
  visibility: hidden;
}

#page-home .header {
  padding-top: 0;
}

#logo {
  background: url(https://storage.tapin2.co/images/bg/A2I0JHlj_400x400-c.png) no-repeat center top;
  min-height: 50vh;
  background-size: cover;
  margin-top: 1rem;
}

#page-home h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #2b2b2b;
  text-transform: uppercase;
  font-weight: 700;
}

#page-home h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: #2b2b2b;
  text-align: center;
  text-transform: uppercase;
}

#page-home p {
  font-size: .8rem;
  text-align: center;
}

#page-home p.sponsor {
  margin: 4px;
}

#page-home h5 {
  font-size: 1rem;
  text-align: center;
}

#page-home label {
  display: none;
}

#page-home #seat-form select {
  border-left: 0;
  border-right: 0;
  border-radius: 0 !important;
}

#page-home .venue .form-control-static {
  color: #2b2b2b;
}

#page-home .btn-primary {
  background-color: #2c0675;
  color: #fff;
  border-top: solid 1px #2b2b2b;
  border-bottom: solid 1px #2b2b2b;
  text-transform: uppercase;
  font-size: 1.5rem;
  border-radius: 2 !important;
}

#page-home .btn-secondary {
  background-color: #aaaaaa;
  color: #000000;
  border: 0;
  border-radius: 12px !important;
}

#add-last-order-button {
  background-color: #2b2b2b;
  color: #FFFFFF;
}

#seat-static {
  color: #2b2b2b;
  text-transform: uppercase;
  font-size: 1rem;
  padding-top: 6px;
}

#page-home #home-footer,
#page-home h6 {
  visibility: hidden;
}

/* ========== login modal ========== */

#login-modal {
  background-color: #fff;
}

#login-modal .modal-content {
  color: #000;
}

#login-modal .modal-header .fa-window-close {
  color: #2c0675;
}

#login-modal .btn-primary {
  background-color: #2c0675;
  border-radius: .5rem !important;
  border: 0;
}

#login-modal .pre-pay-new-account .message {
  font-size: 1.5rem;
  line-height: 1.5rem;
  text-align: center;
  margin: 2rem 0;
}

#login-modal .row.justify-content-center.mt-2.mb-2 {
  align-content: start;
  margin: 4px 12px !important;
}

#login-modal .justify-content-center {
  display: flex;
}

/* ========== header + menu shell ========== */

#header{
  background-color: #fff !important;
  background-image: url(https://tapin2.blob.core.windows.net/images/mods/corner-roast_blue_rectangle-logo.png) !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: contain !important;

  color: transparent !important;

  min-height: 78px !important;     /* was 120+ — this is the key fix */
  padding: 0px 0 !important;       /* trims dead space without crushing logo */
}




#header ul > li > a,
#page-menu > div.fixed-top > a > i,
#category-bar > a.back > i {
  color: #2b2b2b;
}

#page-menu .tab-content,
#page-menu > div.tab-content.menu-container.p-2.scroll-spy-container,
#menu-footer {
  background: #ededed;
}

#page-menu .tab-content h4 {
  color: transparent !important;
}

/* Keep sticky stack opaque while scrolling */
#page-menu > div.fixed-top,
#page-menu #category-bar,
#page-menu ul.nav-category,
#page-menu #category-bar ul,
#page-menu #category-bar ul li,
#page-menu #category-bar ul li a {
  background: #fff !important;
}

#page-menu > div.fixed-top {
  z-index: 1050 !important;
}
/* Mobile: allow header area to visually collapse while scrolling */
#page-menu > div.fixed-top{
  padding-top: 0 !important;
}

/* Top row spacing */
#page-menu #category-bar {
  padding-top: 0px !important;
  padding-bottom: 0px !important;
}

#page-menu ul.nav-category {
  border-bottom: .05px solid #ddd;
  padding-top: 6px !important;
  padding-bottom: 10px !important;
}




/* DRINKS/FOOD tabs */
#page-menu #category-bar a.category-btn {
  color: #b8b8b8 !important;
  border-bottom: 3px solid transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-size: 1rem !important;
  font-weight: 700;
}

#page-menu #category-bar a.category-btn.active {
  color: #2b2b2b !important;
  border-bottom-color: #2c0675 !important;
}

/* ========== footer CTA ========== */

#menu-footer a,
a#continue-link,
#order-confirm a.btn.btn-primary.btn-block,
#page-pre-payment #continue-button {
  line-height: 30px;
  background-color: #2c0675;
  margin-left: 2%;
  width: 96%;
  height: 70% !important;
  margin-top: 2.5%;
  margin-bottom: 2%;
  font-size: 1rem;
  border-radius: 4px;
  font-weight: 400;
  text-transform: unset;
}

/* ========== subcategory pills (Breakfast/Lunch etc) ========== */
/* Confirmed DOM: a.subcategory-anchor.btn.btn-primary[.active] */

#page-menu a.subcategory-anchor.btn.btn-primary {
  background-color: #E6E8EE !important;
  color: #2b2b2b !important;
  border: 0 !important;
  border-radius: .8rem !important;
  text-transform: uppercase !important;
}

#page-menu a.subcategory-anchor.btn.btn-primary.active {
  background-color: #ab2e08 !important;
  color: #fff !important;
}

#page-menu a.subcategory-anchor.btn.btn-primary:focus,
#page-menu a.subcategory-anchor.btn.btn-primary:active {
  box-shadow: none !important;
  outline: none !important;
}

/* ========== product tiles (menu list) ========== */

/* Kill spacer in hidden image column */
#page-menu .list-product li.item .col-7.img > div[style*="height"] {
  height: 0 !important;
  min-height: 0 !important;
}

/* Hide image column; let info go full width */
#page-menu .list-product li.item .col-7.img {
  display: none !important;
}

#page-menu .list-product li.item .col-5.info {
  flex: 0 0 100% !important;
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
}

/* Tile container */
#page-menu .list-product li.item.p-2.mb-2 {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 10px 12px !important;
  margin-bottom: 10px !important;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .06);
  position: relative;
}

#page-menu .list-product li.item.p-2.mb-2:active {
  transform: scale(.99);
}

/* Prevent inner rows from forcing extra height */
#page-menu .list-product li.item .row.no-gutters.h-100,
#page-menu .list-product li.item .col-5.info > .row.no-gutters.h-50 {
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
}

/* Title + price base styling */
#page-menu .list-product li.item .col-5.info span {
  color: #2b2b2b;
  font-size: 1.25rem;
  line-height: 1.15;
  font-weight: 700;
}

#page-menu .list-product li.item .price {
  display: block;
  margin-top: .2rem;
  font-weight: 500;
  opacity: .65;
  color: #2b2b2b;
}

/* Clamp long names */
#page-menu .list-product li.item .col-5.info .row.no-gutters.h-50.align-items-start span {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

/* Quick Add off */
#page-menu .list-product li.item .btn-quick-add {
  display: none !important;
}

/* ========== chevron logic (data-price="") ========== */

#page-menu .list-product li.item.p-2.mb-2::after {
  content: "" !important;
}

#page-menu .list-product li.item.p-2.mb-2[data-price=""] {
  padding-right: 2.25rem !important;
}

#page-menu .list-product li.item.p-2.mb-2[data-price=""]::after {
  content: "»" !important;
  position: absolute !important;
  right: .85rem !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  font-size: 2rem !important;
  font-weight: 700;
  line-height: 1 !important;
  opacity: .35 !important;
  pointer-events: none !important;
}

#page-menu .list-product li.item.p-2.mb-2:not([data-price=""]) {
  padding-right: 12px !important;
}

/* ========== drinks tiles (data-price="") ========== */
/* Goal: vertically centered, left aligned, no phantom row, keep height */

#page-menu .list-product li.item[data-price=""] .col-5.info.pt-1 {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: stretch !important;
}

#page-menu .list-product li.item[data-price=""] .row.no-gutters.h-50.align-items-end {
  display: none !important;
}

#page-menu .list-product li.item[data-price=""] .col-5.info br {
  display: none !important;
}

#page-menu .list-product li.item[data-price=""] {
  padding-top: 12px !important;
  padding-bottom: 12px !important;
  min-height: 70px !important;
}

#page-menu .list-product li.item[data-price=""] .row.no-gutters.h-50.align-items-start,
#page-menu .list-product li.item[data-price=""] .row.no-gutters.h-50.align-items-start > .col,
#page-menu .list-product li.item[data-price=""] .row.no-gutters.h-50.align-items-start > .col > span {
  width: 100% !important;
  text-align: left !important;
}

/* ========== food tiles (data-price != "") ========== */
/* Goal: title left, price right, both vertically centered */

#page-menu .list-product li.item[data-product-type="Food"] .col-5.info.pt-1 {
  display: grid !important;
  grid-template-columns: 1fr max-content !important;
  column-gap: 1.5rem !important;
  align-items: center !important;
}

#page-menu .list-product li.item[data-product-type="Food"] .col-5.info.pt-1 .row.no-gutters.h-50.align-items-start {
  grid-column: 1 !important;
  margin: 0 !important;
}

#page-menu .list-product li.item[data-product-type="Food"] .col-5.info.pt-1 .row.no-gutters.h-50.align-items-end {
  grid-column: 2 !important;
  margin: 0 !important;
  justify-content: flex-end !important;
}

#page-menu .list-product li.item[data-product-type="Food"] .col-5.info.pt-1 .price {
  margin: 0 !important;
  white-space: nowrap !important;
  text-align: right !important;
}

#page-menu .list-product li.item[data-product-type="Food"] .col-5.info.pt-1 .row.no-gutters.h-50.align-items-end .col-auto {
  display: none !important;
}

#page-menu .list-product li.item[data-product-type="Food"] .col-5.info.pt-1 .row.no-gutters.h-50.align-items-start br {
  display: none !important;
}

/* Optional: match drinks tile height (keep if you like current look) */
#page-menu .list-product li.item[data-product-type="Food"] {
  padding-top: 12px !important;
  padding-bottom: 12px !important;
  min-height: 70px !important;
}

/* ========== product modal (item detail) ========== */

#product-modal .modal-body,
#product-modal .modal-header {
  background-color: #FFF;
}

#product-modal .modal-body img {
  object-fit: contain;
  max-height: 240px;
}

#product-modal i.fa {
  font-size: 1.25rem;
}

#product-modal .row-quantity button {
  color: #2b2b2b;
}

#product-modal .row-modifiers .modifier.selected {
  background-color: #2c0675 !important;
  border-radius: 4px;
}

#product-modal button.btn.btn-block.btn-primary.qc {
  background-color: #2c0675;
  border-radius: 4px;
  font-size: 1rem;
}

.modal-product .modal-dialog {
  border-radius: 4px;
}

.modal-footer > * {
  margin: .5rem;
}

/* Modal title sizing */
#product-modal h4,
#product-modal .modal-title,
#product-modal .modal-body > .row:first-of-type,
#product-modal .modal-body > .row:first-of-type span {
  font-size: 1.9rem !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
}

/* Center quantity controls */
#product-modal .row-quantity,
#product-modal .row.row-quantity {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 1.25rem !important;
  width: 100% !important;
  text-align: center !important;
}

#product-modal .row-quantity > *,
#product-modal .row.row-quantity > * {
  flex: 0 0 auto !important;
  float: none !important;
  text-align: center !important;
}

#product-modal .row-quantity input[type=text] {
  color: #2c0675;
  font-size: 1.5rem;
  width: 2.25rem;
  text-align: center !important;
}

/* Modifiers grid */
#product-modal .row-modifiers.increment-group-container {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: stretch !important;
}

#product-modal .row-modifiers.increment-group-container > div[class*="col-"] {
  flex: 0 0 50% !important;
  max-width: 50% !important;
  padding: .25rem !important;
}

#product-modal .row-modifiers.increment-group-container .modifier {
  display: block !important;
  width: 100% !important;
  padding: .65rem .75rem !important;
  border-radius: .5rem !important;
  text-align: center !important;
  border: 1px solid rgba(0, 0, 0, .08) !important;
}

#product-modal .row-modifiers .modifier.selected {
  border-color: #2c0675 !important;
}

#product-modal .row-modifiers.increment-group-container .modifier > span.title {
  display: block !important;
  white-space: normal !important;
  line-height: 1.15 !important;
}

#product-modal .row-modifiers .modifier .title {
  font-weight: 500 !important;
}

#product-modal .row-modifiers .modifier .title .price {
  display: block !important;
  margin-top: .15rem !important;
  font-weight: 800 !important;
  opacity: .65 !important;
}

/* Extra shot spacing when selected */
#product-modal label.modifier.modifier-list-view.selected {
  gap: 1.25rem !important;
  align-items: center !important;
}

#product-modal label.modifier.modifier-list-view.selected span.title.modifier-list-view span.price {
  display: block !important;
  margin-bottom: .5rem !important;
}

/* ========== review cart ========== */

#page-review {
  font-family: roboto;
}

#page-review #header {
  background-color: #fff !important;
  color: transparent;
}

#page-review p {
  font-size: .9rem;
  color: #2b2b2b;
}

#page-review .table {
  font-size: .9rem;
}

#page-review #order-container .table th {
  border-top: 0;
}

#page-review #order-container {
  padding-left: .5rem !important;
  padding-right: .5rem !important;
}

#page-review #order-container .px-4 {
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

#page-review #order-container form {
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

#page-review #seat-info {
  background-color: #EFF0F1;
  color: #2b2b2b;
}

#page-review .btn-group > .btn {
  border: 1px solid #2b2b2b;
  font-size: .9rem;
  margin-top: 2px;
  background-color: #EFF0F1;
  color: #2b2b2b;
}

#page-review #order-container .col-12 {
  font-size: .8rem;
  color: #2b2b2b;
  margin-bottom: 2rem;
  margin-left: -1rem;
}

#page-review #totals-container {
  font-size: .9rem;
  padding-bottom: 2rem;
}

#page-review .alcohol-warning {
  margin-top: -2rem;
}

#page-review #seat-info p {
  display: none;
}

/* ========== tips ========== */

#tip-container .btn.active,
#tip-container button.add-tip {
  background-color: #2c0675;
  color: #fff;
}

.col-9.form-group.pl-0.pr-3,
.col-3.form-group.btn-group.btn-block.text-right.p-0 {
  margin-bottom: 0 !important;
}

/* ========== pre-payment + payment ========== */

#page-pre-payment label.control-label,
#page-pre-payment p {
  font-size: .8rem;
}

#page-pre-payment #name,
#page-pre-payment #phone,
#page-pre-payment #email {
  font-size: 1.25rem;
  line-height: 1.5rem;
  height: auto;
  border-bottom: .5px solid #2b2b2b;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  font-family: roboto;
}

#page-payment,
#page-pre-payment {
  background-color: #EFF0F1;
  color: #2b2b2b;
}

#page-payment h1,
#page-payment h3,
#page-pre-payment h1 {
  font-size: 1.25rem;
}

#page-pre-payment h3 {
  font-size: 1.125rem;
}

#page-payment .header p {
  font-size: 1rem;
}

#page-payment #tos-privacy a {
  color: #fff;
}

#page-payment #tip-container .btn {
  background-color: #fff;
  color: #2c0675;
  border: 2px solid #2c0675;
}

#page-payment #tip-container .btn.active {
  background-color: #2c0675;
  color: #fff;
}

#page-payment #tos-privacy {
  display: none;
}

/* ========== loyalty (optional) ========== */

#loyalty-payment-methods .pl-0 .float-right:nth-child(1),
#loyalty-payment-methods .row .col-6:nth-child(1) {
  display: none;
}

#loyalty-payment-methods .row .col-6:nth-child(2) {
  flex: 0 0 100% !important;
  max-width: 100%;
}

#loyalty-payment-methods .row .float-right {
  float: unset !important;
  justify-content: center;
  padding: .75rem 0;
}

/* ========== order confirmation + idle + spinner ========== */


#order-confirm h1 {
  color: transparent;
  background: url(https://tapin2.blob.core.windows.net/images/mods/corner-roast-white_blue_circle-logo-c.png) no-repeat center center;
  min-height: 15vh;
  background-size: contain;
}

#order-confirm {
  color: #2b2b2b;
  background-color: #EFF0F1;
  font-family: roboto;
  height: 100vh;
}

#order-confirm img {
  z-index: -1;
}

#order-confirm h1,
#order-confirm h2 {
  font-size: 1.25rem;
}

#order-confirm h2 {
  margin-top: 0;
  margin-bottom: 0;
}

#order-confirm h3 {
  position: relative;
  z-index: 1;
}

#order-confirm p {
  font-size: 1rem;
  text-align: center;
}

#order-confirm .table {
  color: #2b2b2b;
  font-size: .9rem;
}

#order-confirm button.btn.btn-primary.mx-3.font-weight-bold,
#order-confirm a.btn.btn-primary.mx-3.font-weight-bold,
#order-confirm button.btn.btn-primary.w-50.my-3.font-weight-bold {
  background-color: #2c0675;
  border: #000;
  font-family: roboto;
}

#order-confirm #order-container #locations-button {
  background-color: #FFC72C;
  padding: 8px 8px;
  border: 1px solid #000;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 2rem;
  border-radius: 4px;
}

#order-confirm a.btn.btn-primary.btn-block {
  display: none;
}

#page-idle {
  background: #fff url(https://tapin2.blob.core.windows.net/images/mods/corner-roast_red_white_circle-logo.png) no-repeat center top !important;
  background-size: 120% !important;
  color: #000;
  font-family: roboto;
}

#page-idle h1 {
  margin-top: 32vh;
}

#page-idle .fixed-bottom .btn-primary {
  background-color: #FFC72C;
  color: #fff;
}

#spinner-modal .d-flex.justify-content-center {
  background: url(--) no-repeat center;
  background-size: 140px;
}

#spinner-modal .modal-body .spinner-border {
  border-color: #2c0675;
  border-right-color: #fff;
  width: 6rem;
  height: 6rem;
  border-width: 7px;
}
/* ---------------------------------------------------------
   Mobile: multi-quantity modifiers (Flavor / Extra shot)
   Add breathing room between title and quantity controls
   Safe last-win override
   --------------------------------------------------------- */

#product-modal label.modifier span.title + span.increment-container{
  margin-top: .75rem !important; /* tune: .5rem–1rem */
}
