/* Product detail — mobile spacing and buy button.
   Loaded after all.min.css. */

.dtl-gallery {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 14px;
}

.dtl-gallery__main {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  margin-bottom: 0;
  overflow: visible;
  background: #fff;
  display: flex;
  justify-content: center;
}

.dtl-gallery__link {
  display: flex;
  justify-content: center;
  width: 100%;
  height: auto;
  padding: 0;
}

.dtl-gallery__link img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 780px;
  object-fit: contain;
  display: block;
}

.dtl-gallery__rail {
  order: -1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 0 0 148px;
  width: 148px;
}

.dtl-gallery__thumbs {
  order: 0;
  flex-direction: column;
  flex-wrap: nowrap;
  width: 148px;
  gap: 10px;
  max-height: 622px;
  overflow-y: auto;
  scrollbar-width: thin;
  scroll-behavior: smooth;
}

.dtl-gallery__shift {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #f4f8fc;
  color: #002b5c;
  cursor: pointer;
}

.dtl-gallery__shift:hover,
.dtl-gallery__shift:focus {
  background: #e7f0f8;
  color: #005bb7;
}

.dtl-gallery__shift[hidden] {
  display: none;
}

.dtl-gallery__thumb {
  width: 148px;
  height: 148px;
  padding: 8px;
}

.dtl-gallery__thumb img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}

@media (max-width: 991px) {
  .dtl-page {
    padding-left: 16px;
    padding-right: 16px;
  }

  .container:has(.breadcrumb.bread-detail) {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 700px) {
  .breadcrumb.bread-detail {
    display: block;
    padding: 12px 0 6px;
    line-height: 1.5;
  }

  .breadcrumb.bread-detail .breadcrumb-item,
  .breadcrumb.bread-detail .breadcrumb-item + .breadcrumb-item,
  .breadcrumb.bread-detail .breadcrumb-item.pre-last {
    display: inline !important;
    position: static;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0 !important;
    line-height: 1.5;
    white-space: normal;
  }

  .breadcrumb.bread-detail .breadcrumb-item.pre-last a .regular,
  .breadcrumb.bread-detail .breadcrumb-item a .regular {
    display: inline !important;
  }

  .breadcrumb.bread-detail .breadcrumb-item a .respo,
  .breadcrumb.bread-detail .breadcrumb-item.pre-last a .respo {
    display: none !important;
  }

  .breadcrumb.bread-detail .breadcrumb-item::before,
  .breadcrumb.bread-detail .breadcrumb-item::after,
  .breadcrumb.bread-detail .breadcrumb-item + .breadcrumb-item::before,
  .breadcrumb.bread-detail .breadcrumb-item.pre-last::before,
  .breadcrumb.bread-detail .breadcrumb-item.pre-last::after,
  .breadcrumb.bread-detail .breadcrumb-item.pre-last:after {
    content: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    border: 0 !important;
  }

  .breadcrumb.bread-detail .breadcrumb-sep {
    display: inline;
    margin: 0 6px;
    color: #8a97a8;
  }
}

@media (max-width: 600px) {
  .dtl-info > form {
    display: flex;
    flex-direction: column;
  }

  .dtl-info .dtl-buyline,
  .dtl-info .dtl-info__stock {
    display: contents;
  }

  .dtl-info__eta {
    order: 1;
    margin-top: 4px;
    text-align: left;
    align-self: flex-start;
  }

  .dtl-info__cart {
    order: 2;
    flex-direction: row;
    align-items: stretch;
    gap: 10px;
    margin-top: 14px;
  }

  .dtl-info__delivery-link {
    order: 3;
    margin-top: 14px;
    align-self: flex-start;
  }

  .dtl-info__help {
    order: 4;
  }

  .dtl-info__ship {
    order: 5;
  }

  .dtl-qty {
    width: auto;
    align-self: stretch;
    flex: 0 0 auto;
  }

  .dtl-cart__btn,
  .dtl-watchdog-btn {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    height: 56px;
    min-height: 56px;
    padding: 0 14px;
    font-size: 16px;
    line-height: 1.2;
    white-space: nowrap;
  }

  .dtl-sticky__photo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 8px;
    background: #f4f8fc;
    flex-shrink: 0;
  }

  .dtl-sticky__meta {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .dtl-sticky__name {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    color: #1c2b46;
  }

  .dtl-sticky__buy {
    flex-shrink: 0;
    margin-left: 0;
    min-height: 52px;
    padding: 0 16px;
    background: #3d9e2a;
    font-size: 16px;
    white-space: nowrap;
  }
}

#dtl-ship-modal.modal,
#question-modal.modal {
  z-index: 200030;
}

