.vms-addon-header{
  padding: 12px 0 6px;
}

.vms-addon-title{
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
}

.vms-addon-subtitle{
  font-size: 13px;
  opacity: 0.85;
  margin-top: 4px;
}

.vms-addon-mount{
  margin-top: 14px;
}

.vms-addon-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
}

.vms-addon-controls{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  flex-wrap: nowrap;
}

.vms-addon-name{
  font-weight: 600;
  flex: 1 1 auto;
  min-width: 180px;
}

.vms-addon-price{
  font-weight: 400;
  opacity: 0.85;
  margin-left: 6px;
}

.vms-addon-qty{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.vms-addon-input{
  width: 38px !important;
  min-width: 38px !important;
  max-width: 38px !important;
  height: 28px !important;
  padding: 0 6px !important;
  text-align: center !important;
  font-size: 15px !important;
  line-height: 28px !important;
}

@media (max-width: 480px){
  .vms-addon-input{
    width: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    height: 30px !important;
    line-height: 30px !important;
  }

  .vms-addon-controls{
    flex-wrap: wrap;
  }

  .vms-addon-minus,
  .vms-addon-plus{
    width: 34px;
    height: 34px;
    line-height: 34px;
  }
}

.vms-addon-minus,
.vms-addon-plus{
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.15);
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.vms-addon-minus:disabled,
.vms-addon-plus:disabled{
  opacity: 0.5;
  cursor: not-allowed;
}

.vms-cart-overlay{
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.88);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vms-cart-overlay-inner{
  font-size: 16px;
  font-weight: 700;
  padding: 14px 16px;
  border: 1px solid rgba(0,0,0,0.12);
  background: #fff;
  border-radius: 12px;
}

.vms-addon-modal-summary{
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 12px;
  padding: 12px;
  margin: 0 0 12px;
  background: rgba(0,0,0,0.02);
}

.vms-addon-modal-summary-title{
  font-weight: 700;
  margin-bottom: 6px;
}

.vms-addon-modal-list{
  margin: 8px 0 0;
  padding-left: 18px;
}

.vms-addon-modal-list li{
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 0;
}

.vms-addon-modal-note{
  margin-top: 8px;
  font-size: 13px;
  opacity: 0.85;
}

/* Mobile bugfix (BUG-08): keep TEC modal action buttons reachable. */
@media (max-width: 782px){
  .vms-ticketing-modal-scroll{
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  #tribe-tickets__modal-form.vms-ticketing-modal-form{
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }

  #tribe-tickets__modal-form.vms-ticketing-modal-form .vms-addon-modal-summary{
    max-height: 34dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  #tribe-tickets__modal-form.vms-ticketing-modal-form .tribe-tickets__tickets-footer,
  #tribe-tickets__modal-form.vms-ticketing-modal-form .vms-ticketing-modal-footer{
    position: sticky;
    bottom: 0;
    z-index: 5;
    background: #fff;
    padding-top: 10px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
  }

  #tribe-tickets__modal-form.vms-ticketing-modal-form .tribe-tickets__tickets-footer > *,
  #tribe-tickets__modal-form.vms-ticketing-modal-form .vms-ticketing-modal-footer > *{
    width: 100%;
    max-width: 100%;
  }
}

.vms-entitlements-qty {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 120px;
}

.vms-entitlements-qty .vms-addon-controls {
  width: auto;
}

.vms-entitlements-qty .vms-addon-qty {
  font-size: 16px;
}

.vms-addon-input {
  font-size: 16px;
  font-weight: 600;
}

.vms-addon-minus,
.vms-addon-plus {
  font-size: 18px;
}

.single-tribe_events .tribe-tickets__tickets,
.single-tribe_events .tribe-tickets__tickets-form,
.tribe-events-single .tribe-tickets__tickets,
.tribe-events-single .tribe-tickets__tickets-form {
  font-size: 16px;
}

.single-tribe_events .tribe-tickets__tickets-item-content-title,
.tribe-events-single .tribe-tickets__tickets-item-content-title{
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
}

.single-tribe_events .tribe-tickets__tickets-item-description,
.single-tribe_events .tribe-tickets__tickets-item-content-description,
.tribe-events-single .tribe-tickets__tickets-item-description,
.tribe-events-single .tribe-tickets__tickets-item-content-description{
  font-size: 18px !important;
  line-height: 1.35 !important;
}

