/* =========================================================
   Æmillius Club  ·  prefix: aec
   "Как работи" section, club page, My Account tab, cart box.
   Colours come from the theme tokens (--text, --muted, --accent, --highli).
   ========================================================= */

.aec-hiw,
.aec-club,
.aec-acc,
.aec-dash,
.aec-cb,
.aec-ty,
.aec-pp {
  --aec-text: var(--text, #3e3e3e);
  --aec-muted: var(--muted, #616162);
  --aec-accent: var(--accent, #cbb162);
  --aec-soft: var(--highli, #f3f3f5);
  --aec-line: #e5e5e8;
  color: var(--aec-text);
}

.aec-hiw *,
.aec-club *,
.aec-acc *,
.aec-dash * {
  box-sizing: border-box;
}

/* Divi gives every p a padding-bottom; spacing here is margins only. */
.aec-hiw p,
.aec-club p,
.aec-acc p,
.aec-dash p,
.aec-ty p,
.aec-pp {
  padding: 0 !important;
}

.aec-kicker {
  font-size: 13px !important;
  line-height: 1.4 !important;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700 !important;
  color: var(--aec-accent) !important;
  margin: 0 0 14px !important;
}

/* ---------- buttons ---------- */
.aec-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none !important;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.aec-btn--dark {
  background: var(--aec-text);
  border-color: var(--aec-text);
  color: #ffffff !important;
}

.aec-btn--dark:hover {
  background: var(--aec-accent);
  border-color: var(--aec-accent);
  color: #2b2b2b !important;
}

.aec-btn--gold {
  background: var(--aec-accent);
  border-color: var(--aec-accent);
  color: #2b2b2b !important;
}

.aec-btn--gold:hover {
  background: #b89d4c;
  border-color: #b89d4c;
}

.aec-btn--ghost {
  background: transparent;
  border-color: var(--aec-text);
  color: var(--aec-text) !important;
}

.aec-btn--ghost:hover {
  border-color: var(--aec-accent);
  color: var(--aec-accent) !important;
}

/* =========================================================
   [aem_how_it_works]
   ========================================================= */
.aec-hiw {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 0;
  line-height: 1.6;
}

.aec-hiw__head {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 52px;
}

.aec-hiw__title {
  font-size: 34px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--aec-text) !important;
  margin: 0 0 14px !important;
  padding: 0 !important;
}

.aec-hiw__intro {
  font-size: 17px !important;
  color: var(--aec-muted) !important;
  margin: 0 !important;
}

/* numbered steps */
.aec-hiw__steps {
  list-style: none !important;
  margin: 0 0 48px !important;
  padding: 0 !important;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

.aec-step {
  list-style: none !important;
  margin: 0 !important;
  padding: 26px 0 0 !important;
  border-top: 1px solid var(--aec-text);
  display: flex;
  flex-direction: column;
}

.aec-step__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.aec-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--aec-text);
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
}

.aec-step__icon svg {
  display: block;
  width: 30px;
  height: 30px;
  color: var(--aec-accent);
}

.aec-step__title {
  font-size: 21px !important;
  line-height: 1.3 !important;
  font-weight: 600 !important;
  color: var(--aec-text) !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
}

.aec-step__text {
  font-size: 15px !important;
  line-height: 1.65 !important;
  color: var(--aec-muted) !important;
  margin: 0 0 14px !important;
}

.aec-step__note {
  font-size: 12px !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700 !important;
  color: var(--aec-accent) !important;
  margin: 0 0 14px !important;
}

.aec-step__link {
  margin-top: auto;
  align-self: flex-start;
  background: none;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  padding: 0 0 3px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--aec-text) !important;
  text-decoration: none !important;
  cursor: pointer;
  transition: color 0.2s ease;
}

.aec-step__link:hover {
  color: var(--aec-accent) !important;
}

/* outline cards */
/* auto-fit: when a card is switched off (e.g. Happy Hour inactive) the rest share the row */
.aec-hiw__cards,
.aec-club-earn__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
}