#dtl-ship-modal.modal.show,
#question-modal.modal.show {
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

#dtl-ship-modal .modal-dialog,
#question-modal .modal-dialog {
  width: 100%;
  max-width: 440px;
  margin: 0;
  height: auto;
  max-height: calc(100% - 32px);
  transform: none !important;
}

#question-modal > div {
  width: 100%;
  max-width: 440px;
}

#dtl-ship-modal .modal-content,
#question-modal .modal-content {
  display: flex;
  flex-direction: column;
  max-height: 100%;
  border: 0;
  border-radius: 14px !important;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 43, 92, 0.22);
}

.dtl-ship-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 14px 20px;
  border-bottom: 1px solid #e3ebf3;
}

.dtl-ship-modal__title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: #1c2b46;
}

.dtl-ship-modal__close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: #f4f8fc;
  color: #1c2b46;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.dtl-ship-modal__close:hover,
.dtl-ship-modal__close:focus {
  background: #e7f0f8;
}

.dtl-ship-modal__body {
  overflow: auto;
  padding: 16px;
  -webkit-overflow-scrolling: touch;
}

.dtl-ship-rows__free {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: #1c2b46;
}

.dtl-ship-rows {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dtl-ship-rows li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #e6eef6;
}

.dtl-ship-rows li:last-child {
  border-bottom: 0;
}

.dtl-ship-rows strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: #1c2b46;
}

.dtl-ship-rows small {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.35;
  color: #64758a;
}

/* Old responsive.less hid #desc under 700px and expected a removed #desc-respo block. */
@media (max-width: 700px) {
  #desc.dtl-content {
    display: block !important;
  }
}

.dtl-ship-rows b {
  flex-shrink: 0;
  font-size: 16px;
  font-weight: 700;
  color: #005bb7;
  white-space: nowrap;
}

.dtl-ship-rows__pay {
  margin: 4px 0 0;
  padding-top: 12px;
  border-top: 1px solid #e6eef6;
  font-size: 13px;
  line-height: 1.45;
  color: #64758a;
}

.dtl-ask {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dtl-ask__input,
#question-modal .dtl-ask textarea,
#question-modal .dtl-ask input[type="text"],
#question-modal .dtl-ask input[type="email"],
#question-modal .dtl-ask input[type="tel"] {
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #e3ebf3;
  border-radius: 10px;
  background: #fff;
  color: #1c2b46;
  font-size: 15px;
  line-height: 1.4;
  box-shadow: none;
}

#question-modal .dtl-ask textarea {
  min-height: 110px;
  resize: vertical;
}

.dtl-ask__input:focus,
#question-modal .dtl-ask textarea:focus,
#question-modal .dtl-ask input:focus {
  outline: none;
  border-color: #005bb7;
}

.dtl-ask__gdpr {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 2px 0 0;
  color: #64758a;
  font-size: 13px;
  line-height: 1.4;
}

.dtl-ask__gdpr label {
  margin: 0;
  font-weight: 400;
}

.dtl-ask__gdpr input {
  flex-shrink: 0;
  margin-top: 2px;
}

.dtl-ask__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dtl-ask__gdpr {
  flex-wrap: wrap;
}

.dtl-ask__error,
.dtl-ask__errors {
  color: #b42318;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.dtl-ask__gdpr .dtl-ask__error {
  flex-basis: 100%;
}

.dtl-ask__errors {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff1f1;
}

.dtl-ask__errors span {
  display: block;
}

.dtl-ask__field.has-error textarea,
.dtl-ask__field.has-error input,
.dtl-ask__gdpr.has-error input {
  border-color: #d64545 !important;
}

#question-modal .dtl-ask__submit {
  width: 100%;
  height: 48px;
  margin-top: 4px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: #3d9e2a !important;
  color: #fff !important;
  font-size: 16px;
  font-weight: 700;
  line-height: 48px;
  cursor: pointer;
}

#question-modal .dtl-ask__submit:hover {
  background: #348626 !important;
}

.dtl-ask__result {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 8px 8px;
  text-align: center;
}

.dtl-ask__result .fa-check {
  color: #3d9e2a;
  font-size: 36px;
}

.dtl-ask__result p {
  margin: 0;
  color: #1c2b46;
  font-size: 16px;
  font-weight: 700;
}

