/**
 * Order Samples Drawer Styles
 * Opens from LEFT side (opposite of cart drawer)
 * Mobile-first approach
 */
.order-samples-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 100000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.order-samples-overlay.active {
  opacity: 1;
  visibility: visible;
}

.order-samples-drawer {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  max-width: 100%;
  height: 100dvh;
  background-color: #fff;
  z-index: 100001;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  transition: left 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.order-samples-drawer.active {
  left: 0;
}
@media (width > 768px) {
  .order-samples-drawer {
    width: 43%;
  }
}

.order-samples-drawer-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}

.order-samples-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  min-height: 20rem;
  width: 100%;
}

.order-samples-loading-spinner {
  width: 4rem;
  height: 4rem;
  border: 0.3rem solid #f3f3f3;
  border-top: 0.3rem solid #db0032;
  border-radius: 50%;
  animation: order-samples-spin 1s linear infinite;
}

@keyframes order-samples-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.order-samples-drawer-header {
  display: flex;
  flex-direction: column;
  padding: 0;
  border-bottom: 1px solid #d9d9d9;
  background-color: #fff;
  flex-shrink: 0;
  position: relative;
}
.order-samples-drawer-header .hue-swatch-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 0.2rem;
  width: 2.4rem;
  background-color: #000;
  transform: translateX(0);
  transition: left 0.2s ease, width 0.2s ease;
  opacity: 0;
}
.order-samples-drawer-header .hue-swatch-indicator.active {
  opacity: 1;
}

.order-samples-header-content {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  padding: 6.5rem 2.4rem 1rem;
}
@media (width > 768px) {
  .order-samples-header-content {
    padding: 6.5rem 5rem 1rem;
  }
}

.order-samples-order-info {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  position: relative;
  z-index: 1;
  width: 100%;
}

.order-samples-title-wrapper {
  display: flex !important;
  gap: 0.3rem;
  visibility: visible !important;
  opacity: 1 !important;
}
.order-samples-title-wrapper .order-samples-title {
  margin: 0;
  font-family: "Simpler", sans-serif;
  font-weight: 900;
  font-size: 2.8rem;
  line-height: 2.8rem;
  color: var(--black-main, #333032);
  text-transform: uppercase;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}
.order-samples-title-wrapper .order-samples-count-number {
  font-family: "Simpler", sans-serif;
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.2;
  color: var(--black-main, #333032);
  margin-top: 0;
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.order-samples-hue-swatches {
  display: flex;
  gap: 1.6rem;
  align-items: flex-end;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
  pointer-events: auto;
}

.order-samples-hue-swatch {
  position: relative;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0;
  border: 1px solid rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
  cursor: default;
  pointer-events: none;
  z-index: 1;
  transition: border-radius 0.2s ease;
}
.order-samples-hue-swatch.active {
  border-radius: 0 0 1rem 0;
}

.order-samples-close {
  position: absolute;
  top: 1.8rem;
  left: 1.9rem;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: opacity 0.2s ease;
}
.order-samples-close:hover {
  opacity: 0.7;
}
.order-samples-close svg {
  width: 2.56rem;
  height: 2.56rem;
}
@media (width > 768px) {
  .order-samples-close svg {
    width: 3.56rem;
    height: 3.56rem;
  }
}
.order-samples-close svg {
  color: #000;
}
.order-samples-close svg path {
  stroke: #000;
}

.order-samples-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

.hue-order-items {
  padding: 0;
}

.hue-order-item {
  padding: 3.2rem 2.4rem 0;
}
@media (width > 768px) {
  .hue-order-item {
    padding: 2.4rem 4.8rem 0;
  }
}
.hue-order-item.invalid .hue-variant-group {
  border-color: #f44336;
}

.hue-order-item-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.6rem;
  margin-bottom: 3rem;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid #d9d9d9;
  position: relative;
  width: 100%;
}
.hue-order-item-header .hue-order-item-remove {
  margin-left: auto;
}

.hue-order-item-remove {
  font-family: "Simpler", sans-serif;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.2;
  color: #000;
  text-decoration: underline;
  -webkit-text-decoration-skip-ink: none;
          text-decoration-skip-ink: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  flex-shrink: 0;
}
@media (width > 768px) {
  .hue-order-item-remove {
    font-size: 1.8rem;
  }
}
.hue-order-item-remove:hover {
  color: #333;
}
.hue-order-item-remove .remove-text-mobile {
  display: inline;
}
.hue-order-item-remove .remove-text-desktop {
  display: none;
}
@media (width > 768px) {
  .hue-order-item-remove .remove-text-mobile {
    display: none;
  }
  .hue-order-item-remove .remove-text-desktop {
    display: inline;
  }
}

.hue-order-item-right {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  flex: 1;
  justify-content: flex-start;
}

.hue-order-item-info {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: right;
}

.hue-order-item-name,
.hue-order-item-code {
  font-family: Nexa, Simpler;
  font-weight: 800;
  font-size: 1.6rem;
  line-height: 1.8685rem;
  letter-spacing: 0.0032px;
  color: #000;
  text-transform: uppercase;
}

.hue-order-item-swatch-wrapper {
  position: relative;
  flex-shrink: 0;
}

.hue-order-item-swatch {
  width: 4.6rem;
  height: 4.6rem;
  border-radius: 0;
  flex-shrink: 0;
}

.hue-order-item-image {
  width: 4.6rem;
  height: 4.6rem;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 0;
  flex-shrink: 0;
  position: absolute;
  top: 0;
  left: 0;
}

.hue-order-item-variants {
  display: flex;
  flex-direction: column;
  gap: 3.2rem;
  padding-bottom: 4.8rem;
}

.hue-variant-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}
@media (width > 768px) {
  .hue-variant-group {
    gap: 1.2rem;
  }
}

.hue-variant-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: flex-start;
  width: 100%;
}