.single-tribe_events .tribe-tickets__tickets-item-extra-price,
.tribe-events-single .tribe-tickets__tickets-item-extra-price{
  font-size: 19px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
}

@media (min-width: 760px){
  .single-tribe_events .tribe-tickets__tickets-item,
  .tribe-events-single .tribe-tickets__tickets-item{
    display: grid !important;
    grid-template-columns: 1fr 86px 120px !important;
    column-gap: 16px !important;
    align-items: start !important;
  }

  .single-tribe_events .tribe-tickets__tickets-item-content-title-container,
  .tribe-events-single .tribe-tickets__tickets-item-content-title-container{
    grid-column: 1 !important;
  }

  .single-tribe_events .tribe-tickets__tickets-item-extra,
  .tribe-events-single .tribe-tickets__tickets-item-extra{
    grid-column: 2 !important;
    justify-self: end !important;
    align-self: start !important;
    text-align: right !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 4px !important;
  }

  .single-tribe_events .tribe-tickets__tickets-item-quantity,
  .tribe-events-single .tribe-tickets__tickets-item-quantity{
    grid-column: 3 !important;
    justify-self: end !important;
    align-self: start !important;
    min-width: 150px !important;
  }
}

.single-tribe_events .tribe-tickets__tickets-item-quantity-number-input,
.tribe-events-single .tribe-tickets__tickets-item-quantity-number-input{
  width: 38px !important;
  min-width: 38px !important;
  max-width: 38px !important;
  height: 28px !important;
  padding: 0 6px !important;
  text-align: center !important;
  line-height: 28px !important;
  font-size: 15px !important;
}

@media (max-width: 480px){
  .single-tribe_events .tribe-tickets__tickets-item-quantity-number-input,
  .tribe-events-single .tribe-tickets__tickets-item-quantity-number-input{
    width: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    height: 30px !important;
    line-height: 30px !important;
  }
}


#vms-ticketing-subtotal {
  margin: 0 0 12px;
  padding: 8px 10px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.02);
  font-size: 15px;
  line-height: 1.3;
}

.vms-ticketing-subtotal__primary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}

.vms-ticketing-subtotal__primary strong {
  font-size: 18px;
  font-weight: 600;
}

.vms-ticketing-subtotal__line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 15px;
  line-height: 1.35;
}

.vms-ticketing-subtotal__line-label {
  font-size: 15px;
  line-height: 1.35;
}

.vms-ticketing-subtotal__line-value {
  min-width: 124px;
  text-align: right;
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.vms-ticketing-subtotal__line + .vms-ticketing-subtotal__line {
  margin-top: 2px;
}

.vms-ticketing-subtotal__secondary {
  font-size: 16px;
  line-height: 1.35;
  margin-top: 4px;
}

.vms-ticketing-subtotal__addons {
  font-size: 15px;
  line-height: 1.4;
  margin-top: 8px;
}

.vms-ticketing-subtotal__addons-title {
  font-weight: 600;
}

.vms-ticketing-subtotal__addon-list {
  margin: 5px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.vms-ticketing-subtotal__addon-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.vms-ticketing-subtotal__addon-label {
  min-width: 0;
}

/* Icon-only remove buttons (row + subtotal) */
.vms-ent-remove,
.vms-sub-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  line-height: 1;
  font-size: 18px;
  opacity: 0.85;
  color: #1f2937;
}

/* Hover intent: make it obvious this removes */
.vms-ent-remove:hover,
.vms-sub-remove:hover {
  opacity: 1;
  background: rgba(220, 38, 38, 0.08);
  border-color: rgba(220, 38, 38, 0.25);
  color: #dc2626;
}

/* Keyboard accessibility */
.vms-ent-remove:focus-visible,
.vms-sub-remove:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.65);
  outline-offset: 2px;
  background: rgba(220, 38, 38, 0.08);
  border-color: rgba(220, 38, 38, 0.25);
  color: #dc2626;
}

.vms-ticketing-subtotal__note {
  margin-top: 7px;
  font-size: 13px;
  opacity: 0.8;
}

/* Use VMS unified subtotal as the only prominent total display. */
.single-tribe_events .tribe-tickets__tickets-footer [class*="tickets-footer-total"],
.single-tribe_events .tribe-tickets__tickets-footer [class*="tickets-footer-quantity"],
.tribe-events-single .tribe-tickets__tickets-footer [class*="tickets-footer-total"],
.tribe-events-single .tribe-tickets__tickets-footer [class*="tickets-footer-quantity"] {
  display: none !important;
}

