.product-gift-selector-debug {
  margin: 12px 0;
  padding: 12px;
  border: 2px dashed #d0021b;
  background: #fff8f8;
  color: #191919;
  font-size: 13px;
  line-height: 1.5;
  position: relative;
  z-index: 2;
}

.product-gift-selector-debug__title {
  font-weight: 800;
  color: #d0021b;
  margin-bottom: 6px;
}

.product-gift-selector-debug__divider {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(208, 2, 27, 0.25);
}

.product-gift-selector-source {
  display: none;
}

.product-gift-selector {
  margin: 14px 0 16px;
  border: 1px solid rgb(42 203 247 / 21%);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(25, 25, 25, 0.07);
  overflow: hidden;
}

.product-gift-selector * {
  box-sizing: border-box;
}

.product-gift-selector__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(145, 7, 16, 0.06), rgba(22, 82, 144, 0.04));
  border-bottom: 1px solid rgb(42 203 247 / 21%);
}

.product-gift-selector__banner {
  display: block;
  width: 100%;
  height: auto;
}

.product-gift-selector__title-wrap {
  min-width: 0;
  width: 100%;
}

.product-gift-selector__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  min-height: 26px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #165290;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 8px;
}

.product-gift-selector__eyebrow img {
  width: 15px;
  height: 15px;
  object-fit: contain;
}

.product-gift-selector__title {
  margin: 0;
  margin-top: 5px;
  color: #191919;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
}

.product-gift-selector__desc {
  margin: 6px 0 0;
  color: #4a4a4a;
  font-size: 13px;
  line-height: 1.45;
}

.product-gift-selector__link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid rgba(22, 82, 144, 0.18);
  background: #fff;
  color: #165290;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  float: right;
}

.product-gift-selector__link:hover {
  color: #910710;
  border-color: rgba(145, 7, 16, 0.3);
}

.product-gift-selector__body {
  padding: 12px;
}

.product-gift-selector__grid {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-right: 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(8, 124, 196, 0.26) transparent;
  padding-top:2px;
}

@media (min-width: 768px) {
  .product-gift-selector__grid {
    cursor: grab;
  }

  .product-gift-selector__grid.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    user-select: none;
  }

  .product-gift-selector__grid.is-dragging a {
    pointer-events: none;
  }
}

.product-gift-selector__card {
  position: relative;
  flex: 0 0 330px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
  padding: 9px;
  border: 1px solid #edf0f2;
  border-radius: 8px;
  background: #fff;
  scroll-snap-align: start;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.product-gift-selector__card:hover {
  border-color: rgba(145, 7, 16, 0.2);
  box-shadow: 0 8px 18px rgba(25, 25, 25, 0.08);
  transform: translateY(-1px);
}

.product-gift-selector__main {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
}

.product-gift-selector__media {
  position: relative;
  display: block;
  width: 88px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 7px;
  background: #f7f7f7;
  border: 1px solid #f0f0f0;
}

.product-gift-selector__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-gift-selector__badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 20px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(145, 7, 16, 0.09);
  color: #910710;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 5px;
}

.product-gift-selector__info {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.product-gift-selector__name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 34px;
  margin: 0 0 7px;
  color: #191919;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.32;
  overflow: hidden;
  text-decoration: none;
}

.product-gift-selector__name:hover {
  color: #910710;
}

.product-gift-selector__variant {
  flex: 1 1 auto;
  min-width: 0;
}

.product-gift-selector__select {
  width: 100%;
  height: 34px;
  min-width: 0;
  border: 1px solid #dfe3e8;
  border-radius: 6px;
  background: #fff;
  color: #191919;
  font-size: 12px;
  line-height: 1.2;
  padding: 0 8px;
  outline: none;
}

.product-gift-selector__select:focus {
  border-color: #165290;
  box-shadow: 0 0 0 2px rgba(22, 82, 144, 0.12);
}

.product-gift-selector__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: auto;
}

.product-gift-selector__button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  min-height: 34px;
  padding: 7px 10px;
  border: 0;
  border-radius: 6px;
  background: #165290;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.product-gift-selector__actions > .product-gift-selector__button:only-child {
  width: 100%;
}

.product-gift-selector__button:hover {
  background: #0f4378;
}

.product-gift-selector__button:disabled {
  cursor: not-allowed;
  background: #d8dce0;
  color: #72777d;
}

.product-gift-selector__button.is-added {
  background: #2f7d32;
  color: #fff;
}

.product-gift-selector__button.is-loading {
  opacity: 0.72;
}

.product-gift-selector__note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 10px 0 0;
  padding: 9px 10px;
  border-radius: 7px;
  background: rgba(22, 82, 144, 0.06);
  color: #3c4a57;
  font-size: 12px;
  line-height: 1.45;
}

.product-gift-selector__note strong {
  color: #165290;
}

.product-gift-selector__note-icon {
  flex: 0 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #165290;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  margin-top: 1px;
}

#ega-modal-product-gift .modal-dialog {
  width: 500px;
  max-width: 92%;
  margin: 0 auto;
}

#ega-modal-product-gift .btn-form-close {
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  margin-right: -0.6em;
  margin-bottom: 0.2em;
  color: #333;
}

