/* AnyHeater storefront integration for the FAQ module. */
#module-faqs-display {
  --faqs-accent: #f36d21;
  --faqs-accent-dark: #c94a12;
  --faqs-ink: #111518;
  --faqs-muted: #65717b;
  --faqs-line: #dfe5ea;
}

/* Keep every FAQ view on the same 1320px grid as the catalog. */
#module-faqs-display #wrapper > .container,
#module-faqs-display #wrapper > .breadcrumb__wrapper > .container,
#module-faqs-display .columns-container.container {
  width: 100%;
  max-width: 1320px;
  padding-right: 24px;
  padding-left: 24px;
  margin-right: auto;
  margin-left: auto;
}

#module-faqs-display #wrapper > .container > .row,
#module-faqs-display .columns-container.container > .row {
  align-items: flex-start;
  margin-right: 0;
  margin-left: 0;
}

#module-faqs-display #content-wrapper,
#module-faqs-display #left-column,
#module-faqs-display #right-column {
  min-width: 0;
  padding-right: 12px;
  padding-left: 12px;
}

#module-faqs-display #content-wrapper {
  padding-right: 0;
  padding-left: 0;
  margin-bottom: 56px;
}

/* Search header */
#search_faqs_container {
  width: 100%;
  padding: 44px 24px;
  background:
    radial-gradient(ellipse at 100% 100%, rgba(243, 109, 33, .09), transparent 55%),
    #19242b;
}

#search_faqs_content {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  align-items: center;
  gap: 48px;
  width: 100%;
  max-width: 1272px;
  margin: 0 auto;
}

.faqs-hero-copy {
  min-width: 0;
}

.faqs-hero-kicker,
.faqs-section-kicker {
  display: block;
  margin: 0 0 10px;
  color: var(--faqs-accent);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .09em;
  line-height: 1.2;
}

#search_faqs_title {
  max-width: 620px;
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 750;
  letter-spacing: -.035em;
  line-height: 1.15;
  text-align: left;
  word-break: normal;
  overflow-wrap: normal;
  text-transform: none;
}

#search_faqs_title a,
#search_faqs_title a:hover,
#search_faqs_title a:focus-visible {
  color: inherit;
  text-decoration: none;
}

.faqs-hero-copy p {
  max-width: 560px;
  margin: 14px 0 0;
  color: #cbd4d9;
  font-size: 16px;
  line-height: 1.55;
}

#search_faqs_input_group {
  width: 100%;
  max-width: 480px;
  height: 54px;
  margin: 0 0 0 auto;
  overflow: visible;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}

#search_faqs_input {
  flex: 1 1 0;
  min-width: 0;
  width: calc(100% - 56px);
  padding: 0 20px !important;
  color: #20272c;
  background: #fff;
  border: 0;
  border-radius: 8px 0 0 8px;
  font-size: 16px;
}

/* Keep the search indicator small and clear of the query text. */
#search_faqs_input_group .loader {
  display: none;
  position: absolute;
  top: 50%;
  right: 72px;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  box-sizing: border-box;
  border: 2px solid #fbe1d1;
  border-top-color: var(--faqs-accent);
  border-radius: 50%;
  pointer-events: none;
  animation: faqs-search-spin .8s linear infinite;
}

#search_faqs_input_group #search_faqs_input {
  padding-right: 48px !important;
}

@keyframes faqs-search-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  #search_faqs_input_group .loader {
    animation: none;
  }
}

#search_faqs_submit_button {
  flex: 0 0 56px;
  width: 56px;
  padding: 0;
  color: #fff;
  background: var(--faqs-accent);
  border-radius: 0 8px 8px 0;
}

#search_faqs_submit_button:hover,
#search_faqs_submit_button:focus-visible {
  background: var(--faqs-accent-dark);
  opacity: 1;
}

#search_faqs_input_group:focus-within {
  outline: 2px solid var(--faqs-accent);
  outline-offset: 4px;
}

#mpm_faqs_search_preview_container {
  top: 62px;
  z-index: 20;
  padding: 8px 18px;
  background: #fff;
  border: 1px solid var(--faqs-line);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(17, 21, 24, .18);
}

#mpm_faqs_search_preview_container::before {
  display: none;
}

#mpm_faqs_search_preview_container .mpm-faqs-search-result {
  padding: 13px 12px;
  color: #354049;
  line-height: 1.45;
  border-radius: 6px;
  transition: background-color 160ms ease, color 160ms ease;
}

#mpm_faqs_search_preview_container a.mpm-faqs-search-result:hover,
#mpm_faqs_search_preview_container a.mpm-faqs-search-result:focus-visible {
  color: var(--faqs-accent-dark);
  background-color: #fff3eb;
  text-decoration: none;
  cursor: pointer;
}

#mpm_faqs_search_preview_container a.mpm-faqs-search-result:focus-visible {
  outline: 2px solid var(--faqs-accent);
  outline-offset: -2px;
}

