/* Rules used only on the cart page(s), split out of main.css.
   Loaded through {% block page_styles %} in layout.jinja, right after main.css. */

.product-cart-bundle {
  border-radius: 5px;
  border: 1px solid #e2e8f0;
}

.overlay-custom-image {
  position: fixed;
  background: #201f37b0;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 999999999;
  transform: scale(0);
  transition: all 0.2s;
}

.overlay-custom-image.open {
  transform: scale(1);
}

.all-with-bundle {
  position: relative;
}

.all-with-bundle::after {
  content: "";
  background-image: url('data:image/svg+xml,%3Csvg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"%3E%3Cg clip-path="url(%23clip0_229_124763)"%3E%3Cpath d="M10 6.66666V13.3333" stroke="%23334155" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/%3E%3Cpath d="M6.66675 10H13.3334" stroke="%23334155" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/%3E%3C/g%3E%3Crect x="0.75" y="0.75" width="18.5" height="18.5" rx="7.25" stroke="%23475569" stroke-width="1.5"/%3E%3Cdefs%3E%3CclipPath id="clip0_229_124763"%3E%3Crect width="10" height="10" fill="white" transform="translate(5 5)"/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E%0A');
  width: 20px;
  height: 20px;
  position: absolute;
  top: -25px;
  right: 80px;
  background-color: white;
  padding: 0 20px;
  background-repeat: no-repeat;
  background-position: center;
}

.product-cart-bundle .alert {
  border-color: #e2e8f0;
  background: none;
  color: #000;
}

.left-aside-cart {
  position: relative;
  overflow: hidden;
}

.left-aside-cart::after {
  content: "";
  background-color: var(--mainColor);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.15;
}

.text-red {
  color: #ff483b;
}

.loyalty-points-section .loyalty-points-login {
  color: #000 !important;
  font-size: 14px;
}

.loyalty-points-section .loyalty-points__points-text,
#noCustomerCalculatedValue {
  color: var(--mainColor) !important;
}

.loyalty-points-section,
.loyalty-points-section {
  border-radius: 10px !important;
  padding: 13px !important;
}

.loyalty-points-section
  .loyalty-points-method-applied-section
  .applied_redemption_method_name {
  font-size: 14px !important;
  border-radius: 7px !important;
  height: auto;
}

.loyalty-points-section .loyalty-points-method-applied-row button {
  background: var(--mainColor) !important;
  color: #fff !important;
  padding: 5px 15px !important;
  height: auto !important;
  text-decoration: none !important;
}

.loyalty-points-expected-section .flex-shrink-0 {
  width: auto !important;
}

.loyalty-points-section.rtl .loyalty-points-redemption-form button {
  height: auto;
  padding: 3px;
  background: var(--mainColor);
  border-color: var(--mainColor);
}

.template-cart .gift-card > button span {
  position: relative;
}

.template-cart .gift-card > button span:after {
  content: "";
  background: url('data:image/svg+xml,<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M15 7H9V1C9 0.734784 8.89464 0.48043 8.70711 0.292893C8.51957 0.105357 8.26522 0 8 0C7.73478 0 7.48043 0.105357 7.29289 0.292893C7.10536 0.48043 7 0.734784 7 1V7H1C0.734784 7 0.48043 7.10536 0.292893 7.29289C0.105357 7.48043 0 7.73478 0 8C0 8.26522 0.105357 8.51957 0.292893 8.70711C0.48043 8.89464 0.734784 9 1 9H7V15C7 15.2652 7.10536 15.5196 7.29289 15.7071C7.48043 15.8946 7.73478 16 8 16C8.26522 16 8.51957 15.8946 8.70711 15.7071C8.89464 15.5196 9 15.2652 9 15V9H15C15.2652 9 15.5196 8.89464 15.7071 8.70711C15.8946 8.51957 16 8.26522 16 8C16 7.73478 15.8946 7.48043 15.7071 7.29289C15.5196 7.10536 15.2652 7 15 7Z" fill="%23070606"/></svg>');
  width: 15px;
  height: 15px;
  position: absolute;
  right: -80px;
  background-size: cover;
  top: 6px;
}