#ega-modal-product-gift .modal-content.product-gift-selector {
  border: none;
  margin: 0;
  max-height: 86vh;
  overflow: hidden;
}

#ega-modal-product-gift .modal-content.product-gift-selector .product-gift-selector__body {
  max-height: calc(86vh - 120px);
  overflow-y: auto;
}

#ega-modal-product-gift .product-gift-selector__grid {
  --pgs-modal-card-height: 150px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: calc((var(--pgs-modal-card-height) * 2.3) + 20px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 8px;
  scroll-snap-type: y mandatory;
}

#ega-modal-product-gift .product-gift-selector__card {
  flex: 0 0 var(--pgs-modal-card-height);
  width: 100%;
}

@media (max-width: 767px) {
  .product-gift-selector {
    margin-top: 12px;
  }

  .product-info-wrapper .product-gift-selector {
    order: 1;
    width: 100%;
  }

  .product-gift-selector__title {
    font-size: 16px;
  }

  .product-gift-selector__desc {
    font-size: 12px;
  }

  .product-gift-selector__body {
    padding: 10px;
  }

  .product-gift-selector__card {
    flex: 0 0 76%;
  }

  .product-gift-selector__grid {
    padding-right: 10px;
  }

  .product-gift-selector__main {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .product-gift-selector__media {
    width: 82px;
  }

  .product-gift-selector__button {
    min-height: 36px;
  }

  .product-gift-selector__note {
    margin-right: 10px;
  }

  #ega-modal-product-gift .modal-dialog {
    max-width: calc(100% - 20px);
  }

  #ega-modal-product-gift .modal-content.product-gift-selector {
    max-height: 84vh;
  }

  #ega-modal-product-gift .modal-content.product-gift-selector .product-gift-selector__body {
    max-height: calc(84vh - 90px);
  }

  #ega-modal-product-gift .product-gift-selector__grid {
    --pgs-modal-card-height: 150px;
  }

  #ega-modal-product-gift .product-gift-selector__card {
    flex: 0 0 var(--pgs-modal-card-height);
  }
}

@media (max-width: 360px) {
  .product-gift-selector__card {
    flex-basis: 82%;
  }

  .product-gift-selector__main {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .product-gift-selector__media {
    width: 78px;
  }
}

#ega-modal-product-gift .product-gift-selector__card {
  flex: 0 0 var(--pgs-modal-card-height);
}




#popupCartModal .modal-content {
	padding: 0px 20px 15px;
	border-radius: 5px;
	font-size: 1rem;
	overflow: hidden;
}
#popupCartModal .btn {
	font-size: 14px;
}
#popupCartModal .modal-body {
	padding: 1rem 0;
}
#popupCartModal .fa.fa-check {
	color: var(--success);
}
#popupCartModal .media-left.thumb_img {
	margin-right: 1.25rem;
}
#popupCartModal button.close {
	position: absolute;
	right: 15px;
	top: 9px;
}
#popupCartModal h4.title.right_title, #popupCartModal .modal-title {
	font-size: 1rem;
	display: flex;
	align-items: center;
	background: #eff8f0;
	padding: 10px 20px;
	color: #2eb346;
	font-weight: normal;
	border-radius: 2px;
	margin-left: -20px;
	margin-right: -20px;
}
#popupCartModal h4.title.right_title svg, #popupCartModal .modal-title svg {
	margin-right: 4px;
}
#popupCartModal .checkout_button {
	background: var(--cta-color);
	color: #fff;
	border-radius: 5px;
	font-weight: 500;
}
#popupCartModal .checkout_button:hover {
	filter: brightness(1.2);
}
#popupCartModal .media-body.body_content {
	font-size: 1rem;
	line-height: 1.3;
}
#popupCartModal .media-body.body_content .product-new-price {
	font-weight: 500;
}
#popupCartModal .thumb_img {
	margin-right: 10px;
	position: relative;
	border-radius: 0px;
	text-align: center;
	height: 100%;
	overflow: hidden;
	min-width: 70px;
	min-height: 70px;
	width: 70px;
}
#popupCartModal .product-name {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	white-space: initial;
	overflow: hidden;
	margin: 0 0 10px;
	font-size: 14px;
	font-weight: normal;
	line-height: 1.4;
}
#popupCartModal .count {
	color: #979797;
}
#popupCartModal .right_title {
	border-top: 1px solid #f0f1f2;
	padding-top: 20px;
}
#popupCartModal .cart-action {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-gap: 10px;
	padding-top: 25px;
	margin-top: 20px;
	border-top: 1px solid #f0f1f2;
}
#popupCartModal .cart-message {
	margin-top: 10px;
	color: #f44336;
	font-size: 14px;
}
@media (min-width: 576px) {
	#popupCartModal .modal-dialog {
		max-width: 440px;
 }
}
@media (max-width: 600px) {
	#popupCartModal {
		z-index: 99999;
 }
	#popupCartModal .modal-dialog {
		position: absolute;
		bottom: 0;
		margin: 0;
		top: auto !important;
		transform: none !important;
 }
	#popupCartModal .title.right_title {
		display: none;
 }
	#popupCartModal .modal-content {
		border-radius: 5px 5px 0 0;
 }
}