/* ==========================================================================
   FNF Metaal - ez2Web theme

   Built on the design language of www.fnf-metaal.nl: Poppins, one blue accent
   (#2448E4), a dark glass navigation bar, and white panels floating on the
   warehouse photo, which is the page background at full viewport height.

   Only this file and company.js are company specific; everything else comes
   from Bootstrap 5.3 and Global.css.

   1.  Design tokens
   2.  Base and typography
   3.  Page frame (background photo, content panel, footer)
   4.  Navigation bar
   5.  Cards and panels
   6.  Product tree (sidebar)
   7.  Product group tiles
   8.  Tables
   9.  Buttons
   10. Forms and controls
   11. Shopping cart and summary
   12. Login page
   13. Hidden on purpose
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* ==========================================================================
   1. Design tokens
   ========================================================================== */
:root {
  /* Brand */
  --fnf-blue: #2448E4;
  --fnf-blue-dark: #1737BE;
  --fnf-blue-darker: #1633B2;
  --fnf-blue-soft: #ACBAF5;
  --fnf-cyan: #00BBFF;
  --fnf-navy: #1A1F35;
  --fnf-navy-deep: #080B1A;
  --fnf-steel: #929FA9;  /* only readable on the dark footer */
  --fnf-muted: #5B6478;  /* secondary text on white, still ~7:1 */

  /* Surfaces */
  --fnf-page: #F0F3FD;
  --fnf-panel: #FFFFFF;
  --fnf-tint: #EAF1FD;   /* zebra striping only, never a fill behind text */
  --fnf-line: #E1E7F5;
  --fnf-line-strong: #C6D0E6; /* edges that have to be seen: inputs, wells */

  /* Depth - panels sit on a photo, so the shadows are dark, not tinted white */
  --fnf-shadow-sm: 0 2px 6px rgba(8, 11, 26, .10);
  --fnf-shadow: 0 10px 22px rgba(8, 11, 26, .22);
  --fnf-shadow-lg: 0 24px 50px rgba(8, 11, 26, .55);

  /* Frame */
  --fnf-radius: 5px;
  --fnf-navbar-height: 76px;
  /* Band of photo between the bar and the content panel. Kept close to the
     15vh at which company.js turns the bar solid, so the glass state is read
     against the photo and not against the panel sliding under it. */
  --fnf-content-top: 10vh;
  --fnf-bg-shift: 0px;     /* parallax offset, written by company.js */

  /* Bootstrap reads these everywhere, so components this file never mentions
     still come out in the right colours, font and corner radius. */
  --bs-primary: #2448E4;
  --bs-primary-rgb: 36, 72, 228;
  /* White, not the page colour: Bootstrap hands --bs-body-bg to every form
     control, list group item, card and table cell, so a tinted value washes
     out every one of them. The page colour lives on html instead. */
  --bs-body-bg: #FFFFFF;
  --bs-body-color: #1A1F35;
  --bs-emphasis-color: #1A1F35;
  --bs-secondary-color: #5B6478; /* .text-muted reads this */
  --bs-border-color: #E1E7F5;
  --bs-border-radius: 5px;
  --bs-link-color: #2448E4;
  --bs-link-color-rgb: 36, 72, 228;
  --bs-link-hover-color: #1737BE;
  --bs-font-sans-serif: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bs-body-font-family: var(--bs-font-sans-serif);
}

/* ==========================================================================
   2. Base and typography
   ========================================================================== */
body, html {
  font-family: var(--bs-font-sans-serif) !important;
  font-style: normal;
}

/* Carries the fallback colour, so body can stay transparent over the photo. */
html { background-color: var(--fnf-page); }

