.wkon-sticky {
  position: fixed;
  z-index: 1000000;
  right: 0;
  bottom: 0;
  left: 0;
  visibility: hidden;
  background: #fff;
  border-top: 1px solid #e7e3df;
  box-shadow: 0 -8px 28px rgb(26 22 20 / 10%);
  transform: translateY(105%);
  transition: transform 220ms ease, visibility 220ms ease;
}

.wkon-sticky--visible {
  visibility: visible;
  transform: translateY(0);
}

.wkon-sticky__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100% - 40px, 1320px);
  min-height: 82px;
  margin: 0 auto;
  padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
}

.wkon-sticky__product,
.wkon-sticky__actions,
.wkon-sticky__attributes {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.wkon-sticky__actions {
  align-items: flex-end;
}

.wkon-sticky__product {
  flex: 1;
}

.wkon-sticky__image {
  width: 56px;
  height: 56px;
  flex: none;
  object-fit: cover;
  border-radius: 4px;
}

.wkon-sticky__title {
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wkon-sticky__field {
  display: grid;
  gap: 3px;
  min-width: 116px;
  margin: 0;
}

.wkon-sticky__field-label {
  font-size: 11px;
  line-height: 1.1;
  color: #625d59;
}

.wkon-sticky__select {
  width: 100%;
  height: 42px;
  padding: 5px 28px 5px 10px;
  color: #24211f;
  background: #fff;
  border: 1px solid #c9c4c0;
  border-radius: 4px;
  box-sizing: border-box;
  font: inherit;
  font-size: 13px;
}

.wkon-sticky__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 8px 22px;
  color: #fff;
  background: #a48a77;
  border: 1px solid #a48a77;
  border-radius: 4px;
  box-sizing: border-box;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.wkon-sticky__button-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.wkon-sticky__button-icon svg,
.wkon-sticky__button-icon img {
  display: block;
  max-width: 16px;
  max-height: 16px;
}

.wkon-sticky__button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.wkon-sticky__select:focus-visible,
.wkon-sticky__button:focus-visible {
  outline: 2px solid #272321;
  outline-offset: 2px;
}

.wkon-sticky__button:hover:not(:disabled) {
  background: #272321;
  border-color: #272321;
}

@media (width <= 700px) {
  .wkon-sticky__inner {
    display: grid;
    gap: 10px;
    width: min(100% - 24px, 600px);
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
  }

  .wkon-sticky__image {
    width: 42px;
    height: 42px;
  }

  .wkon-sticky__title {
    font-size: 12px;
  }

  .wkon-sticky__actions {
    justify-content: space-between;
  }

  .wkon-sticky__attributes {
    flex: 1;
  }

  .wkon-sticky__field {
    flex: 1;
    min-width: 0;
  }

  .wkon-sticky--multi-attribute .wkon-sticky__actions {
    display: grid;
  }

  .wkon-sticky--multi-attribute .wkon-sticky__button {
    width: 100%;
  }
}

@media (width <= 600px) {
  .wkon-sticky__inner {
    display: block;
    min-height: 0;
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
  }

  .wkon-sticky__product,
  .wkon-sticky__field-label {
    display: none;
  }

  .wkon-sticky__actions {
    align-items: center;
    gap: 8px;
  }

  .wkon-sticky__attributes {
    gap: 8px;
  }

  .wkon-sticky__select,
  .wkon-sticky__button {
    height: 44px;
  }

  .wkon-sticky__button {
    flex: 0 0 auto;
    padding: 8px 14px;
  }

  .wkon-sticky--simple .wkon-sticky__attributes {
    display: none;
  }

  .wkon-sticky--simple .wkon-sticky__button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wkon-sticky {
    transition: none;
  }
}
