.sec-event-cart,
.sec-event-cart * {
  box-sizing: border-box;
}

.sec-event-cart {
  --sec-bg: #f9fafb;
  --sec-title: #053163;
  --sec-text: #4b5563;
  --sec-border: #d1d5db;
  --sec-soft: #f3f4f6;
  --sec-blue: #3977dc;
  --sec-blue-2: #4f8ff8;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  color: var(--sec-text);
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

.sec-event-cart .amount,
.sec-event-cart bdi {
  color: inherit;
}

.sec-header-block {
  margin: 0;
  padding: 26px 26px 22px;
  background: #fff;
  border-radius: 22px 22px 0 0;
  border: 1px solid #e5e7eb;
  border-bottom: 0;
  box-shadow: 0 14px 34px rgba(5, 49, 99, 0.06);
}

.sec-kicker,
.sec-header-block h2,
.sec-header-block p {
  display: none;
}

.sec-header-block::before {
  content: "Escolha uma opção";
  display: block;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
}

.sec-ticket-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 24px 20px;
  background: #fff;
  border-left: 1px solid #e5e7eb;
  border-right: 1px solid #e5e7eb;
  box-shadow: 0 18px 42px rgba(5, 49, 99, 0.06);
}

.sec-product-card {
  width: 100%;
  padding: 14px 16px;
  background: #f9fafb;
  border: 1px solid #bcc7f5;
  border-radius: 20px;
  box-shadow: none;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.sec-product-card:hover {
  transform: none;
  border-color: rgba(57, 119, 220, 0.45);
  box-shadow: 0 10px 26px rgba(5, 49, 99, 0.08);
}

.sec-product-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "copy control"
    "meta control";
  align-items: center;
  gap: 8px 14px;
}

.sec-product-copy {
  grid-area: copy;
  min-width: 0;
}

.sec-product-copy h3 {
  margin: 0 0 8px;
  color: #053163;
  font-size: 18px;
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.sec-product-copy p,
.sec-product-copy small {
  display: none;
}

.sec-product-price {
  grid-area: meta;
  min-width: 0;
  padding: 0;
  border: 0;
  text-align: left;
}

.sec-product-price strong,
.sec-product-price .amount {
  display: inline;
  color: #4b5563;
  font-size: 20px;
  line-height: 1.1;
  font-weight: 750;
  white-space: normal;
}

.sec-product-price span {
  display: none;
}

.sec-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 10px 0;
}

.sec-badge,
.sec-badge-success {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
}

.sec-badge {
  color: #1d4ed8;
  background: #dbeafe;
}

.sec-badge-success {
  color: #166534;
  background: #dcfce7;
}

.sec-product-control {
  grid-area: control;
  text-align: right;
}

.sec-quantity-label {
  display: none;
}

.sec-quantity-box {
  display: inline-grid;
  grid-template-columns: 48px 42px 48px;
  align-items: center;
  overflow: visible;
  min-width: 138px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.sec-quantity-box strong {
  min-width: auto;
  color: #475569;
  font-size: 20px;
  line-height: 48px;
  font-weight: 700;
  text-align: center;
}

.sec-qty-btn {
  width: 10px;
  height: 48px;
  border: 0;
  border-radius: 50px;
  cursor: pointer;
  color: #ffffff;
  background: linear-gradient(var(--sec-blue-2), var(--sec-blue));
  font-size: 28px;
  line-height: 1;
  font-weight: 700;
  transition:
    filter 0.18s ease,
    transform 0.18s ease,
    opacity 0.18s ease;
}

.sec-qty-btn[data-sec-remove] {
  color: #6b7280;
  background: #e5e7eb;
  border-radius: 50px;
}

.sec-qty-btn[data-sec-add] {
  color: #fff;
  border-radius: 50px;
}

.sec-qty-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(0.98);
  background: linear-gradient(var(--sec-blue-2), var(--sec-blue));
}

.sec-qty-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.sec-cart-bottom {
  margin: 0;
  padding: 24px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-top: 0;
  border-radius: 0 0 22px 22px;
  box-shadow: 0 22px 46px rgba(5, 49, 99, 0.07);
}

.sec-cart-heading {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 0 0 20px;
}

.sec-cart-icon {
  display: grid;
  place-items: center;
  width: 52px;
  min-width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #dbeafe;
  font-size: 20px;
}