body {
  background-color: transparent;
  color: var(--fnf-navy);
  padding-top: calc(var(--fnf-navbar-height) + var(--fnf-content-top));
  padding-bottom: 72px; /* clears the fixed footer bar */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
h1.text-muted, h2.text-muted, h3.text-muted {
  color: var(--fnf-navy);
  font-weight: 700;
  letter-spacing: -.01em;
  text-transform: none;
}

h1, h1.page-title, h2.page-title { font-size: 1.875rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }

h1.page-title, h2.page-title,
h1.groupedlines-title, h2.groupedlines-title {
  color: var(--fnf-navy) !important;
  text-transform: none;
}

/* Labels above the data they describe ("Afleveradres", "Uw referentie", the
   summary column heads) carry this, so it has to stay legible on white. */
.text-muted { color: var(--fnf-muted) !important; }

a {
  color: var(--fnf-blue);
  text-decoration: none;
}

  a:hover {
    color: var(--fnf-blue-dark);
    text-decoration: underline;
  }

::selection {
  background-color: var(--fnf-blue);
  color: #fff;
}

.page-header {
  border-bottom: 1px solid var(--fnf-line);
  padding-bottom: 8px;
}

.download-row-inner {
  border-bottom: 1px solid var(--fnf-line);
  padding-bottom: 10px;
}

/* ==========================================================================
   3. Page frame (background photo, content panel, footer)
   ========================================================================== */

/* The warehouse photo is the page background, not a band at the top: a layer
   pinned to the viewport behind everything, so it fills the full height at any
   scroll position and every page floats on it. A fixed layer rather than
   background-attachment: fixed, which mobile browsers render badly.

   It reaches 20vh past the viewport on either side, which is the room
   company.js has to drift it while scrolling. Keep that slack and the limit in
   the script in step. */
body::before {
  content: "";
  position: fixed;
  top: -20vh;
  left: 0;
  right: 0;
  height: 140vh;
  z-index: -1;
  transform: translate3d(0, var(--fnf-bg-shift), 0);
  will-change: transform;
  /* Both paths on purpose: the relative one resolves when this stylesheet is
     served as a file, the rooted one when it is served from the style bundle.
     The wash is light enough that the warehouse stays readable next to the
     panels, heavy enough to keep white text on it legible. */
  background-image: linear-gradient(180deg,
                    rgba(8, 11, 26, .58) 0%,
                    rgba(8, 11, 26, .42) 50%,
                    rgba(8, 11, 26, .60) 100%),
                    url('Background.jpg'), url('/Content/Company/Background.jpg');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* The layout renders this empty band on every page; the photo is the page
   background now, so it takes no room. */
.header-outerwrapper { display: none; }

.container-xxl.main-content {
  position: relative;
  margin-top: 0;
  margin-bottom: 40px;
}

/* The page itself sits on one white panel. Row 1 holds the site wide search,
   which is hidden for this shop, so row 2 is the page. */
.main-content > .row:nth-child(2) {
  margin-left: 0;
  margin-right: 0;
  padding: 24px 16px 32px;
  background-color: var(--fnf-panel);
  border-radius: var(--fnf-radius);
  box-shadow: var(--fnf-shadow-lg);
}

.title-container { padding-top: 4px; }

footer.footer {
  background-color: var(--fnf-navy-deep);
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: var(--fnf-steel) !important;
  font-size: .8125rem;
  font-weight: 400;
}

footer.p-3 { padding: 12px 15px !important; }

  footer a,
  footer .navbar-text,
  footer #deliveryTermsModalLink,
  footer #version {
    color: #fff;
  }

    footer a:hover,
    footer a:active,
    footer a:focus,
    footer #deliveryTermsModalLink:hover {
      color: var(--fnf-cyan);
      text-decoration: underline;
    }

.fixed-bottom { border: 0; }

/* ==========================================================================
   4. Navigation bar
   ========================================================================== */
/* Glass over the photo at rest. Not lighter than this: the content panel is
   already under the bar a few pixels in, and the white menu has to stay
   readable over it until the solid state takes over. */
.navbar.fixed-top {
  min-height: var(--fnf-navbar-height);
  padding-top: .5rem;
  padding-bottom: .5rem;
  background-color: rgba(8, 11, 26, .62);
  background-image: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .18);
  box-shadow: none !important; /* the markup carries .shadow / .shadow-sm */
  transition: background-color .3s ease-in-out, box-shadow .3s ease-in-out;
}

/* company.js adds .scrolled once the page has scrolled 15vh. */
.navbar.fixed-top.scrolled {
  background-color: rgba(8, 11, 26, .94);
  border-bottom-color: transparent;
  box-shadow: 0 2px 14px rgba(8, 11, 26, .45) !important;
}