.aec-ocard {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  padding: 40px 24px 34px;
  background: #ffffff;
  border: 1px solid var(--aec-text);
  color: var(--aec-text) !important;
  text-decoration: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

a.aec-ocard:hover {
  border-color: var(--aec-accent);
  box-shadow: 0 10px 30px rgba(62, 62, 62, 0.08);
  transform: translateY(-2px);
}

.aec-ocard__icon svg {
  display: block;
  width: 34px;
  height: 34px;
  margin: 0 auto 20px;
  color: var(--aec-text);
  transition: color 0.2s ease;
}

a.aec-ocard:hover .aec-ocard__icon svg {
  color: var(--aec-accent);
}

.aec-ocard__title {
  font-size: 20px !important;
  line-height: 1.3 !important;
  font-weight: 400 !important;
  letter-spacing: 0.01em;
  color: var(--aec-text) !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
}

.aec-ocard__text {
  font-size: 14px !important;
  line-height: 1.6 !important;
  color: var(--aec-muted) !important;
  margin: 0 0 14px !important;
}

.aec-ocard__note {
  margin: auto 0 0 !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600 !important;
  color: var(--aec-accent) !important;
}

/* =========================================================
   [aem_club]
   ========================================================= */
.aec-club {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 0 80px;
  line-height: 1.6;
}

.aec-club-hero {
  text-align: center;
  padding: 24px 0 56px;
  border-bottom: 1px solid var(--aec-line);
}

.aec-club-hero__title {
  font-size: 42px !important;
  line-height: 1.15 !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--aec-text) !important;
  margin: 0 0 16px !important;
  padding: 0 !important;
}

.aec-club-hero__intro {
  max-width: 640px;
  margin: 0 auto 28px !important;
  font-size: 18px !important;
  color: var(--aec-muted) !important;
}

.aec-club-hero__balance {
  display: inline-block;
  margin: 0 0 24px !important;
  padding: 10px 26px;
  font-size: 24px !important;
  font-weight: 700 !important;
  letter-spacing: 0.03em;
  color: var(--aec-accent) !important;
  border-top: 1px solid rgba(203, 177, 98, 0.45);
  border-bottom: 1px solid rgba(203, 177, 98, 0.45);
}

.aec-club-hero__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.aec-club-h {
  font-size: 26px !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--aec-text) !important;
  margin: 0 0 24px !important;
  padding: 0 !important;
}

.aec-club-steps,
.aec-club-earn,
.aec-club-redeem,
.aec-club-faq {
  margin-top: 64px;
}

.aec-club-steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 48px;
  align-items: start;
}

.aec-club-steps__list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.aec-nstep {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 6px 20px;
  margin: 0 0 30px !important;
  padding: 0 !important;
  list-style: none !important;
}

.aec-nstep__num {
  grid-row: span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--aec-text);
  color: #ffffff;
  font-weight: 600;
}

.aec-nstep__title {
  align-self: center;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
}

.aec-nstep__text {
  grid-column: 2;
  color: var(--aec-muted);
  font-size: 15px;
}

.aec-club-redeem {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding: 48px 56px;
  background: var(--aec-text);
  color: #ffffff;
}

.aec-club-redeem .aec-club-h {
  color: #ffffff !important;
  margin-bottom: 14px !important;
}

.aec-club-redeem__text p {
  margin: 0 !important;
  font-size: 16px !important;
  line-height: 1.65 !important;
  color: rgba(255, 255, 255, 0.78) !important;
}

.aec-club-redeem__examples {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.aec-club-redeem__examples li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin: 0 !important;
  padding: 14px 0 !important;
  list-style: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.aec-club-redeem__examples li:last-child {
  border-bottom: 0;
}

.aec-club-redeem__examples strong {
  font-weight: 600;
  color: #ffffff;
}

.aec-club-redeem__examples span {
  font-size: 22px;
  font-weight: 700;
  color: var(--aec-accent);
}

.aec-faq {
  border-bottom: 1px solid var(--aec-line);
}

.aec-faq summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 18px 40px 18px 0;
  font-size: 17px;
  font-weight: 600;
}

.aec-faq summary::-webkit-details-marker {
  display: none;
}

.aec-faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 300;
  color: var(--aec-accent);
  transition: transform 0.2s ease;
}

