.bag__overlay.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.bag__overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

body.bag-open {
  overflow: hidden !important;
  touch-action: none;
}

aside#bag.bag.bag--mini {
  position: fixed;
  top: 0;
  right: 0;
  width: 435px;
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  background-color: #ffffff;
  z-index: 9999;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0.3s;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}

aside#bag.bag.bag--mini.is-visible {
  transform: translateX(0);
  visibility: visible;
}

@media (max-width: 768px) {
  aside#bag.bag.bag--mini {
    width: 100vw;
    max-width: 100vw;
  }
}

.bag__form {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  box-sizing: border-box;
}

.bag__header {
  height: 48px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  flex-shrink: 0;
  box-sizing: border-box;
}

.bag__header--left {
  display: flex;
  align-items: center;
}

.bag__header--logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.bag__header--logo-link .gl-logo__svg {
  width: 78px;
  height: 17px;
  display: block;
}

.bag__header--right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.bag__header--count {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #000000;
  white-space: nowrap;
}

.bag__header--close {
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  outline: none;
  color: #000000;
  box-sizing: border-box;
}

.bag__header--close:hover {
  opacity: 0.6;
}

.bag__content {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 140px;
  box-sizing: border-box;
}

.bag__container {
  padding: 0 16px;
  box-sizing: border-box;
}

.bag__title {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 16px 0 12px 0;
  color: #000000;
}

.bag__free-shipping-progress-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
  box-sizing: border-box;
}

.bag__free-shipping-progress-text {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  margin: 0;
  color: #000000;
  flex: 1;
}

.bag__free-shipping-progress {
  background-color: #e8e8e8;
  height: 3px;
  width: 110px;
  flex-shrink: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.bag__free-shipping-progress--inner {
  height: 100%;
  background-color: #0600ff;
  transition: width 0.3s ease-in-out;
}

.bag__items-wrapper {
  margin-bottom: 0;
}

.bag__items {
  display: flex;
  flex-direction: column;
}

.bag-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid #000000;
  position: relative;
  box-sizing: border-box;
}

.bag-item:last-of-type {
  border-bottom: 1px solid #000000;
}

.bag-item__photo {
  width: 96px;
  min-width: 96px;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bag-item__photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.bag-item__info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  min-width: 0;
}

.bag-item__info--top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.bag-item__title {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  margin: 0;
  color: #000000;
}

.bag-item__title a {
  color: #000000;
  text-decoration: none;
}

.bag-item__prices {
  display: flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.bag-item__price {
  font-size: 13px;
  font-weight: 500;
  color: #000000;
}

.bag-item__original-price--strike-through {
  font-size: 13px;
  color: #666666;
  text-decoration: line-through;
}

.bag-item__variants {
  margin: 6px 0 10px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bag-item__variant-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bag-item__variant-color {
  width: 9px;
  height: 9px;
  flex-shrink: 0;
  display: inline-block;
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-sizing: border-box;
}

.bag-item__variant {
  font-size: 12px;
  color: #666666;
  line-height: 1.3;
}

.bag-item__info--bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 8px;
}

.increment.increment--dark {
  display: inline-flex;
  align-items: center;
  border: 1px solid #000000;
  height: 28px;
  width: 84px;
  box-sizing: border-box;
}

.increment__btn {
  background: none;
  border: none;
  width: 26px;
  height: 100%;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  color: #000000;
  outline: none;
  box-sizing: border-box;
}

.increment__input.increment__input--dark {
  width: 32px;
  height: 100%;
  border: none;
  background: transparent;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: #000000;
  padding: 0;
  outline: none;
  -moz-appearance: textfield;
  box-sizing: border-box;
}

.increment__input::-webkit-outer-spin-button,
.increment__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.bag-item__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.bag-item__edit-btn,
.bag-item__remove-label {
  font-size: 12px;
  color: #000000;
  text-decoration: underline;
  text-underline-offset: 2px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  line-height: 1;
}

.bag-item__remove.btn-link {
  background: none;
  border: none;
  padding: 0;
  color: #000000;
  text-decoration: none;
  cursor: pointer;
}

.bag-item__edit-btn:hover,
.bag-item__remove-label:hover {
  opacity: 0.6;
}

.bag__free-samples-message {
  padding: 0 16px;
  margin: 16px 0;
  box-sizing: border-box;
}

.bag__free-samples-message-content {
  border-bottom: 1px solid #000000;
  padding-bottom: 16px;
}

.bag__free-samples-message p {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: #000000;
}

.bag__free-samples {
  padding: 0 16px;
  margin-bottom: 16px;
  box-sizing: border-box;
}

.bag__free-samples-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 12px;
  cursor: pointer;
  user-select: none;
}