[dir="ltr"] .template-cart .gift-card > button span:after {
  left: -50px;
  right: auto;
}

[dir="ltr"] .template-cart .gift-card > button {
  background-position: 90% center;
}

@media (max-width: 776px) {
  .template-cart .gift-card > button span:after {
    right: -20px;
  }
}

@media (max-width: 776px) {
  [dir="ltr"] .template-cart .gift-card > button span:after {
    left: -30px;
    right: auto;
  }
}

@media (max-width: 776px) {
  [dir="ltr"] .template-cart .gift-card > button {
    background-position: 97% center;
  }
}

.gift-card__actions button {
  width: 50% !important;
  padding: 10px !important;
  height: auto !important;
}

.gift-card-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  min-width: 80px;
  min-height: 80px;
  margin-right: 16px;
  background: linear-gradient(135deg, #f7f5fe 0%, #e9e5f5 100%);
  border-radius: 16px;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.08),
    0 2px 4px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.gift-card-icon-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  border-radius: 14px;
  pointer-events: none;
  z-index: 1;
}

.gift-card-icon-wrapper:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.12),
    0 4px 8px rgba(0, 0, 0, 0.08);
  background: linear-gradient(135deg, #f0ecff 0%, #e0d8f5 100%);
}

.gift-card-icon-wrapper .gift-icon-fallback {
  position: relative;
  z-index: 2;
  font-size: 32px;
  color: var(--mainColor, #987ff4);
  opacity: 0.9;
  transition: all 0.3s ease;
}

.gift-card-icon-wrapper:hover .gift-icon-fallback {
  transform: scale(1.1);
  opacity: 1;
}

.gift-card-icon-wrapper .gift-card-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  z-index: 2;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gift-card-icon-wrapper:has(.gift-card-image:not(.d-none)) .gift-icon-fallback {
  display: none;
}

.gift-card-icon-wrapper .gift-card-image:not(.d-none) {
  z-index: 3;
}

@media (max-width: 768px) {
  .gift-card-icon-wrapper {
    width: 70px;
    height: 70px;
    min-width: 70px;
    min-height: 70px;
    margin-right: 12px;
    border-radius: 14px;
  }
}

@media (max-width: 768px) {
  .gift-card-icon-wrapper .gift-icon-fallback {
    font-size: 28px;
  }
}

@media (max-width: 576px) {
  .gift-card-icon-wrapper {
    width: 60px;
    height: 60px;
    min-width: 60px;
    min-height: 60px;
    margin-right: 10px;
    border-radius: 12px;
  }
}

@media (max-width: 576px) {
  .gift-card-icon-wrapper .gift-icon-fallback {
    font-size: 24px;
  }
}

[dir="rtl"] .gift-card-icon-wrapper {
  margin-right: 0;
  margin-left: 16px;
}

@media (max-width: 768px) {
  [dir="rtl"] .gift-card-icon-wrapper {
    margin-left: 12px;
  }
}

@media (max-width: 576px) {
  [dir="rtl"] .gift-card-icon-wrapper {
    margin-left: 10px;
  }
}

.loyalty-points-section {
  border-color: rgba(241, 245, 249, 1) !important;
}

.remove-backdrop-modal {
  overflow: auto !important;
}

.gift-preview__body {
  position: static !important;
}

.gift-preview__body.active-absolute {
  position: absolute !important;
}

.question-cart {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.question-cart .title {
  padding: 15px 20px;
  background-color: rgba(229 224 236 / 0.2);
}

.box-details-toggle:not(:last-of-type) {
  border-bottom: 1px solid #e2e8f0;
}

.question-cart .title h4 {
  font-size: 14px;
  line-height: 22px;
  color: #334155;
}

.question-cart .body-text {
  font-size: 12px;
  line-height: 21px;
  color: #64748b;
}
