#spb-added-to-cart-popup.spb-cart-popup {
  position: absolute;
  top: 0;
  left: 0;
  width: 490px;
  max-width: calc(100vw - 24px);
  background: #f7f7f7;
  border-radius: 10px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.28);
  color: #1a1a1a;
  z-index: 2147483000;
  overflow: hidden;
}

#spb-added-to-cart-popup .spb-cart-popup__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #37a346;
  color: #fff;
  padding: 12px 14px;
}

#spb-added-to-cart-popup .spb-cart-popup__header-content {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

#spb-added-to-cart-popup .spb-cart-popup__header-icon {
  font-size: 26px;
  line-height: 1;
  color: #fff;
}

#spb-added-to-cart-popup .spb-cart-popup__message {
  margin: 0;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 500;
}

#spb-added-to-cart-popup .spb-cart-popup__close {
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  width: 30px;
  height: 30px;
  border-radius: 4px;
  font-size: 34px;
  line-height: 28px;
  padding: 0;
}

#spb-added-to-cart-popup .spb-cart-popup__close:hover {
  background: rgba(255, 255, 255, 0.18);
}

#spb-added-to-cart-popup .spb-cart-popup__body {
  padding: 16px;
}

#spb-added-to-cart-popup .spb-cart-popup__item-grid {
  display: grid;
  grid-template-columns: 100px 1fr 128px;
  gap: 14px;
  align-items: start;
  padding-bottom: 16px;
  border-bottom: 1px solid #d7d7d7;
}

#spb-added-to-cart-popup .spb-cart-popup__image-col {
  position: relative;
}

#spb-added-to-cart-popup .spb-cart-popup__picture {
  display: block;
  width: 100px;
  height: 100px;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
}

#spb-added-to-cart-popup .spb-cart-popup__picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#spb-added-to-cart-popup .spb-cart-popup__name {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.24;
  font-weight: 500;
}

#spb-added-to-cart-popup .spb-cart-popup__name a {
  color: #1a1a1a;
  text-decoration: none;
}

#spb-added-to-cart-popup .spb-cart-popup__name a:hover {
  text-decoration: underline;
}

#spb-added-to-cart-popup .spb-cart-popup__attributes {
  margin: 0;
}

#spb-added-to-cart-popup .spb-cart-popup__attribute-line {
  margin: 0;
  color: #555;
  font-size: 12px;
  line-height: 1.45;
}

#spb-added-to-cart-popup .spb-cart-popup__sku {
  margin: 4px 0 0;
  color: #575757;
  font-size: 12px;
  line-height: 1.4;
}

#spb-added-to-cart-popup .spb-cart-popup__qty-col {
  text-align: right;
}

#spb-added-to-cart-popup .spb-cart-popup__qty {
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  align-items: center;
  height: 52px;
  border: 1px solid #bdbdbd;
  border-radius: 4px;
  background: #f9f9f9;
  overflow: hidden;
}

#spb-added-to-cart-popup .spb-cart-popup__qty-btn {
  border: 0;
  background: transparent;
  color: #444;
  font-size: 24px;
  line-height: 1;
  height: 100%;
  cursor: pointer;
}

#spb-added-to-cart-popup .spb-cart-popup__qty-btn:hover {
  background: #efefef;
}

#spb-added-to-cart-popup .spb-cart-popup__qty-value {
  display: block;
  text-align: center;
  font-size: 18px;
  line-height: 1;
  font-weight: 500;
}

#spb-added-to-cart-popup .spb-cart-popup__prices {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

#spb-added-to-cart-popup .spb-cart-popup__old-price {
  margin: 0;
  color: #666;
  font-size: 14px;
  line-height: 1.3;
  text-decoration: line-through;
  white-space: nowrap;
}

#spb-added-to-cart-popup .spb-cart-popup__unit-price {
  margin: 0;
  color: #0d4f89;
  font-size: 28px;
  line-height: 1.35;
  font-weight: 700;
  white-space: nowrap;
}

#spb-added-to-cart-popup .spb-cart-popup__subtotal {
  margin: 16px 0;
  text-align: center;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 600;
  color: #171717;
}

#spb-added-to-cart-popup .spb-cart-popup__subtotal span {
  font-weight: 700;
}

#spb-added-to-cart-popup .spb-cart-popup__buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

#spb-added-to-cart-popup .spb-cart-popup__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  border-radius: 6px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

#spb-added-to-cart-popup .spb-cart-popup__button--cart {
  background: #155183;
}

#spb-added-to-cart-popup .spb-cart-popup__button--checkout {
  background: #f33a4a;
}

#spb-added-to-cart-popup .spb-cart-popup__button:hover {
  filter: brightness(0.97);
}

#spb-added-to-cart-popup.spb-cart-popup--loading .spb-cart-popup__qty-btn {
  cursor: wait;
  opacity: 0.55;
}