.logo {
  background-image: url(https://www.fnf-metaal.nl/img/tpl/logo.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: left center;
  width: 170px;
  height: 56px;
  margin-right: 24px;
  transition: width .3s ease-in-out, height .3s ease-in-out;
}

.navbar.scrolled .logo {
  width: 140px;
  height: 46px;
}

.navbar .nav-link,
.navbar .nav-item > .text-white,
.navbar .navbar-toggler,
.navbar .btn.text-light,
.navbar .bi {
  color: #fff;
}

.navbar .nav-link {
  position: relative;
  font-weight: 500;
  font-size: 1rem;
  transition: color .2s ease-in-out;
}

  .navbar .nav-link:hover,
  .navbar .nav-link:focus {
    color: var(--fnf-blue-soft) !important;
    text-decoration: none;
  }

  .navbar .active .nav-link {
    color: #fff !important;
  }

    /* Cyan marker under the page you are on - the accent the main site uses
       for its active carousel dot. */
    .navbar .active .nav-link::after {
      content: "";
      position: absolute;
      left: 1rem;
      right: .5rem;
      bottom: 1px;
      height: 2px;
      border-radius: 2px;
      background-color: var(--fnf-cyan);
    }

.navbar-toggler:focus,
.navbar-toggler:active {
  box-shadow: none;
  outline: none;
}

/* The menu drops out of a see-through bar, so it needs a backdrop of its own. */
.navbar:not(.navbar-expand-lg) .navbar-collapse {
  margin: .5rem 0;
  padding: .5rem 0;
  background-color: rgba(8, 11, 26, .96);
  border-radius: var(--fnf-radius);
}

@media (max-width: 1199.98px) {
  .navbar-expand-lg .navbar-collapse {
    margin: .5rem 0;
    padding: .5rem 0;
    background-color: rgba(8, 11, 26, .96);
    border-radius: var(--fnf-radius);
  }
}

.navbar .navbar-text {
  color: #fff;
  font-weight: 600;
  letter-spacing: .04em;
}

  .navbar .navbar-text:after {
    content: "SPECIALIST IN STAAL & NON-FERRO";
    color: #fff;
    font-size: 1.375rem;
  }

.navbar .badge.bg-danger {
  border: 2px solid var(--fnf-navy-deep);
}

@media (min-width: 1250px) {
  .loggedin-user .nav-item.d-none.d-lg-block .btn.btn-sm.p-0 { margin-left: 40px !important; }
}

@media (max-width: 1250px) {
  .loggedin-user .nav-item.d-none.d-lg-block .btn.btn-sm.p-0 { margin-left: 20px !important; }
}

/* ==========================================================================
   5. Cards and panels
   ========================================================================== */
.card {
  background-color: var(--fnf-panel);
  border: 1px solid var(--fnf-line);
  border-radius: var(--fnf-radius);
  box-shadow: var(--fnf-shadow-sm);
}

  .card > .card-header {
    background-color: var(--fnf-navy);
    background-image: none;
    border-bottom: 0;
    color: #fff !important;
    font-size: 1rem;
    font-weight: 600;
  }

    .card > .card-header a,
    .card > .card-header .all-products {
      color: #fff !important;
      font-size: 1rem !important;
      font-weight: 600;
    }

      .card > .card-header a:hover {
        color: var(--fnf-cyan) !important;
        text-decoration: none;
      }

.card-body { background-color: var(--fnf-panel); }

.card-header.datails-title,
.card-header.change-password-title,
.card-header.reset-password-title-container {
  background-color: var(--fnf-navy);
}

.summary {
  background-color: transparent;
  border-radius: var(--fnf-radius);
}

.list-group-item {
  background-color: var(--fnf-panel);
  border-color: var(--fnf-line);
}

/* Rows you can pick answer to the pointer the same way table rows do. */
.list-group-item.clickable:hover,
.list-group-item.clickable:hover .text-muted {
  background-color: var(--fnf-navy);
  color: #fff;
}

.list-group-item.active {
  z-index: 2;
  background-color: var(--fnf-blue) !important;
  border-color: var(--fnf-blue);
  color: #fff;
}

.alert { border-radius: var(--fnf-radius); }

/* ==========================================================================
   6. Product tree (sidebar)
   ========================================================================== */
#productTreeContainer .card-body,
#productTreeContainer .card-body #productTree .productTree ul {
  background-color: var(--fnf-panel);
}

#productTreeContainer .productTree ul li a,
.root-articleLink {
  background-color: var(--fnf-panel) !important;
  color: var(--fnf-navy);
  transition: background-color .15s ease-in-out, color .15s ease-in-out;
}

  #productTreeContainer .productTree ul li a:hover,
  .root-articleLink:hover {
    background-color: var(--fnf-navy) !important;
    color: #fff;
    text-decoration: none;
  }

#productTreeContainer .productTree > ul > li > a {
  border-bottom: 1px solid var(--fnf-line);
}

/* The markup writes "currentitem" in lower case, which the rule in Global.css
   (a.currentItem) does not match, so the active group is coloured here. */