/* Force footer action stack: subtotal first, CTA centered below (theme-proof). */
.single-tribe_events .vms-ticketing-action-stack,
.tribe-events-single .vms-ticketing-action-stack {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.single-tribe_events .tribe-tickets__tickets-footer.vms-ticketing-footer-stack,
.tribe-events-single .tribe-tickets__tickets-footer.vms-ticketing-footer-stack {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 0 !important;
}

.single-tribe_events .tribe-tickets__tickets-footer.vms-ticketing-footer-stack .vms-ticketing-action-stack > #vms-ticketing-subtotal,
.tribe-events-single .tribe-tickets__tickets-footer.vms-ticketing-footer-stack .vms-ticketing-action-stack > #vms-ticketing-subtotal {
  order: 10 !important;
  flex: 0 0 auto !important;
  width: min(100%, 280px) !important;
  margin: 0 auto !important;
}

.single-tribe_events .tribe-tickets__tickets-footer.vms-ticketing-footer-stack .vms-ticketing-action-stack > #tribe-tickets__tickets-submit,
.single-tribe_events .tribe-tickets__tickets-footer.vms-ticketing-footer-stack .vms-ticketing-action-stack > .tribe-tickets__tickets-buy,
.tribe-events-single .tribe-tickets__tickets-footer.vms-ticketing-footer-stack .vms-ticketing-action-stack > #tribe-tickets__tickets-submit,
.tribe-events-single .tribe-tickets__tickets-footer.vms-ticketing-footer-stack .vms-ticketing-action-stack > .tribe-tickets__tickets-buy {
  order: 20 !important;
  display: block !important;
  flex: 0 0 auto !important;
  margin: 12px auto 0 !important;
  min-width: 0 !important;
  width: min(100%, 280px) !important;
  text-align: center !important;
}

/* Raise GA ticket quantity control legibility. */
.single-tribe_events .tribe-tickets__tickets,
.single-tribe_events .tribe-tickets__tickets-form,
.tribe-events-single .tribe-tickets__tickets,
.tribe-events-single .tribe-tickets__tickets-form {
  font-size: 17px;
}

.single-tribe_events .tribe-tickets__tickets-item-title,
.single-tribe_events .tribe-tickets__tickets-item-content-title,
.tribe-events-single .tribe-tickets__tickets-item-title,
.tribe-events-single .tribe-tickets__tickets-item-content-title {
  font-size: 18px;
  line-height: 1.35;
}

.single-tribe_events .tribe-tickets__tickets-item-price,
.single-tribe_events .tribe-tickets__tickets-item-extra-price,
.tribe-events-single .tribe-tickets__tickets-item-price,
.tribe-events-single .tribe-tickets__tickets-item-extra-price {
  font-size: 18px !important;
  font-weight: 600 !important;
}

.single-tribe_events .tribe-tickets__tickets-item-availability,
.single-tribe_events .tribe-tickets__tickets-item-extra-available,
.tribe-events-single .tribe-tickets__tickets-item-availability,
.tribe-events-single .tribe-tickets__tickets-item-extra-available {
  font-size: 15px !important;
}

.single-tribe_events .tribe-tickets__tickets-item-quantity,
.single-tribe_events .tribe-tickets__tickets-item-quantity input,
.single-tribe_events .tribe-tickets__tickets-item-quantity button,
.tribe-events-single .tribe-tickets__tickets-item-quantity,
.tribe-events-single .tribe-tickets__tickets-item-quantity input,
.tribe-events-single .tribe-tickets__tickets-item-quantity button {
  font-size: 18px !important;
}

.single-tribe_events .tribe-tickets__tickets-item-quantity input,
.tribe-events-single .tribe-tickets__tickets-item-quantity input {
  font-size: 20px;
  font-weight: 600;
}

.single-tribe_events #tribe-tickets__tickets-submit,
.single-tribe_events .tribe-tickets__tickets-buy,
.tribe-events-single #tribe-tickets__tickets-submit,
.tribe-events-single .tribe-tickets__tickets-buy {
  min-height: 44px;
  font-size: 16px;
  padding: 10px 16px;
}

