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

body {
  min-width: 320px;
}

img,
svg,
video,
canvas,
iframe {
  max-width: 100%;
}

img,
video {
  height: auto;
}

pre,
code,
td,
th,
p {
  overflow-wrap: anywhere;
}

button,
input,
select,
textarea {
  max-width: 100%;
}

input,
select,
textarea,
button {
  touch-action: manipulation;
}

.custom-navbar .custom-navbar-cta {
  flex-direction: row;
  align-items: center;
  gap: .4rem;
}

.custom-navbar .custom-navbar-cta li:first-child {
  margin-right: 0;
}

.custom-navbar .custom-navbar-cta .nav-link {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.custom-navbar .custom-navbar-cta img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.custom-navbar .navbar-toggler {
  min-width: 44px;
  min-height: 44px;
  margin-left: .35rem;
}

.product-section .product-item {
  min-width: 0;
}

.article-detail-section > .container > .row > [class*="col-"] {
  min-width: 0;
}

.article-detail-section > .container > .row > [class*="col-"] > img {
  display: block;
  width: 100%;
  max-height: 620px;
  object-fit: contain;
}

.product-section .product-item .product-thumbnail {
  display: block;
  width: 100%;
  height: clamp(150px, 21vw, 260px);
  object-fit: contain;
}

.product-section .product-item h3,
.product-section .product-item strong,
.product-category {
  overflow-wrap: anywhere;
}

.site-blocks-table {
  max-width: 100%;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.site-blocks-table table {
  margin-bottom: 0;
}

.account-section,
.calculator-panel,
.bg-white {
  min-width: 0;
}

#clientOrdersChart {
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.client-chatbot-panel {
  display: flex;
  height: min(720px, calc(100vh - 105px));
  height: min(720px, calc(100dvh - 105px));
  max-height: min(720px, calc(100vh - 105px));
  max-height: min(720px, calc(100dvh - 105px));
  flex-direction: column;
  min-height: 0;
}

.client-chatbot-history {
  min-height: 0;
  overscroll-behavior: contain;
  overflow-wrap: anywhere;
}

.client-chat-bubble,
.client-chat-attachment {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.client-chatbot-panel img,
.modal img {
  max-width: 100%;
}

.modal-content,
.modal-body {
  min-width: 0;
}

  #calculator-preview-modal .modal-dialog {
  max-height: calc(100vh - 1rem);
  max-height: calc(100dvh - 1rem);
}

#calculator-preview-modal .modal-content {
  max-height: calc(100vh - 1rem);
  max-height: calc(100dvh - 1rem);
}

  #calculator-preview-modal .calculator-preview-modal__body {
  min-height: 0;
  overflow: auto;
}

.footer-section .links-wrap > [class*="col-"],
.footer-section .copyright [class*="col-"] {
  min-width: 0;
}

