@charset "UTF-8";
/* ========================================
   Compare Button
   ======================================== */
:root {
  --color-primary: #629D23;
  --color-white-quick-view: #ffffff;
  --color-body: #6E777D;
}

.easyel-compare-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #475569;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  line-height: 1.4;
}

.easyel-compare-btn.added {
  color: #475569;
  border-color: #475569;
}

.easyel-compare-btn .easyel-compare-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Tooltip for normal button (not icon_only) */
.easyel-compare-btn:not(.easyel-compare-mode-icon_only) {
  position: relative;
}
.easyel-compare-btn:not(.easyel-compare-mode-icon_only)::after {
  content: attr(title);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 10;
}
.easyel-compare-btn:not(.easyel-compare-mode-icon_only)::before {
  content: "";
  position: absolute;
  bottom: calc(90% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #1e293b;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 10;
}
.easyel-compare-btn:not(.easyel-compare-mode-icon_only):hover::after, .easyel-compare-btn:not(.easyel-compare-mode-icon_only):hover::before {
  opacity: 1;
  visibility: visible;
}
.easyel-compare-btn:not(.easyel-compare-mode-icon_only) {
  /* Hide tooltip during loading */
}
.easyel-compare-btn:not(.easyel-compare-mode-icon_only).easyel-compare-loading::after {
  content: none;
}

/* Button Loading State */
.easyel-compare-btn.easyel-compare-loading {
  pointer-events: none;
  opacity: 0.7;
}

.easyel-compare-btn.easyel-compare-loading .easyel-compare-icon {
  display: none;
}

.easyel-compare-btn.easyel-compare-loading::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: easyel-compare-spin 0.7s linear infinite;
  flex-shrink: 0;
}

/* Display Mode: Text Only — hide icon */
.easyel-compare-btn.easyel-compare-mode-text_only .easyel-compare-icon {
  display: none;
}

/* Display Mode: Icon Only — hide text, show tooltip */
.easyel-compare-btn.easyel-compare-mode-icon_only .easyel-compare-btn-text {
  display: none;
}

.easyel-compare-btn.easyel-compare-mode-icon_only {
  position: relative;
  padding: 6px;
}
.easyel-compare-btn.easyel-compare-mode-icon_only::after {
  content: attr(title);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 10;
}
.easyel-compare-btn.easyel-compare-mode-icon_only::before {
  content: "";
  position: absolute;
  bottom: calc(100% - 2px);
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: #1e293b;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 10;
}
.easyel-compare-btn.easyel-compare-mode-icon_only:hover::after, .easyel-compare-btn.easyel-compare-mode-icon_only:hover::before {
  opacity: 1;
  visibility: visible;
}
.easyel-compare-btn.easyel-compare-mode-icon_only {
  /* Fix: reset tooltip ::before/::after when loading spinner is active */
}
.easyel-compare-btn.easyel-compare-mode-icon_only.easyel-compare-loading::after {
  content: none;
}
.easyel-compare-btn.easyel-compare-mode-icon_only.easyel-compare-loading::before {
  content: "";
  position: static;
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: easyel-compare-spin 0.7s linear infinite;
  flex-shrink: 0;
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* On Image Position */
.easyel-compare-on-image {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
}

.easyel-compare-on-image .easyel-compare-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.easyel-compare-on-image .easyel-compare-btn span {
  display: none;
}

/* ========================================
   Toast Notification — 3-Column Layout
   ======================================== */
.easyel-compare-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  transform: translateX(calc(100% + 20px));
  z-index: 999999;
  background: #ffffff;
  color: #1e293b;
  padding: 14px 16px;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.06);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
  width: auto;
  min-width: 280px;
  max-width: 380px;
  border: 1px solid #e2e8f0;
}

.easyel-compare-toast.show {
  transform: translateX(0);
  opacity: 1;
}

/* Column 1: Check icon */
.easyel-compare-toast-top {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border-radius: 50%;
}

