.form__input_valid {
  position: absolute;
  z-index: -1000;
  font-size: 0;
  line-height: 0;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
}

.config__decor {
  list-style-type: none;
}

.catalog-product__label-textarea {
  width: 100%;
}

.custom-cake {
  .swiper-wrapper,
  .swiper-slide {
    height: auto;
  }
  .catalog-daily__current-img {
    height: auto;
    object-fit: contain;
  }

  .catalog-daily__current-img-wrapper {
    background: transparent;
  }

  .catalog-product__filling-select {
    position: relative;
  }

  .catalog-product__filling-select-value,
  .catalog-product__filling-select-preview,
  .catalog-product__filling-select-option-content,
  .catalog-product__filling-select-option-content * {
    pointer-events: none;
  }
  .catalog-product__filling-select-preview {
    object-fit: cover;
  }
  .catalog-product__filling-select-preview[src^="/local/"] {
    object-fit: contain;
  }
  .catalog-product__filling-select-options {
    display: none;
  }
  .catalog-product__filling-select-options.active {
    display: flex;
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
  }
  .catalog-product__filling-select-options::-webkit-scrollbar {
  }

  .catalog-product__filling-select-option {
    padding: 5px 0 10px;
  }

  .catalog-product__filling-select-option_disabled {
    opacity: .3;
    cursor: auto;
  }

  .plus-sign-button {
    width: fit-content;
  }

  .plus-sign-button input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .plus-sign-button label {
    display: none;
  }

  .plus-sign-button:has(input:checked) {
    background: var(--Pink, #e5097f);
    border: 2px solid var(--Pink, #e5097f);
  }

  .plus-sign-button:has(input:checked) .plus-sign-button__main {
    border: 2px solid var(--Pink, #e5097f);
  }

  .plus-sign-button:has(input:checked) .plus-sign-button__plus {
    color: white;
  }

  .plus-sign-button__plus {
    padding: 0 0.7rem;
  }

  .config__decor-item-img {
    width: 128px;
    height: 128px;
    transition: all 0.3s ease-out;
    outline: 2px solid transparent;
  }
  .config__decor-item.js-select-decor {
    cursor: pointer;
  }
  @media (hover: hover) {
    .config__decor-item.js-select-decor:hover .config__decor-item-img {
      outline: 2px solid var(--Pink, #e5097f);
    }
  }
  .config__decor-item.js-select-decor.active > .config__decor-item-img {
    outline: 2px solid var(--Pink, #e5097f);
  }
  .config__decor-item.js-select-decor > * {
    pointer-events: none;
  }
  .config__tiers {
    width: auto;
    flex-wrap: wrap;
    margin: 0;
  }
  .catalog-product__content {
    margin: 0;
  }
  .catalog-product__sizes-wrapper {
    margin-top: 0;
  }
  .config__product-types {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .config__decor-items {
    flex-wrap: wrap;
  }
}

#config-from-catalog {
  position: relative;
}

.form__input_checkbox {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.config-button:has(.form__input_checkbox:checked) {
  border: 2px solid var(--Pink, #e5097f);
  background: var(--white-opacity-50, rgba(255, 255, 255, 0.5));
}
.catalog-product__size:has(.form__input_checkbox:checked) {
  border: 2px solid var(--Pink, #e5097f);
  background: var(--white-opacity-50, rgba(255, 255, 255, 0.5));
  cursor: default;
}

.check.config-button:has(.form__input_checkbox:disabled),
.catalog-product__size:has(.form__input_checkbox:disabled) {
  opacity: 0.4;
  pointer-events: none;
}

.catalog-product__content.js-layer {
  display: none;
}

.catalog-product__content.js-layer.active {
  display: flex;
  gap: 20px;
}

.config__tiers {
  list-style-type: none;
}

.catalog-product__tier.js-layer-tab {
  display: none;
}

.catalog-product__tier.js-layer-tab.showed {
  display: block;
}
.catalog-product__tier.js-layer-tab.showed:hover {
  border: 2px solid var(--Pink, #e5097f);
}

.catalog-product__tier.js-layer-tab.active {
  border: 2px solid var(--Pink, #e5097f);
  background: var(--white-opacity-50, rgba(255, 255, 255, 0.5));
  pointer-events: none;
}

.catalog-product__sizes {
  list-style-type: none;
}

.layer-position {
  pointer-events: none;
}

.form__fieldset {
  border: none;
  padding: 0;
  margin: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

@media (hover: hover) {
  .config-button:hover {
    border: 2px solid var(--Pink, #e5097f);
  }
}

.config-button.active {
  border: 2px solid var(--Pink, #e5097f);
  background: var(--white-opacity-50, rgba(255, 255, 255, 0.5));
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: rgba(34, 34, 34, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
}
.modal__close {
  position: absolute;
  top: 40px;
  right: 40px;
  cursor: pointer;
}

.modal__container {
  padding: 40px;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 726px;
  max-height: 95vh;
  position: relative;
  border-radius: 30px;
  background: var(
    --beige,
    linear-gradient(0deg, #ffeee9 0%, #ffeee9 100%),
    linear-gradient(
      0deg,
      rgba(255, 82, 39, 0.1) 0%,
      rgba(255, 82, 39, 0.1) 100%
    ),
    #fff
  );
  /*scrollbar-width: none;
  -ms-overflow-style: none;*/
}

/*.modal__container::-webkit-scrollbar {
  display: none;
}*/

.examples-modal .config__catalog-grid {
  grid-template-columns: repeat(auto-fill, minmax(auto, 195px));
}

.examples-modal .config__catalog-tags {
  margin-top: 20px;
}

.section-content.section-content_example-cakes {
  overflow-y: auto;
  max-height: 50vh;
  margin-right: -20px;
  padding-right: 20px;
  margin-top: 20px;
}

.config__decor li {
  position: relative;
}

.config__decor-count {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 20px;
  height: 20px;
  background: var(--Pink, #e5097f);
  color: white;
  font-size: 12px;
  line-height: 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-out;
}

.config__decor-count.selected {
  opacity: 1;
  visibility: visible;
}

.config__designs-selected {
  display: none;
  gap: 10px;
  flex-wrap: wrap;
}

.config__designs-selected:has(.config__designs-selected-item) {
  display: flex;
  margin-top: 20px;
}

.config__designs-selected-item {
  position: relative;
  width: fit-content;
  padding: 5px 31px 5px 5px;
  border-radius: 30px;
  font-family: Comfortaa;
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0;
  color: var(--black, #2e2e2e);
  background: var(--white-opacity-50, rgba(255, 255, 255, 0.5));
}

.config__designs-selected-close {
  position: absolute;
  top: 50%;
  right: 10px;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  cursor: pointer;
  background: transparent;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg clip-path='url(%23clip0_3665_26266)'%3E%3Cpath d='M4 4L12 12' stroke='%23E5097F' stroke-linecap='round'/%3E%3Cpath d='M4 4L12 12' stroke='%23CD2B67' stroke-linecap='round'/%3E%3Cpath d='M4 4L12 12' stroke='%23F3669A' stroke-linecap='round'/%3E%3Cpath d='M4 12L12 4' stroke='%23E5097F' stroke-linecap='round'/%3E%3Cpath d='M4 12L12 4' stroke='%23CD2B67' stroke-linecap='round'/%3E%3Cpath d='M4 12L12 4' stroke='%23F3669A' stroke-linecap='round'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_3665_26266'%3E%3Crect width='10' height='10' fill='white' transform='translate(3 3)'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E%0A");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  transition: all 0.3s ease-out;
}

.config__designs-selected-close:hover {
  transform: translateY(-50%) scale(1.2);
}

.config__error {
  display: none;
  color: var(--Red, #ff002a);
}

.config__error.active {
  display: block;
}

.catalog-product__summary-btn {
  position: relative;
  z-index: 2;
}

@media screen and (max-width: 767px) {
  .examples-modal .config__catalog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

@media screen and (max-width: 1023px) {
  .custom-cake #product-content {
    margin-top: 40px;
  }
  .form__fieldset {
    gap: 40px;
  }
}
