/* Event Country Checkout page - targeted only for /checkout/ */
.ecx-checkout-body {
  background: #f2f2f2 !important;
}

.ecx-checkout-page {
  width: min(100% - 36px, 1240px);
  margin: 0 auto;
  padding: 34px 0 72px;
}

.ecx-checkout-hero {
  min-height: 260px;
  border-radius: 6px;
  padding: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: end;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.84), rgba(0,0,0,0.42), rgba(0,0,0,0.76)),
    url('/assets/img/generated/ec-image-fallback.svg') center/cover no-repeat;
  box-shadow: 0 24px 70px rgba(16, 24, 40, 0.16);
  overflow: hidden;
}

.ecx-checkout-hero span {
  display: inline-flex;
  margin-bottom: 9px;
  color: #ff6200;
  font-weight: 1000;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ecx-checkout-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.4rem, 5.5vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: -0.075em;
  font-weight: 1000;
}

.ecx-checkout-hero p {
  max-width: 720px;
  margin: 18px 0 0;
  color: rgba(255,255,255,0.86);
  font-size: 1rem;
  line-height: 1.65;
}

.ecx-checkout-currency-card {
  border-radius: 6px;
  padding: 20px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(14px);
}

.ecx-checkout-currency-card small,
.ecx-checkout-currency-card strong,
.ecx-checkout-currency-card p {
  display: block;
}

.ecx-checkout-currency-card small {
  color: #ffd4b6;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ecx-checkout-currency-card strong {
  margin: 8px 0;
  font-size: 1.55rem;
  color: #ffffff;
}

.ecx-checkout-currency-card p {
  margin: 0;
  color: rgba(255,255,255,0.76);
  line-height: 1.45;
}

.ecx-checkout-alert {
  margin-top: 18px;
  border-radius: 6px;
  padding: 15px 16px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  font-weight: 800;
  line-height: 1.5;
}

.ecx-checkout-alert.success {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}

.ecx-checkout-alert.error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.ecx-checkout-layout {
  margin-top: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 22px;
  align-items: start;
}

.ecx-checkout-main {
  display: grid;
  gap: 18px;
}

.ecx-checkout-card,
.ecx-order-card,
.ecx-trust-card {
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid #e7eaf0;
  box-shadow: 0 18px 54px rgba(16, 24, 40, 0.10);
}

.ecx-checkout-card {
  padding: 22px;
}

.ecx-section-head {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 18px;
}

.ecx-section-head > span {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: #ff6200;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 1000;
  flex: 0 0 34px;
}

.ecx-section-head h2,
.ecx-order-card h2,
.ecx-trust-card h3 {
  margin: 0;
  color: #101828;
  letter-spacing: -0.035em;
  font-weight: 1000;
}

.ecx-section-head h2 {
  font-size: 1.35rem;
}

.ecx-section-head p {
  margin: 4px 0 0;
  color: #667085;
  line-height: 1.5;
}

.ecx-checkout-event-loading {
  min-height: 140px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: #f8fafc;
  border: 1px dashed #d0d5dd;
  color: #667085;
  font-weight: 800;
}

.ecx-checkout-event {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.ecx-checkout-event img {
  width: 100%;
  height: 180px;
  border-radius: 6px;
  object-fit: cover;
  background: #eef2f7;
}

.ecx-checkout-event h3 {
  margin: 0 0 8px;
  color: #101828;
  font-size: 1.45rem;
  line-height: 1.15;
  letter-spacing: -0.04em;
  font-weight: 1000;
}

.ecx-checkout-event p {
  margin: 0 0 12px;
  color: #667085;
  line-height: 1.6;
}

.ecx-event-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ecx-event-facts span {
  border-radius: 999px;
  padding: 8px 10px;
  background: #f8fafc;
  border: 1px solid #e7eaf0;
  color: #475467;
  font-size: 0.86rem;
  font-weight: 900;
}

.ecx-checkout-form {
  display: grid;
  gap: 14px;
}

.ecx-form-grid {
  display: grid;
  gap: 14px;
}

.ecx-form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ecx-checkout-form label {
  display: grid;
  gap: 7px;
}

.ecx-checkout-form label > span {
  color: #344054;
  font-size: 0.9rem;
  font-weight: 1000;
}

.ecx-checkout-form input,
.ecx-checkout-form textarea {
  width: 100%;
  border-radius: 6px;
  border: 1px solid #d0d5dd;
  background: #ffffff;
  color: #101828;
  font: inherit;
  outline: none;
  padding: 12px 13px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ecx-checkout-form input:focus,
.ecx-checkout-form textarea:focus {
  border-color: #ff6200;
  box-shadow: 0 0 0 4px rgba(255, 98, 0, 0.14);
}

.ecx-check-row {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: flex-start;
  gap: 10px !important;
  padding: 12px;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px solid #e7eaf0;
}

.ecx-check-row input {
  width: 18px !important;
  height: 18px;
  margin-top: 2px;
  padding: 0;
  accent-color: #ff6200;
}

.ecx-check-row span {
  color: #475467 !important;
  line-height: 1.5;
}

.ecx-payment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ecx-primary-btn,
.ecx-secondary-btn {
  border-radius: 6px;
  min-height: 48px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 1000;
  text-decoration: none;
  cursor: pointer;
}

.ecx-primary-btn {
  border: 0;
  background: #ff6200;
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(255, 98, 0, 0.22);
}

.ecx-primary-btn:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.ecx-secondary-btn {
  border: 1px solid #d0d5dd;
  background: #ffffff;
  color: #101828;
}

.ecx-payment-note {
  margin: 14px 0 0;
  color: #667085;
  line-height: 1.6;
}

.ecx-checkout-side {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 16px;
}

.ecx-order-card,
.ecx-trust-card {
  padding: 20px;
}

.ecx-order-card h2 {
  margin-bottom: 16px;
  font-size: 1.45rem;
}

.ecx-order-line {
  padding: 14px 0;
  border-top: 1px solid #edf0f4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.ecx-order-line span {
  color: #667085;
  font-weight: 800;
}

.ecx-order-line strong {
  color: #101828;
  font-weight: 1000;
  text-align: right;
}

.ecx-order-line.total {
  margin-top: 6px;
  padding-top: 18px;
}

.ecx-order-line.total span,
.ecx-order-line.total strong {
  color: #ff6200;
  font-size: 1.35rem;
}

.ecx-order-small {
  margin-top: 14px;
  border-radius: 6px;
  padding: 12px;
  background: #f8fafc;
  color: #667085;
  font-size: 0.84rem;
  line-height: 1.55;
  display: grid;
  gap: 6px;
}

.ecx-trust-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.ecx-trust-card ul {
  padding-left: 18px;
  margin: 0;
  color: #667085;
  line-height: 1.75;
}

@media (max-width: 1040px) {
  .ecx-checkout-hero,
  .ecx-checkout-layout {
    grid-template-columns: 1fr;
  }

  .ecx-checkout-side {
    position: static;
  }
}

@media (max-width: 760px) {
  .ecx-checkout-page {
    width: min(100% - 24px, 1240px);
    padding-top: 20px;
  }

  .ecx-checkout-hero {
    padding: 24px;
  }

  .ecx-checkout-event,
  .ecx-form-grid.two {
    grid-template-columns: 1fr;
  }

  .ecx-checkout-event img {
    height: 220px;
  }

  .ecx-payment-actions > * {
    width: 100%;
  }
}