.root-articleLink.currentitem,
#productTreeContainer .productTree ul li a.currentitem {
  background-color: var(--fnf-blue) !important;
  color: #fff !important;
  font-weight: 600;
}

.card-body,
.card-body ul,
.card-body ul a {
  border-bottom-left-radius: var(--fnf-radius);
  border-bottom-right-radius: var(--fnf-radius);
}

/* ==========================================================================
   7. Product group tiles
   ========================================================================== */
.rectangle.productcategory.maincategory {
  height: 102px;
  margin-bottom: 20px;
  padding-right: 12px;
  background-color: var(--fnf-panel);
  border: 1px solid var(--fnf-line);
  border-radius: var(--fnf-radius);
  box-shadow: var(--fnf-shadow-sm);
  transition: border-color .2s ease-in-out, box-shadow .2s ease-in-out, transform .2s ease-in-out;
}

  .rectangle.productcategory.maincategory:hover {
    border-color: var(--fnf-blue);
    box-shadow: var(--fnf-shadow);
    transform: translateY(-2px);
  }

.maincategory .groupimage {
  width: auto;
  padding: 0 14px;
}

  /* Round, ringed thumbnails, as on the product cards of the main site. */
  .maincategory .groupimage .product-category-image {
    width: 74px;
    height: 74px;
    background-color: #fff;
    border: 4px solid #fff;
    border-radius: 50%;
    box-shadow: 0 6px 16px rgba(178, 189, 209, .75);
    object-fit: cover;
    transition: transform .2s ease-in-out;
  }

.maincategory:hover .groupimage .product-category-image {
  transform: scale(1.06);
}

.maincategory .groupdtext {
  overflow: hidden;
  overflow-wrap: break-word;
  padding-left: 5px;
}

  /* Scoped to the tile with the image: in the plain group grid the same link is
     itself a .btn, and pinning a colour on it leaves dark text on the dark
     hover fill. There the button variables below do the work. */
  .maincategory .groupdtext a,
  .maincategory .groupdtext a:active,
  .maincategory .btn-product.productcategory_link_btn {
    color: var(--fnf-navy);
    font-size: 15px !important;
    font-weight: 600;
    overflow: hidden;
    text-decoration: none;
  }

.maincategory:hover .groupdtext a,
.maincategory .groupdtext a:hover {
  color: var(--fnf-blue);
  text-decoration: none;
}

/* Plain group tiles: whatever sits inside the button turns white with it. */
.productcategory .btn:hover,
.productcategory .btn:hover *,
.productcategory .btn:focus,
.productcategory .btn:focus * {
  color: #fff;
}

#productscontainer > div { margin-bottom: 20px; }

  #productscontainer > div.download-container,
  #productscontainer > div.modal,
  #productscontainer > div.row {
    margin-bottom: 0;
  }

/* ==========================================================================
   8. Tables
   ========================================================================== */
table.dataTable thead > tr > th,
table.dataTable thead > tr > td,
.table > thead > tr > th {
  background-color: transparent;
  color: var(--fnf-navy);
  font-weight: 700;
  border-top: none;
  border-left: none;
  border-right: none;
}

/* A grouped header - "Bruto prijs per KG" spanning the price bands over a
   second row of columns - puts cells in a row that does not reach the bottom of
   the header. The heavy rule therefore goes on the cells that do reach it: the
   last header row, plus the cells above it that span down into it. Putting it
   on every header cell draws a second rule straight across the middle.

   The !important is aimed at datatables.min.css, which carries
     table.dataTable.table-bordered tr:last-child th { border-bottom-width: 0 }
   at a higher specificity than anything sane here. That rule flattened the line
   under the second header row, so it ran under the spanning columns only. */
table.dataTable thead > tr:last-child > th,
table.dataTable thead > tr:last-child > td,
table.dataTable thead > tr > th[rowspan]:not([rowspan="1"]),
.table > thead > tr:last-child > th,
.table > thead > tr > th[rowspan]:not([rowspan="1"]) {
  border-bottom: 2px solid var(--fnf-navy) !important;
}

/* The spanning cell keeps a light rule over its own columns, so it still reads
   as the heading of that group. */
table.dataTable thead > tr:not(:last-child) > th:not([rowspan]),
table.dataTable thead > tr:not(:last-child) > th[rowspan="1"],
.table > thead > tr:not(:last-child) > th:not([rowspan]),
.table > thead > tr:not(:last-child) > th[rowspan="1"] {
  border-bottom: 1px solid var(--fnf-line);
}