.bag__free-samples-header--new-text {
  color: #0600ff;
  font-weight: 500;
  text-transform: uppercase;
  margin-right: 6px;
}

.bag__free-samples-header--inner {
  color: #000000;
  font-weight: 400;
}

.bag__free-samples-toggle-icon {
  font-size: 14px;
  font-weight: 500;
  color: #000000;
}

.bag__samples-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.bag__samples-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  background-color: #ffffff;
  border: none;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  cursor: pointer;
  padding: 0;
  outline: none;
  box-sizing: border-box;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  transition: opacity 0.25s ease;
}

.bag__samples-nav-btn.prev {
  left: 4px;
}

.bag__samples-nav-btn.next {
  right: 4px;
}

.bag__samples-nav-btn:disabled,
.bag__samples-nav-btn.is-disabled {
  opacity: 0;
  pointer-events: none;
}

.bag__samples-nav-btn:hover:not(:disabled) {
  animation: 1.5s linear infinite marching-ants-full-1;
  background-size: 5px 1px, 5px 1px, 1px 5px, 1px 5px;
  background-position: 0 0, 0 100%, 0 0, 100% 0;
  background-repeat: repeat-x, repeat-x, repeat-y, repeat-y;
  background-image: linear-gradient(to right, #000 50%, transparent 50%), linear-gradient(to right, #000 50%, transparent 50%), linear-gradient(to bottom, #000 50%, transparent 50%), linear-gradient(to bottom, #000 50%, transparent 50%);
}

.bag__samples-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  width: 100%;
  padding: 4px 16px;
  box-sizing: border-box;
}

.bag__samples-track::-webkit-scrollbar {
  display: none;
}

.bag__free-sample {
  display: flex;
  align-items: center;
  background-color: #f7f7f7;
  border: 1px solid transparent;
  padding: 0;
  height: 68px;
  min-width: 265px;
  max-width: 265px;
  flex-shrink: 0;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s, background-color 0.15s;
  box-sizing: border-box;
  position: relative;
}

.bag__free-sample:hover {
  border-color: rgba(0, 0, 0, 0.4);
}

.bag__free-sample.is-selected {
  background-color: #ffffff;
  border: 1px solid #000000;
}

.bag__free-sample-image-wrapper {
  width: 58px;
  height: 58px;
  min-width: 58px;
  background-color: transparent;
  border-right: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px 0 10px;
}

.bag__free-sample-image-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.bag__free-sample-content {
  padding: 0 16px 0 12px;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}

.bag__free-sample-title {
  font-family: var(--gl-pdp-font-body, 'Apercu', 'Gill Sans', sans-serif);
  font-size: 15px;
  font-weight: 400;
  margin: 0;
  color: #000000;
  line-height: 1.35;
}

.bag__free-sample-badge {
  display: none;
  position: absolute;
  top: 6px;
  right: 6px;
  width: 18px;
  height: 18px;
  background-color: #000000;
  color: #ffffff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.bag__free-sample.is-selected .bag__free-sample-badge {
  display: flex;
}

.bag__selected-samples-chips {
  margin-top: 10px;
  padding: 0 2px;
}

.bag__selected-samples-label {
  font-size: 11px;
  font-weight: 500;
  color: #000000;
  margin-bottom: 6px;
  display: block;
}

