.prime-cart-link {
  position: relative;
}

.prime-cart-count {
  position: absolute;
  top: -7px;
  right: -9px;
  z-index: 2;
  display: none;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #d21936;
  color: #fff;
  font-family: "Archivo", Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  pointer-events: none;
}

.prime-cart-count.is-visible {
  display: block;
}

.aurel-cart-notice {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 60000;
  max-width: min(420px, calc(100vw - 30px));
  padding: 11px 16px;
  border-radius: 4px;
  background: #1d1f21;
  color: #fff;
  font: 600 13px/20px "Archivo", Arial, sans-serif;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.aurel-cart-notice.is-error {
  background: #ae2238;
}

.aurel-cart-notice.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.aurel-buy-now-pending #product-info-body [role="buyNow"],
.aurel-buy-now-pending #product-info-body [data-aurel-sheet-confirm],
.aurel-buy-now-pending #product-info-body [data-aurel-paypal] {
  cursor: progress !important;
  opacity: .72;
}

.aurel-native-cart-actions {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  pointer-events: none !important;
}

/* Native Shoplazza cart drawer, visually aligned to the source storefront. */
.aurel-source-surface #cart-drawer-modal .drawer-sidebar-inner {
  height: 100vh !important;
  color: #333;
  border: 0;
  border-radius: 0;
  font-family: "Archivo", Arial, sans-serif;
}

@supports (height: 100dvh) {
  .aurel-source-surface #cart-drawer-modal .drawer-sidebar-inner {
    height: 100dvh !important;
  }
}

.aurel-source-surface #cart-drawer-modal[side='right'] {
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: auto !important;
  width: min(400px, 100vw) !important;
  max-width: 400px !important;
  height: 100vh !important;
  max-height: 100vh !important;
  border-radius: 0 !important;
}

@supports (height: 100dvh) {
  .aurel-source-surface #cart-drawer-modal[side='right'] {
    height: 100dvh !important;
    max-height: 100dvh !important;
  }
}

.aurel-source-surface #cart-drawer-modal .cart-drawer-header {
  position: relative;
  min-height: 54px;
  justify-content: center;
  padding: 0 15px;
  border-bottom: 1px solid #e5e5e5;
}

.aurel-source-surface #cart-drawer-modal .cart-drawer-header > .flex {
  justify-content: center;
}

.aurel-source-surface #cart-drawer-modal .cart-drawer-header h2 {
  margin: 0;
  color: #1d1f21;
  font-size: 16px;
  font-weight: 700;
  line-height: 22px;
}

.aurel-source-surface #cart-drawer-modal .cart-drawer-header spz-render {
  display: none !important;
}

.aurel-source-surface #cart-drawer-modal .cart-drawer-header > button {
  position: absolute;
  top: 50%;
  right: 11px;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
}

.aurel-cart-drawer__reservation {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 16px;
  padding: 0 18px;
  background: #ff4f6b;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}

.aurel-cart-drawer__reservation .atlas-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

.aurel-cart-drawer__reservation spz-countdown,
.aurel-cart-drawer__reservation h4,
.aurel-cart-drawer__reservation span {
  color: inherit;
  font: inherit;
}

.aurel-cart-drawer__promotion {
  margin: 16px 16px 0;
  padding: 13px 13px 15px;
  border: 1px solid #ead3d7;
  background: #fff8f9;
}

.aurel-cart-drawer__promotion p {
  margin: 0 0 12px;
  color: #ae2238;
  font-size: 13px;
  font-weight: 700;
  line-height: 18px;
}

.aurel-cart-drawer__track {
  position: relative;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #eee;
}

.aurel-cart-drawer__track span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: #ae2238;
  transition: width 220ms ease;
}

.aurel-cart-drawer__tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
  color: #888;
  font-size: 11px;
  font-weight: 700;
  line-height: 14px;
  text-align: center;
}

.aurel-cart-drawer__tiers .is-active {
  color: #ae2238;
}

.aurel-source-surface #cart-drawer-modal [id^="cart-content-"] {
  padding: 16px 16px 170px !important;
}

.aurel-source-surface #cart-drawer-modal .cart-drawer-bottom-container {
  display: none !important;
}

.aurel-source-surface #cart-drawer-modal .cart-list-scope--drawer .cart-items {
  gap: 20px;
}

.aurel-source-surface #cart-drawer-modal .cart-list-scope--drawer .item-image {
  width: 78px;
  min-width: 78px;
}

.aurel-source-surface #cart-drawer-modal .cart-list-scope--drawer .item-image spz-img,
.aurel-source-surface #cart-drawer-modal .cart-list-scope--drawer .item-image img {
  border: 1px solid #dedede;
  border-radius: 5px;
  background: #fff;
  object-fit: contain !important;
}

.aurel-source-surface #cart-drawer-modal .cart_item_product_info h5,
.aurel-source-surface #cart-drawer-modal .cart_item_product_info h5 a {
  color: #333;
  font-size: 15px;
  font-weight: 700;
  line-height: 21px;
}

.aurel-source-surface #cart-drawer-modal .cart-items-variant-title,
.aurel-source-surface #cart-drawer-modal .cart_item_product_info > h5.color-text-2 {
  color: #777;
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
}

.aurel-source-surface #cart-drawer-modal .i-spzhtml-quantity-number {
  min-height: 32px;
  border-color: #d8d8d8;
  border-radius: 4px;
}

.aurel-source-surface #cart-drawer-modal .cart-summary,
.aurel-source-surface #cart-drawer-modal .cart_summary_group {
  border-radius: 0;
}