@media (max-width: 700px) {
  #dtl-ship-modal.modal.show,
  #question-modal.modal.show {
    padding: 12px;
  }

  #dtl-ship-modal .modal-dialog,
  #question-modal .modal-dialog {
    margin: 0;
    height: auto;
    max-width: none;
    max-height: calc(100% - 24px);
  }

  .dtl-ship-modal__title {
    font-size: 18px;
  }
}

.dtl-facts {
  display: flex;
  justify-content: flex-start;
  gap: 28px;
  margin: 4px 0 16px;
  padding: 0;
}

.dtl-facts li {
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  margin: 0;
  padding: 0 4px;
  text-align: center;
}

.dtl-facts li::before {
  content: none;
}

.dtl-facts__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  margin-bottom: 8px;
}

.dtl-facts__icon img {
  display: block;
  width: 48px;
  height: 48px;
}

.dtl-facts__value {
  color: #1c2430;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}

.dtl-facts__label {
  margin-top: 2px;
  color: #7b8794;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
}

.dtl-offer {
  margin: 8px 0 16px;
  padding: 16px 16px 0;
  background: #fff;
  border: 1px solid #e6ebf0;
  border-radius: 12px;
}

.dtl-offer__top {
  margin-bottom: 14px;
}

.dtl-offer .dtl-info__avail {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.dtl-offer .dtl-info__avail i {
  font-size: 9px;
}

.dtl-offer__eta {
  margin: 6px 0 0;
  font-size: 16px;
  line-height: 1.35;
  color: #1c2430;
}

.dtl-offer__eta strong {
  font-weight: 700;
}

.dtl-offer__row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dtl-offer .dtl-qty {
  height: 48px;
  padding: 4px;
  border: 0;
  border-radius: 999px;
  background: #f3f5f7;
  overflow: hidden;
}

.dtl-offer .dtl-qty__btn,
.dtl-offer .dtl-qty__input {
  width: 36px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #1c2430;
  font-size: 18px;
}

.dtl-offer .dtl-qty__input {
  width: 28px;
  font-size: 16px;
  font-weight: 600;
  padding: 0;
}

.dtl-offer__price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  line-height: 1.1;
}

.dtl-offer__price-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.dtl-offer__old {
  color: #8d97a3;
  font-size: 15px;
  font-weight: 500;
  text-decoration: line-through;
}

.dtl-offer__off {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 6px;
  border-radius: 4px;
  background: #eef1f4;
  color: #44536a;
  font-size: 12px;
  font-weight: 700;
}

.dtl-offer__now,
.dtl-offer__now span,
.dtl-sticky__price {
  color: #d32f2f;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.4px;
  line-height: 1;
}

.dtl-offer .dtl-cart__btn,
.dtl-offer .dtl-watchdog-btn {
  margin-left: auto;
  flex: 0 0 auto;
  min-width: 210px;
  height: 58px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 700;
}

.dtl-offer__ship {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 14px -16px 0;
  padding: 12px 16px;
  border-top: 1px solid #e6ebf0;
  background: transparent;
  color: #44536a;
  font-size: 14px;
  line-height: 1.35;
}

.dtl-offer__ship a {
  flex-shrink: 0;
  color: #1c2430;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dtl-offer__ship a:hover {
  color: #002b5c;
}

.dtl-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 18px;
  margin: 2px 0 16px;
  color: #44536a;
  font-size: 14px;
  line-height: 1.4;
}

.dtl-meta a,
.dtl-meta__ask {
  color: #002b5c;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dtl-meta a:hover,
.dtl-meta__ask:hover {
  color: #3d9e2a;
}

.dtl-meta__ask {
  margin-left: auto;
}

.dtl-meta strong {
  color: #1c2430;
  font-weight: 700;
}

@media (max-width: 700px) {
  .dtl-offer__row {
    flex-wrap: wrap;
  }

  .dtl-offer .dtl-cart__btn,
  .dtl-offer .dtl-watchdog-btn {
    width: 100%;
    margin-left: 0;
  }

  .dtl-gallery {
    flex-direction: column;
  }

  .dtl-gallery__link img {
    max-height: 420px;
  }

  .dtl-gallery__rail {
    order: 0;
    width: auto;
    flex: none;
  }

  .dtl-gallery__shift {
    display: none;
  }

  .dtl-gallery__thumbs {
    order: 0;
    flex-direction: row;
    flex-wrap: wrap;
    flex-basis: auto;
    width: auto;
    max-height: none;
    overflow: visible;
  }

  .dtl-gallery__thumb {
    width: 84px;
    height: 84px;
  }

  .dtl-offer__ship {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}
