.manufacturer-icon-sm {
  width: 40px;
  height: 40px;
}

.manufacturer-icon-md {
  width: 50px;
  height: 50px;
}

.search-results-scroll {
  max-height: 300px;
  overflow-y: auto;
}

/* Jodit urejevalnik e-poštnih predlog */
.jodit-container:not(.jodit_inline) {
  border-color: var(--bs-border-color);
  border-radius: var(--bs-border-radius);
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
}

.jodit-container .jodit-toolbar__box,
.jodit-container .jodit-status-bar {
  background-color: var(--bs-tertiary-bg);
  border-color: var(--bs-border-color);
}

.modal .jodit-container:not(.jodit_inline) {
  max-width: 100%;
}


/* Mobilna prilagoditev noge */
.footer-custom .footer-title {
  color: var(--bs-success-bg-subtle);
}

.footer-custom .footer-contact-btn {
  padding: 0.5rem 1.125rem;
  border: 1px solid var(--bs-body-bg);
  border-radius: var(--bs-border-radius-pill);
  background-color: var(--bs-body-bg);
  color: var(--bs-success-text-emphasis);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.footer-custom .footer-contact-btn:hover,
.footer-custom .footer-contact-btn:focus-visible {
  border-color: var(--bs-success-bg-subtle);
  background-color: transparent;
  color: var(--bs-success-bg-subtle);
  text-decoration: none;
}

.footer-custom .footer-contact-btn:focus-visible,
.footer-custom .social-icon:focus-visible {
  outline: 0.2rem solid var(--bs-success-bg-subtle);
  outline-offset: 0.2rem;
}

.cookie-consent {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1080;
  background-color: var(--bs-dark);
  color: var(--bs-success-bg-subtle);
  -webkit-box-shadow: var(--bs-box-shadow);
          box-shadow: var(--bs-box-shadow);
  font-size: 0.9375rem;
}

.cookie-consent .cookie-more-link {
  color: var(--bs-success-border-subtle);
  font-weight: 600;
  text-decoration: underline;
}

@media (max-width: 767.98px) {
  .footer-custom {
    padding-bottom: 1rem;
  }

  .footer-custom .container {
    padding-right: 1.25rem;
    padding-left: 1.25rem;
  }

  .footer-custom .footer-logo {
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    margin-bottom: 0.5rem;
  }

  .footer-custom .footer-logo img {
    width: 100%;
    max-width: 96px;
    margin: 0 25% 0.5rem;
  }

  .footer-custom .social-icon {
    width: 44px;
    height: 44px;
    margin-top: 0;
    font-size: 1.125rem;
  }

  .footer-custom .footer-title {
    margin-bottom: 0.25rem;
  }

  .footer-custom a:not(.social-icon):not(.footer-contact-btn) {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    line-height: 1.4;
  }

  .footer-custom .footer-line {
    margin-top: 1.5rem;
  }

  .cookie-consent {
    max-height: 70vh;
    overflow-y: auto;
    font-size: 0.875rem;
  }

  .cookie-consent .btn {
    width: 100%;
    min-height: 44px;
  }
}

/* Galerija dodatnih slik izdelka */
.thumbnail-list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 0.75rem;
  max-width: none;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.thumbnail-list .thumb-item {
  width: 104px;
  height: 68px;
  overflow: hidden;
  border-radius: var(--bs-border-radius-pill);
  cursor: pointer;
}

.thumbnail-list .thumb-item img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0.375rem 0.75rem;
  border: 2px solid var(--bs-border-color);
  border-radius: inherit;
  background-color: var(--bs-body-bg);
  -o-object-fit: contain;
     object-fit: contain;
}

.thumbnail-list .thumb-item img:hover,
.thumbnail-list .thumb-item img.active {
  border-color: var(--bs-primary);
}

@media (max-width: 767.98px) {
  .product-showcase-card .product-image-side .thumbnail-list {
    -ms-flex-wrap: nowrap;
        flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.125rem 0 0.375rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .product-showcase-card .product-image-side .thumbnail-list .thumb-item {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 82px;
            flex: 0 0 82px;
    width: 82px;
    height: 54px;
  }

  .product-showcase-card .product-image-side .thumbnail-list .thumb-item img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    padding: 0.25rem 0.625rem;
  }
}

/* Berljiv prikaz daljšega opisa izdelka */
.product-description {
  max-width: 76ch;
  line-height: 1.75;
}

.product-description > p {
  margin-bottom: 0;
}

.product-description p,
.product-description ul,
.product-description ol {
  margin-bottom: 1rem;
}

.product-description img,
.product-description table {
  max-width: 100%;
}

.product-description img {
  height: auto;
}

@media (max-width: 767.98px) {
  .product-description {
    max-width: none;
    line-height: 1.6;
  }
}

/* Tisk naročila: samo tabela izdelkov. */
@media print {
  body:has(> #podrobnostiNarocila.show) {
    height: auto;
  }

  body:has(> #podrobnostiNarocila.show) > :not(#podrobnostiNarocila) {
    display: none;
    position: absolute;
    visibility: hidden;
    height: 0;
    overflow: hidden;
  }

  #podrobnostiNarocila.show,
  #podrobnostiNarocila.show .modal-dialog,
  #podrobnostiNarocila.show .modal-content,
  #podrobnostiNarocila.show .modal-body {
    position: static;
    width: 100%;
    max-width: none;
    height: auto;
    max-height: none;
    overflow: visible;
    -webkit-transform: none;
            transform: none;
    -webkit-box-shadow: none;
            box-shadow: none;
  }

  #podrobnostiNarocila.show .modal-dialog {
    margin: 0;
  }

  #podrobnostiNarocila.show .modal-content {
    display: block;
    border: 0;
  }

  #podrobnostiNarocila.show .modal-header,
  #podrobnostiNarocila.show .modal-footer,
  #podrobnostiNarocila.show button,
  #podrobnostiNarocila.show #formPosodobiStatus,
  #podrobnostiNarocila.show #orderTabs,
  #podrobnostiNarocila.show #podatki-pane,
  #podrobnostiNarocila.show #izdelki-pane > :not(.table-responsive) {
    display: none;
  }

  #podrobnostiNarocila.show #formPosodobiStatus,
  #podrobnostiNarocila.show #izdelki-pane > :not(.table-responsive) {
    position: absolute;
    visibility: hidden;
  }

  #podrobnostiNarocila.show .tab-content > .tab-pane {
    display: block;
    opacity: 1;
  }

  #podrobnostiNarocila.show .table-responsive {
    overflow: visible;
  }

  #podrobnostiNarocila.show table {
    font-size: 9pt;
  }

  #podrobnostiNarocila.show tr {
    -webkit-column-break-inside: avoid;
       -moz-column-break-inside: avoid;
            break-inside: avoid;
  }
}