/* Category and search lists are direct children of the card, unlike featured lists. */
#center_column_fag .faqs-card-block > .questions {
  margin-top: 12px;
}

#center_column_fag .faqs-card-block > .questions + .answer_faq {
  margin-top: 0;
}

/* Main FAQ surfaces */
.gomakoil_faq_page {
  width: 100%;
  margin: 0 0 56px;
  color: var(--faqs-ink);
}

.gomakoil_faq_page .faqs-card-block {
  padding: 34px;
  margin: 0;
  background: #fff;
  border: 1px solid var(--faqs-line);
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(21, 31, 38, .055);
}

.gomakoil_faq_page .faqs-card-block + .faqs-card-block {
  margin-top: 28px;
}

.title_related_products,
.title_home_page_fag,
.title_category_page,
.title_faq_page {
  padding: 0;
  margin: 0 0 26px;
  color: var(--faqs-ink) !important;
  font-size: clamp(27px, 3vw, 36px);
  font-weight: 850;
  letter-spacing: -.025em;
  line-height: 1.15;
}

.content_home_page_cat {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.content_home_page_cat .category_block {
  min-width: 0;
  padding: 24px;
  background: #f8fafb;
  border: 1px solid var(--faqs-line);
  border-radius: 12px;
}

.category_name_home_page {
  display: inline-flex !important;
  align-items: center;
  min-height: 32px;
  padding: 7px 12px !important;
  margin: 0 0 14px !important;
  color: var(--faqs-accent-dark) !important;
  background: #fff3eb;
  border: 1px solid #ffd8c2;
  border-radius: 999px;
  font-size: 13px !important;
  font-weight: 850;
  letter-spacing: .02em;
  line-height: 1.2;
}

.gomakoil_faq_page .all_questions,
.gomakoil_faq_page .content_home_page_fag {
  display: grid;
  gap: 12px;
}

.gomakoil_faq_page .questions {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 64px;
  padding: 18px 64px 18px 20px;
  margin: 0;
  overflow-wrap: anywhere;
  color: #253038;
  background: #fff;
  border: 1px solid var(--faqs-line);
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.45;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.gomakoil_faq_page .questions:hover,
.gomakoil_faq_page .questions.active {
  color: var(--faqs-accent-dark);
  background: #fffaf7;
  border-color: #f6b18a;
}

.gomakoil_faq_page .questions.active {
  border-bottom-color: transparent;
  border-radius: 10px 10px 0 0;
}

.gomakoil_faq_page .questions::after {
  position: absolute;
  right: 20px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: var(--faqs-accent);
  background: #fff3eb;
  border: 1px solid #ffd3ba;
  border-radius: 10px;
  content: "+";
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.gomakoil_faq_page .questions.active::after {
  color: #fff;
  background: var(--faqs-accent);
  border-color: var(--faqs-accent);
  content: "−";
}

.gomakoil_faq_page .questions .left-side-icon,
.gomakoil_faq_page .questions .mpm-faqs-arrow-point-to-right,
.gomakoil_faq_page .questions .mpm-faqs-external-link-symbol,
.gomakoil_faq_page .questions .icon_fag,
.gomakoil_faq_page .icon_fag,
.gomakoil_faq_page .icon_fag i {
  display: none !important;
}

.gomakoil_faq_page .questions + .answer,
.gomakoil_faq_page .questions + .answer_faq {
  width: 100%;
  padding: 18px 20px 22px;
  margin: -12px 0 0;
  color: var(--faqs-muted);
  background: #fff;
  border: 1px solid var(--faqs-line);
  border-top: 0;
  border-radius: 0 0 10px 10px;
  box-shadow: none;
  font-size: 16px;
  line-height: 1.68;
}

.gomakoil_faq_page .questions.active + .answer,
.gomakoil_faq_page .questions.active + .answer_faq {
  background: #fff;
  border-color: #f6b18a;
}

.gomakoil_faq_page .answer,
.gomakoil_faq_page .answer_faq {
  overflow-wrap: anywhere;
}

.gomakoil_faq_page .answer > :first-child,
.gomakoil_faq_page .answer_faq > :first-child {
  margin-top: 0;
}

.gomakoil_faq_page .answer > :last-child,
.gomakoil_faq_page .answer_faq > :last-child {
  margin-bottom: 0;
}

.gomakoil_faq_page .answer img,
.gomakoil_faq_page .answer iframe,
.gomakoil_faq_page .answer table,
.gomakoil_faq_page .answer_faq img,
.gomakoil_faq_page .answer_faq iframe,
.gomakoil_faq_page .answer_faq table {
  max-width: 100%;
}

.gomakoil_faq_page hr {
  display: none;
}

/* Topic navigation stays compact instead of stretching with the question grid. */
.gomakoil_faq_page .more_faq_cat {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  margin-left: auto;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  padding: 4px 0;
  margin-top: 4px;
  color: var(--faqs-accent-dark) !important;
  background: transparent;
  border: 0;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.4;
  text-decoration: none;
  transition: color 160ms ease;
}

.gomakoil_faq_page .more_faq_cat::after {
  content: "→";
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition: transform 160ms ease;
}

.gomakoil_faq_page .more_faq_cat:hover,
.gomakoil_faq_page .more_faq_cat:focus-visible {
  color: #a63d0f !important;
  background: transparent;
  opacity: 1;
  text-decoration: none;
}

.gomakoil_faq_page .more_faq_cat:hover::after {
  transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
  .gomakoil_faq_page .more_faq_cat::after {
    transition: none;
  }
}

.gomakoil_faq_page .more_faq_cat:focus-visible {
  outline: 2px solid var(--faqs-accent);
  outline-offset: 4px;
}

.no_questions {
  height: auto;
  padding: 24px;
  color: #8f2f20;
  background: #fff1ee;
  border: 1px solid #f3b8ae;
  border-radius: 8px;
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
}

/* Sidebar */
.block-faq-left-column {
  padding: 20px;
  margin-bottom: 24px;
  background: #fff;
  border: 1px solid var(--faqs-line);
  border-radius: 8px;
  box-shadow: none;
}

.block-faq-left-column .title_block {
  margin: 0 0 15px;
  color: var(--faqs-ink);
  font-size: 17px;
  font-weight: 850;
}

.block-faq-left-column a {
  color: #39444c !important;
  line-height: 1.45;
}

.block-faq-left-column a:hover,
.block-faq-left-column a:focus-visible {
  color: var(--faqs-accent-dark) !important;
}

.block-faq-left-column .button-ask-question,
.button-ask-question {
  min-height: 46px;
  margin: 0 0 12px;
  color: #fff !important;
  background: var(--faqs-accent);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 800;
}

.block-faq-left-column .button-ask-question:hover,
.button-ask-question:hover {
  color: #fff !important;
  background: var(--faqs-accent-dark);
  opacity: 1;
}

.usefulness_row {
  padding: 18px;
  margin-top: 24px;
  background: #f7f9fa;
  border: 1px solid var(--faqs-line);
  border-radius: 8px;
}

.links_blog {
  padding: 24px;
  color: #eef2f4;
  background: #20282e;
}

.links_blog > .h3,
.links_blog > .title {
  color: #fff;
}

.links_blog > .title {
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  text-align: left;
}

.links_blog .cms-page-link {
  display: block;
  padding: 7px 0;
  color: #d7dee2;
  line-height: 1.45;
}

.links_blog .cms-page-link:hover,
.links_blog .cms-page-link:focus-visible {
  color: var(--faqs-accent);
}

/* Ask-a-question modal */
#mpm_faqs_form_overlay {
  background: rgba(10, 14, 17, .72);
  opacity: 1;
  backdrop-filter: blur(4px);
}

#mpm_faqs_form_container {
  width: min(600px, calc(100% - 32px));
  margin-left: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .3);
  transform: translateX(-50%);
}

