/* ==========================================================================
   Yeshan Loyalty & Rewards - Enterprise Storefront Styles
   ========================================================================== */

/* Modern Loyalty Card Container */
.loyalty-product-widget,
.loyalty-drawer-widget,
.loyalty-injected-card,
.loyalty-account-portal {
  margin: 14px 0;
  padding: 16px;
  background: #ffffff;
  border: 1px solid #dcdfe1;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #202223;
  box-sizing: border-box;
}

.loyalty-injected-card {
  background: #fbfdfc;
  border: 1px solid #c2e5d3;
  margin: 10px 0 14px 0;
  padding: 14px;
}

/* Header & Badges */
.loyalty-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.loyalty-title-text {
  font-size: 13.5px;
  font-weight: 700;
  color: #202223;
  display: flex;
  align-items: center;
  gap: 6px;
}

.loyalty-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #eef7f2;
  color: #008060;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid #c2e5d3;
}

/* Slider Controls */
.loyalty-slider-wrap {
  margin: 10px 0;
}

.loyalty-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #6d7175;
  margin-bottom: 6px;
}

.loyalty-slider-row {
  display: flex;
  align-items: center;
  gap: 10px;
  touch-action: pan-y !important;
}

/* Custom Fluid Range Slider */
.loyalty-range-slider {
  flex: 1;
  width: 100% !important;
  height: 28px !important;
  min-height: 28px !important;
  background: transparent !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  border: none !important;
  outline: none !important;
  cursor: pointer !important;
  touch-action: pan-y !important;
  pointer-events: auto !important;
  position: relative;
  z-index: 10;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  accent-color: #008060 !important;
  box-sizing: border-box !important;
}

.loyalty-range-slider::-webkit-slider-runnable-track {
  width: 100% !important;
  height: 8px !important;
  background: #d4e5dd !important;
  border-radius: 4px !important;
  border: none !important;
  cursor: pointer !important;
}

.loyalty-range-slider::-moz-range-track {
  width: 100% !important;
  height: 8px !important;
  background: #d4e5dd !important;
  border-radius: 4px !important;
  border: none !important;
  cursor: pointer !important;
}

.loyalty-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 22px !important;
  height: 22px !important;
  border-radius: 50% !important;
  background: #008060 !important;
  cursor: pointer !important;
  box-shadow: 0 2px 6px rgba(0, 128, 96, 0.4) !important;
  border: 2px solid #ffffff !important;
  margin-top: -7px !important;
  pointer-events: auto !important;
  transition: transform 0.1s ease !important;
  position: relative !important;
  z-index: 20 !important;
  visibility: visible !important;
  display: block !important;
  opacity: 1 !important;
}

.loyalty-range-slider::-webkit-slider-thumb:hover,
.loyalty-range-slider:active::-webkit-slider-thumb {
  transform: scale(1.15) !important;
  background: #006e52 !important;
}

.loyalty-range-slider::-moz-range-thumb {
  width: 22px !important;
  height: 22px !important;
  border-radius: 50% !important;
  background: #008060 !important;
  cursor: pointer !important;
  box-shadow: 0 2px 6px rgba(0, 128, 96, 0.4) !important;
  border: 2px solid #ffffff !important;
  pointer-events: auto !important;
  visibility: visible !important;
  display: block !important;
  opacity: 1 !important;
}

.loyalty-pts-input-box {
  display: flex;
  align-items: center;
  gap: 4px;
}

.loyalty-number-input {
  width: 70px;
  padding: 5px 6px;
  border: 1px solid #c9cccf;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  color: #202223;
  outline: none;
}

.loyalty-number-input:focus {
  border-color: #008060;
  box-shadow: 0 0 0 1px #008060;
}

/* Points Balance Remaining Box */
.loyalty-calc-box {
  background: #f1f7f4;
  border: 1px solid #d4e5dd;
  border-radius: 6px;
  padding: 8px 12px;
  margin: 10px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #202223;
}

.loyalty-calc-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.loyalty-calc-right {
  text-align: right;
}

/* Action Buttons */
.loyalty-btn-primary {
  width: 100%;
  background: #008060;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.loyalty-btn-primary:hover {
  background: #006e52;
}

.loyalty-btn-primary:disabled {
  background: #919eab;
  cursor: not-allowed;
}

.loyalty-link-btn {
  background: none;
  border: none;
  color: #008060;
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: underline;
  padding: 0;
}

.loyalty-link-btn:hover {
  color: #004c3f;
}

