/* TCE Cadeaubon kopen — mobile first. Colours are defaults; Elementor style controls override them. */
.tce-gc-buy {
  --tce-gc-gap: 32px;
  --tce-gc-field-gap: 16px;
  --tce-gc-label-gap: 6px;
  --tce-gc-accent: #ffb81c;
  --tce-gc-ink: #111111;
  display: flex;
  flex-direction: column;
  gap: var(--tce-gc-gap);
}

.tce-gc-buy__main {
  min-width: 0;
}

.tce-gc-buy__preview-inner {
  max-width: 600px;
  margin: 0 auto;
}

/* The bon is rendered at its design width (inline, "Breedte bon"); widget.js zooms it down to fit the column. */
.tce-gc-buy__stage {
  margin: 0 auto;
}

/* The bon is email markup (tables + inline styles). Undo theme table styles
   (borders, cell padding, striped/hover rows, font size) so it looks like the email.
   Inline styles still win over these. */
.tce-gc-buy__preview .tce-gc-card,
.tce-gc-buy__preview .tce-gc-note,
.tce-gc-buy__preview .tce-gc-card table,
.tce-gc-buy__preview .tce-gc-note table {
  width: 100%;
  margin: 0;
  border: 0;
  border-spacing: 0;
  font-size: 16px;
  line-height: normal;
}

.tce-gc-buy__preview .tce-gc-card tr,
.tce-gc-buy__preview .tce-gc-card td,
.tce-gc-buy__preview .tce-gc-note tr,
.tce-gc-buy__preview .tce-gc-note td {
  border: 0;
  padding: 0;
  background-color: transparent;
  font-size: inherit;
  line-height: inherit;
  vertical-align: middle;
}

.tce-gc-buy__preview .tce-gc-card img {
  border: 0;
  box-shadow: none;
}

.tce-gc-buy__preview .tce-gc-note {
  margin-top: 16px;
}

.tce-gc-preview-shadow-yes .tce-gc-card,
.tce-gc-preview-shadow-yes .tce-gc-note {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
}

.tce-gc-buy [data-tce-gc="message"] {
  white-space: pre-line;
  overflow-wrap: anywhere;
}

@media (min-width: 768px) {
  .tce-gc-buy--preview-right,
  .tce-gc-buy--preview-left {
    align-items: flex-start;
  }
  .tce-gc-buy--preview-right {
    flex-direction: row-reverse;
  }
  .tce-gc-buy--preview-left {
    flex-direction: row;
  }
  .tce-gc-buy--preview-right .tce-gc-buy__preview,
  .tce-gc-buy--preview-left .tce-gc-buy__preview {
    flex: 0 0 var(--tce-gc-preview-w, 45%);
    position: sticky;
    top: 24px;
  }
  .tce-gc-buy--preview-right .tce-gc-buy__main,
  .tce-gc-buy--preview-left .tce-gc-buy__main {
    flex: 1 1 0;
  }
}

/* Form */
.tce-gc-buy__form {
  display: flex;
  flex-direction: column;
  gap: var(--tce-gc-field-gap);
  margin: 0;
}

.tce-gc-field {
  display: flex;
  flex-direction: column;
  gap: var(--tce-gc-label-gap);
  margin: 0;
}

.tce-gc-field[hidden] {
  display: none;
}

.tce-gc-label {
  font-weight: 600;
}

@media (min-width: 768px) {
  .tce-gc-labels--inline .tce-gc-field--text {
    display: grid;
    grid-template-columns: minmax(120px, 30%) minmax(0, 1fr);
    align-items: center;
    column-gap: 16px;
  }
  .tce-gc-labels--inline .tce-gc-field--text .tce-gc-field__error {
    grid-column: 2;
  }
  .tce-gc-labels--inline .tce-gc-field--message {
    align-items: start;
  }
}

.tce-gc-input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid #cfcfcf;
  border-radius: 8px;
  background: #ffffff;
  color: var(--tce-gc-ink);
  font: inherit;
  line-height: 1.4;
}

.tce-gc-input:focus {
  outline: none;
  border-color: var(--tce-gc-ink);
}

.tce-gc-input[aria-invalid="true"] {
  border-color: #b32d2e;
}

textarea.tce-gc-input {
  resize: vertical;
  min-height: 96px;
}

