/*
 * B Shah Impex 8.11.1 — final responsive, contrast and form-quality layer.
 * Loaded after all previous theme stylesheets. This layer only changes presentation.
 */

:root {
  --bsi-focus: #a56b20;
  --bsi-form-ink: #17283b;
  --bsi-form-muted: #596d81;
  --bsi-form-border: #b8c7d5;
  --bsi-form-surface: #ffffff;
}

html {
  scroll-padding-top: 6rem;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.bsi-redesign {
  min-width: 320px;
  color: var(--bsi-ink, #172536);
  overflow-x: clip;
}

body.bsi-redesign :is(main, section, article, aside, nav, header, footer, form, fieldset) {
  min-width: 0;
}

body.bsi-redesign :is(img, video, iframe, svg, canvas) {
  max-width: 100%;
}

body.bsi-redesign :is(h1, h2, h3, h4, h5, h6, p, li, label, small, figcaption, blockquote, address, td, th) {
  overflow-wrap: anywhere;
}

body.bsi-redesign :is(.entry-content, .single-content, .company-profile-content, .bsi-profile-article) {
  color: var(--bsi-ink, #172536);
  line-height: 1.75;
}

body.bsi-redesign :is(.entry-content, .single-content) :is(p, li, blockquote, figcaption, address) {
  color: var(--bsi-copy, #40566a);
}

body.bsi-redesign :is(.entry-content, .single-content) :is(h2, h3, h4, h5, h6) {
  color: var(--bsi-ink, #172536);
  line-height: 1.25;
  text-wrap: balance;
}

body.bsi-redesign :is(.entry-content, .single-content) a:not(.portal-button):not(.wp-block-button__link) {
  color: var(--bsi-brand, #16477f);
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}

body.bsi-redesign :is(.entry-content, .single-content) :is(ul, ol) {
  padding-inline-start: 1.4em;
}

body.bsi-redesign :is(.entry-content, .single-content) table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
}

body.bsi-redesign :is(.entry-content, .single-content) :is(th, td) {
  padding: 10px 12px;
  border: 1px solid var(--bsi-line, #d9e2ed);
  vertical-align: top;
}

body.bsi-redesign :is(.entry-content, .single-content) th {
  background: #edf3f8;
  color: #183650;
  font-weight: 700;
  text-align: left;
}

/* The email reveal was previously dark blue on the dark footer, making it invisible. */
body.bsi-redesign .bsi-email-reveal,
body.bsi-redesign .bsi-email-fallback {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  min-height: 36px;
  padding: 4px 0;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: var(--bsi-brand, #16477f) !important;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-underline-offset: 4px;
  text-align: left;
  overflow-wrap: anywhere;
  cursor: pointer;
}

body.bsi-redesign .bsi-email-reveal:hover,
body.bsi-redesign .bsi-email-fallback:hover {
  color: var(--bsi-brand-deep, #123b68) !important;
  text-decoration-thickness: 2px;
}

body.bsi-redesign .site-footer-v45 .bsi-email-reveal,
body.bsi-redesign .site-footer-v45 .bsi-email-fallback,
body.bsi-redesign .site-footer-v45 .bsi-email-revealed {
  color: #f3f8ff !important;
  font-weight: 750;
  text-decoration-color: rgba(243, 248, 255, .72);
}

body.bsi-redesign .site-footer-v45 .bsi-email-reveal:hover,
body.bsi-redesign .site-footer-v45 .bsi-email-fallback:hover,
body.bsi-redesign .site-footer-v45 .bsi-email-revealed:hover {
  color: #ffffff !important;
  text-decoration-color: #ffffff;
}

body.bsi-redesign .bsi-enquiry-feature .bsi-email-reveal,
body.bsi-redesign .bsi-enquiry-feature .bsi-email-fallback,
body.bsi-redesign .bsi-enquiry-feature .bsi-email-revealed {
  color: #f0f6ff !important;
}

body.bsi-redesign .bsi-share-actions .bsi-email-reveal {
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--bsi-brand, #16477f);
  border-radius: 4px;
  background: var(--bsi-brand, #16477f);
  color: #ffffff !important;
  text-decoration: none;
}

body.bsi-redesign .bsi-email-reveal[aria-busy="true"] {
  opacity: .72;
  cursor: progress;
}

/* All public form providers: predictable labels, readable text, complete input types. */
body.bsi-redesign :is(
  .bsi-public-form,
  .bshah-product-enquiry,
  .wpcf7,
  .wpforms-container,
  .gform_wrapper,
  .fluentform,
  .forminator-ui,
  .elementor-form,
  .formidable_form,
  .nf-form-cont
) {
  min-width: 0;
  color: var(--bsi-form-ink) !important;
}

body.bsi-redesign .bsi-public-form,
body.bsi-redesign .bshah-product-enquiry :is(.bsi-public-form, .bshah-product-enquiry, .wpcf7, .wpforms-container, .gform_wrapper, .fluentform, .forminator-ui),
body.bsi-redesign :is(.wpcf7, .wpforms-container, .gform_wrapper, .fluentform, .forminator-ui, .elementor-form, .formidable_form, .nf-form-cont) {
  box-sizing: border-box;
  max-width: 100%;
  color: var(--bsi-form-ink) !important;
}

body.bsi-redesign :is(
  .bsi-public-form,
  .bshah-product-enquiry,
  .wpcf7,
  .wpforms-container,
  .gform_wrapper,
  .fluentform,
  .forminator-ui,
  .elementor-form,
  .formidable_form,
  .nf-form-cont
) :is(label, legend, .wpforms-field-label, .gfield_label, .ff-el-input--label, .forminator-label, .elementor-field-label, .nf-field-label) {
  display: block;
  margin-bottom: 7px;
  color: #263e54 !important;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  opacity: 1 !important;
}

body.bsi-redesign :is(
  .bsi-public-form,
  .bshah-product-enquiry,
  .wpcf7,
  .wpforms-container,
  .gform_wrapper,
  .fluentform,
  .forminator-ui,
  .elementor-form,
  .formidable_form,
  .nf-form-cont
) :is(
  input:not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  select,
  textarea
) {
  display: block;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: 48px;
  padding: 12px 14px !important;
  border: 1px solid var(--bsi-form-border) !important;
  border-radius: 4px !important;
  background: var(--bsi-form-surface) !important;
  color: var(--bsi-form-ink) !important;
  box-shadow: none !important;
  font: inherit;
  font-size: 16px !important;
  line-height: 1.5 !important;
  opacity: 1 !important;
  -webkit-text-fill-color: var(--bsi-form-ink) !important;
  caret-color: var(--bsi-brand, #16477f);
}

body.bsi-redesign :is(
  .bsi-public-form,
  .bshah-product-enquiry,
  .wpcf7,
  .wpforms-container,
  .gform_wrapper,
  .fluentform,
  .forminator-ui,
  .elementor-form,
  .formidable_form,
  .nf-form-cont
) textarea {
  min-height: 142px;
  resize: vertical;
}

body.bsi-redesign :is(
  .bsi-public-form,
  .bshah-product-enquiry,
  .wpcf7,
  .wpforms-container,
  .gform_wrapper,
  .fluentform,
  .forminator-ui,
  .elementor-form,
  .formidable_form,
  .nf-form-cont
) :is(input, textarea, select)::placeholder {
  color: #64788b !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #64788b !important;
}

body.bsi-redesign :is(
  .bsi-public-form,
  .bshah-product-enquiry,
  .wpcf7,
  .wpforms-container,
  .gform_wrapper,
  .fluentform,
  .forminator-ui,
  .elementor-form,
  .formidable_form,
  .nf-form-cont
) :is(input, select, textarea):focus,
body.bsi-redesign :is(
  .bsi-public-form,
  .bshah-product-enquiry,
  .wpcf7,
  .wpforms-container,
  .gform_wrapper,
  .fluentform,
  .forminator-ui,
  .elementor-form,
  .formidable_form,
  .nf-form-cont
) :is(input, select, textarea):focus-visible {
  border-color: var(--bsi-brand, #16477f) !important;
  outline: 3px solid rgba(22, 71, 127, .16) !important;
  outline-offset: 1px !important;
  background: #ffffff !important;
  color: var(--bsi-form-ink) !important;
}

body.bsi-redesign :is(
  .bsi-public-form,
  .bshah-product-enquiry,
  .wpcf7,
  .wpforms-container,
  .gform_wrapper,
  .fluentform,
  .forminator-ui,
  .elementor-form,
  .formidable_form,
  .nf-form-cont
) :is(input[type="checkbox"], input[type="radio"]) {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  margin: 0 8px 0 0;
  accent-color: var(--bsi-brand, #16477f);
  vertical-align: middle;
}

body.bsi-redesign :is(
  .bsi-public-form,
  .bshah-product-enquiry,
  .wpcf7,
  .wpforms-container,
  .gform_wrapper,
  .fluentform,
  .forminator-ui,
  .elementor-form,
  .formidable_form,
  .nf-form-cont
) :is(button[type="submit"], input[type="submit"], .wpforms-submit, .gform_button, .ff-btn-submit, .forminator-button-submit, .elementor-button, .ninja-forms-field[type="button"]) {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  min-height: 50px;
  max-width: 100%;
  padding: 12px 22px !important;
  border: 1px solid var(--bsi-brand, #16477f) !important;
  border-radius: 4px !important;
  background: var(--bsi-brand, #16477f) !important;
  color: #ffffff !important;
  font: inherit;
  font-size: 15px !important;
  font-weight: 750 !important;
  line-height: 1.35;
  text-align: center;
  text-shadow: none !important;
  cursor: pointer;
  opacity: 1 !important;
  -webkit-text-fill-color: #ffffff !important;
}

body.bsi-redesign :is(
  .bsi-public-form,
  .bshah-product-enquiry,
  .wpcf7,
  .wpforms-container,
  .gform_wrapper,
  .fluentform,
  .forminator-ui,
  .elementor-form,
  .formidable_form,
  .nf-form-cont
) :is(button[type="submit"], input[type="submit"], .wpforms-submit, .gform_button, .ff-btn-submit, .forminator-button-submit, .elementor-button):hover {
  border-color: var(--bsi-brand-deep, #123b68) !important;
  background: var(--bsi-brand-deep, #123b68) !important;
  color: #ffffff !important;
}

body.bsi-redesign :is(.bsi-public-form, .bshah-product-enquiry, .wpcf7, .wpforms-container, .gform_wrapper, .fluentform, .forminator-ui, .elementor-form, .formidable_form, .nf-form-cont) :is(.wpcf7-not-valid-tip, .wpforms-error, .wpforms-field-description, .gfield_validation_message, .ff-el-is-error .text-danger, .forminator-error-message, .elementor-message-danger, .nf-error-msg) {
  color: #a3212b !important;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

body.bsi-redesign :is(.wpcf7-response-output, .wpforms-confirmation-container-full, .gform_confirmation_message, .fluentform .ff-message-success, .forminator-response-message, .bsi-form-notice) {
  box-sizing: border-box;
  margin-block: 16px;
  padding: 14px 16px;
  border: 1px solid #a9c9b5;
  border-radius: 4px;
  background: #eff8f2;
  color: #1c5030 !important;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

body.bsi-redesign :is(input, textarea, select):disabled,
body.bsi-redesign :is(.bsi-public-form, .bshah-product-enquiry, .wpcf7, .wpforms-container, .gform_wrapper, .fluentform, .forminator-ui) :is(input, textarea, select):disabled {
  background: #edf1f5 !important;
  color: #667789 !important;
  opacity: 1;
  cursor: not-allowed;
}

body.bsi-redesign :is(input, textarea, select):-webkit-autofill,
body.bsi-redesign :is(input, textarea, select):-webkit-autofill:hover,
body.bsi-redesign :is(input, textarea, select):-webkit-autofill:focus {
  -webkit-text-fill-color: var(--bsi-form-ink) !important;
  box-shadow: 0 0 0 1000px #ffffff inset !important;
}

/* Tablet widths: let the header breathe instead of compressing every link. */
@media (min-width: 701px) and (max-width: 1100px) {
  body.bsi-redesign .site-header-shell-v50 {
    flex-wrap: wrap !important;
    justify-content: space-between;
    row-gap: 10px !important;
  }

  body.bsi-redesign .header-panel-v50 {
    display: flex !important;
    flex: 1 0 100%;
    width: 100%;
    min-width: 0;
    flex-wrap: wrap !important;
    justify-content: space-between;
  }

  body.bsi-redesign .site-header-v50 .main-navigation {
    flex: 1 1 100%;
    min-width: 0;
  }

  body.bsi-redesign .site-header-v50 .main-navigation ul {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    gap: 6px !important;
  }

  body.bsi-redesign .site-header-v50 .main-navigation a {
    min-height: 42px !important;
    padding-inline: 12px !important;
    font-size: 13px !important;
  }

  body.bsi-redesign .header-trade-link-v50 {
    min-height: 44px !important;
  }
}

@media (max-width: 700px) {
  body.bsi-redesign {
    font-size: 16px;
  }

  body.bsi-redesign .site-header-v50 {
    position: relative !important;
    z-index: 1000;
  }

  body.bsi-redesign .site-header-shell-v50 {
    align-items: center;
  }

  body.bsi-redesign .site-brand-copy strong {
    max-width: min(54vw, 220px) !important;
    font-size: 12px !important;
    line-height: 1.35;
    white-space: normal !important;
  }

  body.bsi-redesign .site-brand-copy small {
    font-size: 8px !important;
    line-height: 1.35;
    white-space: normal !important;
    letter-spacing: .08em !important;
  }

  body.bsi-redesign .mobile-menu-toggle-v50 {
    flex: 0 0 auto;
    min-width: 68px;
    min-height: 44px !important;
    justify-content: center;
    font-size: 13px !important;
  }

  body.bsi-redesign .site-header-v50 .main-navigation ul {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
  }

  body.bsi-redesign .site-header-v50 .main-navigation a {
    display: flex !important;
    align-items: center;
    min-width: 0;
    min-height: 44px !important;
    padding: 8px 10px !important;
    font-size: 13px !important;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }

  body.bsi-redesign .bsi-editorial-hero,
  body.bsi-redesign .human-section-v39,
  body.bsi-redesign .bsi-proof-strip,
  body.bsi-redesign .bsi-carpet-story,
  body.bsi-redesign .bsi-enquiry-feature {
    max-width: calc(100% - 32px) !important;
    box-sizing: border-box;
  }

  body.bsi-redesign .bsi-enquiry-feature {
    padding: 30px 22px !important;
  }

  body.bsi-redesign .bsi-enquiry-feature h2 {
    font-size: clamp(32px, 9vw, 42px) !important;
    line-height: 1.08 !important;
  }

  body.bsi-redesign .bsi-editorial-actions :is(.portal-button, .bsi-quiet-link) {
    min-height: 44px;
  }

  body.bsi-redesign .site-main {
    padding: 32px 16px 88px !important;
  }

  body.bsi-redesign .entry-content {
    padding: 22px 18px !important;
    font-size: 16px !important;
  }

  body.bsi-redesign :is(.page-header, .single-header) {
    padding-inline: 0;
  }

  body.bsi-redesign .bsi-public-form {
    padding: 20px !important;
  }

  body.bsi-redesign :is(.bsi-public-form, .bshah-product-enquiry, .wpcf7, .wpforms-container, .gform_wrapper, .fluentform, .forminator-ui, .elementor-form, .formidable_form, .nf-form-cont) :is(button[type="submit"], input[type="submit"], .wpforms-submit, .gform_button, .ff-btn-submit, .forminator-button-submit, .elementor-button) {
    width: 100% !important;
    min-width: 0;
  }

  body.bsi-redesign .footer-grid-v45 {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.bsi-redesign .site-footer-v45 .footer-legal-v50 {
    align-items: flex-start;
    flex-direction: column;
  }

  body.bsi-redesign .b-shah-mobile-bar {
    bottom: max(8px, env(safe-area-inset-bottom)) !important;
    left: 10px !important;
    right: 10px !important;
  }
}

@media (max-width: 380px) {
  body.bsi-redesign .trade-topbar-inner-v50 > span {
    max-width: 64%;
    font-size: 8px;
  }

  body.bsi-redesign .site-brand-copy strong {
    max-width: 48vw !important;
  }

  body.bsi-redesign .bsi-editorial-copy h1 {
    font-size: clamp(34px, 10vw, 42px) !important;
  }

  body.bsi-redesign .bsi-category-tiles {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

body.bsi-redesign :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--bsi-focus) !important;
  outline-offset: 3px !important;
  box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
  body.bsi-redesign *,
  body.bsi-redesign *::before,
  body.bsi-redesign *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* 8.11.1: targeted contrast corrections from the site audit. */
body.bsi-redesign .bsi-small-proof > span {
  color: #40566a !important;
}

body.bsi-redesign .bsi-board-caption {
  color: #40566a !important;
}

body.bsi-redesign .bsi-carpet-intro > .human-kicker {
  color: #40566a !important;
}

/* This section uses a dark blue panel, so retain a light kicker for contrast. */
body.bsi-redesign .bsi-enquiry-feature > .human-kicker {
  color: #dce9f8 !important;
}

/* Make the sales email reveal a high-contrast control on the dark enquiry panel. */
body.bsi-redesign .bsi-enquiry-feature .bsi-email-reveal[aria-label="Email sales team"] {
  display: inline-block;
  padding: 8px 12px;
  color: #173b60 !important;
  background: #ffffff !important;
  border: 1px solid #173b60 !important;
  border-radius: 6px;
}

body.bsi-redesign .bsi-enquiry-feature .bsi-email-reveal[aria-label="Email sales team"]:focus-visible {
  outline: 3px solid #f0b429 !important;
  outline-offset: 3px !important;
}