/* Applied Card State */
.loyalty-applied-container {
  background: #eef7f2;
  border: 1px solid #c2e5d3;
  border-radius: 8px;
  padding: 12px 14px;
  margin: 8px 0;
}

.loyalty-applied-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6px;
}

.loyalty-applied-title {
  color: #008060;
  font-weight: 700;
  font-size: 13.5px;
}

.loyalty-applied-remaining {
  font-size: 12px;
  color: #202223;
  font-weight: 600;
  margin-top: 2px;
}

.loyalty-applied-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  border-top: 1px dashed #c2e5d3;
  padding-top: 8px;
}

.loyalty-btn-remove {
  background: none;
  border: 1px solid #d72c0d;
  color: #d72c0d;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.loyalty-btn-remove:hover {
  background: #fff4f2;
}

.loyalty-btn-edit {
  background: none;
  border: 1px solid #008060;
  color: #008060;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.loyalty-btn-edit:hover {
  background: #eef7f2;
}

/* Product Page Earning Badge */
.loyalty-product-badge,
.loyalty-earn-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #eef7f2;
  border: 1px solid #c2e5d3;
  border-radius: 20px;
  color: #006e52;
  font-size: 13px;
  font-weight: 600;
  margin: 4px 0 12px 0;
}

/* Modern Clean Loyalty Card */
.loyalty-card-clean {
  background: #ffffff;
  border: 1px solid #dcdfe1;
  border-radius: 10px;
  padding: 14px 16px;
  margin: 10px 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  box-sizing: border-box;
}

.loyalty-header-clean {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.loyalty-title-clean {
  font-size: 13.5px;
  font-weight: 700;
  color: #202223;
  display: flex;
  align-items: center;
  gap: 6px;
}

.loyalty-balance-clean {
  font-size: 12px;
  font-weight: 700;
  color: #008060;
  background: #eef7f2;
  border: 1px solid #c2e5d3;
  border-radius: 20px;
  padding: 3px 10px;
}

.loyalty-slider-clean-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  touch-action: pan-y !important;
}

.loyalty-pts-bubble {
  min-width: 68px;
  text-align: center;
  background: #f6f8f7;
  border: 1px solid #c9cccf;
  border-radius: 6px;
  padding: 5px 8px;
  font-weight: 700;
  font-size: 13px;
  color: #202223;
  flex-shrink: 0;
}

.loyalty-discount-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0 14px 0;
  font-size: 13px;
  color: #444746;
  padding: 8px 12px;
  background: #f9fbf9;
  border-radius: 6px;
  border: 1px dashed #c2e5d3;
}

.loyalty-green-text {
  color: #008060;
  font-weight: 800;
  font-size: 14.5px;
}

.loyalty-add-to-cart-btn {
  width: 100%;
  height: 44px;
  background: #008060;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.15s ease, transform 0.1s ease;
  box-shadow: 0 1px 3px rgba(0, 128, 96, 0.2);
}

.loyalty-add-to-cart-btn:hover {
  background: #006e52;
}

.loyalty-add-to-cart-btn:active {
  transform: scale(0.99);
}

.loyalty-add-to-cart-btn:disabled {
  background: #8c9196;
  cursor: not-allowed;
}

.loyalty-zero-notice {
  background: #f8faf9;
  border: 1px solid #d4e5dd;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  color: #6d7175;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0;
}

.loyalty-guest-notice {
  font-size: 13px;
  color: #6d7175;
  padding: 8px 0;
}

.loyalty-guest-notice a {
  color: #008060;
  font-weight: 700;
  text-decoration: underline;
}

/* Strikethrough & Highlighted Subtotal Display */
.loyalty-original-price {
  color: #8c9196 !important;
  font-size: 0.88em !important;
  font-weight: 500 !important;
  margin-right: 6px !important;
  text-decoration: line-through !important;
}

.loyalty-discounted-price {
  color: #008060 !important;
  font-weight: 800 !important;
  font-size: 1em !important;
  letter-spacing: -0.01em;
}

/* Discount Rows in Drawer and Cart Page */
.loyalty-drawer-discount-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin: 8px 0 !important;
  color: #008060 !important;
  font-weight: 700 !important;
  font-size: 13.5px !important;
  padding: 4px 0 !important;
  border-bottom: 1px dashed #c2e5d3 !important;
}