.hue-variant-icon {
  width: 2.8rem;
  height: 2.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  rotate: 180deg;
}
.hue-variant-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hue-variant-label {
  font-family: "Simpler", sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1.2;
  color: #000;
  text-align: right;
}

.hue-variant-options {
  display: flex;
  flex-direction: row;
  gap: 1.2rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.hue-variant-btn {
  height: 4.6rem;
  min-width: 10rem;
  padding: 0.8rem 2rem;
  border: 1px solid #B2B2B2;
  background-color: #fff;
  color: #333032;
  font-family: "Simpler", sans-serif;
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1.2;
  cursor: pointer;
  border-radius: 0.4rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 calc((100% - 2.4rem) / 3);
}
@media (width > 768px) {
  .hue-variant-btn {
    flex: 0 0 auto;
    width: auto;
    font-size: 1.6rem;
    padding: 0.8rem 3.2rem;
  }
}
.hue-variant-btn[data-value=solid] {
  text-transform: uppercase;
}
.hue-variant-btn:hover {
  border-color: #999;
  background-color: #f5f5f5;
}
.hue-variant-btn.active {
  background-color: #000;
  color: #fff;
  border-color: #000;
}
.hue-variant-btn.active .hue-variant-icon-large {
  filter: brightness(0) invert(1);
}
.hue-variant-btn.active .hue-variant-sublabel {
  color: #fff;
}
.hue-variant-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  display: flex;
}
.hue-variant-btn:disabled .hue-variant-icon-large svg path,
.hue-variant-btn:disabled .hue-variant-icon-large svg line,
.hue-variant-btn:disabled .hue-variant-icon-large svg circle,
.hue-variant-btn:disabled .hue-variant-icon-large svg rect {
  stroke: var(--grey-line, #D9D9D9);
}
.hue-variant-btn:disabled:hover {
  border-color: #d9d9d9;
  background-color: #fff;
}

.hue-variant-btn.shlict-disabled.active {
  background-color: #fff !important;
  color: inherit !important;
  border-color: #d9d9d9 !important;
}
.hue-variant-btn.shlict-disabled.active .hue-variant-icon-large {
  filter: none !important;
}
.hue-variant-btn.shlict-disabled.active .hue-variant-sublabel {
  color: #666 !important;
}

.hue-variant-btn.shlict-disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  background-color: #fff !important;
  color: inherit !important;
  border-color: #d9d9d9 !important;
}
.hue-variant-btn.shlict-disabled .hue-variant-icon-large svg path,
.hue-variant-btn.shlict-disabled .hue-variant-icon-large svg line,
.hue-variant-btn.shlict-disabled .hue-variant-icon-large svg circle,
.hue-variant-btn.shlict-disabled .hue-variant-icon-large svg rect {
  stroke: var(--grey-line, #D9D9D9) !important;
}
.hue-variant-btn.shlict-disabled .hue-variant-sublabel {
  color: #666 !important;
}

.hue-variant-btn-large {
  padding: 1.4rem 2rem;
  min-width: 14rem;
  height: 7.7rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.2rem;
  text-align: right;
  justify-content: flex-start;
  flex: 0 0 calc((100% - 1.2rem) / 2);
}
@media (width > 768px) {
  .hue-variant-btn-large {
    flex: 0 0 auto;
    min-width: 16.9rem;
  }
}

.hue-variant-group--sample-type .hue-variant-description {
  font-family: "Simpler", sans-serif;
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1.4;
  color: #333032;
  margin: 0;
  text-align: right;
  max-width: 47rem;
}
.hue-variant-group--sample-type .hue-variant-options {
  flex-direction: column;
  flex-wrap: nowrap;
}
@media (width > 768px) {
  .hue-variant-group--sample-type .hue-variant-options {
    flex-direction: row;
    flex-wrap: wrap;
  }
}
.hue-variant-group--sample-type .hue-variant-btn-large {
  flex: 0 0 auto;
  width: 100%;
}
@media (width > 768px) {
  .hue-variant-group--sample-type .hue-variant-btn-large {
    width: auto;
  }
}

.hue-variant-icon-large {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.2rem;
  height: 3.2rem;
  flex-shrink: 0;
  min-height: 3.2rem;
}
.hue-variant-icon-large svg {
  width: 100%;
  height: 100%;
  display: block;
}
.hue-variant-icon-large:empty {
  display: none;
}

.hue-variant-text-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: flex-start;
  flex: 1;
}