.bag__selected-samples-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bag__sample-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background-color: #f7f7f7;
  border: 1px solid #000000;
  font-size: 11px;
  color: #000000;
  border-radius: 0;
}

.bag__sample-chip-remove {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 11px;
  color: #000000;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.bag__sample-chip-remove:hover {
  opacity: 0.6;
}

.bag-item--gwp {
  background-color: #fafafa;
}

.bag-item--gwp .bag-item__price {
  color: #000000;
  font-weight: 500;
}

.bag__free-sample-status {
  font-size: 11px;
  color: #666666;
  margin: 0;
}

.bag__free-sample.is-selected .bag__free-sample-status {
  color: #008a00;
  font-weight: 500;
}

.bag__samples-progress-track {
  height: 2px;
  background-color: #e5e5e5;
  width: 100%;
  margin-top: 10px;
  position: relative;
}

.bag__samples-progress-bar {
  height: 100%;
  background-color: #000000;
  width: 35%;
  transition: left 0.25s ease, width 0.25s ease;
  position: absolute;
  left: 0;
  top: 0;
}

.bag__samples-alert {
  margin-top: 8px;
  font-size: 11px;
  color: #d30000;
  line-height: 1.35;
  padding: 6px 10px;
  background-color: #fff0f0;
  border-left: 2px solid #d30000;
}

.bag__summary {
  margin-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.bag__summary--row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  font-size: 13px;
  color: #000000;
  margin: 0;
  box-sizing: border-box;
}

.bag__summary--row:nth-child(odd) {
  background-color: #f7f7f7;
}

.bag__summary--row:nth-child(even) {
  background-color: #ffffff;
}

.bag__shipping-summary-parenthesis {
  color: #666666;
  font-size: 12px;
}

.bag__shipping-disclaimer-text-wrapper {
  padding: 12px 16px;
  font-size: 11px;
  line-height: 1.4;
  color: #666666;
  box-sizing: border-box;
}

.bag__shipping-disclaimer-text--top {
  margin: 0 0 4px 0;
}

.bag__shipping-disclaimer-text--bottom {
  margin: 0;
}

.bag__empty {
  display: none;
  background-color: #f7f7f7;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  min-height: 320px;
  margin: 16px;
  box-sizing: border-box;
}

.bag__empty p {
  font-size: 16px;
  line-height: 1.4;
  font-weight: 500;
  color: #000000;
  margin: 0 0 16px 0;
}

.bag__empty-icon-wrap {
  margin-bottom: 20px;
}

.bag__shop-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 32px;
  background-color: #000000;
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  box-sizing: border-box;
}

.bag__shop-all:hover {
  background-color: #333333;
  color: #ffffff;
  text-decoration: none;
}

.bag.is-empty .bag__empty {
  display: flex;
}

.bag.is-empty .bag__items-wrapper,
.bag.is-empty .bag__free-samples-message,
.bag.is-empty .bag__free-samples,
.bag.is-empty .bag__summary,
.bag.is-empty .bag__shipping-disclaimer-text-wrapper,
.bag.is-empty .bag__footer,
.bag.is-empty .bag__free-shipping-progress-wrapper,
.bag.is-empty .bag__title {
  display: none !important;
}

.bag__footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #ffffff;
  padding: 12px 16px 16px 16px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.06);
  box-sizing: border-box;
  z-index: 10;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.bag__footer-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.bag__footer-total--text {
  font-size: 14px;
  font-weight: 500;
  margin: 0;
  color: #000000;
}

.bag__checkout.btn.btn--conversion.btn--full {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  background-color: #000000;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 0;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
  box-sizing: border-box;
}

.bag__checkout.btn.btn--conversion.btn--full:hover {
  background-color: #333333;
  color: #ffffff;
  text-decoration: none;
}

.bag__footer-disclaimer {
  font-size: 11px;
  line-height: 1.35;
  color: #666666;
  margin: 8px 0 0 0;
  text-align: center;
}

.bag__footer-disclaimer a {
  color: #666666;
  text-decoration: underline;
  text-underline-offset: 2px;
}
