/* Register / checkout flow — responsive layout after Subscribe */

.ig-sub-checkout-flow .content-page,
.ig-sub-checkout-flow .page-content {
  box-sizing: border-box;
  padding-left: 24px;
  padding-right: 24px;
}

.ig-sub-checkout-flow .discord-login-wrapper,
.ig-sub-checkout-flow .my-html-block {
  width: 100% !important;
  max-width: 640px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box;
}

.ig-sub-checkout-flow .iump-register-form,
.ig-sub-checkout-flow .iump-register-form.ihc-register-12 {
  width: 100% !important;
  max-width: 640px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box;
}

.ig-sub-checkout-flow .ihc-register-col,
.ig-sub-checkout-flow .ihc-register-col.ihc-register-secundary-col {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box;
}

.ig-sub-checkout-flow .ihc-checkout-page-wrapp {
  width: 100% !important;
  max-width: 640px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box;
}

.ig-sub-checkout-flow .ihc-checkout-page-left-side,
.ig-sub-checkout-flow .ihc-checkout-page-right-side,
.ig-sub-checkout-flow .ihc-checkout-page-one-column {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box;
}

.ig-sub-checkout-flow .ihc-checkout-page-left-side,
.ig-sub-checkout-flow .ihc-checkout-page-right-side {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.ig-sub-checkout-flow .ihc-checkout-page-box-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

.ig-sub-checkout-flow .ihc-checkout-page-input-left,
.ig-sub-checkout-flow .ihc-checkout-page-apply-right {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
}

.ig-sub-checkout-flow .ihc-checkout-page-apply-right {
  margin-top: 8px !important;
}

.ig-sub-checkout-flow .ihc-checkout-page-input,
.ig-sub-checkout-flow .ihc-checkout-page-apply {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

.ig-sub-checkout-flow .ihc-register-12 .iump-form-line-register input[type="text"],
.ig-sub-checkout-flow .ihc-register-12 .iump-form-line-register input[type="password"],
.ig-sub-checkout-flow .ihc-register-12 .iump-form-line-register input[type="email"],
.ig-sub-checkout-flow .ihc-register-12 .iump-form-line-register select,
.ig-sub-checkout-flow .ihc-register-12 .iump-form-line-register .select2-selection {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

.ig-sub-checkout-flow .iump-submit-form,
.ig-sub-checkout-flow .iump-submit-form input[type="submit"] {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

/* Marketing opt-in checkbox (registration + checkout) */
.ig-sub-checkout-flow .iump-form-ihc_optin_accept,
.ig-sub-checkout-flow .ig-sub-marketing-optin-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  margin: 12px 0 16px !important;
  box-sizing: border-box;
}

.ig-sub-checkout-flow .iump-form-ihc_optin_accept .iump-form-line-register,
.ig-sub-checkout-flow .ig-sub-marketing-optin-wrapper {
  padding: 0 !important;
}

.ig-sub-checkout-flow .iump-form-ihc_optin_accept label,
.ig-sub-checkout-flow .ig-sub-marketing-optin-label {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px !important;
  line-height: 1.45 !important;
  color: #e8e8e8 !important;
  cursor: pointer;
}

.ig-sub-checkout-flow .iump-form-ihc_optin_accept input[type="checkbox"],
.ig-sub-checkout-flow .ig-sub-marketing-optin-label input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px !important;
  height: 18px !important;
  margin: 2px 0 0 !important;
}

.ig-sub-checkout-flow .ihc-checkout-page-wrapp .ig-sub-marketing-optin-label {
  color: #111 !important;
}

.igp-marketing-consent-card {
  margin-top: 24px;
}

.igp-marketing-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  margin: 12px 0;
}

.igp-marketing-consent-label input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
}

.igp-marketing-consent-row {
  margin-top: 12px;
}

.igp-marketing-consent-privacy {
  margin-top: 8px;
  font-size: 13px;
}

.igp-marketing-consent-privacy a {
  color: inherit;
  text-decoration: underline;
}

/* Avatar upload removed site-wide (server-side too) */
.ihc-upload-image-wrapper,
.iump-form-upload_image,
.iump-form-ihc_avatar,
#ihc_reg_ihc_avatar,
[id^="ihc_reg_ihc_avatar_"] {
  display: none !important;
}

@media (max-width: 900px) {
  .ig-sub-checkout-flow .content-page,
  .ig-sub-checkout-flow .page-content {
    padding-left: 16px;
    padding-right: 16px;
  }

  .ig-sub-checkout-flow .discord-login-wrapper,
  .ig-sub-checkout-flow .my-html-block,
  .ig-sub-checkout-flow .iump-register-form,
  .ig-sub-checkout-flow .iump-register-form.ihc-register-12,
  .ig-sub-checkout-flow .ihc-checkout-page-wrapp {
    max-width: 100% !important;
  }

  .ig-sub-checkout-flow .wpb_content_element,
  .ig-sub-checkout-flow .vc_column_container,
  .ig-sub-checkout-flow .vc_column-inner,
  .ig-sub-checkout-flow .wpb_wrapper {
    width: 100% !important;
    max-width: 100% !important;
  }

  .ig-sub-checkout-flow .ihc-checkout-page-box-title {
    font-size: 18px !important;
    line-height: 1.25;
  }
}

@media (min-width: 901px) {
  .ig-sub-checkout-flow .ihc-checkout-page-left-side,
  .ig-sub-checkout-flow .ihc-checkout-page-right-side {
    padding-left: 4px !important;
    padding-right: 4px !important;
  }
}