.tce-gc-field__control {
  position: relative;
}

.tce-gc-counter {
  display: block;
  margin-top: 4px;
  text-align: right;
  font-size: 0.8em;
  opacity: 0.7;
}

.tce-gc-field__error,
.tce-gc-form-error {
  color: #b32d2e;
  font-size: 0.9em;
}

.tce-gc-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.tce-gc-check input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--tce-gc-ink);
}

/* "Eigen bedrag": shown under the amount options when that option is chosen */
.tce-gc-custom {
  display: flex;
  flex-direction: column;
  gap: var(--tce-gc-label-gap);
  margin-top: 8px;
}

.tce-gc-custom[hidden] {
  display: none;
}

.tce-gc-custom__control {
  position: relative;
  max-width: 240px;
}

.tce-gc-custom__currency {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  font-weight: 600;
  pointer-events: none;
}

.tce-gc-buy .tce-gc-custom__input {
  padding-left: 34px;
  font-weight: 600;
}

.tce-gc-custom__hint {
  font-size: 0.85em;
  opacity: 0.75;
}

/* Amount choice */
.tce-gc-amounts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.tce-gc-amount {
  position: relative;
  display: block;
  margin: 0;
  cursor: pointer;
}

.tce-gc-sr {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}

.tce-gc-amount__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 100%;
  box-sizing: border-box;
  padding: 12px 8px;
  border: 2px solid #d8d8d8;
  border-radius: 10px;
  background: #ffffff;
  color: var(--tce-gc-ink);
  text-align: center;
  transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}

.tce-gc-amount:hover .tce-gc-amount__box {
  border-color: var(--tce-gc-ink);
}

.tce-gc-amount input:checked + .tce-gc-amount__box {
  border-color: var(--tce-gc-ink);
  background: var(--tce-gc-accent);
}

.tce-gc-amount input:focus-visible + .tce-gc-amount__box {
  outline: 2px solid var(--tce-gc-ink);
  outline-offset: 2px;
}

.tce-gc-amount__value {
  font-weight: 700;
  font-size: 1.1em;
}

.tce-gc-amount__label {
  font-size: 0.8em;
  line-height: 1.3;
}

.tce-gc-amounts--cards .tce-gc-amount__box {
  padding: 18px 12px;
  align-items: flex-start;
  text-align: left;
}

.tce-gc-amounts--cards .tce-gc-amount__value {
  font-size: 1.5em;
}

/* Button */
.tce-gc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border: 0;
  border-radius: 8px;
  background: var(--tce-gc-ink);
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}

.tce-gc-btn-full-yes .tce-gc-btn {
  width: 100%;
}

.tce-gc-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.tce-gc-success {
  padding: 12px 14px;
  border-radius: 8px;
  background: #eaf6ec;
  color: #0a5c1f;
}

.tce-gc-success[hidden],
.tce-gc-form-error[hidden],
.tce-gc-field__error[hidden] {
  display: none;
}

.tce-gc-success__link {
  font-weight: 700;
  margin-left: 4px;
  color: inherit;
  text-decoration: underline;
}

/* Benefits */
.tce-gc-benefits {
  --tce-gc-icon-size: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

/* Benefits under the preview ("Positie: Onder het voorbeeld"): same width as the bon. */
.tce-gc-buy__preview .tce-gc-benefits {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.tce-gc-benefits__item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.tce-gc-benefits__icon {
  display: inline-flex;
  flex: 0 0 auto;
  font-size: var(--tce-gc-icon-size);
  color: var(--tce-gc-ink);
}

.tce-gc-benefits__icon svg {
  width: var(--tce-gc-icon-size);
  height: var(--tce-gc-icon-size);
  fill: currentColor;
}

/* Balance check ([tce_cadeaubon_saldo]) */
.tce-gc-balance__title {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.tce-gc-balance__row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tce-gc-balance__input {
  flex: 1 1 200px;
  min-width: 0;
  text-transform: uppercase;
}

.tce-gc-balance__input::placeholder {
  text-transform: none;
}

.tce-gc-balance__result:empty {
  display: none;
}

.tce-gc-balance__result {
  margin-top: 10px;
}

.tce-gc-balance__result.is-error {
  color: #b32d2e;
}

.tce-gc-balance__result.is-ok {
  color: #0a5c1f;
}
