/*
 * ABSA "First 500" campaign front-end styles: landing hero, live counter,
 * confirmation badge, store bar and checkout notice. Colours for the bar and
 * checkout notice are applied inline from the admin-set values; the rules here
 * cover layout and the brand-aligned landing/confirmation surfaces.
 */

:root {
  --vezo-campaign-green: #3DDCC1;
  --vezo-campaign-blue: #2AAFBF;
  --vezo-campaign-ink: #0a2a30;
  --vezo-campaign-black: #050505;
}

/* --- Landing hero -------------------------------------------------------- */

.vezo-campaign-landing {
  margin: 24px auto;
  max-width: 720px;
}

.vezo-campaign-hero {
  position: relative;
  overflow: hidden;
  padding: 40px 32px 36px;
  border-radius: 16px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(60, 219, 192, 0.16) 0%, rgba(60, 219, 192, 0) 55%),
    linear-gradient(180deg, #ffffff 0%, #f6fbfa 100%);
  border: 1px solid #e2efed;
  box-shadow: 0 18px 40px -28px rgba(10, 42, 48, 0.45);
  text-align: center;
}

.vezo-campaign-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--vezo-campaign-green), var(--vezo-campaign-blue));
}

.vezo-campaign-hero__eyebrow {
  margin: 0 0 12px;
  font-family: var(--x-headings-font-family, var(--x-font-family-headings, inherit));
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--vezo-campaign-blue);
}

.vezo-campaign-hero__greeting {
  margin: 0 0 10px;
  font-family: var(--x-headings-font-family, var(--x-font-family-headings, inherit));
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.15;
  color: var(--vezo-campaign-black);
}

.vezo-campaign-hero__lead {
  margin: 0 auto 24px;
  max-width: 48ch;
  font-size: 16px;
  line-height: 1.6;
  color: var(--vezo-campaign-ink);
}

.vezo-campaign-hero__counter {
  margin: 0 auto 26px;
}

.vezo-campaign-hero__cta {
  margin: 0 0 14px;
}

.vezo-campaign-hero__button {
  display: inline-block;
  padding: 14px 34px;
  border-radius: 999px;
  background: var(--vezo-campaign-black);
  color: #ffffff !important;
  font-family: var(--x-headings-font-family, var(--x-font-family-headings, inherit));
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.vezo-campaign-hero__button:hover,
.vezo-campaign-hero__button:focus {
  background: var(--vezo-campaign-blue);
  box-shadow: 0 14px 26px -14px rgba(42, 175, 191, 0.7);
  transform: translateY(-1px);
  color: #ffffff !important;
}

.vezo-campaign-hero__note {
  margin: 0;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: #6a7f82;
}

.vezo-campaign-landing--closed .vezo-campaign-hero,
.vezo-campaign-landing--closed {
  text-align: center;
}

/* --- Live counter -------------------------------------------------------- */

.vezo-campaign-counter {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 18px 30px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #d8ecea;
  box-shadow: inset 0 0 0 1px rgba(60, 219, 192, 0.12);
}

.vezo-campaign-counter__big {
  font-family: var(--x-headings-font-family, var(--x-font-family-headings, inherit));
  font-size: clamp(40px, 7vw, 56px);
  line-height: 1;
  font-weight: 700;
  color: var(--vezo-campaign-blue);
}

.vezo-campaign-counter__label {
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--vezo-campaign-ink);
}

.vezo-campaign-counter__days {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #c0392b;
}

.vezo-campaign-counter--closed {
  color: var(--vezo-campaign-ink);
  font-size: 15px;
}

/* --- Confirmation badge (order-summary page) ----------------------------- */

.vezo-campaign-confirmation {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin: 16px 0;
  padding: 16px 18px;
  border-radius: 12px;
  background: linear-gradient(180deg, #f3fdfb 0%, #effaf8 100%);
  border: 1px solid #cdeee8;
}

.vezo-order-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.vezo-order-pill .vezo-label {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--vezo-campaign-ink);
}

.vezo-campaign-confirmed .vezo-value {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--vezo-campaign-green);
  color: var(--vezo-campaign-black);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.vezo-campaign-allocation {
  font-family: var(--x-headings-font-family, var(--x-font-family-headings, inherit));
  font-size: 15px;
  font-weight: 600;
  color: var(--vezo-campaign-black);
}

/* --- Store bar (colours applied inline) ---------------------------------- */

.vezo-campaign-bar {
  position: sticky;
  top: 0;
  z-index: 9999;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 16px;
  background: var(--vezo-campaign-green);
  color: var(--vezo-campaign-black);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  letter-spacing: 0.02em;
}

.vezo-campaign-bar__link {
  color: inherit;
  text-decoration: underline;
  font-weight: 700;
  white-space: nowrap;
}

.vezo-campaign-bar__link:hover,
.vezo-campaign-bar__link:focus {
  text-decoration: none;
}

/* --- Checkout notice (colours applied inline) ---------------------------- */

.vezo-campaign-checkout-notice {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  padding: 14px 16px;
  border: 1px solid var(--vezo-campaign-green);
  border-left-width: 4px;
  border-radius: 10px;
  background: #f6fdfb;
}

.vezo-campaign-checkout-notice__badge {
  flex: 0 0 auto;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--vezo-campaign-green);
  color: var(--vezo-campaign-black);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.vezo-campaign-checkout-notice__body {
  font-size: 14px;
  line-height: 1.45;
  color: var(--vezo-campaign-ink);
}

.vezo-campaign-checkout-notice__body strong {
  color: var(--vezo-campaign-black);
}

@media (max-width: 480px) {
  .vezo-campaign-hero {
    padding: 30px 20px 28px;
  }

  .vezo-campaign-checkout-notice {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (max-width: 400px) {
  .vezo-campaign-bar {
    padding: 8px 12px;
    font-size: 0.78rem;
  }
}