table.dataTable tbody tr {
  background-color: transparent;
  border-top: none;
  border-bottom: 1px solid var(--fnf-line);
  border-left: none;
  border-right: none;
}

  table.dataTable tbody tr td,
  table.dataTable tbody tr td:last-child {
    border: none !important;
  }

table.dataTable.product-table tbody tr td,
table.dataTable.product-table tbody tr th,
table.dataTable.product-table-sm tbody tr td,
table.dataTable.product-table-sm tbody tr th {
  background-color: transparent !important;
  color: var(--fnf-navy) !important;
}

/* Hovering a row fills it with the dark ink, so the row you are reading across
   stands out instead of being a faint tint.

   The hidden order rows that hang under a product row are skipped: they are not
   a row you point at, they belong to the row above. */
.table {
  --bs-table-hover-bg: var(--fnf-navy);
  --bs-table-hover-color: #fff;
}

table.dataTable tbody > tr:hover:not([id^="product_addToShoppingCart_"]) > *,
.table-hover > tbody > tr:hover:not([id^="product_addToShoppingCart_"]) > * {
  background-color: var(--fnf-navy) !important;
  color: #fff !important;
}

  /* Everything inside the row comes along, whatever colour it carries of its
     own - muted labels, links, euro signs, marks. Setting it on the cell is not
     enough: a child with its own colour keeps it and turns invisible. */
  table.dataTable tbody > tr:hover:not([id^="product_addToShoppingCart_"]) > * *,
  .table-hover > tbody > tr:hover:not([id^="product_addToShoppingCart_"]) > * * {
    color: #fff !important;
  }

  /* Buttons in the row keep their own fill, only the outline variant needs to
     come along. Same exception: the order panel that opens under a product row
     stays light, so its buttons have to keep their own dark text. */
  table.dataTable tbody > tr:hover:not([id^="product_addToShoppingCart_"]) .btn-secondary,
  .table-hover > tbody > tr:hover:not([id^="product_addToShoppingCart_"]) .btn-secondary {
    --bs-btn-color: #fff;
    --bs-btn-bg: transparent;
    --bs-btn-border-color: rgba(255, 255, 255, .55);
    --bs-btn-hover-color: var(--fnf-navy);
    --bs-btn-hover-bg: #fff;
    --bs-btn-hover-border-color: #fff;
  }

/* Zebra striping on the overview lists only - the product tables carry hidden
   order rows that would break the rhythm. */
table.dataTable.basic-table tbody tr:nth-of-type(odd) > td,
table.dataTable.basic-table-afzet tbody tr:nth-of-type(odd) > td,
table.dataTable.contract-product-table tbody tr:nth-of-type(odd) > td {
  background-color: rgba(26, 31, 53, .025);
}

.product-table td:not(:first-child),
.product-table th:not(:first-child),
.product-table-sm td:not(:first-child),
.product-table-sm th:not(:first-child) {
  text-align: center !important;
}

.product-table td:first-child,
.product-table th:first-child,
.product-table-sm td:first-child,
.product-table-sm th:first-child {
  text-align: start !important;
}

.assortimentMark { color: var(--fnf-blue) !important; }

.table-responsive > .table > tbody > tr > td { white-space: normal; }

.dt-paging .page-item .page-link,
.dt-paging .page-item.disabled .page-link {
  color: var(--fnf-blue);
  box-shadow: none;
}

.dt-paging .page-item.active .page-link {
  background-color: var(--fnf-blue);
  border: 1px solid var(--fnf-blue);
  color: #fff;
  box-shadow: none;
}

input.custom-search {
  min-width: 220px;
  padding: .375rem .75rem;
  border: 1px solid var(--fnf-line);
  border-radius: var(--fnf-radius);
  color: var(--fnf-navy);
}

  input.custom-search:focus {
    border-color: var(--fnf-blue);
    box-shadow: 0 0 0 .2rem rgba(36, 72, 228, .15);
    outline: none;
  }

/* ==========================================================================
   9. Buttons
   ========================================================================== */
.btn {
  border-radius: var(--fnf-radius);
  font-weight: 500;
  transition: background-color .2s ease-in-out, border-color .2s ease-in-out, color .2s ease-in-out, box-shadow .2s ease-in-out;
}

  /* Links styled as buttons do not take the underline that links get. */
  a.btn:hover,
  a.btn:focus {
    text-decoration: none;
  }