.sec-cart-heading h3 {
  margin: 0 0 3px;
  color: var(--sec-title);
  font-size: 20px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.sec-cart-heading p {
  margin: 0;
  color: var(--sec-text);
  font-size: 16px;
}

.sec-cart-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

.sec-cart-items {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sec-empty-cart {
  display: grid;
  place-items: center;
  min-height: 116px;
  padding: 18px;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  text-align: center;
  background: #f9fafb;
}

.sec-empty-cart div {
  margin-bottom: 8px;
  font-size: 30px;
}

.sec-empty-cart strong {
  color: var(--sec-title);
  font-size: 16px;
}

.sec-empty-cart span {
  color: #6b7280;
  font-size: 13px;
}

.sec-cart-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;
}

.sec-cart-item strong {
  display: block;
  max-width: 100%;
  color: var(--sec-title);
  font-size: 15px;
  line-height: 1.2;
  font-weight: 800;
  word-break: normal;
}

.sec-cart-item span {
  display: block;
  margin-top: 4px;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.2;
}

.sec-cart-item > div:last-child {
  color: var(--sec-title);
  font-size: 15px;
  font-weight: 750;
  white-space: nowrap;
}

.sec-cart-summary {
  width: 100%;
}

.sec-coupon-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px;
  gap: 12px;
  margin: 4px 0 18px;
}

.sec-coupon-row input {
  width: 100%;
  min-width: 0;
  min-height: 54px;
  padding: 0 16px;
  color: #111827;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  outline: none;
  font-size: 15px;
}

.sec-coupon-row input:focus {
  border-color: var(--sec-blue);
  box-shadow: 0 0 0 3px rgba(79, 143, 248, 0.16);
}

.sec-coupon-row button,
.sec-checkout-btn {
  border: 0;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(var(--sec-blue-2), var(--sec-blue));
  font-weight: 750;
  transition:
    transform 0.18s ease,
    opacity 0.18s ease,
    filter 0.18s ease;
}

.sec-coupon-row button {
  min-height: 54px;
  padding: 0 18px;
  border-radius: 12px;
  font-size: 16px;
}

.sec-coupon-row button:hover,
.sec-checkout-btn:hover {
  transform: translateY(-1px);
}

.sec-coupon-row button:disabled,
.sec-checkout-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  color: #fff;
  width: 100%;
  border-radius: 12px;
}

.sec-line,
.sec-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 9px 0;
  color: var(--sec-text);
  font-size: 16px;
}

.sec-line strong {
  color: var(--sec-title);
  font-weight: 750;
  white-space: nowrap;
}

.sec-total {
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid #e5e7eb;
  color: var(--sec-title);
  font-size: 20px;
  font-weight: 800;
}

.sec-total strong {
  color: var(--sec-title);
  font-size: 22px;
  font-weight: 850;
  white-space: nowrap;
}

.sec-checkout-btn {
  width: 100%;
  min-height: 58px;
  margin-top: 18px;
  border-radius: 12px;
  font-size: 16px;
  color: #fff;
}

.sec-cart-summary small {
  display: block;
  margin-top: 12px;
  color: #6b7280;
  text-align: center;
  font-size: 13px;
}

.sec-alert {
  padding: 18px;
  color: var(--sec-title);
  background: #fff;
  border: 1px solid #bfdbfe;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(5, 49, 99, 0.06);
}

.sec-event-cart.sec-is-loading {
  opacity: 0.92;
}

.sec-event-cart button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.sec-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999999;
  max-width: 340px;
  padding: 14px 18px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(var(--sec-blue-2), var(--sec-blue));
  box-shadow: 0 16px 42px rgba(5, 49, 99, 0.2);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: 0.25s ease;
  font-weight: 700;
}

.sec-toast.sec-toast-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 520px) {
  .sec-event-cart {
    max-width: 100%;
  }

  .sec-header-block {
    padding: 22px 18px 18px;
  }

  .sec-ticket-list {
    padding: 12px 14px 16px;
  }

  .sec-product-card {
    padding: 14px;
  }

  .sec-product-main {
    grid-template-columns: 1fr;
    grid-template-areas: "copy" "meta" "control";
    align-items: start;
  }

  .sec-product-control {
    width: 100%;
    text-align: left;
  }

  .sec-quantity-box {
    width: 100%;
    grid-template-columns: 52px 1fr 52px;
  }

  .sec-cart-bottom {
    padding: 20px 16px;
  }

  .sec-coupon-row {
    grid-template-columns: 1fr;
  }
}
