/* Cart V2 — purchase-flow layout (logic unchanged; markup in cart-v2.html.twig) */

section.section-content.aya-cart-v2 {
  min-height: 0;
  background: #f6f5f2 !important;
  padding: 24px 0 48px;
}

.aya-cart-v2__wrap {
  max-width: 1120px;
  margin: 0 auto;
}

.aya-cart-v2__mobile-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.aya-cart-v2__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  color: #111827;
  text-decoration: none;
  font-size: 20px;
}

.aya-cart-v2__mobile-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0;
}

.aya-cart-v2__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.aya-cart-v2__title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  margin: 0 0 8px;
  color: #111827;
}

.aya-cart-v2__lede {
  margin: 0;
  color: #6b7280;
  max-width: 520px;
  line-height: 1.5;
}

.aya-cart-v2__browse {
  color: #c3073f;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
  flex-shrink: 0;
}

.aya-cart-v2__notice {
  background: #faf8f3;
  border: 1px solid #ebebeb;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  color: #4b5563;
  margin-bottom: 20px;
}

@media (min-width: 992px) {
  .aya-cart-v2__notice {
    display: none;
  }
}

.aya-cart-v2__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 24px;
  align-items: start;
}

@media (max-width: 991px) {
  .aya-cart-v2__layout {
    grid-template-columns: 1fr;
  }
}

.aya-cart-v2__item {
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.aya-cart-v2__event {
  display: flex;
  gap: 16px;
  margin-bottom: 18px;
}

.aya-cart-v2__thumb {
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  border-radius: 12px;
  overflow: hidden;
  background: #1a5f4a;
  display: block;
}

.aya-cart-v2__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aya-cart-v2__event-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 6px;
  line-height: 1.35;
}

.aya-cart-v2__event-title a {
  color: #111827;
  text-decoration: none;
}

.aya-cart-v2__event-when,
.aya-cart-v2__event-by {
  margin: 0 0 4px;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.45;
}

.aya-cart-v2__event-by a {
  color: #111827;
  font-weight: 600;
}

.aya-cart-v2__ticket-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}

.aya-cart-v2__ticket-name {
  margin: 0 0 4px;
  font-weight: 600;
  font-size: 15px;
}

.aya-cart-v2__ticket-unit {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
}

.aya-cart-v2__each {
  margin-left: 4px;
}

.aya-cart-v2__ticket-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.aya-cart-v2-stepper {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid #ebebeb;
  border-radius: 999px;
  overflow: hidden;
  background: #fafafa;
  min-height: 44px;
}

.aya-cart-v2-stepper__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  border: 0;
  background: transparent;
  color: #111827;
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.aya-cart-v2-stepper__btn:hover {
  background: rgba(0, 0, 0, 0.04);
}

.aya-cart-v2-stepper__btn:active {
  background: rgba(0, 0, 0, 0.08);
}

.aya-cart-v2-qty-input {
  width: 48px;
  min-width: 48px;
  max-width: 56px;
  border: 0;
  border-left: 1px solid #ebebeb;
  border-right: 1px solid #ebebeb;
  background: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  padding: 8px 4px;
  margin: 0;
  -moz-appearance: textfield;
  appearance: textfield;
}

.aya-cart-v2-qty-input::-webkit-outer-spin-button,
.aya-cart-v2-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.aya-cart-v2__line-subtotal {
  margin: 0;
  font-weight: 700;
  min-width: 64px;
  text-align: right;
}

.aya-cart-v2__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #ebebeb;
  border-radius: 10px;
  color: #6b7280;
  text-decoration: none;
}

.aya-cart-v2__remove:hover {
  color: #c3073f;
  border-color: #c3073f;
}

.aya-cart-v2__secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 4px 4px 0;
}

.aya-cart-v2__link-btn {
  background: none;
  border: 0;
  padding: 0;
  color: #6b7280;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.aya-cart-v2__summary-card {
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 16px;
  padding: 22px;
  position: sticky;
  top: 88px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.aya-cart-v2__summary-lines {
  margin: 0 0 16px;
}

.aya-cart-v2__summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  font-size: 15px;
}

.aya-cart-v2__summary-row dt {
  margin: 0;
  font-weight: 500;
  color: #4b5563;
}

.aya-cart-v2__summary-row dd {
  margin: 0;
  font-weight: 600;
  color: #111827;
}

.aya-cart-v2__summary-note {
  padding: 4px 0 8px;
  color: #c3073f;
}

.aya-cart-v2__summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 0;
  border-top: 1px solid #ebebeb;
  font-size: 15px;
}

.aya-cart-v2__summary-total strong {
  font-size: 1.35rem;
  font-weight: 700;
}

.aya-cart-v2__checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 18px;
  border-radius: 999px;
  background: #c3073f;
  border: 1px solid #c3073f;
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 12px;
}

.aya-cart-v2__checkout:hover {
  background: #a00635;
  border-color: #a00635;
  color: #fff;
}

.aya-cart-v2__summary-foot {
  margin: 0;
  font-size: 12px;
  color: #9ca3af;
  text-align: center;
}

.aya-cart-v2__browse-mobile {
  text-align: center;
  margin: 20px 0 16px;
}

.aya-cart-v2__browse-mobile a {
  color: #c3073f;
  font-weight: 600;
}

.aya-cart-v2__summary-mobile {
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 12px;
}

.aya-cart-v2-bar-spacer {
  height: 92px;
}

.aya-cart-v2-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid #ebebeb;
  padding-bottom: env(safe-area-inset-bottom, 0);
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.08);
}

.aya-cart-v2-bar__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  max-width: 1120px;
  margin: 0 auto;
}

.aya-cart-v2-bar__small {
  font-size: 12px;
  color: #6b7280;
  margin: 0;
}

.aya-cart-v2-bar__total {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  color: #111827;
}

.aya-cart-v2-bar__cta {
  flex: 1;
  text-align: center;
  padding: 14px 16px;
  border-radius: 999px;
  background: #c3073f;
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
  max-width: 220px;
  margin-left: auto;
}

.aya-cart-v2-bar__cta:hover {
  background: #a00635;
  color: #fff;
}

@media (max-width: 767px) {
  .aya-cart-v2__event {
    flex-direction: row;
  }

  .aya-cart-v2__thumb {
    width: 72px;
    height: 72px;
  }

  .aya-cart-v2__ticket-row {
    flex-direction: column;
    align-items: stretch;
  }

  .aya-cart-v2__ticket-actions {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .aya-cart-v2__line-subtotal {
    flex: 1 1 auto;
    text-align: left;
    min-width: 0;
  }
}

/* Header cart control when Cart V2 is enabled site-wide */
.aya-header-cart-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #ebebeb;
  background: #fafafa;
  color: #111827;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

.aya-header-cart-pill:hover {
  background: #fff;
  color: #111827;
  border-color: #d1d5db;
}

.aya-header-cart-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #111827;
  text-decoration: none;
  font-size: 22px;
}

.aya-header-cart-icon__badge {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #c3073f;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}