.loyalty-cartpage-discount-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin: 10px 0 !important;
  color: #008060 !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  padding: 8px 14px !important;
  background: #eef7f2 !important;
  border-radius: 6px !important;
  border: 1px solid #c2e5d3 !important;
}

/* Product Page Apply Discount Button & Active States */
.loyalty-apply-pdp-btn {
  width: 100%;
  height: 44px;
  background: #008060;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 128, 96, 0.25);
  margin-top: 10px;
}

.loyalty-apply-pdp-btn {
  width: 100%;
  height: 42px;
  background: linear-gradient(135deg, #008060 0%, #006e52 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(0, 128, 96, 0.25);
  transition: all 0.15s ease;
}

.loyalty-apply-pdp-btn:hover {
  background: linear-gradient(135deg, #006e52 0%, #005a43 100%);
  box-shadow: 0 4px 10px rgba(0, 128, 96, 0.35);
  transform: translateY(-1px);
}

.loyalty-apply-pdp-btn:active {
  transform: scale(0.99);
}

.loyalty-apply-pdp-btn:disabled {
  background: #8c9196;
  box-shadow: none;
  cursor: not-allowed;
}

.loyalty-applied-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 14px;
  background: #f0faf5;
  border: 1.5px solid #a3dcbd;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 128, 96, 0.1);
}

.loyalty-applied-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #008060;
  font-weight: 600;
}

.loyalty-checkmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: #008060;
  color: #ffffff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.loyalty-remove-pdp-btn {
  background: #ffffff;
  border: 1px solid #f2c8c4;
  color: #c9372c;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.loyalty-remove-pdp-btn:hover {
  background: #fef4f3;
  border-color: #c9372c;
}

.loyalty-remove-pdp-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.loyalty-pdp-instruction {
  font-size: 12px;
  font-weight: 500;
  color: #4a5568;
  background: #f8faf9;
  border-left: 3px solid #008060;
  padding: 8px 12px;
  border-radius: 0 6px 6px 0;
  margin-top: 10px;
  line-height: 1.4;
}

/* ==========================================================================
   Redesigned Luxury E-Commerce Accordion
   ========================================================================== */

