.cs-add-to-cart-message {
  margin-top: 10px;
}

.cs-message {
  font-size: 14px;
  line-height: 1.4;
}

.cs-message-success {
  color: #1f7a1f;
}

.cs-message-error {
  color: #c62828;
}

.cs-ticket-cart-meta {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.4;
  color: #555;
}

.cs-ticket-cart-meta strong {
  color: #6b26d9;
  font-weight: 600;
}

.cs-preset {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
  width: 100% !important;
  align-items: flex-start !important;
}

.preset-card {
  box-sizing: border-box !important;
  position: relative !important;
  width: 141px !important;
  height: 152px !important;
  border: 2px solid rgba(107, 38, 217, 0.1) !important;
  border-radius: 20px !important;
  background: linear-gradient(180deg, #f9f8fb 0%, #ffffff 100%) !important;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease !important;
  cursor: pointer !important;
  display: block !important;
  overflow: hidden !important;
}

.preset-card:hover {
  box-shadow: 0 8px 24px -10px rgba(107, 38, 217, 0.35) !important;
}

.preset-card input[type="radio"] {
  display: none !important;
}

.preset-card label {
  cursor: pointer !important;
  display: block !important;
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
}

.preset-card .check-mark {
  box-sizing: border-box !important;
  position: absolute !important;
  left: 18px !important;
  top: 18px !important;
  width: 20px !important;
  height: 20px !important;
  border: 2px solid #6b26d9 !important;
  border-radius: 50% !important;
  background: transparent !important;
  transition: all 0.2s ease !important;
}

.preset-card .check-mark::after {
  content: "✓" !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) scale(0.6) !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  opacity: 0 !important;
  transition: all 0.2s ease !important;
}

.preset-card h4,
.preset-card p {
  margin: 0 !important;
  padding: 0 !important;
  position: absolute !important;
  left: 18px !important;
  text-align: left !important;
}

.preset-card h4 {
  top: 50px !important;
  font-family: "Anton", sans-serif !important;
  font-weight: 400 !important;
  font-size: 18px !important;
  line-height: 28px !important;
  color: #1b102d !important;
}

.preset-card p.total-price {
  top: 84px !important;
  font-family: "Plus Jakarta Sans", sans-serif !important;
  font-weight: 700 !important;
  font-size: 24px !important;
  line-height: 32px !important;
  color: #6b26d9 !important;
  white-space: nowrap !important;
}

.preset-card p.per-unit-price {
  top: 119px !important;
  font-family: "Plus Jakarta Sans", sans-serif !important;
  font-weight: 400 !important;
  font-size: 12px !important;
  line-height: 16px !important;
  color: #6f677e !important;
}

.preset-card.single-ticket p.per-unit-price {
  display: none !important;
}

.preset-card.selected {
  background: rgba(107, 38, 217, 0.1) !important;
  border-color: #6b26d9 !important;
  box-shadow: 0 8px 32px -8px rgba(107, 38, 217, 0.4) !important;
}

.preset-card.selected .check-mark {
  background-color: #6b26d9 !important;
  border-color: #6b26d9 !important;
}

.preset-card.selected .check-mark::after {
  opacity: 1 !important;
  transform: translate(-50%, -50%) scale(1) !important;
}

.preset-card .discount-badge,
.preset-card .badge,
.preset-card .overlay,
.preset-card [class*="discount"],
.preset-card [class*="badge"] {
  display: none !important;
}

.quantity-selector {
  margin-top: 20px;
  padding-bottom: 15px;
  border-radius: 12px;
}

.quantity-selector label {
  font-family: "Anton", sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #000;
}

.quantity-controls {
  display: flex;
  align-items: center;
}

.quantity-controls button {
  background-color: #fff;
  width: 35px;
  height: 35px;
  color: #000;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 10px;
}

.quantity-controls button:hover {
  background-color: #f9f8fb;
  border-color: #ccc;
}

.quantity-controls input[type="number"] {
  width: 50px;
  text-align: center;
  font-family: "Anton", sans-serif;
  font-size: 18px;
  color: #000;
  background-color: #fff;
  border: 0;
}

.quantity-controls input[type="number"]::-webkit-inner-spin-button,
.quantity-controls input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.quantity-controls input[type="number"] {
  -moz-appearance: textfield;
}

.max-quantity {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 12px;
  color: #333;
  padding-left: 12px;
  margin: 0;
}

.purchase-button {
  width: 100% !important;
  text-align: center;
}

.purchase-button #add-to-cart-button {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
}

.purchase-button button {
  background: linear-gradient(360deg, rgba(255, 41, 255, 1) -20%, rgba(107, 15, 26, 1) 50%, rgba(255, 41, 255, 1) 120%);
  color: #fff;
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 16px;
  font-size: 18px;
  font-weight: 600;
  font-family: "Plus Jakarta Sans", sans-serif;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s ease;
}

.purchase-button button:hover {
  background: #fff;
  border-color: #6b26d9;
  color: #6b26d9;
}

.purchase-button img {
  width: 20px;
  margin-right: 8px;
  transition: filter 0.3s ease;
  filter: brightness(0) invert(1);
}

.purchase-button button:hover img {
  filter: brightness(0) saturate(100%) invert(26%) sepia(84%) saturate(2800%) hue-rotate(252deg) brightness(90%) contrast(105%);
}

#cs-selected-quantity {
  color: #6f677e;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 14px;
  line-height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 1024px) {
  .cs-preset {
    justify-content: center !important;
  }

  .quantity-controls button {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .quantity-controls input[type="number"] {
    width: 45px;
    font-size: 16px;
  }

  .quantity-selector label {
    font-size: 16px;
  }

  .purchase-button button {
    padding: 14px;
    font-size: 17px;
  }
}

@media (max-width: 767px) {
  .cs-preset {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 12px !important;
  }

  .preset-card {
    flex: 0 0 calc((100% - 12px) / 2) !important;
    width: calc((100% - 12px) / 2) !important;
    max-width: calc((100% - 12px) / 2) !important;
    min-width: 0 !important;
    height: 152px !important;
  }

  .preset-card p.total-price {
    font-size: 20px !important;
    line-height: 24px !important;
    top: 86px !important;
  }

  .preset-card p.per-unit-price {
    top: 116px !important;
  }

  .quantity-controls button {
    width: 30px;
    height: 30px;
    font-size: 12px;
    padding: 4px 8px;
  }

  .quantity-controls input[type="number"] {
    width: 40px;
    font-size: 16px;
  }

  .quantity-selector label {
    font-size: 15px;
  }

  .purchase-button button {
    padding: 14px;
    font-size: 16px;
  }

  .purchase-button img {
    width: 18px;
  }

  #cs-selected-quantity {
    font-size: 13px;
  }
}

/* Scoped overrides to avoid conflicts with global/theme CSS. */
.cs-preset.cs-addon-layout {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
}

.cs-preset.cs-addon-layout > .preset-card {
  flex: 0 0 auto !important;
  width: 141px !important;
  max-width: 141px !important;
}

@media (max-width: 767px) {
  .cs-preset.cs-addon-layout {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .cs-preset.cs-addon-layout > .preset-card {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    flex: none !important;
  }
}