.hue-variant-label-large {
  font-size: 1.6rem;
  font-weight: 600;
}

.hue-variant-sublabel {
  font-size: 1.4rem;
  color: #666;
}

.hue-plaster-options {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  width: 100%;
}

.hue-plaster-btn {
  width: 100%;
  padding: 0;
  background: transparent;
  border: none;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--black-main, #333);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.8rem;
  flex: 0 0 calc((100% - 2.4rem) / 3);
}
@media (width > 768px) {
  .hue-plaster-btn {
    flex: 0 0 auto;
    width: auto;
    min-width: 12rem;
  }
}
.hue-plaster-btn.active .hue-plaster-texture {
  border-color: #000;
  border-width: 1.138px;
  border-radius: 2px;
}
.hue-plaster-btn:disabled, .hue-plaster-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
.hue-plaster-btn:disabled .hue-plaster-texture, .hue-plaster-btn.disabled .hue-plaster-texture {
  opacity: 0.5;
}
.hue-plaster-btn:disabled .hue-plaster-label, .hue-plaster-btn.disabled .hue-plaster-label {
  opacity: 0.5;
}
.hue-plaster-btn .hue-plaster-texture {
  width: 100%;
  aspect-ratio: 1;
  background-repeat: repeat;
  background-size: auto;
  background-position: center;
  background-color: #fff;
  border-radius: 2px;
  border: 1.138px solid #D9D9D9;
  transition: border-color 0.2s ease, border-width 0.2s ease;
}
.hue-plaster-btn .hue-plaster-label {
  padding: 0;
  background: transparent;
  width: 100%;
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.4;
}
@media (width > 768px) {
  .hue-plaster-btn .hue-plaster-label {
    font-size: 1.4rem;
  }
}

.hue-order-navigation {
  display: flex;
  justify-content: space-between;
  gap: 1.6rem;
  padding: 2rem 2.4rem 3.2rem;
  border-top: 1px solid #d9d9d9;
}
@media (width > 768px) {
  .hue-order-navigation {
    padding: 2.4rem 4.8rem 4.8rem;
  }
}