#spb-added-to-cart-popup.spb-cart-popup--loading .spb-cart-popup__qty-btn:hover {
  background: transparent;
}

@media (max-width: 767px) {
  #spb-added-to-cart-popup.spb-cart-popup {
    max-width: calc(100vw - 16px);
    border-radius: 8px;
  }

  #spb-added-to-cart-popup .spb-cart-popup__header {
    padding: 10px 12px;
  }

  #spb-added-to-cart-popup .spb-cart-popup__header-icon {
    font-size: 18px;
  }

  #spb-added-to-cart-popup .spb-cart-popup__message {
    font-size: 14px;
  }

  #spb-added-to-cart-popup .spb-cart-popup__item-grid {
    grid-template-columns: 84px 1fr;
    gap: 10px;
  }

  #spb-added-to-cart-popup .spb-cart-popup__picture {
    width: 84px;
    height: 84px;
  }

  #spb-added-to-cart-popup .spb-cart-popup__qty-col {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
  }

  #spb-added-to-cart-popup .spb-cart-popup__qty {
    width: 126px;
    height: 44px;
  }

  #spb-added-to-cart-popup .spb-cart-popup__qty-value {
    font-size: 16px;
  }

  #spb-added-to-cart-popup .spb-cart-popup__name {
    font-size: 16px;
  }

  #spb-added-to-cart-popup .spb-cart-popup__attribute-line,
  #spb-added-to-cart-popup .spb-cart-popup__sku {
    font-size: 14px;
  }

  #spb-added-to-cart-popup .spb-cart-popup__old-price {
    font-size: 14px;
  }

  #spb-added-to-cart-popup .spb-cart-popup__unit-price {
    font-size: 20px;
  }

  #spb-added-to-cart-popup .spb-cart-popup__subtotal {
    margin: 12px 0;
    font-size: 20px;
  }

  #spb-added-to-cart-popup .spb-cart-popup__button {
    min-height: 40px;
    font-size: 14px;
  }
}

.product-item.has-attribute {
  position: relative;
}

.product-item.has-attribute.spb-attr-overlay-open {
  overflow: hidden;
}

.product-item .spb-attr-overlay {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1px solid #e1e1e1;
  border-radius: 14px;
  background: #f6f6f6;
  text-align: left;
}

.product-item .spb-attr-overlay__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #ececec;
  color: #ff3549;
  font-size: 34px;
  line-height: 30px;
  cursor: pointer;
}

.product-item .spb-attr-overlay__close:hover {
  background: #e3e3e3;
}

.product-item .spb-attr-overlay__title {
  margin-top: 30px;
  font-size: 24px;
  line-height: 1.28;
  font-weight: 600;
  color: #121212;
}

.product-item .spb-attr-overlay__price-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.product-item .spb-attr-overlay__price-old {
  color: #767676;
  font-size: 14px;
  line-height: 1.2;
  text-decoration: line-through;
}

.product-item .spb-attr-overlay__price-current {
  color: #ff3549;
  font-size: 34px;
  line-height: 1.2;
  font-weight: 700;
}

.product-item .spb-attr-overlay__content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}

.product-item .spb-attr-overlay__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.product-item .spb-attr-overlay__attr-row {
  display: block;
}

.product-item .spb-attr-label {
  margin-bottom: 8px;
  color: #202020;
  font-size: 18px;
  line-height: 1.24;
  font-weight: 500;
}

.product-item .spb-attr-required {
  color: #ff3549;
}

.product-item .spb-attr-label-value {
  color: #4a4a4a;
  font-weight: 400;
}

.product-item .spb-attr-description {
  margin: 0 0 8px;
  color: #5c5c5c;
  font-size: 14px;
  line-height: 1.35;
}

.product-item .spb-attr-select,
.product-item .spb-attr-text,
.product-item .spb-attr-textarea,
.product-item .spb-attr-datepicker-part {
  width: 100%;
  min-height: 44px;
  border: 1px solid #d3d3d3;
  border-radius: 8px;
  background: #fff;
  color: #1f1f1f;
  font-size: 14px;
  line-height: 1.2;
  padding: 10px 12px;
}

.product-item .spb-attr-textarea {
  min-height: 90px;
  resize: vertical;
}

.product-item .spb-attr-datepicker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.product-item .spb-attr-values {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.product-item .spb-attr-values li {
  margin: 0;
}

.product-item .spb-attr-values input[type="radio"],
.product-item .spb-attr-values input[type="checkbox"] {
  display: none;
}

.product-item .spb-attr-values:not(.color-squares):not(.image-squares) label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 50px;
  padding: 8px 16px;
  border: 1px solid #cfcfcf;
  border-radius: 30px;
  background: #f7f7f7;
  color: #4b4b4b;
  cursor: pointer;
  transition: all 0.15s ease;
}

.product-item .spb-attr-values li.selected-value label,
.product-item .spb-attr-values li label:hover {
  border-color: #ff3549;
  color: #ff3549;
  background: #fff;
}