@media (max-width: 782px) {
  .single-tribe_events .tribe-tickets__tickets[data-vms-addons-mounted="1"],
  .single-tribe_events .tribe-tickets__tickets-form[data-vms-addons-mounted="1"],
  .single-tribe_events #tribe-tickets[data-vms-addons-mounted="1"],
  .tribe-events-single .tribe-tickets__tickets[data-vms-addons-mounted="1"],
  .tribe-events-single .tribe-tickets__tickets-form[data-vms-addons-mounted="1"],
  .tribe-events-single #tribe-tickets[data-vms-addons-mounted="1"] {
    padding-bottom: calc(152px + env(safe-area-inset-bottom, 0px));
  }

  #vms-ticketing-subtotal {
    position: sticky;
    bottom: calc(58px + env(safe-area-inset-bottom, 0px));
    z-index: 4;
    margin-bottom: 10px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  }

  .vms-ent-remove,
  .vms-sub-remove {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
}

@media (min-width: 960px) {
  .single-tribe_events .tribe-tickets__tickets,
  .single-tribe_events .tribe-tickets__tickets-form,
  .single-tribe_events .tribe-tickets__tickets-item,
  .single-tribe_events .tribe-tickets,
  .tribe-events-single .tribe-tickets__tickets,
  .tribe-events-single .tribe-tickets__tickets-form,
  .tribe-events-single .tribe-tickets__tickets-item,
  .tribe-events-single .tribe-tickets {
    max-width: 100% !important;
    width: 100% !important;
  }
}


/* === VMS Ticket Typography (GA + price + description) === */
.single-tribe_events .tribe-tickets__tickets-item-title,
.single-tribe_events .tribe-tickets__tickets-item-title *,
.tribe-events-single .tribe-tickets__tickets-item-title,
.tribe-events-single .tribe-tickets__tickets-item-title *{
  font-size: 18px !important;
  line-height: 1.25 !important;
}

.single-tribe_events .tribe-tickets__tickets-item-description,
.single-tribe_events .tribe-tickets__tickets-item-description *,
.tribe-events-single .tribe-tickets__tickets-item-description,
.tribe-events-single .tribe-tickets__tickets-item-description *{
  font-size: 16px !important;
  line-height: 1.4 !important;
}

.single-tribe_events .tribe-tickets__tickets-item-price,
.single-tribe_events .tribe-tickets__tickets-item-price *,
.single-tribe_events .tribe-tickets__tickets-item-extra-price,
.single-tribe_events .tribe-tickets__tickets-item-extra-price *,
.tribe-events-single .tribe-tickets__tickets-item-price,
.tribe-events-single .tribe-tickets__tickets-item-price *,
.tribe-events-single .tribe-tickets__tickets-item-extra-price,
.tribe-events-single .tribe-tickets__tickets-item-extra-price *{
  font-size: 18px !important;
  font-weight: 600 !important;
}

.single-tribe_events .tribe-tickets__tickets-item-available,
.single-tribe_events .tribe-tickets__tickets-item-extra-available,
.tribe-events-single .tribe-tickets__tickets-item-available,
.tribe-events-single .tribe-tickets__tickets-item-extra-available{
  font-size: 14px !important;
  line-height: 1.2 !important;
}

/* Prevent theme/TEC flex stretching from turning the subtotal card into a tall empty box. */
#vms-ticketing-subtotal{
  height: auto !important;
  min-height: 0 !important;
}

/* Desktop: Right-justify subtotal card; keep CTA centered under the card (not the whole page). */
@media (min-width: 960px){
  .single-tribe_events .tribe-tickets__tickets-footer.vms-ticketing-footer-stack,
  .tribe-events-single .tribe-tickets__tickets-footer.vms-ticketing-footer-stack{
    justify-content: flex-end !important;
  }

  .single-tribe_events .vms-ticketing-action-stack,
  .tribe-events-single .vms-ticketing-action-stack{
    width: min(100%, 520px) !important;
    margin-left: auto !important;
    margin-right: 0 !important;
    align-items: stretch !important;
  }

  .single-tribe_events .tribe-tickets__tickets-footer.vms-ticketing-footer-stack .vms-ticketing-action-stack > #vms-ticketing-subtotal,
  .tribe-events-single .tribe-tickets__tickets-footer.vms-ticketing-footer-stack .vms-ticketing-action-stack > #vms-ticketing-subtotal{
    width: 100% !important;
    margin: 0 0 0 auto !important;
  }

  .single-tribe_events .tribe-tickets__tickets-footer.vms-ticketing-footer-stack .vms-ticketing-action-stack > #tribe-tickets__tickets-submit,
  .single-tribe_events .tribe-tickets__tickets-footer.vms-ticketing-footer-stack .vms-ticketing-action-stack > .tribe-tickets__tickets-buy,
  .tribe-events-single .tribe-tickets__tickets-footer.vms-ticketing-footer-stack .vms-ticketing-action-stack > #tribe-tickets__tickets-submit,
  .tribe-events-single .tribe-tickets__tickets-footer.vms-ticketing-footer-stack .vms-ticketing-action-stack > .tribe-tickets__tickets-buy{
    align-self: center !important;
    margin: 12px auto 0 !important;
    width: min(100%, 360px) !important;
  }
}