.aec-faq[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.aec-faq p {
  margin: 0 0 18px !important;
  color: var(--aec-muted) !important;
  max-width: 760px;
}

.aec-club-terms {
  margin: 20px 0 0 !important;
  font-size: 14px;
}

/* =========================================================
   My Account: Клуб tab
   ========================================================= */
.aec-acc {
  display: flex;
  flex-direction: column;
  gap: 16px;
  line-height: 1.55;
}

.aec-notice {
  margin: 0 !important;
  padding: 12px 16px !important;
  border: 1px solid;
  border-radius: 12px;
  font-size: 14px;
}

.aec-notice--ok {
  background: #eef7ef;
  border-color: #bfe0c3;
  color: #245c2a;
}

.aec-notice--warn {
  background: #fdf6e7;
  border-color: #eed9a8;
  color: #7a5700;
}

.aec-acc-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  padding: 30px 32px;
  background: var(--aec-text);
  color: #ffffff;
  border-radius: 16px;
}

.aec-acc-hero__kicker {
  margin: 0 0 18px !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--aec-accent);
}

.aec-acc-hero__label {
  margin: 0 !important;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.aec-acc-hero__balance {
  margin: 6px 0 6px !important;
  font-size: 52px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.aec-acc-hero__value {
  margin: 0 !important;
  font-size: 16px;
  font-weight: 600;
  color: var(--aec-accent);
}

.aec-acc-hero__side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding-left: 28px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

.aec-acc-hero__side p {
  margin: 0 !important;
}

.aec-acc-hero__side strong {
  color: #ffffff;
}

.aec-acc-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.aec-acc-hero .aec-btn--ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff !important;
}

.aec-acc-rates {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.aec-acc-rates li {
  list-style: none !important;
  margin: 0 !important;
  padding: 16px 20px !important;
  background: #ffffff;
  border: 1px solid var(--aec-line);
  border-radius: 16px;
  font-size: 14px;
  color: var(--aec-muted);
}

.aec-acc-rates strong {
  display: block;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--aec-text);
}

.aec-acc-block {
  padding: 24px;
  background: #ffffff;
  border: 1px solid var(--aec-line);
  border-radius: 16px;
}

.aec-acc-block h3 {
  margin: 0 0 16px !important;
  padding: 0 !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--aec-text) !important;
}

.aec-acc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.aec-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 20px;
  border: 1px solid var(--aec-line);
  border-radius: 12px;
}

.aec-card.is-done {
  background: var(--aec-soft);
}

.aec-card__icon {
  width: 26px;
  height: 26px;
  margin-bottom: 6px;
  color: var(--aec-text);
}

.aec-card__title {
  margin: 0 !important;
  font-size: 15px;
  font-weight: 700;
}

.aec-card__text {
  margin: 0 !important;
  font-size: 13px;
  color: var(--aec-muted);
}

.aec-card__points {
  margin: 0 0 8px !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--aec-accent);
}

.aec-card__state {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: auto 0 0 !important;
  font-size: 13px;
  color: var(--aec-muted);
}

.aec-card__state svg {
  width: 16px;
  height: 16px;
  color: var(--aec-accent);
  flex-shrink: 0;
}

.aec-card > .aec-btn,
.aec-card__form {
  margin-top: auto;
}

.aec-card .aec-btn {
  padding: 10px 16px;
  font-size: 12px;
}

.aec-card__form {
  width: 100%;
}

.aec-card__form summary {
  list-style: none;
}

.aec-card__form summary::-webkit-details-marker {
  display: none;
}

.aec-card__form[open] summary {
  display: none;
}

.aec-card__form form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.aec-card__form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--aec-muted);
}

.aec-card__form input[type="url"],
.aec-card__form select {
  width: 100%;
  min-width: 0;
  padding: 9px 10px;
  font-size: 14px;
  background: #ffffff;
  border: 1px solid #d4d4d9;
  border-radius: 8px;
  color: var(--aec-text);
}

.aec-card__form input[type="file"] {
  max-width: 100%;
  font-size: 12px;
}

.aec-bday {
  display: flex;
  gap: 8px;
}

.aec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.aec-table th {
  padding: 0 10px 10px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--aec-muted);
  border-bottom: 1px solid var(--aec-line);
}

.aec-table td {
  padding: 12px 10px;
  vertical-align: top;
  border-bottom: 1px solid #f0f0f2;
}

.aec-table .num {
  text-align: right;
  white-space: nowrap;
}