#mpm_faqs_form_container header {
  height: auto;
  min-height: 132px;
  background: linear-gradient(120deg, #171c20, #3b2b24);
  border-radius: 0;
}

#mpm_faqs_form_header_addon {
  display: none;
}

#mpm_faqs_form_container main {
  padding: 26px 36px 8px;
}

#mpm_faqs_form_sub_title {
  padding: 0 0 22px;
  color: var(--faqs-muted);
  font-size: 15px;
  line-height: 1.55;
}

#mpm_faqs_form_content .form-control,
#mpm_faqs_select_wrapper {
  min-height: 48px;
  color: #20272c;
  background: #fff;
  border-color: #d6dde2;
  border-radius: 8px;
}

#mpm_faqs_form_content .mpm-faqs-focused-input .form-control {
  border-color: var(--faqs-accent) !important;
}

.mpm-faqs-form-button {
  min-height: 48px;
  background: var(--faqs-accent) !important;
  border-radius: 8px !important;
  font-weight: 820;
}

@media (max-width: 991.98px) {
  #search_faqs_content {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  #search_faqs_input_group {
    max-width: 560px;
    margin: 0;
  }

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

@media (max-width: 767.98px) {
  #module-faqs-display #wrapper > .container,
#module-faqs-display #wrapper > .breadcrumb__wrapper > .container,
  #module-faqs-display .columns-container.container {
    padding-right: 16px;
    padding-left: 16px;
  }

  #search_faqs_container {
    padding: 34px 16px;
  }

  .gomakoil_faq_page .faqs-card-block,
  .content_home_page_cat .category_block {
    padding: 24px 18px;
  }

  .gomakoil_faq_page .questions {
    padding: 16px 54px 16px 16px;
  }

  .gomakoil_faq_page .questions + .answer,
  .gomakoil_faq_page .questions + .answer_faq {
    padding: 16px 16px 20px;
  }

  .faqs-hero-copy p {
    font-size: 15px;
  }

  #mpm_faqs_form_container main {
    padding: 22px 20px 6px;
  }
}