/* Modern Accordion Container */
.loyalty-pdp-accordion {
  border: 1px solid #d8e2dc;
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
  margin: 16px 0;
  box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.loyalty-pdp-accordion:hover {
  border-color: #008060;
  box-shadow: 0 4px 14px -2px rgba(0, 128, 96, 0.12), 0 1px 4px rgba(0, 0, 0, 0.04);
}

/* Accordion Header */
.loyalty-accordion-header {
  padding: 13px 16px;
  background: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  transition: background 0.15s ease;
}

.loyalty-accordion-header:hover {
  background: #fbfdfc;
}

.loyalty-pdp-accordion.is-open .loyalty-accordion-header {
  background: #f9fbfb;
  border-bottom: 1px solid #eef3f0;
}

.loyalty-accordion-title-area {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

/* Elegant Icon Badge */
.loyalty-icon-badge {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #eef7f2 0%, #d8eee2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  border: 1px solid #c2e5d3;
  box-shadow: 0 1px 2px rgba(0, 128, 96, 0.08);
}

.loyalty-accordion-title-text {
  font-size: 13.5px;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.1px;
}

.loyalty-accordion-tag {
  font-size: 11.5px;
  font-weight: 700;
  color: #008060;
  background: #eef7f2;
  border: 1px solid #bce4d0;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.loyalty-accordion-tag.is-active {
  background: #e6f6ee;
  color: #006e52;
  border-color: #008060;
}

.loyalty-accordion-toggle-area {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-left: 8px;
}

.loyalty-status-badge {
  font-size: 11.5px;
  font-weight: 700;
  color: #008060;
  background: #f0f7f4;
  padding: 3px 8px;
  border-radius: 6px;
}

.loyalty-accordion-chevron {
  width: 16px;
  height: 16px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  color: #5c6861;
  flex-shrink: 0;
}

.loyalty-pdp-accordion.is-open .loyalty-accordion-chevron {
  transform: rotate(180deg);
  color: #008060;
}

/* Accordion Body */
.loyalty-accordion-body {
  padding: 16px;
  background: #ffffff;
  display: none;
}

.loyalty-pdp-accordion.is-open .loyalty-accordion-body {
  display: block;
  animation: loyaltyFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Balance & Rewards Stats Bar */
.loyalty-stats-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f7faf8;
  border: 1px solid #e5ede8;
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 12px;
  font-size: 12px;
  color: #5c6861;
}

.loyalty-stat-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.loyalty-stat-item strong {
  color: #1a1a1a;
}

/* Cart Page Card Container */
.loyalty-cart-page-container {
  margin: 0 0 16px 0 !important;
  border: 1px solid #d8e2dc;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.05);
  padding: 12px;
  box-sizing: border-box;
  text-align: left !important;
  width: 100% !important;
}

.t4s-summary-cart,
.t4s-cartPage__footer .t4s-order-4 {
  display: flex !important;
  flex-direction: column !important;
}

.t4s-summary-cart .loyalty-cart-page-container,
.t4s-cartPage__footer .t4s-order-4 .loyalty-cart-page-container,
.t4s-cartPage__footer .loyalty-cart-page-container {
  order: -10 !important;
  margin: 0 0 16px 0 !important;
  border: 1px solid #d8e2dc !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  padding: 12px !important;
  text-align: left !important;
  width: 100% !important;
  box-sizing: border-box !important;
  display: block !important;
}

.t4s-cartPage__footer .t4s-order-4 .t4s-cart-total,
.t4s-summary-cart .t4s-cart-total {
  width: 100% !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

.t4s-cartPage__footer .t4s-order-4 .loyalty-subtotal-earn-line,
.t4s-summary-cart .loyalty-subtotal-earn-line {
  text-align: right !important;
  width: 100% !important;
  margin-top: 4px !important;
}

.t4s-cartPage__footer .t4s-order-4 .t4s-btn-group__checkout-update,
.t4s-cartPage__footer .t4s-order-4 .t4s-btn__checkout,
.t4s-summary-cart .t4s-btn-group__checkout-update,
.t4s-summary-cart .t4s-btn__checkout {
  width: 100% !important;
}

.loyalty-cart-page-container #loyalty-cartpage-compact-strip {
  margin: 0 !important;
}

@keyframes loyaltyFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Suppress native theme discount tags, badges, and preview elements (Ecomus, Dawn, Unsen) */
.hdt-cart_discounts,
.hdt-discount-item,
.hdt-discounts__discount,
.hdt-discount-info,
.hdt-discount-title,
.hdt-discount-amount,
.hdt-discount-remove,
.cart-drawer .discounts__discount,
#CartDrawer .discounts__discount,
.drawer__footer .discounts__discount,
.cart__blocks .discounts__discount,
.main-cart-footer .discounts__discount,
#loyalty-live-preview-discount,
.loyalty-live-preview-discount,
#loyalty-drawer-discount-row,
.loyalty-drawer-discount-row,
li.discounts__discount,
[data-cart-discounts],
.t4s-cart_discounts,
.t4s-cart-discounts,
.t4s-cart__discounts,
.t4s-cart-discount-badge,
.t4s-discount-item,
.t4s-cart-discounts__discount,
.t4s-order-discount,
.loyalty-line-item-earn-tag {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Guarantee subtotal and totals containers are ALWAYS 100% visible and unobstructed */
.hdt-totals,
.hdt-mini-cart__totals,
.hdt-totals__total,
.hdt-totals__total-value,
.hdt-page-cart__totals,
.hdt-page_cart__total-price,
.totals,
.totals__total,
.totals__total-value {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
}

/* ==========================================================================
   Yeshan Loyalty & Rewards - Floating Storewide Widget & Modal (Smile.io Style)
   ========================================================================== */

/* 1. Floating Launcher Button - Round Glowing Circle without closed text */
.yeshan-loyalty-launcher-btn {
  position: fixed !important;
  bottom: 24px !important;
  left: 24px !important;
  right: auto !important;
  z-index: 2147483640 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 56px !important;
  height: 56px !important;
  min-width: 56px !important;
  min-height: 56px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #072918 0%, #0d4a2d 60%, #008060 100%) !important;
  color: #ffffff !important;
  border: 2px solid #c9a648 !important;
  padding: 0 !important;
  box-shadow: 0 4px 18px rgba(0, 128, 96, 0.45), 0 0 12px rgba(201, 166, 72, 0.5) !important;
  cursor: grab !important;
  touch-action: none !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  -webkit-tap-highlight-color: transparent !important;
  animation: yeshanGlowPulse 2.8s infinite ease-in-out !important;
}

@keyframes yeshanGlowPulse {
  0% {
    box-shadow: 0 4px 16px rgba(0, 128, 96, 0.4), 0 0 0 0 rgba(201, 166, 72, 0.5);
  }
  50% {
    box-shadow: 0 6px 24px rgba(0, 128, 96, 0.65), 0 0 18px 5px rgba(201, 166, 72, 0.7);
  }
  100% {
    box-shadow: 0 4px 16px rgba(0, 128, 96, 0.4), 0 0 0 0 rgba(201, 166, 72, 0.5);
  }
}

.yeshan-loyalty-launcher-btn:hover {
  transform: scale(1.08) translateY(-2px) !important;
  box-shadow: 0 8px 28px rgba(0, 128, 96, 0.7), 0 0 22px 6px rgba(201, 166, 72, 0.8) !important;
}

.yeshan-loyalty-launcher-btn.is-dragging {
  cursor: grabbing !important;
  transform: scale(1.12) !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5) !important;
  opacity: 0.95 !important;
}

.yeshan-loyalty-launcher-btn:active {
  transform: scale(0.96) !important;
}

.yeshan-launcher-icon {
  width: 100% !important;
  height: 100% !important;
  border-radius: 50% !important;
  background: transparent !important;
  border: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: none !important;
  flex-shrink: 0 !important;
}

.yeshan-launcher-icon svg {
  width: 28px !important;
  height: 28px !important;
}

/* Closed state hides text & grip to keep launcher compact, round & clean */
.yeshan-launcher-grip,
.yeshan-launcher-text {
  display: none !important;
}

.yeshan-launcher-title {
  display: none !important;
}

.yeshan-launcher-balance {
  display: none !important;
}

/* 2. Modal Overlay & Container */
.yeshan-loyalty-modal-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 2147483647 !important;
  pointer-events: auto !important;
  background: rgba(15, 23, 42, 0.5) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding: 24px !important;
  box-sizing: border-box !important;
  transition: opacity 0.25s ease !important;
}

.yeshan-loyalty-modal-overlay.hidden {
  display: none !important;
}

.yeshan-loyalty-modal-card {
  width: 100% !important;
  max-width: 410px !important;
  max-height: 90vh !important;
  background: #ffffff !important;
  border-radius: 20px !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4) !important;
  border: 1px solid rgba(226, 232, 240, 0.8) !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  animation: yeshanModalSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
  box-sizing: border-box !important;
}