/* === VMS Ticket Typography net (markup variations across TEC versions/themes) === */
.single-tribe_events [class*="tribe-tickets__tickets-item"] [class*="title"],
.single-tribe_events [class*="tribe-tickets__tickets-item"] [class*="name"],
.tribe-events-single [class*="tribe-tickets__tickets-item"] [class*="title"],
.tribe-events-single [class*="tribe-tickets__tickets-item"] [class*="name"]{
  font-size: 18px !important;
  line-height: 1.25 !important;
}

.single-tribe_events [class*="tribe-tickets__tickets-item"] [class*="description"],
.single-tribe_events [class*="tribe-tickets__tickets-item"] [class*="content"] p,
.tribe-events-single [class*="tribe-tickets__tickets-item"] [class*="description"],
.tribe-events-single [class*="tribe-tickets__tickets-item"] [class*="content"] p{
  font-size: 16px !important;
  line-height: 1.45 !important;
}

.single-tribe_events [class*="tribe-tickets__tickets-item"] [class*="price"],
.tribe-events-single [class*="tribe-tickets__tickets-item"] [class*="price"]{
  font-size: 18px !important;
  font-weight: 600 !important;
}



/* === VMS Ticket Typography Overrides (Kadence/TEC hardening) === */
.single-tribe_events .tribe-tickets__tickets-item-content-title,
.single-tribe_events .tribe-tickets__tickets-item-content-title *,
.tribe-events-single .tribe-tickets__tickets-item-content-title,
.tribe-events-single .tribe-tickets__tickets-item-content-title *{
  font-size: 18px !important;
  line-height: 1.25 !important;
}

.single-tribe_events .tribe-tickets__tickets-item-content-description,
.single-tribe_events .tribe-tickets__tickets-item-content-description *,
.tribe-events-single .tribe-tickets__tickets-item-content-description,
.tribe-events-single .tribe-tickets__tickets-item-content-description *{
  font-size: 16px !important;
  line-height: 1.4 !important;
}

.single-tribe_events .tribe-tickets__tickets-item-content-price,
.single-tribe_events .tribe-tickets__tickets-item-content-price *,
.tribe-events-single .tribe-tickets__tickets-item-content-price,
.tribe-events-single .tribe-tickets__tickets-item-content-price *{
  font-size: 18px !important;
  font-weight: 600 !important;
}

/* === VMS Ticketing UX final polish (GA emphasis + alignment + subtotal width) === */

/* Subtle highlight to keep the primary ticket (GA) from getting visually skipped. */
.single-tribe_events .tribe-tickets__tickets-item,
.tribe-events-single .tribe-tickets__tickets-item{
  background: rgba(59, 130, 246, 0.06) !important;
  border: 1px solid rgba(59, 130, 246, 0.18) !important;
  border-radius: 12px !important;
  padding: 12px 12px !important;
  margin-bottom: 10px !important;
}

/* Make GA title a touch more prominent. */
.single-tribe_events .tribe-tickets__tickets-item .tribe-tickets__tickets-item-content-title,
.tribe-events-single .tribe-tickets__tickets-item .tribe-tickets__tickets-item-content-title{
  font-size: 22px !important;
}

/* Make GA quantity controls match VMS add-on controls (size + look). */
.single-tribe_events .tribe-tickets__tickets-item-quantity,
.tribe-events-single .tribe-tickets__tickets-item-quantity{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 6px !important;
  min-width: 0 !important;
  width: auto !important;
}