.easyel-compare-toast-check {
  width: 20px;
  height: 20px;
  color: var(--color-primary, #629D23);
  flex-shrink: 0;
}

/* Column 2: Text + Link stacked */
.easyel-compare-toast-text {
  font-weight: 600;
  font-size: 13px;
  color: #1e293b;
  line-height: 1.3;
}

.easyel-compare-toast-middle {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.easyel-compare-toast-link {
  display: inline-block;
  color: #ffffff;
  background: var(--color-primary, #629D23);
  text-decoration: none;
  font-weight: 600;
  font-size: 12px;
  padding: 5px 14px;
  border-radius: 5px;
  transition: background 0.2s ease;
  text-align: center;
  box-sizing: border-box;
  width: -moz-fit-content;
  width: fit-content;
}

.easyel-compare-toast-link:hover {
  background: #2c3c28;
  color: #ffffff;
  text-decoration: none;
}

/* Column 3: Close button */
.easyel-compare-toast-close {
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  background: #f8fafc;
  cursor: pointer;
  padding: 0;
  color: #94a3b8;
  transition: all 0.2s ease;
}

.easyel-compare-toast-close:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #ef4444;
}

.easyel-compare-toast-close svg {
  width: 12px;
  height: 12px;
}

/* ========================================
   Compare Overlay & Popup (Frontend)
   ======================================== */
.easyel-compare-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.easyel-compare-overlay.active {
  opacity: 1;
}

.easyel-compare-popup-front {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  z-index: 999999;
  background: #ffffff;
  border-radius: 0.3rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  width: 90%;
  max-width: 1800px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  pointer-events: auto;
  background-clip: padding-box;
  border: 1px solid rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  overflow: hidden;
}

.easyel-compare-overlay.active .easyel-compare-popup-front {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

/* Popup Header */
.easyel-compare-popup-header {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1rem;
  border-bottom: 1px solid #dee2e6;
  border-top-left-radius: calc(0.3rem - 1px);
  border-top-right-radius: calc(0.3rem - 1px);
}

.easyel-compare-popup-title {
  margin-left: 25px;
  font-size: 36px !important;
  font-weight: 500;
  color: #1e293b;
  margin-bottom: 0;
}

.easyel-compare-popup-close {
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  color: #000;
  padding: 0.5rem 0.5rem;
  margin: -0.5rem -0.5rem -0.5rem auto;
  right: 21px;
  position: relative;
}

.easyel-compare-popup-close:hover,
.easyel-compare-popup-close:focus {
  background: transparent;
  color: #000;
}

.easyel-compare-popup-close svg {
  width: 20px;
  height: 20px;
}

/* Popup Body */
.easyel-compare-popup-body {
  flex: 1;
  overflow: auto;
  padding: 30px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: auto;
  scrollbar-color: #94a3b8 #f1f5f9;
}

.easyel-compare-popup-body::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.easyel-compare-popup-body::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 10px;
}

.easyel-compare-popup-body::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 10px;
  border: 2px solid #f1f5f9;
}

.easyel-compare-popup-body::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

.easyel-compare-popup-body::-webkit-scrollbar-corner {
  background: #f1f5f9;
}

/* ========================================
   Compare Table (Div-based Flexbox Layout)
   ======================================== */
.easyel-compare-table {
  display: inline-flex;
  flex-direction: column;
  min-width: 100%;
  font-size: 14px;
}

/* Each compare row */
.easyel-compare-row {
  border: 1px solid #f1f1f1;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  border-bottom: none;
}

.easyel-compare-row:last-child {
  border-bottom: 1px solid #f1f1f1;
}

/* Label cell (first column) */
.easyel-compare-label {
  display: flex;
  align-items: center;
  width: 200px;
  min-width: 200px;
  flex-shrink: 0;
  font-weight: 600;
  color: #1e293b;
  padding: 20px;
}

/* Value cells */
.easyel-compare-value {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 220px;
  text-align: center;
  color: #475569;
  padding: 20px 10px;
  border-right: 1px solid #f1f1f1;
}

.easyel-compare-value:nth-child(2) {
  border-left: 1px solid #f1f1f1;
}

.easyel-compare-value:last-child {
  border-right: none;
}

/* Preview/Image Row */
.easyel-compare-value {
  position: relative;
}

.easyel-compare-img-link {
  display: inline-block;
}

.easyel-compare-product-img {
  max-width: 150px;
  max-height: 150px;
  width: auto;
  height: auto;
  -o-object-fit: contain;
     object-fit: contain;
}

.easyel-compare-value .arrow-icon {
  display: flex;
  align-items: center;
}

/* Remove Button */
.easyel-compare-remove-btn {
  width: 28px;
  height: 28px;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #94a3b8;
  padding: 0;
}

.easyel-compare-remove-btn:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #ef4444;
}

