.coloplast-widget {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 999998;
}
.coloplast-widget * {
  box-sizing: border-box;
  border: 0;
  margin: 0;
  text-decoration: none;
  padding: 0;
  background: transparent;
  outline: none;
  font-family: Inter, sans-serif;
}
.coloplast-widget-popup {
  right: 62px;
  bottom: 65px;
  padding: 20px;
  box-shadow: inset 0 0 0 3px #ebebeb;
  border-radius: 28px 28px 0px 28px;
  z-index: 1;
  max-width: min(440px, calc(100vw - 97px));
  position: absolute;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: min(440px, calc(100vw - 97px));
  gap: 20px;

  opacity: 0;
  transform: scale(0.8);
  transform-origin: right bottom;
  pointer-events: none;
  transition: 0.3s ease;
  will-change: transform, opacity, pointer-events;
}
.coloplast-widget.active-popup .coloplast-widget-popup {
  opacity: 1;
  transform: scale(1);
  pointer-events: all;
}
.coloplast-widget-popup__close {
  position: absolute;
  padding: 12px;
  cursor: pointer;
  top: 0;
  right: 0;
}
.coloplast-widget-popup__header {
  gap: 14px;
  display: flex;
}
.coloplast-widget-popup__icon {
  width: 68px;
  height: 68px;
  aspect-ratio: 1/1;
  border-radius: 16px 16px 0 16px;
  background: #00b0ca;
  align-items: center;
  justify-content: center;
  display: flex;
}
.coloplast-widget-popup__column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.coloplast-widget-popup__title {
  font-size: 18px;
  line-height: 110%;
  font-weight: 700;
  color: #212121;
}
.coloplast-widget-popup__text {
  font-size: 16px;
  line-height: 120%;
  color: #717171;
}
.coloplast-widget-popup__row {
  display: flex;
  gap: 6px;
}
.coloplast-widget-popup__button {
  color: #00606f;
  font-weight: 600;
  line-height: 110%;
  font-size: 16px;
  padding: 10px 20px;
  border-radius: 24px;
  background: #ddf1f4;
}
.coloplast-widget-actions {
  display: flex;
  flex-direction: column;
  gap: 25px;
  align-items: flex-end;
}
.coloplast-widget-button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  cursor: pointer;
  width: 50px;
  border-radius: 50%;
  box-shadow: 0 3px 7px 0 rgba(0, 0, 0, 0.35);
}
.coloplast-widget-button--whatsapp {
  background: #25d366;
}
.coloplast-widget-button--ozon img {
  border-radius: 50%;
  height: 100%;
}
.coloplast-widget-button--actions {
  background: #00b0ca;
  height: auto;
  overflow: hidden;
  max-width: 228px;
  border-radius: 14px;
  position: relative;
  width: auto;
  transition: 0.3s ease;
}
.coloplast-widget-button__opener {
  cursor: pointer;
  padding: 13px 12px 13px 16px;
  display: flex;
  align-items: center;
  transition: 0.3s ease;
  gap: 12px;
}
.coloplast-widget-button__opener svg {
  transition: 0.3s ease;
}
.coloplast-widget-button__text {
  font-size: 14px;
  transition: 0.3s ease;
  font-weight: 700;
  line-height: 110%;
  color: #fff;
  white-space: nowrap;
}
.coloplast-widget-button__content {
  display: flex;
  position: absolute;
  right: 100%;
  top: 0;
  transition: 0.3s ease;
}
.coloplast-widget-button__button {
  display: flex;
  transition: 0.3s ease;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 110%;
  gap: 3px;
  color: #fff;
  padding: 8px 0px;
  width: 82px;
  cursor: pointer;
}
.coloplast-widget-button__button:hover,
.coloplast-widget-button__button:active {
  background: #42c5d8;
}
.coloplast-widget-button__closer {
  padding: 16px 18px;
  transition: 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.coloplast-widget-button__closer:hover,
.coloplast-widget-button__closer:active {
  background: #42c5d8;
}

.coloplast-widget:is(.active-select, .active) .coloplast-widget-button__opener,
.coloplast-widget-button:hover .coloplast-widget-button__opener {
  padding: 16px 12px 16px 16px;
}

.coloplast-widget:is(.active-select, .active) .coloplast-widget-button__text,
.coloplast-widget-button:hover .coloplast-widget-button__text {
  font-size: 15px;
}

.coloplast-widget:is(.active-select, .active)
  .coloplast-widget-button__opener
  svg,
.coloplast-widget-button:hover .coloplast-widget-button__opener svg {
  width: 28px;
  height: 28px;
}

.coloplast-widget:is(.active-select) .coloplast-widget-button--actions {
  width: 130%;
}
.coloplast-widget.active .coloplast-widget-button--actions {
  max-width: 64px;
  max-height: 60px;
}

.coloplast-widget:is(.active-select, .active)
  .coloplast-widget-button__content {
  right: 0;
}
.coloplast-widget:is(.active-select, .active) .coloplast-widget-button__opener {
  transform: translateX(100%);
}

.coloplast-widget:is(.active-select, .active) .coloplast-widget-button--actions,
.coloplast-widget-button:hover {
  margin-right: -8px;
  margin-top: -5px;
  margin-bottom: -5px;
}
.coloplast-widget.active-select .coloplast-widget-button__content {
  display: flex;
}

.coloplast-widget-frame {
  position: absolute;
  right: 62px;
  bottom: 0px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: 0 ease;
  box-shadow: 0 5px 40px rgba(0, 0, 0, 0.2);
  width: min(calc(100vw - 97px), 448px);
  height: 600px;
  border-radius: 10px;
  transition: 0.3s ease;
  overflow: hidden;
}
.coloplast-widget.active .coloplast-widget-frame {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.coloplast-widget-frame__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
  background: #007bff;
}
.coloplast-widget-frame__iframe {
  height: 100%;
}
.coloplast-widget-frame__title {
  font-size: 16px;
  font-weight: 600;
  line-height: 110%;
  color: #fff;
}
.coloplast-widget-frame__close {
  cursor: pointer;
  font-size: 20px;
  line-height: 20px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: 0.3s ease;
}
.coloplast-widget-frame__close:hover {
  background-color: rgba(255, 255, 255, 0.4);
}

@media screen and (max-width: 768px) {
  .coloplast-widget {
    right: 24px;
  }
  .coloplast-widget-popup {
    padding: 14px;
    gap: 14px;
    border-radius: 22px;
  }
  .coloplast-widget-popup__title {
    font-size: 15px;
  }
  .coloplast-widget-popup__header {
    gap: 12px;
  }
  .coloplast-widget-popup__column {
    gap: 8px;
  }
  .coloplast-widget-popup__icon {
    width: 57px;
    height: 57px;
  }
  .coloplast-widget-popup__icon svg {
    width: 28px;
  }
  .coloplast-widget-popup__text {
    font-size: 13px;
  }
  .coloplast-widget-popup__button {
    font-size: 14px;
  }

  .coloplast-widget-frame {
  }
}

.coloplast-widget * {
  outline: none !important;
}