.single-tribe_events .tribe-tickets__tickets-item-quantity button,
.tribe-events-single .tribe-tickets__tickets-item-quantity button{
  width: 30px !important;
  height: 30px !important;
  line-height: 30px !important;
  border: 1px solid rgba(0,0,0,0.15) !important;
  background: #fff !important;
  border-radius: 8px !important;
  padding: 0 !important;
}

.single-tribe_events .tribe-tickets__tickets-item-quantity-number-input,
.tribe-events-single .tribe-tickets__tickets-item-quantity-number-input{
  border: 1px solid rgba(0,0,0,0.15) !important;
  border-radius: 8px !important;
  background: #fff !important;
}

/* Desktop column widths: keep GA price + qty aligned and tight. */
@media (min-width: 760px){
  .single-tribe_events .tribe-tickets__tickets-item,
  .tribe-events-single .tribe-tickets__tickets-item{
    grid-template-columns: 1fr 86px 110px !important;
  }
}

/* Subtotal card width: narrower (roughly half of prior). */
.single-tribe_events .tribe-tickets__tickets-footer.vms-ticketing-footer-stack .vms-ticketing-action-stack > #vms-ticketing-subtotal,
.tribe-events-single .tribe-tickets__tickets-footer.vms-ticketing-footer-stack .vms-ticketing-action-stack > #vms-ticketing-subtotal{
  width: min(100%, 280px) !important;
}

@media (min-width: 960px){
  .single-tribe_events .vms-ticketing-action-stack,
  .tribe-events-single .vms-ticketing-action-stack{
    width: min(100%, 280px) !important;
  }

  .single-tribe_events .tribe-tickets__tickets-footer.vms-ticketing-footer-stack .vms-ticketing-action-stack > #tribe-tickets__tickets-submit,
  .single-tribe_events .tribe-tickets__tickets-footer.vms-ticketing-footer-stack .vms-ticketing-action-stack > .tribe-tickets__tickets-buy,
  .tribe-events-single .tribe-tickets__tickets-footer.vms-ticketing-footer-stack .vms-ticketing-action-stack > #tribe-tickets__tickets-submit,
  .tribe-events-single .tribe-tickets__tickets-footer.vms-ticketing-footer-stack .vms-ticketing-action-stack > .tribe-tickets__tickets-buy{
    width: min(100%, 280px) !important;
  }
}

/* Ticket visibility lock states */
.single-tribe_events .tribe-tickets__tickets-item.vms-ticket-locked,
.tribe-events-single .tribe-tickets__tickets-item.vms-ticket-locked{
  background: rgba(250, 204, 21, 0.10) !important;
  border-color: rgba(202, 138, 4, 0.38) !important;
}


.vms-ticket-price-rsvp{
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-weight: 700;
  line-height: 1.6;
}

.vms-ticket-lock-note{
  margin-top: 8px;
  grid-column: 1 / -1;
  padding: 10px 12px;
  border: 1px solid rgba(202, 138, 4, 0.42);
  background: rgba(255, 248, 220, 0.78);
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.4;
}

.vms-ticket-lock-copy{
  color: #5b3a00;
}

.vms-ticket-limit-note{
  margin-top: 8px;
  grid-column: 1 / -1;
  color: #1f2937;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 600;
}