@media (max-width: 1199.98px) {
  .custom-navbar {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .custom-navbar .navbar-brand {
    font-size: clamp(1.4rem, 3vw, 2rem);
  }

  .hero {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .untree_co-section,
  .product-section {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }
}

@media (max-width: 991.98px) {
  .client-page-banner .intro-excerpt {
    max-width: 100%;
  }

  .client-page-banner .hero-img-wrap img {
    max-width: min(100%, 560px);
  }

  .product-section {
    padding-top: 3.5rem;
  }

  .shop-category-menu {
    justify-content: flex-start;
  }

  .client-chatbot {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
  }
}

@media (max-width: 767.98px) {
  .custom-navbar .container {
    flex-wrap: wrap;
    column-gap: .25rem;
  }

  .custom-navbar .navbar-brand {
    margin-right: auto;
  }

  .custom-navbar .custom-navbar-cta {
    order: 0;
    margin-left: auto !important;
    padding-right: .25rem;
  }

  .custom-navbar .navbar-toggler {
    order: 1;
  }

  .custom-navbar .navbar-collapse {
    flex-basis: 100%;
    order: 2;
    max-width: 100%;
    margin-top: .5rem;
    padding-top: .5rem;
    border-top: 1px solid rgba(255, 255, 255, .16);
  }

  .custom-navbar .custom-navbar-nav {
    width: 100%;
    margin: 0 !important;
    padding: .25rem 0;
  }

  .custom-navbar .custom-navbar-nav .nav-link {
    min-height: 44px;
    padding: .65rem .35rem;
  }

  .hero {
    padding: 2.5rem 0;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    line-height: 1.12;
    margin-bottom: 1rem;
  }

  .hero .hero-img-wrap img,
  .client-page-banner .hero-img-wrap img {
    position: relative;
    inset: auto;
    display: block;
    width: 100%;
    max-height: 340px;
    object-fit: contain;
  }

  .hero .hero-img-wrap:after {
    display: none;
  }

  .untree_co-section,
  .product-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .product-section .row > .col-12.col-md-4.col-lg-3 {
    width: 50%;
    padding-right: .55rem;
    padding-left: .55rem;
  }

  .product-section .product-item {
    padding: .65rem .35rem 2.8rem;
  }

  .product-section .product-item .product-thumbnail {
    height: clamp(140px, 36vw, 220px);
    margin-bottom: .9rem;
  }

  .product-section .product-item h3 {
    font-size: .95rem;
    line-height: 1.35;
  }

  .product-section .product-item strong {
    font-size: 1rem !important;
  }

  .product-section .product-item .icon-cross {
    bottom: 0;
    opacity: 1;
    visibility: visible;
  }

  .product-section .product-item:hover .product-thumbnail {
    top: 0;
  }

  .product-section .product-item:hover:before {
    height: 0;
  }

  .shop-category-menu {
    gap: .5rem;
  }

  .shop-category-menu a {
    min-height: 44px;
    padding: .55rem .85rem;
  }

  .shop form .input-group {
    flex-wrap: wrap;
    gap: .5rem;
  }

  .shop form .input-group .form-control {
    flex: 1 1 100%;
    border-radius: .5rem !important;
  }

  .shop form .input-group .btn {
    flex: 1 1 auto;
    min-height: 44px;
    margin: 0 !important;
    border-radius: .5rem !important;
  }

  .cart-preview-modal .modal-dialog {
    margin: .5rem;
    max-width: calc(100% - 1rem);
  }

  .cart-preview-modal .modal-footer {
    flex-wrap: wrap;
    gap: .5rem;
  }

  .cart-preview-modal .modal-footer > * {
    flex: 1 1 100%;
    margin: 0;
  }

  .cart-preview-action {
    width: 100%;
    min-height: 44px;
  }

  .site-blocks-table table {
    min-width: 650px;
  }

  .client-chatbot {
    right: max(10px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
  }

  .client-chatbot-toggle {
    min-height: 46px;
    padding: 0 14px;
  }

  .client-chatbot-panel {
    width: min(380px, calc(100vw - 20px - env(safe-area-inset-left) - env(safe-area-inset-right)));
    height: min(720px, calc(100vh - 38px - env(safe-area-inset-top)));
    height: min(720px, calc(100dvh - 38px - env(safe-area-inset-top)));
    max-height: min(720px, calc(100vh - 38px - env(safe-area-inset-top)));
    max-height: min(720px, calc(100dvh - 38px - env(safe-area-inset-top)));
    padding: 10px;
  }

  .client-chatbot-history {
    flex: 1 1 180px;
    max-height: none;
    min-height: 120px;
    margin-bottom: 0;
    padding: 8px;
  }

  .client-chatbot-header > .d-flex {
    flex-wrap: nowrap;
    align-items: center !important;
    gap: 6px !important;
  }

  .client-chatbot-header {
    margin-bottom: 6px;
  }

  .client-chatbot-header > .d-flex > div {
    min-width: 0;
  }

  .client-chatbot-header strong {
    font-size: 13px;
    line-height: 1.2;
  }

  .client-chatbot-header small {
    display: block;
    font-size: 10px;
    line-height: 1.25;
  }

  .client-chatbot .client-chat-new-discussion {
    flex: 0 0 auto;
    gap: 4px;
    min-height: 38px;
    padding: 5px 7px;
    font-size: 11px;
    line-height: 1.2;
  }

  .client-chatbot .client-chat-new-discussion i {
    font-size: 13px;
  }

  .client-chatbot .client-chat-history-selector {
    margin-bottom: 6px;
    padding: 5px;
  }

  .client-chat-history-selector-heading {
    gap: 5px;
    margin-bottom: 3px;
  }

  .client-chat-history-selector-icon {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
    font-size: 13px;
  }

  .client-chat-history-selector-heading small {
    display: block;
    font-size: 9px;
  }

  .client-chatbot .client-chat-history-selector .form-select {
    height: 32px;
    min-height: 32px;
    padding-top: 2px;
    padding-bottom: 2px;
    font-size: 11px;
  }

  .client-chatbot-panel > [data-chat-form] .form-group {
    margin-bottom: 4px !important;
  }

  .client-chatbot-panel > [data-chat-form] .form-control {
    height: 36px;
    min-height: 36px;
    padding: 6px 9px;
    font-size: 13px;
  }

  .client-chatbot-panel > [data-chat-form] textarea.form-control {
    box-sizing: border-box;
    height: 52px !important;
    min-height: 52px !important;
    resize: vertical;
  }

  .client-chatbot-panel > [data-chat-form] .d-flex.align-items-center {
    gap: 6px !important;
    margin-bottom: 4px !important;
  }

  .client-chatbot-panel form .d-flex.align-items-center {
    flex-wrap: wrap;
  }

  .client-chat-attach-button,
  .client-chat-attach-button i {
    min-height: 36px;
    height: 36px;
    line-height: 36px;
  }

  .client-chat-attach-button {
    padding: 0 8px;
  }

  .client-chatbot-panel > [data-chat-form] .d-flex.align-items-center small {
    flex: 1 1 180px;
    min-width: 0;
    font-size: 10px;
    line-height: 1.3;
  }

  .client-chatbot-panel > [data-chat-form] .alert {
    padding: 5px 8px !important;
    margin-bottom: 6px !important;
    font-size: 11px;
  }

  .client-chatbot-panel > [data-chat-form] [data-chat-submit] {
    height: 40px;
    min-height: 40px;
    padding-top: 5px;
    padding-bottom: 5px;
  }

  .account-section {
    padding: 1rem !important;
  }

  @media (min-width: 375px) and (max-width: 575.98px) {
    .client-chat-identity-fields {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 6px;
      margin-bottom: 6px;
    }
  }

  .account-section .table-responsive {
    margin-right: -.25rem;
    margin-left: -.25rem;
  }

  .account-section .table-responsive table {
    min-width: 620px;
  }

  .footer-section .copyright .d-inline-flex {
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem 1rem;
    margin: 0 !important;
  }

  .footer-section .copyright .d-inline-flex li {
    margin: 0 !important;
  }
}

@media (max-width: 575.98px) {
  body {
    font-size: 15px;
    line-height: 1.55;
  }

  .container {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .row.g-5 {
    --bs-gutter-x: 1.5rem;
  }

  .custom-navbar {
    padding-top: .6rem;
    padding-bottom: .6rem;
  }

  .custom-navbar .navbar-brand {
    font-size: 1.45rem;
  }

  .custom-navbar .custom-navbar-cta {
    gap: 0;
    padding-right: 0;
  }

  .custom-navbar .custom-navbar-cta .nav-link {
    min-width: 40px;
    min-height: 44px;
    padding: .45rem;
  }

  .custom-navbar .navbar-toggler {
    margin-left: .1rem;
    padding: .35rem .5rem;
  }

  .client-page-banner .row {
    margin-right: 0;
    margin-left: 0;
  }

  .client-page-banner .intro-excerpt .btn {
    margin: .25rem .25rem .25rem 0;
  }

  .homepage-banner-carousel .carousel-control-prev,
  .homepage-banner-carousel .carousel-control-next {
    width: 10%;
  }

  .homepage-banner-carousel .carousel-indicators {
    margin-bottom: .35rem;
  }

  .homepage-3d-banner__model {
    max-width: 42vw;
  }

  .product-section .row > .col-12.col-md-4.col-lg-3 {
    padding-right: .35rem;
    padding-left: .35rem;
  }

  .product-section .product-item .product-thumbnail {
    height: clamp(130px, 39vw, 190px);
  }

  .untree_co-section .p-4,
  .untree_co-section .p-lg-5 {
    padding: 1rem !important;
  }

  .form-control,
  .form-select,
  select.form-control {
    min-height: 48px;
    font-size: 16px;
  }

  textarea.form-control {
    min-height: 110px;
  }

  .btn,
  button.btn {
    min-height: 44px;
    padding: .65rem 1rem;
  }

  .input-group > .btn {
    padding-right: .75rem;
    padding-left: .75rem;
  }

  .untree_co-section .row > [class*="col-"] {
    min-width: 0;
  }

  .site-blocks-table table {
    min-width: 0;
    width: 100%;
  }

  .site-blocks-table thead {
    display: none;
  }

  .site-blocks-table tbody,
  .site-blocks-table tbody tr,
  .site-blocks-table tbody td {
    display: block;
    width: 100%;
  }

  .site-blocks-table tbody tr {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) auto;
    grid-template-areas:
      "image name remove"
      "image price price"
      "image quantity quantity"
      "image total total";
    gap: .2rem .75rem;
    margin-bottom: .75rem;
    padding: .75rem;
    border: 1px solid #dce5e4;
    border-radius: .75rem;
  }

  .site-blocks-table tbody tr:first-child td {
    border-top: 0 !important;
  }

  .site-blocks-table tbody td {
    min-width: 0;
    padding: .2rem 0;
    border: 0;
    text-align: left;
  }

  .site-blocks-table tbody td.product-thumbnail {
    grid-area: image;
    width: auto;
    align-self: start;
  }

  .site-blocks-table tbody td.product-thumbnail img {
    width: 72px;
    max-height: 88px;
    object-fit: contain;
  }

  .site-blocks-table tbody td.product-name {
    grid-area: name;
  }

  .site-blocks-table tbody td.product-price {
    grid-area: price;
  }

  .site-blocks-table tbody td.product-quantity {
    grid-area: quantity;
  }

  .site-blocks-table tbody td.product-total {
    grid-area: total;
  }

  .site-blocks-table tbody td.product-remove {
    grid-area: remove;
    justify-self: end;
  }

  .site-blocks-table tbody td.product-price::before,
  .site-blocks-table tbody td.product-quantity::before,
  .site-blocks-table tbody td.product-total::before {
    display: inline-block;
    min-width: 4.5rem;
    color: #6a6a6a;
    font-size: .8rem;
  }

  .site-blocks-table tbody td.product-price::before {
    content: "Prix";
  }

  .site-blocks-table tbody td.product-quantity::before {
    content: "Quantité";
  }

  .site-blocks-table tbody td.product-total::before {
    content: "Total";
  }

  .site-blocks-table .quantity-container {
    max-width: 160px !important;
    margin: 0 !important;
  }

  .site-blocks-table .quantity-container .form-control {
    min-width: 42px;
    padding: .35rem;
  }

  .client-chatbot-panel {
    width: calc(100vw - 20px - env(safe-area-inset-left) - env(safe-area-inset-right));
  }

  .client-chatbot-panel .btn {
    min-height: 40px;
  }

#calculator-preview-modal .modal-dialog {
    max-width: calc(100% - 1rem);
    margin: .5rem;
  }

#calculator-preview-modal .calculator-preview-modal__body {
  height: 70vh;
  height: 70dvh;
  max-height: 70vh;
  max-height: 70dvh;
    padding: .75rem;
    overflow: auto;
  }

  .footer-section .row.g-5 {
    --bs-gutter-y: 2rem;
  }

  .footer-section .sofa-img {
    position: absolute;
    top: -170px;
    right: 0;
    display: block;
    margin: 0;
  }

  .footer-section .sofa-img img {
    width: min(100%, 180px);
    max-width: 180px;
  }

  .footer-section .custom-social {
    flex-wrap: wrap;
  }
}

@media (max-width: 374.98px) {
  .custom-navbar .navbar-brand {
    font-size: 1.25rem;
  }

  .custom-navbar .custom-navbar-cta .nav-link {
    min-width: 36px;
    padding: .35rem;
  }

  .product-section .row > .col-12.col-md-4.col-lg-3 {
    width: 100%;
  }

  .product-section .product-item .product-thumbnail {
    height: 220px;
  }
}

@media (max-width: 374.98px) {
  body {
    min-width: 0;
  }

  .client-chatbot-panel {
    height: min(720px, calc(100vh - 30px - env(safe-area-inset-top)));
    height: min(720px, calc(100dvh - 30px - env(safe-area-inset-top)));
    max-height: min(720px, calc(100vh - 30px - env(safe-area-inset-top)));
    max-height: min(720px, calc(100dvh - 30px - env(safe-area-inset-top)));
    padding: 8px;
  }

  .client-chatbot-header small {
    display: none;
  }

  .client-chatbot .client-chat-new-discussion {
    min-height: 36px;
    padding: 4px 6px;
    font-size: 10px;
  }

  .client-chat-history-selector-heading small {
    display: none;
  }

  .client-chatbot-panel > [data-chat-form] .form-control {
    height: 34px;
    min-height: 34px;
  }

  .client-chat-identity-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .client-chatbot-panel > [data-chat-form] textarea.form-control {
    height: 44px !important;
    min-height: 44px !important;
  }

  .client-chatbot-panel > [data-chat-form] .d-flex.align-items-center small {
    font-size: 9px;
  }
}

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

.order-progress__steps {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin: 2.5rem 10px 0;
  padding: 24px 0 0;
}

.order-progress__track {
  position: absolute;
  z-index: 0;
  top: 33px;
  right: 0;
  left: 0;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(to right, #2878bd 0 var(--order-progress), #198754 var(--order-progress) 100%);
}

.order-progress__step {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 0 0 0;
  flex-direction: column;
  align-items: center;
  color: #198754;
  text-align: center;
}

.order-progress__dot {
  display: block;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border: 3px solid #198754;
  border-radius: 50%;
  background: #198754;
  box-shadow: 0 0 0 3px #fff;
}

.order-progress__step.is-complete {
  color: #2878bd;
}

.order-progress__step.is-complete .order-progress__dot {
  border-color: #2878bd;
  background: #2878bd;
}

.order-progress__step.is-current .order-progress__dot {
  box-shadow: 0 0 0 4px #d9eee3;
}

.order-progress__step.is-complete.is-current .order-progress__dot {
  box-shadow: 0 0 0 4px #dcecf8;
}

.order-progress__label {
  width: clamp(90px, 16vw, 180px);
  margin-top: 1rem;
  font-weight: 600;
  line-height: 1.35;
}

.order-progress__icon {
  position: absolute;
  z-index: 2;
  top: -24px;
  display: none;
  width: 20px;
  height: 20px;
  color: inherit;
}

.order-progress__icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.order-progress__icon.is-reached {
  display: block;
}

@media (max-width: 575.98px) {
  .order-progress__steps {
    margin-right: 8px;
    margin-left: 8px;
  }

  .order-progress__label {
    width: clamp(58px, 19vw, 76px);
    margin-top: .8rem;
    font-size: .72rem;
    overflow-wrap: anywhere;
  }

  .order-progress__icon {
    width: 18px;
    height: 18px;
  }
}