/* Remove Animation */
.easyel-compare-removing {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

/* Title Row */
.easyel-compare-row-title .easyel-compare-value {
  height: 100px;
}

.easyel-compare-product-title {
  color: #1e293b;
  font-weight: 500;
  font-size: 20px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.easyel-compare-product-title:hover {
  color: #4361ee;
}

/* Price Row */
.easyel-compare-row-price .easyel-compare-value {
  height: 100px;
}

.easyel-compare-value a {
  text-decoration: none !important;
}

.easyel-compare-price {
  font-size: 32px !important;
  font-weight: 600;
  color: var(--color-primary, #629D23);
  margin: 0;
}

.easyel-compare-price del {
  color: #94a3b8;
  font-size: 18px;
  font-weight: 400;
}

.easyel-compare-price ins {
  text-decoration: none;
}

/* Rating */
.easyel-compare-rating {
  display: inline-flex;
  align-items: center;
}

.easyel-compare-rating .star-rating {
  font-size: 14px;
  overflow: hidden;
}

.easyel-compare-rating i,
.easyel-compare-rating .star-rating span::before {
  color: #FF9A00;
}

.easyel-compare-rating-count {
  color: #94a3b8;
  font-size: 13px;
}

.easyel-compare-rating--empty .star-rating::before {
  color: #d1d5db;
}

/* Description */
.easyel-compare-desc {
  font-size: 13px;
  line-height: 1.6;
  color: #64748b;
  max-width: 280px;
  margin: 0 auto;
}

/* Stock Status */
.easyel-compare-stock {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 2px;
  font-weight: 500;
  font-size: 13px;
}

.easyel-compare-stock.in-stock {
  background: #DEF9EC;
  color: #3BB77E;
}

.easyel-compare-stock.out-of-stock {
  color: #fff;
  background: var(--color-danger, #dc2626);
}

.easyel-compare-stock.on-backorder {
  color: #d97706;
}

/* Add to Cart */
.easyel-compare-add-to-cart {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 15px;
  background: var(--color-primary, #629D23);
  color: #ffffff !important;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: 0.3s;
  max-width: -moz-max-content;
  max-width: max-content;
}

.easyel-compare-add-to-cart:hover {
  background: #2c3c28;
}

/* View Cart toggle on added state */
.easyel-compare-add-to-cart .btn-view-cart {
  display: none;
}

.easyel-compare-add-to-cart.added .btn-text,
.easyel-compare-add-to-cart.added .arrow-icon {
  display: none;
}

.easyel-compare-add-to-cart.added .btn-view-cart {
  display: flex;
}

/* N/A */
.easyel-compare-na {
  color: #cbd5e1;
  font-style: italic;
}

/* Empty */
.easyel-compare-empty {
  text-align: center;
  padding: 60px 30px;
  border: 1px solid #E2E2E2;
  border-radius: 8px;
  background: #fff;
}

.easyel-compare-empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  background: #eef2ff;
  border-radius: 50%;
  color: #4361ee;
}

.easyel-compare-empty-icon svg {
  width: 32px;
  height: 32px;
}

.easyel-compare-empty-text {
  color: #1e293b;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
}

.easyel-compare-empty-desc {
  color: #94a3b8;
  font-size: 14px;
  margin: 0 0 24px;
}

.easyel-compare-return-shop {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--color-primary, #629D23);
  color: #fff !important;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none !important;
  transition: opacity 0.3s ease;
}
.easyel-compare-return-shop:hover {
  opacity: 0.85;
  color: #fff !important;
}
.easyel-compare-return-shop svg {
  width: 16px;
  height: 16px;
}

.easyel-compare-row-image .easyel-compare-value {
  gap: 15px;
  flex-direction: column;
}

/* ========================================
   Loader / Spinner
   ======================================== */
.easyel-compare-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.easyel-compare-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #e2e8f0;
  border-top-color: #4361ee;
  border-radius: 50%;
  animation: easyel-compare-spin 0.7s linear infinite;
}

@keyframes easyel-compare-spin {
  to {
    transform: rotate(360deg);
  }
}
/* ========================================
   Compare Page (Shortcode)
   ======================================== */
.easyel-compare-page-wrapper {
  overflow-x: auto;
  overflow-y: auto;
  scrollbar-width: auto;
  scrollbar-color: #94a3b8 #f1f5f9;
}

.easyel-compare-page-wrapper::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.easyel-compare-page-wrapper::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 10px;
}

.easyel-compare-page-wrapper::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 10px;
  border: 2px solid #f1f5f9;
}

.easyel-compare-page-wrapper::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

.easyel-compare-page-wrapper::-webkit-scrollbar-corner {
  background: #f1f5f9;
}

/* ========================================
   Drag-to-scroll cursor (desktop)
   ======================================== */
.easyel-compare-popup-body,
.easyel-compare-page-wrapper {
  cursor: grab;
}
.easyel-compare-popup-body:active,
.easyel-compare-page-wrapper:active {
  cursor: grabbing;
}

.easyel-compare-value .added_to_cart.wc-forward {
  display: none;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1200px) {
  .easyel-compare-popup-front {
    max-width: 95%;
  }
  .easyel-compare-row {
    padding: 0 20px;
  }
}
@media (max-width: 768px) {
  .easyel-compare-popup-front {
    width: 95%;
    max-height: 90vh;
    border-radius: 0.3rem;
  }
  .easyel-compare-popup-body {
    padding: 15px;
    overflow-x: auto;
  }
  .easyel-compare-row {
    padding: 0 15px;
  }
  .easyel-compare-label {
    width: 140px;
    min-width: 140px;
    padding: 12px 8px;
    font-size: 13px;
  }
  .easyel-compare-value {
    min-width: 180px;
    padding: 12px 8px;
    font-size: 13px;
  }
  .easyel-compare-product-img {
    max-width: 150px;
    max-height: 120px;
  }
  .easyel-compare-price {
    font-size: 20px !important;
  }
  .easyel-compare-popup-title {
    font-size: 24px !important;
    margin-left: 10px;
  }
  .easyel-compare-toast {
    top: 15px;
    right: 15px;
    padding: 12px 14px;
    font-size: 13px;
    border-radius: 8px;
    min-width: unset;
    max-width: calc(100% - 30px);
    gap: 10px;
  }
  .easyel-compare-toast-top {
    width: 32px;
    height: 32px;
  }
  .easyel-compare-toast-check {
    width: 16px;
    height: 16px;
  }
}