.aurel-source-surface #cart-drawer-modal .cart-summary .button--primary,
.aurel-source-surface #cart-drawer-modal .checkout-btn {
  min-height: 52px;
  border-color: #1d1f21;
  border-radius: 4px;
  background: #1d1f21;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

/* Cart page: keep Shoplazza's cart engine and match the source layout. */
.aurel-source-surface [data-section-type="cart"] .section-content {
  width: min(1400px, calc(100% - 48px));
  max-width: none;
  margin: 0 auto;
}

.aurel-source-surface [data-section-type="cart"] .section-content-inner {
  padding: 40px 0 72px !important;
}

.aurel-source-surface [data-section-type="cart"] .cart-countdown {
  display: none !important;
}

.aurel-source-surface [data-section-type="cart"] .topbar-container {
  min-height: 42px;
  margin-bottom: 24px;
}

.aurel-source-surface [data-section-type="cart"] .topbar-container h2 {
  color: #000;
  font-size: 34px;
  font-weight: 700;
  line-height: 42px;
}

.aurel-source-surface [data-section-type="cart"] .topbar-container h4 {
  display: none;
}

.aurel-source-surface [data-section-type="cart"] .cart-content {
  gap: 32px !important;
  align-items: flex-start;
}

.aurel-source-surface [data-section-type="cart"] .cart-item-details {
  width: 100%;
  min-width: 0;
  padding: 0;
}

.aurel-source-surface [data-section-type="cart"] .cart-items-container {
  overflow: hidden;
  border: 1px solid #e1e1e1;
  border-radius: 6px;
  background: #fff;
}

.aurel-source-surface [data-section-type="cart"] .cart-items > li {
  padding: 18px 16px;
  border-bottom: 1px solid #ededed;
}

.aurel-source-surface [data-section-type="cart"] .cart-items > li:last-child {
  border-bottom: 0;
}

.aurel-source-surface [data-section-type="cart"] .item-image {
  width: 104px;
  min-width: 104px;
}

.aurel-source-surface [data-section-type="cart"] .item-image spz-img,
.aurel-source-surface [data-section-type="cart"] .item-image img {
  width: 86px;
  height: 86px;
  object-fit: contain !important;
}

.aurel-source-surface [data-section-type="cart"] .cart_item_product_info h5,
.aurel-source-surface [data-section-type="cart"] .cart_item_product_info h5 a {
  color: #1d1f21;
  font-size: 15px;
  font-weight: 700;
  line-height: 22px;
}

.aurel-source-surface [data-section-type="cart"] .cart-items-variant-title,
.aurel-source-surface [data-section-type="cart"] .cart_item_product_info > h5.color-text-2 {
  color: #717171;
  font-size: 13px;
  line-height: 20px;
}

.aurel-source-surface [data-section-type="cart"] .cart_summary_group {
  width: min(430px, 100%) !important;
  padding: 24px;
  border: 1px solid #e1e1e1;
  border-radius: 6px;
  background: #fff;
}

.aurel-source-surface [data-section-type="cart"] .cart-summary {
  border-radius: 0;
  background: #fff;
}

.aurel-source-surface [data-section-type="cart"] .cart-summary > h4,
.aurel-source-surface [data-section-type="cart"] .cart-summary .uppercase {
  margin: 0 0 18px;
  color: #000;
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
  text-transform: none;
}

.aurel-source-surface [data-section-type="cart"] .cart-summary .button--primary {
  min-height: 54px;
  border-color: #1d1f21;
  border-radius: 4px;
  background: #1d1f21;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

@media (max-width: 767px) {
  .prime-mobile-icons .prime-cart-count {
    top: -7px;
    right: -8px;
  }

  .aurel-source-surface #cart-drawer-modal[side='right'] {
    width: calc(100vw - 30px) !important;
    max-width: 400px !important;
  }

  .aurel-source-surface #cart-drawer-modal .cart-list-scope--drawer .item-image {
    width: 72px;
    min-width: 72px;
  }

  .aurel-source-surface [data-section-type="cart"] .section-content {
    width: 100%;
    padding: 0 15px;
  }

  .aurel-source-surface [data-section-type="cart"] .section-content-inner {
    padding: 20px 0 44px !important;
  }

  .aurel-source-surface [data-section-type="cart"] .topbar-container {
    min-height: 36px;
    margin-bottom: 16px;
  }

  .aurel-source-surface [data-section-type="cart"] .topbar-container h2 {
    font-size: 28px;
    line-height: 36px;
  }

  .aurel-source-surface [data-section-type="cart"] .cart-content {
    display: block !important;
  }

  .aurel-source-surface [data-section-type="cart"] .cart-items-container {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .aurel-source-surface [data-section-type="cart"] .cart-items > li {
    margin-bottom: 12px;
    padding: 16px;
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    background: #fff;
  }

  .aurel-source-surface [data-section-type="cart"] .item-image {
    width: 78px;
    min-width: 78px;
  }

  .aurel-source-surface [data-section-type="cart"] .item-image spz-img,
  .aurel-source-surface [data-section-type="cart"] .item-image img {
    width: 78px;
    height: 78px;
  }

  .aurel-source-surface [data-section-type="cart"] .cart_summary_group {
    width: 100% !important;
    margin-top: 18px;
    padding: 18px 16px;
  }
}

@media (min-width: 768px) and (max-width: 959px) {
  .aurel-source-surface #cart-drawer-modal[side='right'] {
    width: min(400px, calc(100vw - 30px)) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aurel-cart-notice,
  .aurel-cart-drawer__track span {
    transition: none;
  }
}
