/* Théma21 támogatási űrlap: megjelölt aktuális űrlap, azonosítótól független. */
:is(form.thema21-support-form, .thema21-support-form-container form.frm-fluent-form) {
  --fluentform-primary: #c8a96a;
  --thema21-support-gold: var(--c-main, #c8a96a);
  --thema21-support-hover: #151515;
}

/* Az összes választógomb és a fizetésgomb közös megjelenése. */
:is(form.thema21-support-form, .thema21-support-form-container form.frm-fluent-form) .ff_list_buttons label > span,
:is(form.thema21-support-form, .thema21-support-form-container form.frm-fluent-form) button[type="submit"] {
  box-sizing: border-box;
  min-height: 56px !important;
  padding: 0 24px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid var(--thema21-support-gold) !important;
  border-radius: 3px !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  text-transform: uppercase !important;
  letter-spacing: .02em !important;
  text-align: center;
  box-shadow: none !important;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}

/* Nem kiválasztott opció: arany szegély, a téma szövegszíne. */
:is(form.thema21-support-form, .thema21-support-form-container form.frm-fluent-form) .ff_list_buttons label > span {
  background: transparent !important;
  color: var(--c-contrast, #171717) !important;
}

/* A gombok különálló, azonos lekerekítésű elemek legyenek. */
:is(form.thema21-support-form, .thema21-support-form-container form.frm-fluent-form) .ff_list_buttons .ff-el-form-check {
  margin: 0 8px 8px 0 !important;
}

:is(form.thema21-support-form, .thema21-support-form-container form.frm-fluent-form) .ff_list_buttons label,
:is(form.thema21-support-form, .thema21-support-form-container form.frm-fluent-form) .ff_list_buttons label * {
  -webkit-user-select: none;
  user-select: none;
  cursor: pointer;
}

/* Kiválasztott opció: ugyanaz az arany háttér és fehér szöveg. */
:is(form.thema21-support-form, .thema21-support-form-container form.frm-fluent-form) .ff_list_buttons .ff_item_selected > label > span,
:is(form.thema21-support-form, .thema21-support-form-container form.frm-fluent-form) .ff_list_buttons label.thema21-option-selected > span,
:is(form.thema21-support-form, .thema21-support-form-container form.frm-fluent-form) button[type="submit"] {
  background: var(--thema21-support-gold) !important;
  color: #fff !important;
}

:is(form.thema21-support-form, .thema21-support-form-container form.frm-fluent-form) .ff_list_buttons label > span * {
  color: inherit !important;
  font-family: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
}

:is(form.thema21-support-form, .thema21-support-form-container form.frm-fluent-form) .ff_list_buttons label:hover > span,
:is(form.thema21-support-form, .thema21-support-form-container form.frm-fluent-form) button[type="submit"]:hover {
  background: var(--thema21-support-hover) !important;
  border-color: var(--thema21-support-hover) !important;
  color: #fff !important;
}

:is(form.thema21-support-form, .thema21-support-form-container form.frm-fluent-form) .ff_list_buttons label:focus-within > span,
:is(form.thema21-support-form, .thema21-support-form-container form.frm-fluent-form) button[type="submit"]:focus-visible {
  outline: 2px solid #8a692e !important;
  outline-offset: 3px;
}

/* Saját checkbox-megjelenés: a böngésző kék színe helyett arany. */
:is(form.thema21-support-form, .thema21-support-form-container form.frm-fluent-form) input[type="checkbox"] {
  -webkit-appearance: none !important;
  appearance: none !important;
  display: inline-block !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px;
  padding: 0 !important;
  vertical-align: middle;
  border: 1px solid var(--thema21-support-gold) !important;
  border-radius: 3px !important;
  background: transparent !important;
  box-shadow: none !important;
  cursor: pointer;
}

:is(form.thema21-support-form, .thema21-support-form-container form.frm-fluent-form) input[type="checkbox"]:checked {
  background-color: var(--thema21-support-gold) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4 9l3 3 7-7' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-position: center !important;
  background-size: 18px 18px !important;
  background-repeat: no-repeat !important;
}

:is(form.thema21-support-form, .thema21-support-form-container form.frm-fluent-form) input[type="checkbox"]:focus-visible {
  outline: 2px solid #8a692e !important;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  :is(form.thema21-support-form, .thema21-support-form-container form.frm-fluent-form) .ff_list_buttons label > span,
  :is(form.thema21-support-form, .thema21-support-form-container form.frm-fluent-form) button[type="submit"] {
    transition: none;
  }
}

/* A hírlevél mezőinek SmartMag-színei és méretei. */
:is(form.thema21-support-form, .thema21-support-form-container form.frm-fluent-form) input[type="text"],
:is(form.thema21-support-form, .thema21-support-form-container form.frm-fluent-form) input[type="email"],
:is(form.thema21-support-form, .thema21-support-form-container form.frm-fluent-form) input[type="number"] {
  box-sizing: border-box;
  width: 100%;
  height: 56px !important;
  padding: 0 20px !important;
  background: var(--c-contrast-50, #fff) !important;
  border: 1px solid var(--c-contrast-150, rgba(0,0,0,.12)) !important;
  border-radius: 2px !important;
  color: var(--c-contrast-850, #222) !important;
  font-family: inherit !important;
  font-size: 15px !important;
  box-shadow: none !important;
  transition: border-color .2s ease, background-color .2s ease;
}
:is(form.thema21-support-form, .thema21-support-form-container form.frm-fluent-form) input[type="text"]::placeholder,
:is(form.thema21-support-form, .thema21-support-form-container form.frm-fluent-form) input[type="email"]::placeholder,
:is(form.thema21-support-form, .thema21-support-form-container form.frm-fluent-form) input[type="number"]::placeholder {
  color: var(--c-contrast-500, rgba(0,0,0,.48)) !important;
}
:is(form.thema21-support-form, .thema21-support-form-container form.frm-fluent-form) input[type="text"]:focus,
:is(form.thema21-support-form, .thema21-support-form-container form.frm-fluent-form) input[type="email"]:focus,
:is(form.thema21-support-form, .thema21-support-form-container form.frm-fluent-form) input[type="number"]:focus {
  border-color: var(--c-contrast-300, rgba(0,0,0,.22)) !important;
  background: var(--c-contrast-75, #fff) !important;
  outline: none !important;
  box-shadow: none !important;
}
:is(form.thema21-support-form, .thema21-support-form-container form.frm-fluent-form) .ff-el-group {
  margin-bottom: 22px;
}
:is(form.thema21-support-form, .thema21-support-form-container form.frm-fluent-form) .ff-el-input--label label {
  color: var(--c-contrast-850, #222) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
}
/* A havi tudomásulvétel tipográfiája a hírlevél GDPR-szövegét követi. */
:is(form.thema21-support-form, .thema21-support-form-container form.frm-fluent-form) .thema21-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--c-contrast-700, rgba(0,0,0,.68)) !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.7 !important;
  text-align: left;
}
:is(form.thema21-support-form, .thema21-support-form-container form.frm-fluent-form) input[type="checkbox"] {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px;
  margin: 5px 0 0 !important;
  flex: 0 0 auto;
  background-size: 16px 16px !important;
  accent-color: var(--c-main, #c8a96a);
}
:is(form.thema21-support-form, .thema21-support-form-container form.frm-fluent-form) button[type="submit"] {
  height: 56px !important;
  padding: 0 34px !important;
  border: 0 !important;
  line-height: 1 !important;
}
/* A SmartMag saját hover-effektjei se módosítsák a hírlevél stílusát. */
:is(form.thema21-support-form, .thema21-support-form-container form.frm-fluent-form) .ff_list_buttons label > span,
:is(form.thema21-support-form, .thema21-support-form-container form.frm-fluent-form) button[type="submit"] {
  background-image: none !important;
  opacity: 1 !important;
  filter: none !important;
}
:is(form.thema21-support-form, .thema21-support-form-container form.frm-fluent-form) button[type="submit"]:hover,
:is(form.thema21-support-form, .thema21-support-form-container form.frm-fluent-form) button[type="submit"]:focus,
:is(form.thema21-support-form, .thema21-support-form-container form.frm-fluent-form) button[type="submit"]:active {
  background-color: #151515 !important;
  color: #fff !important;
}
:is(form.thema21-support-form, .thema21-support-form-container form.frm-fluent-form) .ff_list_buttons label:active > span {
  background-color: #151515 !important;
  border-color: #151515 !important;
  color: #fff !important;
}
:is(form.thema21-support-form, .thema21-support-form-container form.frm-fluent-form) .ff-el-is-error input {
  border-color: var(--c-main, #c8a96a) !important;
}
:is(form.thema21-support-form, .thema21-support-form-container form.frm-fluent-form) .ff-el-help-message {
  margin-top: 8px;
  color: var(--c-main, #c8a96a);
  font-size: 13px;
  text-align: left;
}
@media (max-width: 768px) {
  :is(form.thema21-support-form, .thema21-support-form-container form.frm-fluent-form) button[type="submit"] {
    width: 100%;
    height: auto !important;
    min-height: 56px;
    padding: 16px 20px !important;
    line-height: 1.4 !important;
  }
  :is(form.thema21-support-form, .thema21-support-form-container form.frm-fluent-form) .ff_list_buttons label > span {
    padding: 12px 16px !important;
  }
}

/* Havi csomagok: csak a magyar név maradjon a választógombon.
   A .ff_sub_desc a Subscription.php automatikus árleírása;
   elrejtése nem módosítja a fizetéshez használt összeget. */
:is(form.thema21-support-form, .thema21-support-form-container form.frm-fluent-form) .ff_sub_desc {
  display: none !important;
}
:is(form.thema21-support-form, .thema21-support-form-container form.frm-fluent-form) .ff_list_buttons label > span {
  flex-direction: column !important;
  white-space: normal !important;
  max-width: 100%;
}
:is(form.thema21-support-form, .thema21-support-form-container form.frm-fluent-form) .ff_plan_title {
  display: block !important;
  -webkit-user-select: none !important;
  user-select: none !important;
}
:is(form.thema21-support-form, .thema21-support-form-container form.frm-fluent-form) .ff_list_buttons label,
:is(form.thema21-support-form, .thema21-support-form-container form.frm-fluent-form) .ff_list_buttons label * {
  -webkit-user-select: none !important;
  user-select: none !important;
}
/* Az összeg továbbra is numerikus mező, látható léptetőnyilak nélkül. */
:is(form.thema21-support-form, .thema21-support-form-container form.frm-fluent-form) input[type="number"] {
  -moz-appearance: textfield !important;
  appearance: textfield !important;
}
:is(form.thema21-support-form, .thema21-support-form-container form.frm-fluent-form) input[type="number"]::-webkit-inner-spin-button,
:is(form.thema21-support-form, .thema21-support-form-container form.frm-fluent-form) input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}

/* Mobil: a SmartMag nowrap és min-width szabályait is felülírjuk. */
:is(form.thema21-support-form, .thema21-support-form-container form.frm-fluent-form) .ff_submit_btn_wrapper {
  box-sizing: border-box;
  min-width: 0 !important;
  max-width: 100% !important;
}
:is(form.thema21-support-form, .thema21-support-form-container form.frm-fluent-form) button[type="submit"],
:is(form.thema21-support-form, .thema21-support-form-container form.frm-fluent-form) button[type="submit"] * {
  -webkit-user-select: none !important;
  user-select: none !important;
}
@media (max-width: 768px) {
  :is(form.thema21-support-form, .thema21-support-form-container form.frm-fluent-form) button[type="submit"] {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    height: auto !important;
    min-height: 56px !important;
    padding: 16px 20px !important;
    line-height: 1.4 !important;
  }
}

/* A gomb kis konténerben is elférjen, az előnézetben is. */
:is(form.thema21-support-form, .thema21-support-form-container form.frm-fluent-form) button.ff-btn-submit {
  box-sizing: border-box !important;
  min-width: 0 !important;
  max-width: 100% !important;
  white-space: normal !important;
  height: auto !important;
  min-height: 56px !important;
  padding: 16px 24px !important;
  line-height: 1.4 !important;
}
:is(form.thema21-support-form, .thema21-support-form-container form.frm-fluent-form) .ff_list_buttons,
:is(form.thema21-support-form, .thema21-support-form-container form.frm-fluent-form) .ff_list_buttons *,
:is(form.thema21-support-form, .thema21-support-form-container form.frm-fluent-form) button.ff-btn-submit,
:is(form.thema21-support-form, .thema21-support-form-container form.frm-fluent-form) button.ff-btn-submit * {
  -moz-user-select: none !important;
  -webkit-user-select: none !important;
  user-select: none !important;
}

/* 1.7.60: az összeg és a pénznem egy sorban, az input működésének módosítása nélkül. */
:is(form.thema21-support-form, .thema21-support-form-container form.frm-fluent-form) .ff_input-group {
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: stretch !important;
  width: 100%;
  min-width: 0;
}
:is(form.thema21-support-form, .thema21-support-form-container form.frm-fluent-form) .ff_input-group > input.ff-el-form-control {
  flex: 1 1 0% !important;
  width: 0 !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
}
:is(form.thema21-support-form, .thema21-support-form-container form.frm-fluent-form) .ff_input-group-append,
:is(form.thema21-support-form, .thema21-support-form-container form.frm-fluent-form) .ff_input-group-prepend {
  display: flex !important;
  flex: 0 0 auto !important;
  align-items: stretch;
  margin: 0 !important;
}
:is(form.thema21-support-form, .thema21-support-form-container form.frm-fluent-form) .ff_input-group-text {
  box-sizing: border-box;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  height: 56px !important;
  padding: 0 15px !important;
  white-space: nowrap !important;
  border: 1px solid var(--c-contrast-150, rgba(0,0,0,.12));
  background: var(--c-contrast-50, #fff);
  color: var(--c-contrast-850, #222);
  font: inherit;
  font-size: 15px;
  border-radius: 0 2px 2px 0;
}
:is(form.thema21-support-form, .thema21-support-form-container form.frm-fluent-form) .t21-huf-amount { position: relative; }
:is(form.thema21-support-form, .thema21-support-form-container form.frm-fluent-form) .t21-huf-amount input.ff-custom-user-input {
  padding-right: 74px !important;
}
:is(form.thema21-support-form, .thema21-support-form-container form.frm-fluent-form) .t21-huf-amount > .t21-currency-unit {
  box-sizing: border-box;
  position: absolute;
  bottom: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  width: 54px;
  border-left: 1px solid var(--c-contrast-150, rgba(0,0,0,.12));
  color: var(--c-contrast-850, #222);
  font-size: 15px;
  line-height: 1;
  pointer-events: none;
}

/* Honour the subscription component visibility on the first render too. */
:is(form.thema21-support-form, .thema21-support-form-container form.frm-fluent-form) .ff-custom-user-input-wrapper.hidden_field { display: none !important; }