@keyframes yeshanModalSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* 3. Modal Header */
.yeshan-modal-header {
  position: relative !important;
  background: linear-gradient(135deg, #0f172a 0%, #064e3b 55%, #0f172a 100%) !important;
  color: #ffffff !important;
  padding: 22px 20px !important;
  box-sizing: border-box !important;
}

.yeshan-modal-close-btn {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  width: 30px !important;
  height: 30px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.12) !important;
  color: #e2e8f0 !important;
  border: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 15px !important;
  cursor: pointer !important;
  transition: background 0.2s ease, color 0.2s ease !important;
}

.yeshan-modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
}

.yeshan-modal-header-top {
  margin-bottom: 8px !important;
}

.yeshan-modal-brand-badge {
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.8px !important;
  color: #34d399 !important;
}

.yeshan-modal-header-main {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
}

.yeshan-modal-greeting {
  font-size: 18px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  margin: 0 !important;
  line-height: 1.2 !important;
}

.yeshan-modal-balance-row {
  display: flex !important;
  align-items: baseline !important;
  gap: 6px !important;
  margin-top: 4px !important;
}

.yeshan-modal-balance-val {
  font-size: 24px !important;
  font-weight: 900 !important;
  color: #34d399 !important;
  line-height: 1 !important;
}

.yeshan-modal-balance-label {
  font-size: 11px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  color: #94a3b8 !important;
}

.yeshan-modal-tier-badge {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  padding: 6px 12px !important;
  border-radius: 12px !important;
  background: rgba(245, 158, 11, 0.18) !important;
  border: 1px solid rgba(251, 191, 36, 0.4) !important;
  color: #fef08a !important;
  flex-shrink: 0 !important;
}

.yeshan-modal-tier-icon {
  font-size: 18px !important;
  line-height: 1 !important;
}

.yeshan-modal-tier-name {
  font-size: 10px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  margin-top: 2px !important;
}

.yeshan-modal-tier-progress {
  margin-top: 14px !important;
  padding-top: 12px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  font-size: 11px !important;
  color: #cbd5e1 !important;
}

/* 4. Modal Tabs Header */
.yeshan-modal-tabs {
  display: flex !important;
  border-bottom: 1px solid #e2e8f0 !important;
  background: #f8fafc !important;
}