.aec-act {
  display: block;
  font-weight: 600;
}

.aec-act-detail {
  display: block;
  font-size: 13px;
  color: var(--aec-muted);
}

.aec-plus {
  color: #2f7d32;
  font-weight: 700;
}

.aec-minus {
  color: var(--aec-text);
  font-weight: 700;
}

.aec-row--void .aec-td-points,
.aec-row--rejected .aec-td-points {
  color: #9a9aa0;
  text-decoration: line-through;
}

.aec-status {
  display: inline-block;
  padding: 3px 10px;
  font-size: 12px;
  white-space: nowrap;
  border-radius: 20px;
  background: var(--aec-soft);
  color: var(--aec-muted);
}

.aec-status--available {
  background: #eef7ef;
  color: #2f7d32;
}

.aec-status--pending {
  background: #fdf6e7;
  color: #8a6300;
}

.aec-pager {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--aec-muted);
}

.aec-pager .aec-btn {
  padding: 8px 14px;
  font-size: 12px;
}

.aec-empty {
  margin: 0 !important;
  color: var(--aec-muted);
}

/* dashboard card (below the bento grid) */
.aec-dash {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 16px 0;
  padding: 20px 24px;
  background: #ffffff;
  border: 1px solid var(--aec-line);
  border-radius: 16px;
}

.aec-dash__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--aec-text);
  color: var(--aec-accent);
}

.aec-dash__icon svg {
  width: 24px;
  height: 24px;
}

.aec-dash__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.aec-dash__kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--aec-accent);
}

.aec-dash__balance {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
}

.aec-dash__sub {
  font-size: 13px;
  color: var(--aec-muted);
}

.aec-dash__pending {
  margin-left: 8px;
}

.aec-dash__btn {
  flex-shrink: 0;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  background: var(--aec-text);
  color: #ffffff !important;
  border-radius: 10px;
  text-decoration: none !important;
  transition: background-color 0.2s ease;
}

.aec-dash__btn:hover {
  background: var(--aec-accent);
  color: #2b2b2b !important;
}

/* sidebar icon: the account template only draws icons for endpoints it knows */
.woocommerce-MyAccount-navigation-link--klub .aem-nav-item::after {
  content: "";
  order: -1;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background-color: rgba(255, 255, 255, 0.4);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3.5h12l3.5 5.5L12 20.5 2.5 9z'/%3E%3Cpath d='M2.5 9h19'/%3E%3Cpath d='M12 20.5L8.5 9 12 3.5 15.5 9z'/%3E%3C/svg%3E") center / 20px 20px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3.5h12l3.5 5.5L12 20.5 2.5 9z'/%3E%3Cpath d='M2.5 9h19'/%3E%3Cpath d='M12 20.5L8.5 9 12 3.5 15.5 9z'/%3E%3C/svg%3E") center / 20px 20px no-repeat;
  transition: background-color 0.15s ease;
}

.woocommerce-MyAccount-navigation-link--klub .aem-nav-item:hover::after,
.woocommerce-MyAccount-navigation-link--klub.is-active .aem-nav-item::after {
  background-color: rgba(255, 255, 255, 0.8);
}

/* =========================================================
   Cart / Checkout block box
   ========================================================= */
/* No box: gold line above, light line below (same frame as the event page clock), inset 16px so the
   text lines up with the totals rows around it. */
.aec-cb {
  margin: 12px 16px;
  padding: 14px 0;
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(203, 177, 98, 0.45);
  border-bottom: 1px solid var(--aec-line);
  border-radius: 0;
  font-size: 14px;
  line-height: 1.5;
  transition: opacity 0.2s ease;
}

/* The Cart block's totals rows have no side padding (the Checkout summary rows have 16px), so align to them. */
.wp-block-woocommerce-cart .aec-cb {
  margin-left: 0;
  margin-right: 0;
}

/* Guest call to action: outlined, in the site's button style (square, #32373c like "Към плащане"),
   so it reads as a button without competing with the checkout button below it. */
.aec-cb__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin: 6px 0 12px;
  padding: 12px 20px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  color: #32373c !important;
  background: transparent;
  border: 1px solid #32373c;
  border-radius: 0;
  text-decoration: none !important;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.aec-cb__cta:hover,