.vms-ticket-lock-actions{
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vms-ticket-lock-action{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(17, 24, 39, 0.25);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  color: #111827;
  background: #fff;
}

.vms-ticket-lock-action:hover,
.vms-ticket-lock-action:focus-visible{
  color: #111827;
  background: #f8fafc;
  text-decoration: none;
}

.vms-ticket-lock-disabled-btn{
  pointer-events: none !important;
  opacity: 0.5 !important;
}

a.vms-entitlements-add[hidden],
a.vms-entitlements-add.vms-ent-link-hidden{
  display: none !important;
}

/* Verification panel */
.vms-verification-panel{
  margin: 22px 0 0;
  padding: 14px;
  border: 1px solid rgba(17, 24, 39, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
}

.vms-verification-account-entry{
  margin-top: 18px;
}

.vms-verification-account-entry .vms-verification-panel{
  margin-top: 10px;
}

.vms-verification-panel h3{
  margin: 0 0 8px;
}

.vms-verify-copy{
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.45;
}

.vms-verify-copy--warn{
  color: #7c2d12;
  font-weight: 600;
}

.vms-verify-notice{
  margin: 0 0 10px;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 14px;
}

.vms-verify-notice--success{
  border: 1px solid rgba(22, 163, 74, 0.35);
  background: rgba(187, 247, 208, 0.45);
  color: #14532d;
}

.vms-verify-notice--error{
  border: 1px solid rgba(220, 38, 38, 0.32);
  background: rgba(254, 226, 226, 0.56);
  color: #7f1d1d;
}

.vms-verification-form{
  display: grid;
  gap: 10px;
}

.vms-verify-field{
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 14px;
}

.vms-verify-field--checkbox{
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
}

.vms-verify-field--checkbox input[type="checkbox"]{
  margin-top: 2px;
}

.vms-verify-field input[type="file"],
.vms-verify-field select,
.vms-verify-field textarea{
  width: 100%;
  max-width: 100%;
}

/* Direct add-ons CTA (for carts that already have qualifying tickets) */
.single-tribe_events .tribe-tickets__tickets-footer.vms-ticketing-footer-stack .vms-ticketing-action-stack > #vms-addons-direct-add-btn,
.tribe-events-single .tribe-tickets__tickets-footer.vms-ticketing-footer-stack .vms-ticketing-action-stack > #vms-addons-direct-add-btn{
  order: 30 !important;
  display: block !important;
  width: min(100%, 280px) !important;
  margin: 10px auto 0 !important;
  text-align: center !important;
}

#vms-addons-direct-add-btn[disabled]{
  opacity: 0.55;
  cursor: not-allowed;
}

.single-tribe_events .tribe-tickets__tickets-footer.vms-ticketing-footer-stack .vms-ticketing-action-stack > #vms-addons-direct-add-status,
.tribe-events-single .tribe-tickets__tickets-footer.vms-ticketing-footer-stack .vms-ticketing-action-stack > #vms-addons-direct-add-status{
  order: 40 !important;
  width: min(100%, 280px) !important;
  margin: 8px auto 0 !important;
}

.vms-addons-direct-add-status{
  font-size: 13px;
  line-height: 1.45;
  border-radius: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: rgba(248, 250, 252, 0.85);
  color: #0f172a;
}

.vms-addons-direct-add-status.is-error{
  border-color: rgba(220, 38, 38, 0.35);
  background: rgba(254, 226, 226, 0.68);
  color: #7f1d1d;
}

.vms-addons-direct-add-status.is-success{
  border-color: rgba(22, 163, 74, 0.35);
  background: rgba(187, 247, 208, 0.58);
  color: #14532d;
}

.vms-addons-direct-add-status a,
.vms-addons-direct-add-status a:visited{
  color: inherit;
  text-decoration: underline;
}

.vms-addons-direct-add-status a:hover,
.vms-addons-direct-add-status a:focus-visible{
  color: inherit;
  text-decoration: underline;
}


/* ==============================
   Cancelled Event UX (public)
   ============================== */

.vms-event-status-banner{
  margin: 16px 0;
  padding: 14px 14px;
  border: 1px solid rgba(0,0,0,0.12);
  border-left-width: 6px;
  border-radius: 12px;
  background: rgba(255,255,255,0.92);
}

.vms-event-status-banner--cancelled{
  border-left-color: rgba(220, 38, 38, 0.75);
  background: rgba(254, 242, 242, 0.86);
}

.vms-event-status-banner__title{
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1.2;
}

.vms-event-status-banner__body{
  margin-top: 6px;
  font-size: 1rem;
  line-height: 1.35;
}

.vms-event-status-banner__meta{
  margin-top: 6px;
  font-size: 0.95rem;
  line-height: 1.35;
}

.vms-event-status-banner__actions{
  margin-top: 10px;
}

.vms-event-status-banner__link{
  display: inline-block;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.14);
  text-decoration: none;
  font-weight: 700;
}

.vms-event-status-banner__link:hover,
.vms-event-status-banner__link:focus-visible{
  text-decoration: underline;
}

.vms-cancelled-thumb{
  position: relative;
  display: block;
}

.vms-cancelled-thumb__label{
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  padding: 8px 10px;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
  background: rgba(220, 38, 38, 0.92);
  color: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
}


/* Ticketing flow: tickets, add-ons, Get Tickets (single-column). */
.vms-ticketing-flow {
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 16px;
  padding: 16px;
  background: #fff;
}

/* Prevent nested card styling when we wrap the TEC form in our unified flow container. */
.vms-ticketing-flow .tribe-tickets__tickets-form,
.vms-ticketing-flow .tribe-tickets__tickets {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.vms-ticketing-flow .vms-addon-mount {
  margin-top: 12px;
}

.vms-ticketing-flow #vms-ticketing-action-stack {
  margin-top: 12px;
}