.yeshan-tab-btn {
  flex: 1 !important;
  padding: 12px 6px !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 2px solid transparent !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #64748b !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  text-align: center !important;
  font-family: inherit !important;
}

.yeshan-tab-btn:hover {
  color: #0f172a !important;
}

.yeshan-tab-btn.active {
  color: #008060 !important;
  border-bottom-color: #008060 !important;
  background: #ffffff !important;
}

/* 5. Tab Content Container */
.yeshan-tab-content {
  padding: 18px 20px !important;
  overflow-y: auto !important;
  flex: 1 !important;
  box-sizing: border-box !important;
}

/* Tab 1: Redeem Points Elements */
.yeshan-redeem-subtotal-box {
  background: #f0fdf4 !important;
  border: 1px solid #bbf7d0 !important;
  border-radius: 12px !important;
  padding: 12px 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 16px !important;
}

.yeshan-subtotal-label {
  display: block !important;
  font-size: 11px !important;
  color: #64748b !important;
  margin-bottom: 2px !important;
}

.yeshan-subtotal-val {
  font-size: 14px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
}

.yeshan-redeem-input-section {
  margin-bottom: 16px !important;
}

.yeshan-input-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 6px !important;
}

.yeshan-input-label {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #1e293b !important;
}

.yeshan-rate-hint {
  font-size: 11px !important;
  color: #64748b !important;
}

.yeshan-direct-input-wrap {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  margin-bottom: 12px !important;
}

.yeshan-direct-points-input {
  width: 100% !important;
  padding: 10px 48px 10px 14px !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 12px !important;
  outline: none !important;
  box-sizing: border-box !important;
  font-family: inherit !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.yeshan-direct-points-input:focus {
  border-color: #008060 !important;
  box-shadow: 0 0 0 3px rgba(0, 128, 96, 0.15) !important;
}

.yeshan-input-suffix {
  position: absolute !important;
  right: 14px !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  color: #94a3b8 !important;
  pointer-events: none !important;
}

.yeshan-slider-wrap {
  margin-bottom: 12px !important;
}

.yeshan-slider-bounds {
  display: flex !important;
  justify-content: space-between !important;
  font-size: 11px !important;
  color: #94a3b8 !important;
  margin-top: 4px !important;
}

.yeshan-preset-chips {
  display: flex !important;
  gap: 6px !important;
}

.yeshan-chip {
  flex: 1 !important;
  padding: 6px 0 !important;
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #475569 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  font-family: inherit !important;
}

.yeshan-chip:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}

.yeshan-chip-max {
  background: #f0fdf4 !important;
  border-color: #bbf7d0 !important;
  color: #166534 !important;
}

.yeshan-discount-summary-card {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 12px 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 16px !important;
}

.yeshan-discount-calc-title {
  display: block !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #1e293b !important;
}

.yeshan-discount-calc-sub {
  display: block !important;
  font-size: 11px !important;
  color: #64748b !important;
}

.yeshan-discount-calc-val {
  font-size: 17px !important;
  font-weight: 900 !important;
  color: #008060 !important;
}

.yeshan-modal-actions {
  display: flex !important;
  gap: 8px !important;
}

.yeshan-modal-btn-apply {
  flex: 1 !important;
  height: 44px !important;
  background: #008060 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 12px !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  transition: background 0.2s ease, opacity 0.2s ease !important;
  box-shadow: 0 1px 3px rgba(0, 128, 96, 0.3) !important;
  font-family: inherit !important;
}

.yeshan-modal-btn-apply:hover:not(:disabled) {
  background: #004c3f !important;
}