/* One accent colour for every forward action, including the order and quote
   buttons, which carry .btn-success in the markup. */
.btn-primary,
.btn-success,
.form-signin .btn-login,
#shoppingCartSummary .btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--fnf-blue);
  --bs-btn-border-color: var(--fnf-blue);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--fnf-blue-dark);
  --bs-btn-hover-border-color: var(--fnf-blue-dark);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--fnf-blue-darker);
  --bs-btn-active-border-color: var(--fnf-blue-darker);
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: var(--fnf-blue);
  --bs-btn-disabled-border-color: var(--fnf-blue);
  --bs-btn-focus-shadow-rgb: 69, 99, 232;
  background-image: none;
}

.btn-secondary,
.btn-back,
.productcategory .btn {
  --bs-btn-color: var(--fnf-navy);
  --bs-btn-bg: #fff;
  --bs-btn-border-color: var(--fnf-line-strong);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--fnf-navy);
  --bs-btn-hover-border-color: var(--fnf-navy);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--fnf-navy);
  --bs-btn-active-border-color: var(--fnf-navy);
  --bs-btn-focus-shadow-rgb: 146, 159, 169;
  background-image: none;
  font-weight: 600;
}

table.products .btn:hover {
  background-color: var(--fnf-navy);
  color: #fff;
}

.btn-group > .btn.btn-secondary.radius-right {
  border-top-right-radius: var(--fnf-radius);
  border-bottom-right-radius: var(--fnf-radius);
}

#revenueHeader .btn-info {
  background: var(--fnf-navy) !important;
  border-color: var(--fnf-navy) !important;
  color: #fff;
  box-shadow: none;
}

.progress-bar { background-color: var(--fnf-blue); }

.badge.bg-primary { background-color: var(--fnf-blue) !important; }

/* ==========================================================================
   10. Forms and controls
   ========================================================================== */
/* White fields with an edge you can see, instead of a tinted block that blends
   into the panel. */
.form-control,
.form-select,
.input-group-text {
  background-color: var(--fnf-panel);
  border-color: var(--fnf-line-strong);
  border-radius: var(--fnf-radius);
  color: var(--fnf-navy);
}

  .form-control::placeholder,
  .form-select::placeholder {
    color: var(--fnf-muted);
    opacity: 1;
  }

.input-group-text { background-color: #F7F9FE; }

  .form-control:focus,
  .form-select:focus {
    border-color: var(--fnf-blue);
    box-shadow: 0 0 0 .2rem rgba(36, 72, 228, .15);
  }

input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--fnf-blue);
}

.form-check-input:checked {
  background-color: var(--fnf-blue);
  border-color: var(--fnf-blue);
}

.form-check-input:focus {
  border-color: var(--fnf-blue);
  box-shadow: 0 0 0 .2rem rgba(36, 72, 228, .15);
}

.products label { width: 0; }

/* The add to cart footer holds its buttons on one line with .text-nowrap. In
   this font "Toevoegen aan winkelwagen" runs past the edge of the dialog and
   the check mark is cut off, so let the label wrap and let the columns shrink
   with it. */
.modal-footer .btn.text-nowrap {
  white-space: normal !important;
  font-size: 14px;
}

.modal-footer .row > [class*="col"] {
  min-width: 0;
}

/* ==========================================================================
   11. Shopping cart and summary
   ========================================================================== */
#shoppingCartSummary .btn {
  background-image: none;
  background-color: var(--fnf-blue);
  border-color: var(--fnf-blue);
  color: #fff;
}

  #shoppingCartSummary .btn:hover,
  #shoppingCartSummary .btn:focus {
    background-color: var(--fnf-blue-dark);
    border-color: var(--fnf-blue-dark);
    color: #fff;
  }

/* Address block, charges and totals. White, with the weight on the figures
   rather than on a fill behind them. */
table.summary {
  background-color: transparent;
  border: 1px solid var(--fnf-line);
  border-radius: var(--fnf-radius);
}

  table.summary > tbody > tr > td,
  table.summary > tr > td {
    color: var(--fnf-navy);
  }

  /* The label above each value. */
  table.summary td.text-muted {
    color: var(--fnf-muted) !important;
    font-size: .8125rem;
    font-weight: 600;
    padding-bottom: 0;
  }

  table.summary .totalExclTax,
  table.summary .totalTax,
  table.summary .totalInclTax,
  .summary-charges,
  .summary-totals {
    color: var(--fnf-navy);
    font-weight: 600;
  }

  /* The figure the customer is actually looking for. */
  table.summary tr.final.summary-total-row > td {
    border-top: 2px solid var(--fnf-navy);
    color: var(--fnf-navy);
    font-size: 1.0625rem;
    font-weight: 700;
  }

