/**
 * Newsletter Signup Page Styles
 *
 * This file extends existing Sefaria CSS classes rather than creating new ones.
 * It adds newsletter-specific modifiers and new classes for container styling.
 *
 * Reuses:
 * - .button (base class with modifiers)
 * - .newsletterInput (for text inputs)
 * - .subscribeMessage / .subscribeErrorMessage (for feedback)
 * - Custom checkbox/radio patterns from search filters
 */

/* ============================================
   FORM CONTAINERS
   ============================================ */

.newsletterSignUpPageForm {
  width: 800px;
  max-width: 90%;
  margin: 0 auto;
  padding: 40px 0;
  box-sizing: border-box;
  scroll-margin-top: 3.75rem;
}

/* Loading state — spinner + text, centered */
.newsletterLoadingState {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 60px 0;
}

.newsletterLoadingState .lds-ring {
  width: 56px;
  height: 56px;
}

.newsletterLoadingState .lds-ring div {
  width: 38px;
  height: 38px;
  margin: 9px;
  border-width: 8px;
}

.newsletterLoadingState .loadingMessage {
  font-size: 18px;
}

/* Service unavailable message — same slot as loading state, centered */
.newsletterUnavailable {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
  font-size: 18px;
  color: var(--mid-grey, #999);
  text-align: center;
}

/* Base view styling with fade animation */
.newsletterFormView,
.newsletterConfirmationView,
.successView {
  width: 100%;
  max-width: 760px;
  animation: fadeIn 0.4s ease-out;
  scroll-margin-top: 3.75rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Prevent layout shift while newsletters are loading. Without this the page
   jumps when the short loading spinner is swapped for the full-height form. */
.newsletterSignUpPageForm:has(.newsletterLoadingState) {
  min-height: 750px;
}

/* ============================================
   HEADERS & TITLES (Extend existing typography)
   ============================================ */

.newsletterFormHeader {
  text-align: start;
  margin-bottom: 36px;
}

.newsletterConfirmationView .confirmationContent,
.successView .successContent {
  text-align: center;
  margin-bottom: 40px;
}

.newsletterFormTitle,
.newsletterConfirmationView .confirmationTitle,
.successView .successTitle {
  font-size: var(--sans-serif-h2-font-size);
  font-weight: 500;
  color: var(--dark-grey);
  margin: 0 0 16px 0;
  line-height: 1.3;
}
.newsletterFormTitle {
  scroll-margin-top: 4.5rem;
}
.newsletterFormSubtitle,
.newsletterConfirmationView .confirmationMessage {
  font-size: var(--sans-serif-body-font-size);
  color: var(--dark-grey);
  margin: 0 0 25px 0;
  line-height: 1.6;
}

.newsletterSelectionLabel {
  font-size: var(--sans-serif-body-font-size);
  color: var(--dark-grey);
  margin: 0 0 24px 0;
  line-height: 1.6;
}
/* ============================================
   FORM SECTIONS
   ============================================ */

/* Base section container */
.newsletterFormView .formSection {
  margin-bottom: 16px;
}

/* Extra space before the newsletter selection */
.newsletterFormView .contactFormSection {
  margin-bottom: 40px;
}

/* Section headers - left aligned by default */
.sectionHeader {
  font-size: var(--sans-serif-h3-font-size);
  font-weight: 500;
  color: var(--dark-grey);
  margin: 0 0 15px 0;
  text-align: start;
}
/* Name section - side by side fields */
.nameFieldsRow {
  display: flex;
  gap: 16px;
}

.nameFieldsRow .formField {
  flex: 1;
  margin-bottom: 0;
}

/* Base form field container */
.formField {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

/* Extend .newsletterInput for form fields */
.newsletterFormView input[type="text"],
.newsletterFormView input[type="email"] {
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: var(--sans-serif-body-font-size);
  color: var(--darkest-grey);
  box-sizing: border-box;
  width: 100%;
  transition: box-shadow 0.2s ease;
  margin: 0; /* Override .newsletterInput margin */
  box-shadow: rgba(0, 0, 0, 0.2) 0px 1px 3px 0px;
}
.newsletterFormView input[type="text"]::placeholder,
.newsletterFormView input[type="email"]::placeholder {
  color: var(--medium-grey);
}

.newsletterFormView input[type="text"]:focus,
.newsletterFormView input[type="email"]:focus {
  outline: none;
  border-color: var(--select-blue);
  box-shadow:
    rgba(0, 0, 0, 0.2) 0px 1px 3px 0px,
    0 0 0 3px rgba(11, 113, 231, 0.1);
}

.newsletterFormView input[type="text"]:disabled,
.newsletterFormView input[type="email"]:disabled {
  background-color: var(--lightest-grey);
  color: var(--medium-grey);
  cursor: not-allowed;
}

/* Logged-in user email display */
.newsletterEmailInfo {
  background-color: var(--lightest-grey);
  padding: 15px 20px;
  border-radius: 6px;
  margin-bottom: 30px;
  text-align: center;
  font-size: var(--sans-serif-body-font-size);
  color: var(--dark-grey);
}
.newsletterEmailInfo strong {
  color: var(--darkest-grey);
  font-weight: 600;
}

/* ============================================
   ERROR MESSAGES - Reuse existing classes
   ============================================ */

/* Extend .subscribeErrorMessage for form errors */
.newsletterErrorMessage {
  background-color: #f2dede;
  border: 1px solid #eed3d7;
  color: #b94a48;
  padding: 15px 20px;
  border-radius: 6px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.newsletterErrorMessage .errorIcon {
  font-size: 20px;
  flex-shrink: 0;
}

/* ============================================
   ERROR SUMMARY - Multi-error display at top of form
   ============================================ */

.newsletterErrorSummary {
  background-color: #fef2f2;
  border: 2px solid #dc2626;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 24px;
}

.newsletterErrorSummary:focus {
  outline: 2px solid #dc2626;
  outline-offset: 2px;
}

.errorSummaryTitle {
  color: #dc2626;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.errorSummaryTitle .errorIcon {
  flex: 0 0 20px;
  text-align: center;
}
.errorSummaryList {
  margin: 0;
  padding-inline-start: 28px; /* 20px icon + 8px gap */
  list-style-type: disc;
}

.errorSummaryList li {
  color: #dc2626;
  margin-bottom: 4px;
}
.errorSummaryLink {
  color: #dc2626;
  text-decoration: underline;
}

.errorSummaryLink:hover {
  text-decoration: none;
}

span.errorIcon {
  transform: translateY(-0.125em);
}

/* ============================================
   INLINE FIELD ERRORS - Above each invalid field
   ============================================ */

.inlineFieldError {
  color: #dc2626;
  font-size: 14px;
  margin-bottom: 6px;
  font-weight: 500;
  scroll-margin-top: 4.5rem;
}
/* ============================================
   INPUT ERROR STATE - Visual feedback on invalid fields
   Note: Must use [type] selectors to match specificity of base input styles
   ============================================ */

.newsletterFormView input[type="text"].hasError,
.newsletterFormView input[type="email"].hasError,
.newsletterFormView input[type="text"][aria-invalid="true"],
.newsletterFormView input[type="email"][aria-invalid="true"] {
  border-color: #dc2626;
  background-color: #fef2f2;
}

.newsletterFormView input[type="text"].hasError:focus,
.newsletterFormView input[type="email"].hasError:focus,
.newsletterFormView input[type="text"][aria-invalid="true"]:focus,
.newsletterFormView input[type="email"][aria-invalid="true"]:focus {
  outline: none;
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}

/* Newsletter section error state */
.newsletterCheckboxes.hasError {
  border: 2px solid #dc2626;
  border-radius: 8px;
  padding: 12px;
  margin-top: 0; /* Don't pull up into the error message */
  margin-left: -12px;
  margin-right: -12px;
  margin-bottom: -12px;
  background-color: #fef2f2;
}

/* Extra spacing for newsletter inline error */
.newsletterSelectionSection > .inlineFieldError {
  margin-bottom: 12px;
}

/* ============================================
   NEWSLETTER SELECTION SECTION
   ============================================ */

.newsletterSelectionSection {
  margin: 0;
  padding: 0;
  border-top: none;
  border-bottom: none;
}


/* ============================================
   SELECTABLE OPTION - Shared radio/checkbox button style
   Used by newsletter checkboxes and learning level options
   ============================================ */

.selectableOptionWrapper {
  display: flex;
  align-items: stretch;
  height: 100%;
}

.selectableOptionInput {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.selectableOptionLabel {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  width: 100%;
  padding: 14px 18px;
  border-radius: 6px;
  transition: all 0.2s ease;
  background-color: white;
  border: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.selectableOptionLabel:hover {
  background-color: var(--lightest-grey);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
}

.selectableOptionLabel.selected {
  background-color: #e8e8e8;
}

.selectableOptionLabel.selected:hover {
  background-color: #dedede;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
}

/* Focus state for accessibility */
.selectableOptionLabel:focus-within {
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.25),
    0 0 0 3px rgba(11, 113, 231, 0.2);
}

/* Selected checkmark icon - positioned at end (right for LTR, left for RTL) */
/* Always present in DOM to prevent reflow, hidden by default */
.selectedCheckmark {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline-start: auto;
  flex-shrink: 0;
  visibility: hidden;
}

.selectableOptionLabel.selected .selectedCheckmark {
  visibility: visible;
}

.selectedCheckmark img {
  width: 18px;
  height: 18px;
}

/* Optional icon - uses CSS mask for dynamic color control */
.selectableOptionIcon {
  display: inline-block;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background-color: #cccccc;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  transition: background-color 0.2s ease;
}

.selectableOptionLabel.selected .selectableOptionIcon,
.selectableOptionLabel:hover .selectableOptionIcon {
  background-color: #999999;
}

/* Text label */
.selectableOptionText {
  font-size: var(--sans-serif-body-font-size);
  color: var(--darkest-grey);
  font-weight: 400;
  line-height: 1.4;
}

/* ============================================
   NEWSLETTER CHECKBOX CONTAINER (grid layout)
   ============================================ */

.newsletterCheckboxes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 16px;
  row-gap: 16px;
}

.newsletterCheckboxes .selectableOptionWrapper {
  min-height: 70px;
}

/* ============================================
   BUTTONS - Extend .button with .newsletter modifier
   ============================================ */

/* Shared primary-button styling. Sizing is a 200x50 floor — the button GROWS
   horizontally when its content (e.g. "Update Preferences") doesn't fit.
   box-sizing: border-box makes <a> homepageLink match <button> width semantics. */
.newsletterFormView .submitButton,
.newsletterConfirmationView .embeddedLearningLevel .saveButton,
.successView .homepageLink {
  min-width: 200px;
  min-height: 50px;
  padding: 16px 30px;
  border: none;
  border-radius: 6px;
  font-size: 22px;
  font-weight: 400;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--sefaria-blue);
  color: white;
  box-sizing: border-box;
}

.newsletterFormView .submitButton:hover:not(:disabled),
.newsletterConfirmationView .embeddedLearningLevel .saveButton:hover:not(:disabled),
.successView .homepageLink:hover {
  background-color: #0f2647;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
}

.newsletterFormView .submitButton:active:not(:disabled),
.newsletterConfirmationView .embeddedLearningLevel .saveButton:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.newsletterFormView .submitButton:disabled,
.newsletterConfirmationView .embeddedLearningLevel .saveButton:disabled {
  background-color: var(--light-grey);
  color: var(--medium-grey);
  cursor: not-allowed;
  box-shadow: none;
}

/* Keep LoadingMessage inside the primary buttons at the button font-size.
   Overrides the global .loadingMessage rule (14px italic) from s2.css that
   would otherwise shrink the button height in the submitting state. */
.newsletterFormView .submitButton .loadingMessage,
.newsletterConfirmationView .embeddedLearningLevel .saveButton .loadingMessage {
  font-size: inherit;
  font-style: normal;
}

/* Form actions container */
.formActions {
  margin-top: 40px;
  display: flex;
  gap: 15px;
  justify-content: center;
}

/* Section dividers — top border + spacing */
.marketingEmailToggleSection {
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--lighter-grey);
}

/* ============================================
   CONFIRMATION & SUCCESS VIEWS
   ============================================ */

/* Success icon container */
.newsletterConfirmationView .successIcon,
.successView .successIcon {
  width: 69px;
  height: 69px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
}

.newsletterConfirmationView .successIcon img,
.successView .successIcon img {
  width: 100%;
  height: 100%;
}

/* Selected newsletters display */
.newsletterConfirmationView .selectedNewslettersDisplay {
  background-color: var(--lightest-grey);
  padding: 20px;
  border-radius: 6px;
  margin-top: 25px;
}

.newsletterConfirmationView .selectedLabel {
  font-size: 14px;
  color: var(--medium-grey);
  margin: 0 0 8px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.newsletterConfirmationView .selectedLabel.singleCase {
  margin-top: 8px;
}

.newsletterConfirmationView .selectedNewslettersDisplay > div + div {
  margin-top: 16px;
}
.newsletterConfirmationView .selectedList {
  font-size: var(--sans-serif-body-font-size);
  color: var(--darkest-grey);
  margin: 0;
  font-weight: 500;
}
/* Skip link */
.newsletterConfirmationView .skipPrompt {
  text-align: center;
  font-size: var(--sans-serif-body-font-size);
  color: var(--dark-grey);
  margin: 0;
  line-height: 1.6;
}
.newsletterConfirmationView .skipLink {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--sefaria-blue);
  text-decoration: none;
  cursor: pointer;
  font-weight: 500;
  transition:
    text-decoration 0.2s ease,
    opacity 0.2s ease,
    color 0.2s ease;
}

.newsletterConfirmationView .skipLink:hover {
  text-decoration: underline;
}

.newsletterConfirmationView .skipLink.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  color: var(--medium-grey);
  pointer-events: none;
}

.newsletterConfirmationView .skipLink.disabled:hover {
  text-decoration: none;
}

/* Success message */
.successView .successMessage {
  font-size: var(--sans-serif-body-font-size);
  color: var(--dark-grey);
  margin: 0;
  line-height: 1.6;
}
.successView .successActions {
  display: flex;
  justify-content: center;
  margin-top: 25px;
}

.successView .homepageLink,
.successView .homepageLink:hover {
  text-decoration: none;
}

/* ============================================
   PRIVACY NOTE
   ============================================ */

.privacyNote {
  text-align: center;
  margin-top: 16px;
}

.privacyNote .small {
  font-size: 13px;
  color: var(--dark-grey);
  margin: 0;
  line-height: 1.4;
}
/* ============================================
   RTL (Right-to-Left) for Hebrew
   ============================================ */

.interface-hebrew .formField label {
  flex-direction: row-reverse;
  justify-content: flex-end;
}

/* ============================================
   EMBEDDED LEARNING LEVEL (in Confirmation View)
   ============================================ */

.newsletterConfirmationView .embeddedLearningLevel {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--lighter-grey);
}