.hue-nav-btn {
  flex: 1;
  padding: 1.6rem 2.4rem;
  background-color: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 0.4rem;
  font-size: 1.6rem;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
}
.hue-nav-btn:hover:not(:disabled) {
  background-color: #f5f5f5;
  border-color: #333;
}
.hue-nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.order-samples-drawer-footer {
  position: relative;
  padding: 0 2.4rem calc(2rem + env(safe-area-inset-bottom, 0px)) 2.4rem;
  flex-shrink: 0;
  border-top: 0.1rem solid #d9d9d9;
  background-color: #fff;
  min-height: 7rem;
  margin-top: auto;
  display: flex !important;
  flex-direction: column-reverse;
  align-items: stretch;
  justify-content: space-between;
  gap: 0.6rem;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
@media (width > 768px) {
  .order-samples-drawer-footer {
    padding: 1rem 4.7rem 2.3rem;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
  }
}
.order-samples-drawer-footer .order-samples-title {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}
@media (width > 768px) {
  .order-samples-drawer-footer .order-samples-title {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}
.order-samples-drawer-footer .btn-add-another-sample-text {
  order: 2;
  width: 100%;
  justify-content: center;
}
@media (width > 768px) {
  .order-samples-drawer-footer .btn-add-another-sample-text {
    order: 0;
    width: auto;
  }
}
.order-samples-drawer-footer .btn-proceed-to-next {
  order: 1;
  width: 100%;
  justify-content: center;
}
@media (width > 768px) {
  .order-samples-drawer-footer .btn-proceed-to-next {
    order: 0;
    width: auto;
  }
}

.order-samples-drawer-footer.mini-cart-footer {
  flex-direction: column !important;
}
@media (width > 768px) {
  .order-samples-drawer-footer.mini-cart-footer {
    flex-direction: column !important;
    align-items: flex-start;
  }
}

.btn-add-another-sample-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  height: 4.6rem;
  padding: 0.8rem 2rem 0.7rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}
.btn-add-another-sample-text:hover {
  opacity: 0.8;
}
.btn-add-another-sample-text .btn-refresh-icon {
  width: 2.2rem;
  height: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.btn-add-another-sample-text .btn-refresh-icon svg {
  width: 2.2rem;
  height: 2.2rem;
}
.btn-add-another-sample-text .btn-add-sample-text {
  font-size: 1.6rem;
  font-weight: bold;
  font-family: "Simpler", sans-serif;
  color: #333032;
  text-decoration: underline;
  -webkit-text-decoration-skip-ink: none;
          text-decoration-skip-ink: none;
  text-transform: uppercase;
  line-height: 1.3;
  white-space: nowrap;
  text-align: right;
}

.order-samples-drawer-footer .order-samples-title {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 400;
  font-family: "Simpler", sans-serif;
  color: #b2b2b2;
  line-height: 1.2;
  white-space: pre-wrap;
  text-align: right;
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

.btn-proceed-to-next {
  padding: 1.6rem 2rem;
  background-color: var(--red-main, #db0032);
  color: #fff;
  border: none;
  border-radius: 0.4rem;
  font-size: 1.6rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, opacity 0.2s ease;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  flex-shrink: 0;
  white-space: nowrap;
}
.btn-proceed-to-next:hover:not(:disabled):not(.disabled) {
  background-color: var(--red-dark, #b80028);
}
.btn-proceed-to-next:active:not(:disabled):not(.disabled) {
  transform: scale(0.98);
}
.btn-proceed-to-next:disabled, .btn-proceed-to-next.disabled {
  background-color: #d9d9d9;
  color: #999;
  cursor: not-allowed;
  opacity: 0.6;
}
.btn-proceed-to-next:disabled .btn-proceed-icon path,
.btn-proceed-to-next:disabled .btn-proceed-icon line,
.btn-proceed-to-next:disabled .btn-proceed-icon circle, .btn-proceed-to-next.disabled .btn-proceed-icon path,
.btn-proceed-to-next.disabled .btn-proceed-icon line,
.btn-proceed-to-next.disabled .btn-proceed-icon circle {
  stroke: #999;
}
.btn-proceed-to-next:disabled:hover, .btn-proceed-to-next.disabled:hover {
  background-color: #d9d9d9;
}
.btn-proceed-to-next .btn-proceed-text {
  text-align: center;
}
.btn-proceed-to-next .btn-proceed-icon {
  align-items: center;
  font-size: 1.6rem;
  display: flex;
  justify-content: center;
}
.btn-proceed-to-next .btn-proceed-icon svg {
  width: 2rem;
  height: 2rem;
}
.btn-proceed-to-next .btn-proceed-icon path,
.btn-proceed-to-next .btn-proceed-icon line,
.btn-proceed-to-next .btn-proceed-icon circle {
  stroke: var(--white-main, #FFF);
}

.order-samples-empty {
  padding: 4.8rem;
  text-align: center;
  color: #666;
}

body.order-samples-open {
  overflow: hidden;
}

.hue-plaster-tabs-container {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
}

.hue-plaster-tabs {
  display: flex;
  gap: 17px;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
  position: relative;
}

.hue-plaster-tab {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: "Simpler", sans-serif;
  font-size: 16px;
  line-height: 1.2;
  color: #000;
  text-align: right;
  position: relative;
  white-space: nowrap;
  transition: font-weight 0.2s ease;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  vertical-align: top;
  max-width: 100%;
  overflow: visible;
  font-weight: 400;
  font-style: normal;
}
.hue-plaster-tab.active {
  font-weight: 700;
  font-style: normal;
}
.hue-plaster-tab.active::after {
  content: "";
  position: absolute;
  bottom: -1.1rem;
  right: 0;
  height: 2px;
  background-color: #000;
  width: 100%;
  min-width: 121px;
  pointer-events: none;
  z-index: 99;
}
.hue-plaster-tab:hover {
  opacity: 0.8;
}
.hue-plaster-tab:focus {
  outline: none;
}

.hue-plaster-tabs-underline {
  width: 100%;
  height: 1px;
  background-color: #E5E5E5;
  margin-top: 7px;
  position: relative;
}
