.ie-cart-toast {
  align-items: center;
  background: #222;
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
  color: #fff;
  display: flex;
  font: 600 14px/20px "Poppins", Helvetica, sans-serif;
  gap: 10px;
  left: 50%;
  max-width: min(420px, calc(100vw - 32px));
  opacity: 0;
  padding: 14px 18px;
  pointer-events: none;
  position: fixed;
  top: 88px;
  transform: translate(-50%, -12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 10050;
}

.ie-cart-toast-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.ie-cart-toast .fa-check-circle {
  color: #5cb85c;
  flex-shrink: 0;
  font-size: 18px;
}

.ie-cart-toast-interactive {
  pointer-events: auto;
}

.ie-cart-toast-interactive a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
}

.ie-cart-toast-interactive a:hover {
  color: #ffe8ea;
}

#ttcmsheader .ie-apply-coupon {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 4px;
  color: #fff !important;
  display: inline-block;
  font-weight: 700;
  margin-left: 4px;
  padding: 2px 10px;
  text-decoration: none;
  white-space: nowrap;
}

#ttcmsheader .ie-apply-coupon:hover,
#ttcmsheader .ie-apply-coupon:focus {
  background: #fff;
  color: #f12a43 !important;
  text-decoration: none;
}

#ttcmsheader .ie-apply-coupon.ie-coupon-applied-active {
  background: #fff;
  color: #1a7f37 !important;
  cursor: default;
  pointer-events: none;
}

#ttcmsheader .ie-apply-coupon.ie-apply-coupon-loading {
  opacity: 0.7;
  pointer-events: none;
}

@media (max-width: 767px) {
  #ttcmsheader .ttheader-service {
    color: #fff;
    word-break: break-word;
  }

  #ttcmsheader .ie-apply-coupon {
    margin-left: 6px;
    margin-top: 0;
    vertical-align: middle;
  }

  .ie-cart-toast {
    top: auto;
    bottom: 20px;
    transform: translate(-50%, 12px);
  }

  .ie-cart-toast-visible {
    transform: translate(-50%, 0);
  }
}

#cart.btn-group {
  position: relative;
}

#cart:not(.open) > ul.header-cart-toggle {
  display: none !important;
}

:root {
  --ie-cart-top: 72px;
  --ie-help-safe-bottom: 84px;
}

#cart.open > ul.header-cart-toggle {
  border: 1px solid #ececec;
  border-radius: 14px;
  bottom: var(--ie-help-safe-bottom);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.16);
  display: flex !important;
  flex-direction: column;
  left: auto;
  max-height: none;
  overflow: hidden;
  padding: 0;
  position: fixed !important;
  right: 14px;
  top: var(--ie-cart-top);
  width: min(400px, calc(100vw - 28px));
  z-index: 10040;
}

#cart.open .ie-cart-toolbar {
  flex: 0 0 auto;
  list-style: none;
  margin: 0;
  padding: 6px 8px 0;
  text-align: right;
}

.ie-cart-close-btn {
  background: transparent;
  border: 0;
  color: #888;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  padding: 0 4px;
}

.ie-cart-close-btn:hover,
.ie-cart-close-btn:focus {
  color: #f12a43;
}

#cart.open .cart-dropdown-items {
  flex: 1 1 auto;
  list-style: none;
  margin: 0;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 10px 10px;
}

#cart.open .cart-dropdown-footer {
  background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
  border-top: 1px solid #eee;
  flex: 0 0 auto;
  list-style: none;
  margin: 0;
  padding: 12px 14px 14px;
}

#cart.open .ie-cart-footer-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0 0;
}

#cart.open .ie-cart-btn {
  border-radius: 10px;
  display: block;
  float: none !important;
  font-family: Poppins, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0 !important;
  padding: 12px 16px;
  text-align: center;
  text-decoration: none !important;
  text-transform: none;
  transition: background 0.15s ease, transform 0.15s ease;
  width: 100% !important;
}

#cart.open .ie-cart-btn::after {
  display: none !important;
}

#cart.open .ie-cart-btn-checkout {
  background: #f12a43 !important;
  border: none !important;
  box-shadow: 0 6px 18px rgba(241, 42, 67, 0.28);
  color: #fff !important;
}

#cart.open .ie-cart-btn-checkout:hover,
#cart.open .ie-cart-btn-checkout:focus {
  background: #d81f38 !important;
  color: #fff !important;
  transform: translateY(-1px);
}

#cart.open .ie-cart-btn-view {
  background: #fff !important;
  border: 1.5px solid #ddd !important;
  color: #333 !important;
}

#cart.open .ie-cart-btn-view:hover,
#cart.open .ie-cart-btn-view:focus {
  background: #f5f5f5 !important;
  border-color: #ccc !important;
  color: #111 !important;
}

/* Tuck help launcher aside while cart is open */
body.ie-cart-open .ie-chat-root {
  bottom: 16px;
  left: 16px;
  right: auto;
  transition: left 0.28s ease, right 0.28s ease, bottom 0.28s ease;
}

body.ie-cart-open .ie-chat-launcher {
  padding: 8px;
}

body.ie-cart-open .ie-chat-launcher-copy {
  display: none;
}

body.ie-cart-open .ie-chat-panel.is-open {
  left: 0;
  right: auto;
}

@media (max-width: 991px) {
  :root {
    --ie-cart-top: 52px;
    --ie-help-safe-bottom: 72px;
  }
}

@media (max-width: 767px) {
  :root {
    --ie-cart-top: 48px;
    --ie-help-safe-bottom: 68px;
  }

  #cart.open > ul.header-cart-toggle {
    right: 10px;
    width: min(400px, calc(100vw - 20px));
  }
}

#cart > ul.header-cart-toggle.ie-cart-refreshing,
#cart > ul.header-cart-toggle.ie-cart-refreshing * {
  pointer-events: auto;
}