/* Learning level header wrapper */
.newsletterConfirmationView .embeddedLearningLevel .learningLevelHeaderWrapper {
  margin-bottom: 20px;
}

/* Learning level section header - matches form section header styling */
.newsletterConfirmationView .embeddedLearningLevel .learningLevelHeader {
  font-size: var(--sans-serif-h3-font-size);
  font-weight: 500;
  color: var(--dark-grey);
  margin: 0 0 8px 0;
  text-align: start;
  line-height: 1.4;
}
/* Optional label */
.newsletterConfirmationView .embeddedLearningLevel .optionalLabel {
  font-size: 14px;
  color: var(--medium-grey);
  font-weight: 400;
  display: block;
  text-align: start;
}
/* Learning level options container within confirmation view */
.newsletterConfirmationView .embeddedLearningLevel .learningLevelOptions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 25px;
}

/* Error message within embedded learning level */
.newsletterConfirmationView .embeddedLearningLevel .learningLevelErrorMessage {
  background-color: #f2dede;
  border: 1px solid #eed3d7;
  color: #b94a48;
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.newsletterConfirmationView .embeddedLearningLevel .learningLevelErrorMessage .errorIcon {
  font-size: 18px;
  flex-shrink: 0;
}

/* Actions container - save button and skip prompt side-by-side, group centered.
   Hebrew RTL handles ordering automatically via inherited `direction: rtl`
   from body.interface-hebrew — no row-reverse override needed (that would
   double-flip and put the button on the wrong side). */
.newsletterConfirmationView .embeddedLearningLevel .learningLevelActions {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.newsletterConfirmationView .embeddedLearningLevel .saveButton {
  flex-shrink: 0;
}

/* ============================================
   MARKETING EMAIL TOGGLE (Logged-in users only)
   Uses existing ToggleSet component with blueStyle
   ============================================ */

.marketingEmailToggleLabel {
  font-size: var(--sans-serif-body-font-size);
  font-weight: 500;
  color: var(--darkest-grey);
  margin-bottom: 15px;
}

/* Wrapper for the toggle - handles disabled state */
.marketingToggleWrapper {
  display: inline-block;
}

.marketingToggleWrapper.disabled {
  opacity: 0.6;
  pointer-events: none;
}

/* Override width for marketing toggle to be auto instead of percentage */
.marketingToggleWrapper .toggleSet.blueStyle {
  width: auto;
}

.marketingToggleWrapper .toggleSet.blueStyle .toggleOption {
  padding: 0 24px;
  min-width: 60px;
}

/* Helper text note */
.marketingEmailNote {
  margin-top: 12px;
  font-size: 13px;
  color: var(--dark-grey);
  line-height: 1.4;
  text-align: start;
}

/* ============================================
   DISABLED NEWSLETTER CHECKBOXES STATE
   (When marketing emails opt-out is selected)
   ============================================ */

.newsletterCheckboxes.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.newsletterCheckboxes.disabled .selectableOptionLabel {
  cursor: not-allowed;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

/* Focus visible for keyboard navigation */
.newsletterFormView input:focus-visible,
.newsletterFormView button:focus-visible,
.newsletterConfirmationView a:focus-visible,
.successView a:focus-visible {
  outline: 3px solid var(--select-blue);
  outline-offset: 2px;
}

/* Testimonials */
.enhancedUserQuote {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
}

/* Reduce inherited Section padding-top so header → first testimonial = 40px
   (h2 padding-bottom: 10px + this 10px + quote padding-top: 20px = 40px) */
#NewsletterInner .staticPageBlockInner.staticPageSection {
  padding-top: 10px;
}

.enhancedUserQuote img {
  height: 46px;
  width: 46px;
  flex-shrink: 0;
  background-color: white;
}

.gridBoxRow:not(:last-child) .enhancedUserQuote {
  border-bottom: 1px solid #cccccc;
}

/* Mobile layout */
@media (max-width: 768px) {
  .nameFieldsRow {
    flex-direction: column;
    gap: 20px;
  }

  .newsletterCheckboxes {
    grid-template-columns: 1fr;
  }

  .newsletterSignUpPageForm {
    padding: 20px;
  }

  .newsletterFormTitle,
  .newsletterConfirmationView .confirmationTitle,
  .successView .successTitle {
    font-size: var(--sans-serif-h3-font-size);
  }

  .sectionHeader {
    font-size: var(--sans-serif-h3-font-size);
  }

  /* 16px font on inputs prevents iOS zoom */
  .newsletterFormView input[type="text"],
  .newsletterFormView input[type="email"] {
    font-size: 16px;
  }

  /* Full width buttons on mobile */
  .newsletterFormView .submitButton,
  .newsletterConfirmationView .embeddedLearningLevel .saveButton,
  .successView .homepageLink {
    width: 100%;
    min-width: unset;
  }

  .newsletterConfirmationView .embeddedLearningLevel {
    margin-top: 30px;
    padding-top: 25px;
  }

  .newsletterConfirmationView .embeddedLearningLevel .selectableOptionLabel {
    padding: 12px;
  }

  /* Stack save button and skip prompt vertically on mobile (full-width button
     wouldn't fit beside the skip text), centered as items. */
  .newsletterConfirmationView .embeddedLearningLevel .learningLevelActions {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .newsletterFormView,
  .newsletterConfirmationView,
  .successView {
    animation: none;
  }

  .newsletterFormView input,
  .newsletterFormView button,
  .successView a {
    transition: none;
  }
}

/* ============================================
   STATIC PAGE CHROME
   (header, feature iframe, footer buttons)
   ============================================ */

/* Newsletter Page Styles */
.staticPage .staticPageHeader.newsletter {
  background-repeat: no-repeat;
  background-size: cover;
  padding: 70px 0 30px;
}

.interface-english .staticPage .staticPageHeader.newsletter {
  background-image: url("/static/img/newsletter-signup-page/newsletter-signup-page-header-en.png");
}

.interface-hebrew .staticPage .staticPageHeader.newsletter {
  background-image: url("/static/img/newsletter-signup-page/newsletter-signup-page-header-he.png");
}

@media screen and (max-width: 768px) {
  #NewsletterInner .staticPage .staticPageHeader.newsletter {
    min-height: 415px;
    box-sizing: border-box;
    padding-top: 42px;
  }

  .interface-english .staticPage .staticPageHeader.newsletter {
    background-image: url("/static/img/newsletter-signup-page/newsletter-signup-page-header-en-mobile.png");
  }

  .interface-hebrew .staticPage .staticPageHeader.newsletter {
    background-image: url("/static/img/newsletter-signup-page/newsletter-signup-page-header-he-mobile.png");
  }

  #NewsletterInner .staticPage .feature .featureIframe {
    width: 350px;
    margin: 30px auto 0;
  }

  #NewsletterInner .staticPage .feature .featureIframe .featureIframeEmbed {
    max-width: 350px;
  }
}

@media screen and (max-width: 540px) {
  #NewsletterInner .staticPage .feature .featureIframe {
    width: 100%;
  }
}

.staticPage .feature .featureIframe {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 454px;
  max-width: 100%;
  margin-left: auto;
}

.staticPage .feature .featureIframe .featureIframeEmbed {
  width: 100%;
  max-width: 454px;
  height: auto;
  aspect-ratio: 1 / 1;
  border: none;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.25);
  border-radius: 6px;
}


@media screen and (max-width: 440px) {
  #NewsletterInner .staticPage .feature .featureText,
  #NewsletterInner .staticPage .feature .featureIframe {
    width: 100%;
  }

  #NewsletterInner .staticPage .feature .featureIframe {
    margin: 30px auto 0;
  }
}
