.syro-cart-popup-root {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
}

.syro-cart-popup-root.is-open {
  display: block;
}

.syro-cart-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 17, 34, 0.72);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.syro-cart-popup-panel {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.syro-cart-popup-content {
  width: min(1080px, 100%);
  max-height: calc(100vh - 48px);
  overflow: hidden;
  background: #262637;
  color: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  transition:
    opacity 0.28s ease,
    transform 0.28s ease;
  will-change: opacity, transform;
  display: flex;
  flex-direction: column;
  position: relative;
}

.syro-cart-popup-root.is-open .syro-cart-popup-backdrop {
  opacity: 1;
}

.syro-cart-popup-root.is-open .syro-cart-popup-content {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.syro-cart-popup-content.is-loading {
  pointer-events: none;
}

.syro-cart-popup-content.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(38, 38, 55, 0.92);
  z-index: 5;
}

.syro-cart-popup-content.is-loading::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 42px;
  height: 42px;
  margin: -21px 0 0 -21px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.18);
  border-top-color: #f1a416;
  animation: syro-cart-popup-spin 0.8s linear infinite;
  z-index: 6;
}

.syro-cart-popup-inner {
  padding: 28px 28px 0;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.syro-cart-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  position: sticky;
  top: 0;
  z-index: 2;
  background: #262637;
}

.syro-cart-popup-title {
  margin: 0;
}

.syro-cart-popup-close,
.syro-cart-popup-remove,
.syro-cart-popup-control {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: transparent;
  color: #fff;
  cursor: pointer;
  padding: 0;
}

.syro-cart-popup-close {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
}

.syro-cart-popup-body {
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 28px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.syro-cart-popup-body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.syro-cart-popup-empty {
  padding: 32px 0 8px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}
  .syro-cart-popup-empty .btn {
  }

.syro-cart-popup-list {
  display: flex;
  flex-direction: column;
}

.syro-cart-popup-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.syro-cart-popup-item-main {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 28px;
}

.syro-cart-popup-item-media {
  flex: 0 0 160px;
  width: 160px;
  height: 92px;
  border-radius: 8px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.syro-cart-popup-item-name {
  min-width: 0;
  color: #fff;
  font-size: 19px;
  line-height: 1.35;
}

.syro-cart-popup-item-side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  flex-shrink: 0;
}

.syro-cart-popup-item-price {
  min-width: 120px;
  color: #fff;
  font-size: 18px;
  line-height: 1.2;
  text-align: right;
  white-space: nowrap;
}

.syro-cart-popup-item-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

.syro-cart-popup-control {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex: 0 0 38px;
}

.syro-cart-popup-control::before,
.syro-cart-popup-control::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.syro-cart-popup-minus::before,
.syro-cart-popup-plus::before {
  width: 12px;
  height: 1px;
}

.syro-cart-popup-plus::after {
  width: 1px;
  height: 12px;
}

.syro-cart-popup-minus.is-disabled,
.syro-cart-popup-control:disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

.syro-cart-popup-qty {
  width: 34px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  text-align: center;
  padding: 0;
}

.syro-cart-popup-qty:focus {
  outline: none;
}

.syro-cart-popup-remove {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex: 0 0 38px;
  font-size: 30px;
  line-height: 1;
}

.syro-cart-popup-summary {
  margin-top: 24px;
}

.syro-cart-popup-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
}

.syro-cart-popup-actions .btn {
  min-width: 280px;
  justify-content: center;
  font-size: 18px;
}

.syro-cart-popup-actions .btn:first-child {
  margin-right: auto;
}

.syro-cart-popup-actions .btn:last-child {
  margin-left: auto;
}

.syro-cart-popup-recommend {
  margin-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
}

.syro-cart-popup-recommend-title {
  margin: 0 0 18px;
  text-align: center;
  font-size: 25px;
  margin-bottom: 35px;
}

.syro-cart-popup-recommend-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.syro-cart-popup-product {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}

.syro-cart-popup-product .products__item-title {
  margin: 0;
  display: -webkit-box;
  color: #fff;
  min-height: 44px;
  max-height: 44px;
  line-height: 1.3;
  font-size: 17px;
  overflow: hidden;
  text-align: center;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  text-wrap: balance;
}

.syro-cart-popup-product-image {
  display: block;
  height: 220px;
  overflow: hidden;
  border-radius: 14px;
}

.syro-cart-popup-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.syro-cart-popup-product .products__item-price,
.syro-cart-popup-product .products__item-price strong,
.syro-cart-popup-product .products__item-price span {
  /*color: #fff;*/
}

.syro-cart-popup-product .products__item-price {
  margin-top: 6px;
  text-align: center;
}

.syro-cart-popup-product .products__item-btn {
  margin-top: 8px;
}

@keyframes syro-cart-popup-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 991px) {
  .syro-cart-popup-panel {
    align-items: flex-start;
    padding: 16px;
  }

  .syro-cart-popup-content {
    max-height: calc(100vh - 32px);
  }

  .syro-cart-popup-inner {
    padding: 20px;
  }

  .syro-cart-popup-item {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .syro-cart-popup-item-main,
  .syro-cart-popup-item-side {
    width: 100%;
  }

  .syro-cart-popup-item-side {
    justify-content: space-between;
    gap: 18px;
  }

  .syro-cart-popup-recommend-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .syro-cart-popup-empty .btn {
    width: 100%;
  }
  .syro-cart-popup-header {
    align-items: flex-start;
  }

  .syro-cart-popup-item-main {
    gap: 16px;
  }

  .syro-cart-popup-item-media {
    flex-basis: 120px;
    width: 120px;
    height: 72px;
  }

  .syro-cart-popup-item-name {
    font-size: 16px;
  }

  .syro-cart-popup-item-price {
    min-width: auto;
    font-size: 18px;
  }

  .syro-cart-popup-item-side {
    flex-wrap: wrap;
  }

  .syro-cart-popup-actions .btn {
    min-width: 100%;
  }

  .syro-cart-popup-actions .btn:first-child,
  .syro-cart-popup-actions .btn:last-child {
    margin-left: 0;
    margin-right: 0;
  }
}

/* Підказка про мінімальну суму замовлення.
   Палітра теми: тло #252534, акцент #f1a416. */
.syro-cart-popup-min-notice {
	margin: 12px 0 0;
	padding: 10px 14px;
	border: 1px solid #f1a416;
	border-radius: 8px;
	background: rgba(241, 164, 22, 0.1);
	color: #f1a416;
	font-size: 14px;
	line-height: 1.4;
	text-align: center;
}