.thumbnail {
  background-color: var(--fnf-panel);
  border-color: var(--fnf-line);
}

/* ==========================================================================
   12. Login page
   ========================================================================== */
/* The photo layer above already covers this page; only the frame differs, as
   there is no navigation bar to clear. */
body:has(.container.login) {
  min-height: 100vh;
  padding-top: 0;
  padding-bottom: 0;
}

.container.login {
  max-width: 460px;
  padding: 80px 15px 60px;
}

.login .logo {
  width: 100%;
  min-height: 110px;
  margin-right: 0;
  background-position: center center;
  background-size: auto 96px;
}

.form-signin {
  max-width: 100%;
  padding: 32px 28px;
  background-color: var(--fnf-panel);
  border-radius: var(--fnf-radius);
  box-shadow: var(--fnf-shadow-lg);
}

  .form-signin .btn-login {
    background-color: var(--fnf-blue);
    border-color: var(--fnf-blue);
  }

.remember-me { color: var(--fnf-navy); }

#forgotpassword a { color: var(--fnf-blue); }

.container.login .text-center.voffset-4 a {
  color: #fff;
  font-weight: 500;
}

.btn-register { display: block; }

/* ==========================================================================
   13. Hidden on purpose
   ========================================================================== */
.searchform { display: none; }                       /* site wide search form  */
.price-valid-from { display: none !important; }      /* price valid from date  */
.download-row { display: none !important; }          /* download row           */
.shoppingCart-lineUrl span { display: none; }        /* line url label         */
.product-header, .size-row { height: 0 !important; } /* empty table headers    */
.title-container .col-12.text-end.d-none.d-lg-inline { display: none !important; }

#contact-popup-link { display: inline !important; }
.contact-popup-link .bi.bi-telephone-fill { display: none !important; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1199.98px) {
  .navbar .navbar-text:after { font-size: 1.25rem; }
  .navbar .nav-link { font-size: .9375rem; }
  .logo { width: 150px; height: 50px; }
}

@media (max-width: 991.98px) {
  :root { --fnf-navbar-height: 68px; }

  .logo { width: 140px; height: 46px; margin-right: 0; }
  .navbar .navbar-text:after { font-size: 1.125rem; }
  .navbar .nav-link { font-size: 1.0625rem; }
  .navbar.fixed-top { height: auto; }
  footer.footer { font-size: .75rem; }
}

@media (max-width: 813.98px) {
  .navbar .navbar-text,
  .navbar .navbar-text:after { display: none; }
}

@media (max-width: 767.98px) {
  .main-content > .row:nth-child(2) { padding: 16px 12px 24px; }
  .container.login { padding-top: 50px; }
  .download-row-inner { border-bottom: none; padding-bottom: 0; }
}

@media (max-width: 390px) {
  footer.footer { font-size: .6875rem; }
}

@media (max-width: 350px) {
  .logo { width: 100%; }
}
/* --------------------------------------------------------------------------
   Back to top button (product pages)

   Rendered by _ProductsPage when the Layout flag productPageBackToTopButton
   is true: <a href="#top" class="btn back-to-top"> with a Bootstrap icon,
   #top being the <html> element. A blue button like every forward action,
   floating on the same shadow as the panels, parked above the fixed footer.
   -------------------------------------------------------------------------- */
.back-to-top {
  align-items: center;
  background-color: var(--fnf-blue);
  border: 0;
  border-radius: var(--fnf-radius);
  bottom: 68px;
  box-shadow: var(--fnf-shadow);
  color: #fff;
  display: inline-flex;
  font-size: 1.125rem;
  height: 46px;
  justify-content: center;
  padding: 0;
  position: fixed;
  right: 20px;
  width: 46px;
  z-index: 1020; /* above the footer bar, below dialogs */
}

  .back-to-top:hover,
  .back-to-top:focus-visible {
    background-color: var(--fnf-blue-dark);
    color: #fff;
  }

  .back-to-top:active {
    background-color: var(--fnf-blue-darker);
    color: #fff;
  }

  .back-to-top:focus-visible {
    box-shadow: var(--fnf-shadow), 0 0 0 .2rem rgba(36, 72, 228, .35);
    outline: 0;
  }