.yeshan-modal-btn-apply:disabled {
  background: #94a3b8 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}

.yeshan-modal-btn-remove {
  padding: 0 16px !important;
  height: 44px !important;
  background: #f1f5f9 !important;
  color: #dc2626 !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: background 0.2s ease !important;
  font-family: inherit !important;
}

.yeshan-modal-btn-remove:hover {
  background: #fee2e2 !important;
}

.yeshan-guest-prompt {
  margin-top: 14px !important;
  padding: 12px 14px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  font-size: 12px !important;
  color: #475569 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
}

.yeshan-guest-login-link {
  color: #008060 !important;
  font-weight: 800 !important;
  text-decoration: underline !important;
  font-size: 12px !important;
  white-space: nowrap !important;
}

/* Tab 2: Ways to Earn Elements */
.yeshan-tab-subtitle {
  font-size: 12px !important;
  color: #64748b !important;
  margin-bottom: 12px !important;
  line-height: 1.4 !important;
}

.yeshan-earn-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

.yeshan-earn-card {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 11px 13px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
}

.yeshan-earn-icon {
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 16px !important;
  margin-right: 10px !important;
  flex-shrink: 0 !important;
}

.yeshan-earn-details {
  flex: 1 !important;
  line-height: 1.25 !important;
}

.yeshan-earn-title {
  display: block !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
}

.yeshan-earn-desc {
  display: block !important;
  font-size: 11px !important;
  color: #64748b !important;
}

.yeshan-earn-badge {
  font-size: 11.5px !important;
  font-weight: 800 !important;
  color: #008060 !important;
  padding: 3px 8px !important;
  background: #f0fdf4 !important;
  border: 1px solid #bbf7d0 !important;
  border-radius: 20px !important;
  flex-shrink: 0 !important;
}

/* Tab 3: VIP Tiers Elements */
.yeshan-rule-box {
  background: #f0fdf4 !important;
  border: 1px solid #bbf7d0 !important;
  border-radius: 12px !important;
  padding: 12px 14px !important;
  margin-bottom: 14px !important;
}

.yeshan-tiers-title {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin-bottom: 8px !important;
}

.yeshan-tiers-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

.yeshan-tier-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 11px 13px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
}

.yeshan-tier-row.active-tier {
  border: 2px solid #f59e0b !important;
  background: #fffbeb !important;
}

.yeshan-tier-icon-wrap {
  font-size: 20px !important;
  margin-right: 10px !important;
}

.yeshan-tier-info {
  flex: 1 !important;
  line-height: 1.25 !important;
}

.yeshan-tier-title {
  display: block !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
}

.yeshan-tier-desc {
  display: block !important;
  font-size: 11px !important;
  color: #64748b !important;
}

.yeshan-tier-badge {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #475569 !important;
  padding: 3px 8px !important;
  background: #f1f5f9 !important;
  border-radius: 20px !important;
}

.yeshan-tier-gold-badge {
  background: #fef3c7 !important;
  color: #92400e !important;
  border: 1px solid #fde68a !important;
}

/* Modal Footer */
.yeshan-modal-footer {
  padding: 10px 16px !important;
  background: #f8fafc !important;
  border-top: 1px solid #e2e8f0 !important;
  text-align: center !important;
  font-size: 10.5px !important;
  color: #94a3b8 !important;
}

/* 6. Ultra-Compact Cart Drawer & PDP Strips */
.loyalty-drawer-compact-strip {
  margin: 3px 0 !important;
  padding: 5px 10px !important;
  background: #f0fdf4 !important;
  border: 1px solid #bbf7d0 !important;
  border-radius: 6px !important;
  min-height: 28px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  font-family: inherit !important;
  box-sizing: border-box !important;
}

.loyalty-drawer-compact-strip.applied {
  background: #ecfdf5 !important;
  border-color: #a7f3d0 !important;
}

.loyalty-drawer-open-modal-btn {
  background: #008060 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 5px !important;
  padding: 3px 8px !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: background 0.2s ease !important;
  font-family: inherit !important;
  flex-shrink: 0 !important;
  line-height: 1.3 !important;
}

.loyalty-drawer-open-modal-btn:hover {
  background: #004c3f !important;
}

.loyalty-cartpage-compact-strip {
  margin: 12px 0 16px 0 !important;
  padding: 12px 16px !important;
  background: #f0fdf4 !important;
  border: 1px solid #bbf7d0 !important;
  border-radius: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  font-family: inherit !important;
  box-sizing: border-box !important;
}

.loyalty-cartpage-compact-strip.applied {
  background: #ecfdf5 !important;
  border-color: #a7f3d0 !important;
}

.loyalty-strip-remove-btn {
  background: transparent !important;
  border: none !important;
  color: #ef4444 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  padding: 2px 4px !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: opacity 0.2s ease !important;
}

.loyalty-strip-remove-btn:hover {
  opacity: 0.75 !important;
}

.loyalty-pdp-compact-banner {
  margin: 10px 0 !important;
  padding: 10px 14px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  font-family: inherit !important;
  box-sizing: border-box !important;
}

