/*
 * New CSS for buyer pages. It loads after the old stylesheets, which are never edited.
 * A plain file, served as it is: no build step. Name pictures by their path from the site root.
 *
 * Most rules here were inline <style> blocks on the old site's pages. They are kept word for word,
 * because the pages are checked pixel by pixel against the old site.
 */

/* ---- Header: the search mode switch in front of the search box ---- */

.global-search-input-wrapper { flex-wrap: nowrap !important; }
.global-search-input-wrapper > div:has(.searchbox) { flex: 1 1 auto; min-width: 0; }
.global-search-input-wrapper .searchbox { margin-left: 0 !important; width: 100% !important; }
.global-search-input-wrapper > div:last-child { padding: 0 6px; }

.os-mode { position: relative; flex: 0 0 auto; align-self: stretch; display: flex; align-items: center; }
.os-mode .os-mode__toggle {
    display: flex; align-items: center; height: 100%; padding: 0 12px 0 15px;
    background: transparent; border: 0 none; font-size: 14px; line-height: 1;
    color: var(--domain-primary-colour, #524583); white-space: nowrap; cursor: pointer; transition: none;
}
.os-mode .os-mode__label { font-weight: 600; }
.os-mode.is-open .os-mode__toggle { background: #f0ecf9; border-radius: 5px 0 0 5px; }
.os-mode .os-mode__caret { width: 10px; height: 6px; margin-left: 13px; transition: transform .15s ease; }
.os-mode.is-open .os-mode__caret { transform: rotate(180deg); }

.os-mode .os-mode__menu {
    display: none; position: absolute; top: 100%; left: 0; z-index: 1050;
    width: 240px; margin-top: 5px; background: #fff; border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0,0,0,.16), 0 2px 6px rgba(0,0,0,.08); overflow: hidden;
}
.os-mode.is-open .os-mode__menu { display: block; }
.os-mode .os-mode__option {
    display: flex; align-items: center; gap: 10px; width: 100%; height: auto;
    padding: 14px 16px; background: #fff; border: 0 none; border-radius: 0;
    font-size: 14px; text-align: left; cursor: pointer; transition: none;
}
.os-mode .os-mode__option:hover,
.os-mode .os-mode__option:focus,
.os-mode .os-mode__option.is-selected { background: #f0ecf9; outline: none; }
.os-mode .os-mode__option-text { flex: 1 1 auto; min-width: 0; }
.os-mode .os-mode__option-title { display: block; font-size: 14px; font-weight: 600; line-height: 1.35; color: #222; }
.os-mode .os-mode__option.is-selected .os-mode__option-title { color: var(--domain-primary-colour, #524583); }
.os-mode .os-mode__option-hint { display: block; margin-top: 2px; font-size: 12px; line-height: 1.35; color: #999; }
.os-mode .os-mode__option:hover .os-mode__option-hint,
.os-mode .os-mode__option.is-selected .os-mode__option-hint { color: #7d7689; }
.os-mode .os-mode__check { flex: 0 0 auto; width: 12px; height: 10px; color: var(--domain-primary-colour, #524583); visibility: hidden; }
.os-mode .os-mode__option.is-selected .os-mode__check { visibility: visible; }

.os-mode--mobile .os-mode__toggle { padding: 0 8px; font-size: 12px; }
.os-mode--mobile .os-mode__caret { margin-left: 6px; }
.os-mode--mobile .os-mode__menu { width: 220px; }

/* ---- The arrows of the banner carousel ---- */

/* The old site had these on the home page only. Tied to the banner carousel, so a row of product cards keeps its own small arrow. */

@media (min-width: 768px) {
    .slick-carousel .slick-prev, .slick-carousel .slick-next {
        top: 50%;
        background: #978FB5 !important;
        width: 44px !important;
        height: 44px !important;
        border-radius: 50%;
        opacity: 0.8;
    }
    .slick-carousel .slick-next:before, .slick-carousel .slick-prev:before {
        color: white !important;
        font-size: 25px !important;
    }
}


/* ---- The category picture tiles on the home page ---- */

/* On the old site these belonged to one script-drawn component. Here they are tied to its section. */

section.categories {
  margin: 30px 0 20px;
  overflow-x: auto;
  -ms-overflow-style: none;
  /* for Internet Explorer, Edge */
  scrollbar-width: none;
  /* for Firefox */
}
section.categories::-webkit-scrollbar {
  display: none;
  /* for Chrome, Safari, and Opera */
}
section.categories .category-div {
  align-self: flex-start;
  padding-bottom: 10px;
}
section.categories .category-div h5 {
  color: #333333;
}
section.categories .category-img {
  height: 102px;
  /* Set a fixed height */
  width: 100%;
  object-fit: cover;
  /* Ensures the image covers the dimensions without distortion */
  margin-bottom: 10px;
  border-radius: 10px;
  /* Optional, for rounded corners */
}
section.categories .d-flex-aligns-justify-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ---- The featured suppliers on the home page ---- */

/* On the old site these belonged to one script-drawn component. Here they are tied to its section. */

.supplier-row .col-md-6 {
  padding-left: 8px;
  padding-right: 8px;
}
.supplier-row .col-xs-12 {
  padding: 10px;
}
.supplier-row-title {
  font-weight: 700;
  font-size: 16px;
  color: #524583;
  margin-bottom: 5px;
}
.supplier-row-subtitle {
  color: #0F172A;
  font-size: 14px;
  margin-bottom: 10px;
}
.supplier-row .supplier-box {
  display: flex;
  border: 1px solid #E6E6E6;
  border-radius: 8px;
  padding: 15px;
}
.supplier-row .store-images {
  display: flex;
  flex-flow: wrap;
  padding: 0;
}
.supplier-row .store-img {
  height: 50px;
  width: 50px;
}
@media screen and (min-width: 1200px) {
.supplier-row .store-img {
    height: 90px;
    width: 80px;
    padding: 2px;
}
}
.supplier-row .store-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
}
.supplier-row .store-title {
  font-size: 24px;
  font-weight: 700;
}
.supplier-row .store-category {
  font-size: 14px;
}
.supplier-row .store-min-order {
  font-size: 16px;
  font-weight: 600;
}
.supplier-row .store-location {
  font-size: 16px;
  color: #666666;
}
.supplier-row .store-btn {
  font-weight: 500;
  color: #524583;
  background: white;
  border: 1px solid #524583;
  float: right;
}
.supplier-row .store-btn:hover {
  color: white;
  background: #524583;
}
.supplier-row .store-btn:focus {
  outline: none;
}

/* ---- Rules the old site applied to every page from one of its scripts ---- */

/*
 * They were not tied to one component, so they reached every page. Ported markup depends on some of
 * them: the product card gets its top margin from `.card-wrapper` here.
 */

.supplier-name {
  font-family: "Lato", sans-serif;
  font-weight: 500;
  font-size: 16px;
}

@media (min-width: 1025px) {
  .supplier-name {
    font-family: "Lato", sans-serif;
    margin-left: -3.2rem;
  }
  .supplier-name p {
    line-height: 3.4rem;
  }
}
.section-title {
  font-family: "Lato", sans-serif;
  font-size: 24px;
  font-weight: 500;
}

.sales-ytd-title {
  font-family: "Lato", sans-serif;
  font-size: 16px;
  font-weight: 700;
}
.sales-ytd-title small {
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-size: 12px;
}

.channel-title {
  font-family: "Lato", sans-serif;
  font-size: 14px;
  font-weight: 400;
}

.channel-amount {
  font-family: "Lato", sans-serif;
  font-size: 32px;
  font-weight: 700;
}

.font-size-13 {
  font-family: "Lato", sans-serif;
  font-size: 13px;
}

.font-size-12 {
  font-family: "Lato", sans-serif;
  font-size: 12px;
}

.font-size-14 {
  font-family: "Lato", sans-serif;
  font-size: 14px;
}

.font-size-16 {
  font-family: "Lato", sans-serif;
  font-size: 16px;
}

.font-size-20 {
  font-family: "Lato", sans-serif;
  font-size: 20px;
}

.font-size-24 {
  font-family: "Lato", sans-serif;
  font-size: 24px;
}

.font-size-32 {
  font-family: "Lato", sans-serif;
  font-size: 32px;
}

.font-weight-400 {
  font-weight: 400;
}

.font-weight-500 {
  font-weight: 500;
}

.font-weight-600 {
  font-weight: 600;
}

.font-weight-700 {
  font-weight: 700;
}

.button-get-report {
  border-radius: 16px;
  width: 160px;
  height: 40px;
  background-color: white;
  color: #524583;
  font-weight: 600;
  border: 1px solid #524583;
}
.button-get-report:hover {
  background-color: #524583;
  color: #fff;
}
.button-get-report:hover .icon-button {
  filter: brightness(0) saturate(100%) invert(100%) sepia(100%) saturate(0%) hue-rotate(253deg) brightness(108%) contrast(102%);
}
.button-get-report .icon-button {
  display: inline-block;
  height: 20px;
  margin-right: 10px;
  vertical-align: text-bottom;
}

.form-control.reportrange-text {
  border-radius: 16px;
  height: auto;
  border: 1px solid #666666;
  color: #666666;
  font-weight: 600;
  align-content: center;
  min-height: 40px;
  max-height: 50px;
}
.form-control.reportrange-text div {
  display: flex;
}
.form-control.reportrange-text div .icon-calendar {
  width: 18px;
  height: 20px;
  margin-right: 5px;
  align-self: center;
}

.date-range-picker {
  display: flex;
  align-items: center;
  border: 1px solid black;
  padding: 5px;
  border-radius: 16px;
  width: 282px;
  background: white;
}

.daterangepicker .drp-buttons .btn {
  margin-left: 8px;
  font-size: 12px;
  font-weight: 700;
  padding: 0px 20px;
  border-radius: 4px !important;
}

.daterangepicker .btn-primary, .daterangepicker .btn-success {
  background-color: #524583;
  color: #fff;
}

.daterangepicker .btn-secondary {
  background-color: #FFFFFF;
  color: #524583;
}

.daterangepicker td.active, .daterangepicker td.active:hover {
  background-color: #524583;
  border-color: transparent;
  color: #fff;
}

.daterangepicker td.end-date {
  border-radius: 50%;
}

.daterangepicker td.start-date {
  border-radius: 50%;
}

.daterangepicker .ranges li.active {
  background-color: #F9FAFB;
  color: #000;
}

.card {
  padding: 0px;
  margin-bottom: 10px;
}
.card .card-title {
  font-family: "Lato", sans-serif;
  font-size: 32px;
  font-weight: 700;
}
.card .card-subtitle {
  font-family: "Lato", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #666666;
}

.card-header {
  padding: 15px 20px;
}
.card-header h5 {
  font-family: "Lato", sans-serif;
  font-weight: 500;
}

.card-wrapper {
  margin-top: 25px;
}

.card-body {
  padding: 15px 20px;
}

.card-footer {
  color: #524583;
  border-top: 1px solid #ccc;
  margin-top: 10px;
  padding: 10px 25px;
}
.card-footer a {
  color: #524583;
  font-weight: 600;
}

.icon-sales {
  margin-right: 15px;
  width: 48px;
  height: 48px;
}

.view-button {
  padding: 15px 10px;
}

.row-margin-top {
  margin-top: 25px;
}

canvas {
  overflow-y: auto !important;
  width: 100% !important;
}

.footer-content {
  margin: 5px 0px 0px 75px;
}
.footer-content table td {
  padding: 10px 35px 0px 0px;
}
.footer-content table th {
  padding: 0px 35px 0px 0px;
}
.footer-content .footer-wrapper {
  padding: 10px;
}
.footer-content .red {
  margin-top: 10px;
  margin-bottom: 10px;
  color: #F04438;
}
.footer-content .green {
  margin-top: 10px;
  margin-bottom: 10px;
  color: #12B76A;
}

.color-box {
  display: inline-flex;
  justify-content: end;
  width: 10px;
  height: 10px;
  margin-right: 5px;
  border-radius: 10px;
}

.color-box-padding {
  padding: 0px 5px 0px 5px;
}

.table-padding-1 td {
  padding: 10px 0px 0px 0px;
  font-size: 14px;
}

.text-start {
  text-align: left;
  color: #666666;
  white-space: nowrap;
}

.text-end {
  text-align: end;
}

.lower-content {
  padding: 15px;
}

.padding-1 {
  padding: 0px 0px 0px 0px;
}

.top-row-wrapper {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  border-bottom: 1px solid #F3F3F3;
  padding-bottom: 10px;
}

.top-small-subtitle {
  color: #666;
}

.sales-amount {
  flex: 0 0 100px;
  text-align: right;
  color: #333;
}

.col-padding {
  padding: 10px;
}

.margin-top {
  margin-top: 50px;
}

.charcoal-gray {
  color: #666666;
}

.top-supplier-view {
  color: #7A5AF8;
}

@media (min-width: 768px) {
  .doughnut-chart-row {
    display: flex;
  }
}
.doughnut-chart-row .card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