/* Glide up instead of jumping, only on pages that have the button. */
html:has(.back-to-top) {
  scroll-behavior: smooth;
}

/* Show the button once the page has scrolled, where the browser can tie an
   animation to the scroll position (Chrome, Edge, Safari 26). Elsewhere it
   simply stays visible. */
@supports (animation-timeline: scroll()) {
  .back-to-top {
    animation: fnf-back-to-top linear both;
    animation-range: 150px 350px;
    animation-timeline: scroll(root);
  }

  @keyframes fnf-back-to-top {
    from {
      opacity: 0;
      translate: 0 12px;
      visibility: hidden;
    }

    to {
      opacity: 1;
      translate: 0 0;
      visibility: visible;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html:has(.back-to-top) { scroll-behavior: auto; }
}

/* The footer wraps to two lines on a phone, about 58px high. */
@media (max-width: 767.98px) {
  .back-to-top {
    bottom: 76px;
    right: 12px;
  }
}

/* --------------------------------------------------------------------------
   12b. Request a login code (Register) and its result pages

   Register, RegisterCompleted and RegisterError render straight into the
   login layout without .form-signin, so their navy text lands on the photo.
   They get the login card here: white panel, same heading, blue button.
   -------------------------------------------------------------------------- */

/* Title, initials and first name share one row; at the login width the
   labels are cut off, so the request form gets a wider card. */
.container.login:has(form[action*="Register"]) {
  max-width: 640px;
}

.container.login > div:not(.logo):not(.voffset-4):not(:has(.form-signin)) {
  background-color: var(--fnf-panel);
  border-radius: var(--fnf-radius);
  box-shadow: var(--fnf-shadow-lg);
  padding: 32px 28px 22px;
}

/* The heading reads like the Login heading. The view centres it with
   .text-center, which is !important in Bootstrap. */
.container.login h2.page-title {
  font-size: 1.5rem;
  margin-bottom: 6px;
  margin-top: 0;
  text-align: left !important;
}

  .container.login h2.page-title + p {
    color: var(--fnf-muted);
    margin-bottom: 24px;
    text-align: left !important;
  }

/* Gutters as wide as the space under each field, so the grid is even. */
.container.login form .row {
  --bs-gutter-x: 1rem;
}

/* Floating labels in the placeholder colour of the login fields. The view
   gives every label .text-black, also !important. */
.container.login .form-floating > label {
  color: var(--fnf-muted) !important;
}

/* The title select carries .form-control, so it has no arrow of its own. Its
   label says "Title" (no Dutch display name in WebUserRegister) and
   Dhr. / Mevr. speak for themselves, so the label goes and the value sits in
   the middle of the field. */
.container.login select.form-control {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%235B6478' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-position: right .75rem center;
  background-repeat: no-repeat;
  background-size: 14px 10px;
  cursor: pointer;
  padding-bottom: 1rem;
  padding-right: 2.25rem;
  padding-top: 1rem;
}

.container.login label[for="Title"] {
  display: none;
}

.container.login textarea.form-control {
  height: 120px;
  min-height: 120px;
  resize: vertical;
}

/* The submit button also carries .form-control, whose white fill outranks
   the button colours; put the login button back on it. */
.container.login input[type="submit"].btn-primary {
  background-color: var(--fnf-blue);
  border-color: var(--fnf-blue);
  color: #fff;
  font-size: 1.25rem;
  margin-top: 8px;
  padding: .5rem 1rem;
}

  .container.login input[type="submit"].btn-primary:hover {
    background-color: var(--fnf-blue-dark);
    border-color: var(--fnf-blue-dark);
  }

  .container.login input[type="submit"].btn-primary:active {
    background-color: var(--fnf-blue-darker);
    border-color: var(--fnf-blue-darker);
  }

.container.login form + p.text-muted {
  font-size: .8125rem;
  margin-bottom: 0;
}

/* Errors: a red edge instead of the pale pink fill Global.css gives a field. */
.container.login .has-error .form-control {
  background-color: var(--fnf-panel);
  border-color: #D92D20;
}

  .container.login .has-error .form-control:focus {
    box-shadow: 0 0 0 .2rem rgba(217, 45, 32, .15);
  }

.container.login .form-floating.has-error > label {
  color: #B42318 !important;
}

.container.login .validation-summary-errors ul { margin-bottom: 0; }

@media (max-width: 575.98px) {
  .container.login > div:not(.logo):not(.voffset-4):not(:has(.form-signin)) {
    padding: 24px 18px 18px;
  }
}