.product-item .spb-attr-values.color-squares label,
.product-item .spb-attr-values.image-squares label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
}

.product-item .spb-attr-values .attribute-square-container {
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.product-item .spb-attr-values .attribute-square {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: inline-flex;
}

.product-item .spb-attr-values.color-squares li.selected-value .attribute-square,
.product-item .spb-attr-values.image-squares li.selected-value .attribute-square {
  outline: 3px solid #35a746;
  outline-offset: -3px;
}

.product-item .spb-attr-overlay__unsupported {
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff7e5;
  color: #6f4f05;
  font-size: 13px;
  line-height: 1.3;
}

.product-item .spb-attr-overlay__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.product-item .spb-attr-overlay__action {
  min-height: 56px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  font-size: 20px;
  line-height: 1.1;
  font-weight: 700;
  cursor: pointer;
}

.product-item .spb-attr-overlay__action--add {
  background: #ff3549;
}

.product-item .spb-attr-overlay__action--buy {
  background: #0f4e85;
}

.product-item .spb-attr-overlay__action:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.product-item .spb-attr-overlay__details {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  border-radius: 10px;
  border: 1px solid #bcbcbc;
  background: #f6f6f6;
  color: #666;
  text-decoration: none;
  font-size: 20px;
  line-height: 1.1;
  font-weight: 600;
}

.product-item .spb-attr-overlay__details:hover {
  border-color: #909090;
}

@media (min-width: 992px) {
  .product-list .item-box .product-item.has-attribute {
    align-items: flex-start;
  }

  .product-list .item-box .product-item.has-attribute .details {
    display: flex;
    flex-direction: row;
    width: 55%;
  }

  .product-list .item-box .product-item.has-attribute .details .spb-list-attr-panel {
    margin-top: 8px;
    width: 100%;
  }

  .product-list .item-box .product-item.has-attribute .details .spb-list-attr-panel__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 18px;
  }

  .product-list .item-box .product-item.has-attribute .details .spb-list-attr-panel__grid .spb-attr-overlay__attr-row {
    margin: 0;
  }

  .product-list .item-box .product-item.has-attribute .details .spb-attr-label {
    font-size: 14px;
    margin-bottom: 5px;
  }

  .product-list .item-box .product-item.has-attribute .details .spb-attr-select,
  .product-list .item-box .product-item.has-attribute .details .spb-attr-text,
  .product-list .item-box .product-item.has-attribute .details .spb-attr-textarea,
  .product-list .item-box .product-item.has-attribute .details .spb-attr-datepicker-part {
    min-height: 34px;
    font-size: 12px;
    padding: 6px 8px;
  }

  .product-list .item-box .product-item.has-attribute .details .spb-attr-values {
    gap: 6px;
  }

  .product-list .item-box .product-item.has-attribute .details .spb-attr-values:not(.color-squares):not(.image-squares) label {
    min-height: 30px;
    font-size: 12px;
    padding: 4px 10px;
  }

  .product-list .item-box .product-item.has-attribute .details .spb-attr-values.color-squares label,
  .product-list .item-box .product-item.has-attribute .details .spb-attr-values.image-squares label {
    width: 30px;
    height: 30px;
  }

  .product-list .item-box .product-item.has-attribute .details .spb-list-attr-panel__price-row {
    margin-top: 10px;
    margin-bottom: 0 !important;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }

  .product-list .item-box .product-item.has-attribute .details .spb-list-attr-panel__price-row .spb-attr-overlay__price-old {
    margin: 0;
    font-size: 13px;
  }

  .product-list .item-box .product-item.has-attribute .details .spb-list-attr-panel__price-row .spb-attr-overlay__price-current {
    margin: 0;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 700;
  }

  .product-list .item-box .product-item.has-attribute .add-info .prices,
  .product-list .item-box .product-item.has-attribute .add-info .productbox-attributes {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .product-item .spb-attr-overlay {
    border-radius: 10px;
    padding: 12px;
  }

  .product-item .spb-attr-overlay__title {
    margin-top: 22px;
    font-size: 18px;
  }

  .product-item .spb-attr-overlay__price-old {
    font-size: 14px;
  }

  .product-item .spb-attr-overlay__price-current {
    font-size: 28px;
  }

  .product-item .spb-attr-label {
    font-size: 18px;
  }

  .product-item .spb-attr-description {
    font-size: 13px;
  }

  .product-item .spb-attr-select,
  .product-item .spb-attr-text,
  .product-item .spb-attr-textarea,
  .product-item .spb-attr-datepicker-part {
    font-size: 14px;
    min-height: 38px;
  }

  .product-item .spb-attr-values:not(.color-squares):not(.image-squares) label {
    min-height: 38px;
    padding: 6px 10px;
  }

  .product-item .spb-attr-overlay__action,
  .product-item .spb-attr-overlay__details {
    min-height: 40px;
    font-size: 16px;
  }
}