/* Responsive Overrides (Mobile) */
@media (max-width: 640px) {
  .yeshan-loyalty-launcher-btn {
    bottom: 16px !important;
    left: 16px !important;
    right: auto !important;
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    min-height: 50px !important;
    border-radius: 50% !important;
    padding: 0 !important;
  }
  
  .yeshan-launcher-icon svg {
    width: 24px !important;
    height: 24px !important;
  }

  .yeshan-launcher-title {
    display: none !important;
  }

  .yeshan-loyalty-modal-overlay {
    padding: 0 !important;
    align-items: flex-end !important;
    justify-content: center !important;
  }

  .yeshan-loyalty-modal-card {
    max-width: 100% !important;
    width: 100% !important;
    max-height: 85vh !important;
    border-radius: 20px 20px 0 0 !important;
    border-bottom: none !important;
  }

  .yeshan-modal-tabs {
    overflow-x: auto !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }
  .yeshan-modal-tabs::-webkit-scrollbar {
    display: none !important;
  }
  .yeshan-tab-btn {
    padding: 10px 8px !important;
    font-size: 12px !important;
    flex: 1 0 auto !important;
  }

  /* Mobile Space-Saving Overrides: Cart Drawer & PDP */
  #loyalty-drawer-slider-container {
    display: none !important;
  }
  .loyalty-drawer-compact-strip {
    margin: 2px 0 !important;
    padding: 4px 8px !important;
    min-height: 26px !important;
    border-radius: 6px !important;
  }
  .loyalty-pdp-accordion {
    margin-top: 6px !important;
  }
}

/* Product Page Points Tag near Price */
.yeshan-pdp-points-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  margin: 8px 0 10px 0 !important;
  padding: 6px 12px !important;
  background: #f0fdf4 !important;
  border: 1px solid #bbf7d0 !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  color: #166534 !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease !important;
}

.yeshan-pdp-points-badge strong {
  color: #15803d !important;
  font-weight: 700 !important;
}

/* Subtotal Earn Notice Line in Cart Drawer & Cart Page */
.loyalty-subtotal-earn-line {
  font-size: 11px !important;
  color: #008060 !important;
  font-weight: 600 !important;
  margin: 3px 0 5px 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 5px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  text-align: right !important;
  line-height: 1.3 !important;
}

/* ==========================================================================
   Spend Booster & Milestone Celebration Animation ("🔥 Double Points Activated!")
   ========================================================================== */
@keyframes yeshanBoosterFireGlow {
  0% {
    box-shadow: 0 0 0 rgba(245, 158, 11, 0), 0 2px 8px rgba(0, 0, 0, 0.05);
    border-color: #f59e0b;
  }
  50% {
    box-shadow: 0 0 18px rgba(245, 158, 11, 0.55), 0 0 30px rgba(239, 68, 68, 0.25);
    border-color: #ef4444;
  }
  100% {
    box-shadow: 0 0 0 rgba(245, 158, 11, 0), 0 2px 8px rgba(0, 0, 0, 0.05);
    border-color: #f59e0b;
  }
}

@keyframes yeshanFlameBounce {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  30% {
    transform: translateY(-4px) scale(1.18);
  }
  60% {
    transform: translateY(1px) scale(0.96);
  }
}

@keyframes yeshanBoosterShimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

#portal-booster-banner,
.yeshan-booster-celebration-banner,
[id*="booster-banner"],
[class*="booster-celebration"],
.yeshan-booster-icon-box,
.yeshan-booster-text-box,
.yeshan-booster-badge-pill {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  max-height: 0 !important;
  max-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  pointer-events: none !important;
  position: absolute !important;
  top: -9999px !important;
  left: -9999px !important;
  overflow: hidden !important;
  animation: none !important;
  -webkit-animation: none !important;
}

.yeshan-booster-celebration-banner::after {
  content: none !important;
  display: none !important;
  animation: none !important;
}

/* Customer Account Portal Section Enhancements */
.loyalty-account-section-card {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 12px !important;
  padding: 20px !important;
  margin-top: 22px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
}

.loyalty-account-section-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 16px !important;
  padding-bottom: 12px !important;
  border-bottom: 1px solid #f3f4f6 !important;
}

.loyalty-account-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  gap: 14px !important;
}

.loyalty-account-action-card {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 14px !important;
  border: 1px solid #f3f4f6 !important;
  background: #f9fafb !important;
  border-radius: 10px !important;
  transition: all 0.2s ease !important;
}

.loyalty-account-action-card:hover {
  background: #f3f4f6 !important;
  border-color: #e5e7eb !important;
}