/* When we move the VMS action stack outside the TEC footer, collapse the empty footer safely. */
.vms-ticketing-flow .tribe-tickets__tickets-footer[data-vms-stack-moved="1"] {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* ==============================
   Ticket UI V2 (feature-flagged)
   ============================== */
.vms-ticket-ui.vms-ticket-ui-v2 {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vms-ticket-ui.vms-ticket-ui-v2 .vms-ticket-ui-section {
  margin: 0;
  padding: 0;
}

.vms-ticket-ui.vms-ticket-ui-v2 .vms-ticket-ui-tickets .tribe-tickets__tickets-item,
.vms-ticket-ui.vms-ticket-ui-v2 .vms-ticket-ui-tickets [class*="tickets-item"] {
  margin-bottom: 10px !important;
}

.vms-ticket-ui.vms-ticket-ui-v2 .vms-ticket-ui-addons #vms-reserved-addons,
.vms-ticket-ui.vms-ticket-ui-v2 .vms-ticket-ui-addons .vms-entitlements-block {
  margin: 0 !important;
}

.vms-ticket-ui.vms-ticket-ui-v2 .vms-ticket-ui-stickybar {
  margin: 0;
  padding: 0;
}

.vms-ticket-ui.vms-ticket-ui-v2 .vms-ticket-ui-stickybar .tribe-tickets__tickets-footer,
.vms-ticket-ui.vms-ticket-ui-v2 .vms-ticket-ui-stickybar [class*="tickets-footer"] {
  margin: 0 !important;
  padding: 10px 0 0 !important;
  background: #fff;
}

.vms-ticket-ui.vms-ticket-ui-v2 .vms-ticket-ui-stickybar #vms-ticketing-action-stack {
  width: 100%;
}

.vms-ticket-ui.vms-ticket-ui-v2 .vms-ticket-ui-stickybar #vms-ticketing-subtotal {
  width: 100%;
  margin: 0 0 8px !important;
}

.vms-ticket-ui.vms-ticket-ui-v2 .vms-addon-controls,
.vms-ticket-ui.vms-ticket-ui-v2 .vms-addon-minus,
.vms-ticket-ui.vms-ticket-ui-v2 .vms-addon-plus,
.vms-ticket-ui.vms-ticket-ui-v2 .vms-addon-input {
  position: relative;
  z-index: 2;
}

@media (max-width: 782px) {
  .vms-ticket-ui.vms-ticket-ui-v2 .vms-ticket-ui-stickybar {
    position: sticky;
    bottom: 0;
    z-index: 31;
    background: #fff;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-shadow: 0 -8px 18px rgba(0, 0, 0, 0.14);
  }

  .vms-ticket-ui.vms-ticket-ui-v2 .vms-ticket-ui-stickybar .tribe-tickets__tickets-footer,
  .vms-ticket-ui.vms-ticket-ui-v2 .vms-ticket-ui-stickybar [class*="tickets-footer"] {
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .vms-ticket-ui.vms-ticket-ui-v2 .vms-ticket-ui-stickybar #vms-ticketing-subtotal {
    display: none !important;
  }

  .vms-ticket-ui.vms-ticket-ui-v2 .vms-ticket-ui-stickybar .vms-ticketing-subtotal__addons,
  .vms-ticket-ui.vms-ticket-ui-v2 .vms-ticket-ui-stickybar .vms-ticketing-subtotal__addon-list,
  .vms-ticket-ui.vms-ticket-ui-v2 .vms-ticket-ui-stickybar .vms-ticketing-subtotal__line,
  .vms-ticket-ui.vms-ticket-ui-v2 .vms-ticket-ui-stickybar .vms-ticketing-subtotal__note {
    display: none !important;
  }
}

/* Safe Mode (TEC-only) fallback */
.vms-ticket-ui-safe-mode-hidden {
  display: none !important;
}

.vms-ticket-ui-safe-mode-notice {
  margin: 10px 0;
  padding: 10px 12px;
  border: 1px solid rgba(202, 138, 4, 0.4);
  border-left-width: 4px;
  border-radius: 8px;
  background: rgba(255, 251, 235, 0.9);
  color: #713f12;
  font-size: 13px;
  line-height: 1.4;
}