.aec-cb__cta:focus-visible {
  background: #32373c;
  color: #ffffff !important;
}

.aec-cb.is-busy {
  opacity: 0.6;
}

.aec-cb p {
  margin: 0 0 8px !important;
  padding: 0 !important;
}

.aec-cb p:last-child {
  margin-bottom: 0 !important;
}

.aec-cb__title {
  font-size: 12px !important;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--aec-accent);
}

.aec-cb__row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
}

.aec-cb__row--applied {
  justify-content: space-between;
}

.aec-cb__row--applied p {
  margin: 0 !important;
}

.aec-cb__input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 10px;
  font-size: 14px;
  border: 1px solid #cfcfd4;
  border-radius: 6px;
  background: #ffffff;
  color: var(--aec-text);
}

.aec-cb__btn {
  flex-shrink: 0;
  height: 40px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  background: var(--aec-text);
  color: #ffffff;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.aec-cb__btn:hover {
  background: var(--aec-accent);
  color: #2b2b2b;
}

.aec-cb__link {
  flex-shrink: 0;
  padding: 0;
  font-size: 13px;
  background: none;
  border: 0;
  color: var(--aec-text);
  text-decoration: underline;
  cursor: pointer;
}

.aec-cb__hint,
.aec-cb__earn {
  font-size: 13px !important;
  color: var(--aec-muted);
}

.aec-cb__error {
  font-size: 13px !important;
  color: #b32d2e;
}

/* thank-you box and product line */
.aec-ty {
  margin: 24px 0;
  padding: 18px 22px;
  background: #ffffff;
  border: 1px solid var(--aec-line);
  border-left: 3px solid var(--aec-accent);
}

.aec-ty__kicker {
  margin: 0 0 6px !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--aec-accent);
}

.aec-ty__text {
  margin: 0 0 10px !important;
}

.aec-pp {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px !important;
  font-size: 14px;
  color: var(--aec-muted);
}

.aec-pp svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--aec-accent);
}

.aec-pp strong {
  color: var(--aec-text);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .aec-acc-hero {
    grid-template-columns: 1fr;
  }

  .aec-acc-hero__side {
    padding: 18px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
}

@media (max-width: 980px) {
  .aec-hiw {
    padding: 56px 0;
  }

  .aec-hiw__title {
    font-size: 28px !important;
  }

  .aec-hiw__steps,
  .aec-hiw__cards,
  .aec-club-earn__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .aec-hiw__steps {
    gap: 36px 28px;
  }

  .aec-club-steps,
  .aec-club-redeem {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .aec-club-redeem {
    padding: 36px 32px;
  }

  .aec-club-hero__title {
    font-size: 32px !important;
  }
}

@media (max-width: 600px) {
  .aec-hiw {
    padding: 44px 0;
  }

  .aec-hiw__head {
    margin-bottom: 32px;
  }

  .aec-hiw__title {
    font-size: 24px !important;
  }

  .aec-hiw__steps {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .aec-step {
    padding-top: 22px !important;
  }

  .aec-hiw__cards,
  .aec-club-earn__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .aec-ocard {
    padding: 28px 20px 24px;
  }

  .aec-club-hero__title {
    font-size: 26px !important;
  }

  .aec-club-h {
    font-size: 21px !important;
  }

  .aec-club-redeem {
    padding: 28px 22px;
  }

  .aec-nstep__title {
    font-size: 20px;
  }

  .aec-acc-hero {
    padding: 22px 20px;
  }

  .aec-acc-hero__balance {
    font-size: 40px;
  }

  .aec-acc-block {
    padding: 18px;
  }

  .aec-table thead {
    display: none;
  }

  .aec-table,
  .aec-table tbody {
    display: block;
  }

  .aec-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f2;
  }

  .aec-table td {
    padding: 2px 0;
    border: 0;
  }

  .aec-table .aec-td-date {
    grid-column: 1;
    font-size: 12px;
    color: var(--aec-muted);
  }

  .aec-table .aec-td-activity,
  .aec-table .aec-td-status {
    grid-column: 1;
  }

  .aec-table .aec-td-points {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: center;
  }

  .aec-dash {
    flex-wrap: wrap;
    padding: 18px;
  }

  .aec-dash__btn {
    width: 100%;
    text-align: center;
  }
}
