/* Enhanced Search Block Styles */

/* Overlay */
.es-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.4);
  backdrop-filter: saturate(120%) blur(2px);
  display: none;
  z-index: 10000;
}

/* Drawer */
.es-drawer {
  position: fixed;
  top: 18px;
  right: 18px;
  bottom: 18px;
  width: 500px;
  max-width: calc(95vw - 32px);
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transform: translateX(calc(100% + 16px));
  transition: transform 0.25s ease, background 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
              backdrop-filter 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
              border 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 10001;
  display: flex;
  flex-direction: column;
  border: 1px solid transparent;
  overflow: hidden;
}

.es-drawer.open {
  transform: translateX(0);
}

/* Magic mode - White background with outer glow, allow overflow for glow effects */
.es-drawer.magic-active {
  background: #fff;
  overflow: visible;
}

/* Mesh Gradient Effect - Siri-like animated glow */
.es-drawer.magic-active::before,
.es-drawer.magic-active::after {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: -1;
  border-radius: 20px;
  opacity: 0;
  transform: scale(0);
}

/* Top-left mesh point - Yellow/Orange - Positioned further outside */
.es-drawer.magic-active::before {
  top: -35px;
  left: -35px;
  width: 120px;
  height: 120px;
  background: radial-gradient(
    circle,
    rgba(255, 235, 59, 0.6) 0%,
    rgba(255, 152, 0, 0.45) 35%,
    rgba(255, 64, 129, 0.25) 60%,
    transparent 85%
  );
  filter: blur(20px);
  animation: meshActivate1 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
             meshGlow1 2.5s ease-in-out infinite 0.6s;
}

/* Bottom-right mesh point - Purple/Blue - Positioned further outside */
.es-drawer.magic-active::after {
  bottom: -35px;
  right: -35px;
  width: 130px;
  height: 130px;
  background: radial-gradient(
    circle,
    rgba(156, 39, 176, 0.6) 0%,
    rgba(0, 188, 212, 0.45) 35%,
    rgba(33, 150, 243, 0.25) 60%,
    transparent 85%
  );
  filter: blur(22px);
  animation: meshActivate2 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s forwards,
             meshGlow2 2.7s ease-in-out infinite 0.7s;
}

/* Activation animation for mesh point 1 - More prominent */
@keyframes meshActivate1 {
  0% {
    opacity: 0;
    transform: scale(0) translate(0, 0);
    filter: blur(8px);
  }
  50% {
    opacity: 1;
    transform: scale(1.4) translate(-3px, -3px);
    filter: blur(18px);
  }
  100% {
    opacity: 0.6;
    transform: scale(1) translate(0, 0);
    filter: blur(20px);
  }
}

/* Activation animation for mesh point 2 - More prominent */
@keyframes meshActivate2 {
  0% {
    opacity: 0;
    transform: scale(0) translate(0, 0);
    filter: blur(8px);
  }
  50% {
    opacity: 1;
    transform: scale(1.4) translate(3px, 3px);
    filter: blur(20px);
  }
  100% {
    opacity: 0.6;
    transform: scale(1) translate(0, 0);
    filter: blur(22px);
  }
}

/* Additional mesh points using box-shadow on the drawer itself - More prominent */
.es-drawer.magic-active {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  animation: meshActivateShadow 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
             meshBreath 2.4s ease-in-out infinite 0.6s;
}

/* Smooth deactivation when magic is turned off */
.es-drawer:not(.magic-active)::before,
.es-drawer:not(.magic-active)::after {
  animation: meshDeactivate 0.4s ease-in forwards;
}

@keyframes meshDeactivate {
  to {
    opacity: 0;
    transform: scale(0);
    filter: blur(10px);
  }
}

/* Activation animation for box-shadow - Tightened and more prominent */
@keyframes meshActivateShadow {
  0% {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  }
  50% {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15),
                0 -35px 70px rgba(255, 64, 129, 0.5),
                -35px 0 70px rgba(255, 152, 0, 0.45),
                35px 0 70px rgba(0, 188, 212, 0.45),
                0 35px 70px rgba(186, 104, 200, 0.5),
                -25px 25px 60px rgba(33, 150, 243, 0.4);
  }
  100% {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15),
                0 -30px 60px rgba(255, 64, 129, 0.35),
                -30px 0 60px rgba(255, 152, 0, 0.3),
                30px 0 60px rgba(0, 188, 212, 0.3),
                0 30px 60px rgba(186, 104, 200, 0.35),
                -20px 20px 50px rgba(33, 150, 243, 0.25);
  }
}

/* Mesh point 1 animation - Top-left - More prominent movement */
@keyframes meshGlow1 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.6;
  }
  25% {
    transform: translate(-12px, 16px) scale(1.08);
    opacity: 0.75;
  }
  50% {
    transform: translate(16px, -12px) scale(1.12);
    opacity: 0.65;
  }
  75% {
    transform: translate(12px, 12px) scale(1.15);
    opacity: 0.75;
  }
}

/* Mesh point 2 animation - Bottom-right - More prominent movement */
@keyframes meshGlow2 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.6;
  }
  25% {
    transform: translate(-16px, 12px) scale(1.08);
    opacity: 0.75;
  }
  50% {
    transform: translate(12px, -16px) scale(1.15);
    opacity: 0.65;
  }
  75% {
    transform: translate(-12px, -12px) scale(1.12);
    opacity: 0.75;
  }
}

/* Breathing effect for the overall mesh - More transparent and more movement */
@keyframes meshBreath {
  0%, 100% {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15),
                0 -30px 60px rgba(255, 64, 129, 0.35),
                -30px 0 60px rgba(255, 152, 0, 0.3),
                30px 0 60px rgba(0, 188, 212, 0.3),
                0 30px 60px rgba(186, 104, 200, 0.35),
                -20px 20px 50px rgba(33, 150, 243, 0.25);
  }
  50% {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15),
                0 -38px 75px rgba(255, 64, 129, 0.5),
                -38px 0 75px rgba(255, 152, 0, 0.45),
                38px 0 75px rgba(0, 188, 212, 0.45),
                0 38px 75px rgba(186, 104, 200, 0.5),
                -25px 25px 60px rgba(33, 150, 243, 0.4);
  }
}

/* Close Button */
.es-close-btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

/* Content Area */
.es-content {
  padding: 1.5rem 1.75rem;
  overflow: hidden;
  flex: 1;
  position: relative;
  z-index: 1;
  border-radius: 15px;
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 0;
}


/* Search Section */
.es-search-section {
  flex-shrink: 0;
}

.es-search-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.es-search-title {
  font-size: 1.2rem;
  font-weight: 500;
  color: #000000;
  margin: 0;
  text-transform: capitalize;
  transition: opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Fade-in animation for "Ask Sense.ai" title when magic mode is activated */
.es-search-title.magic-active {
  animation: titleFadeIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.es-search-title.magic-active .sense-ai-gradient {
  background: linear-gradient(135deg, #d4a5d8 0%, #c77dd0 20%, #b86bc5 40%, #9d5bb8 60%, #c77dd0 80%, #d4a5d8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

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

.es-search-input-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.es-search-input-wrapper {
  position: relative;
  flex: 1;
}

input::placeholder {
  font-size: 0.8rem;
  color: #bfbfbf;
}

.es-search-btn {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: opacity 0.2s;
}

.es-search-btn:hover {
  opacity: 0.7;
}

.es-all-results-btn {
  position: absolute;
  right: 2.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #9ca3af;
  font-size: 0.75rem;
  line-height: 1;
  z-index: 1;
}

.es-all-results-btn:hover {
  color: #6b7280;
}

.es-enter-icon {
  font-size: 0.85rem;
}

.es-search-input {
  width: 100%;
  padding: 0.5rem 7.25rem 0.5rem 0.9rem;
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  background: #fff;
  color: #000000;
  font-size: 0.8rem;
  height: 38px;
}

.es-magic-btn {
  padding: 0.65rem;
  background: #fff;
  /* border: 1px solid #dad9d7;
  border-radius: 8px; */
  cursor: pointer;
  /* display: inline-flex; */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  transition: all 0.2s;
  transform: scale(1);
}

.es-magic-btn:active {
  transform: scale(1.1);
  transition: transform 0.1s ease;
}

.es-magic-btn:hover {
  border-color: #000000;
}

.es-magic-btn.active {
  background: #fff;
  border-color: #fff;
}

.es-status {
  margin-top: 0.5rem;
  color: #6b7280;
  font-size: 0.85rem;
}

.es-magic-subheader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.2rem 0.1rem 0.75rem;
}

.es-magic-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.es-magic-back-btn,
.es-magic-return-link {
  border: none;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  font-size: 0.8rem;
  text-decoration: underline;
  padding: 0;
}

.es-magic-back-btn {
  font-size: 1.25rem;
  line-height: 1;
  text-decoration: none;
}

.es-magic-theme-toggle {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #6b7280;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.es-magic-theme-toggle span {
  font-size: 0.95rem;
  line-height: 1;
}

.es-magic-divider {
  height: 1px;
  background: #d1d5db;
  width: 100%;
}

.es-drawer.magic-active.es-magic-dark .es-content {
  background: #0e1117;
}

.es-drawer.magic-active.es-magic-dark .es-search-title {
  color: #f3f4f6;
}

.es-drawer.magic-active.es-magic-dark .es-magic-return-link,
.es-drawer.magic-active.es-magic-dark .es-magic-back-btn,
.es-drawer.magic-active.es-magic-dark .es-magic-theme-toggle {
  color: #c7ceda;
}

.es-drawer.magic-active.es-magic-dark .es-magic-divider {
  background: #293241;
}

.es-drawer.magic-active.es-magic-dark .es-get-started-title {
  color: #f3f4f6;
}

.es-drawer.magic-active.es-magic-dark .es-get-started-subtitle,
.es-drawer.magic-active.es-magic-dark .es-chat-prompt-label {
  color: #9ca3af;
}

.es-drawer.magic-active.es-magic-dark .es-prompt-btn {
  background: #141a24;
  border-color: #293241;
  color: #c7ceda;
}

.es-drawer.magic-active.es-magic-dark .es-chat-bubble-assistant {
  background: #1b2331;
  color: #e5e7eb;
}

.es-drawer.magic-active.es-magic-dark .es-chat-input {
  background: #111827;
  border-color: #374151;
  color: #f3f4f6;
}

.es-drawer.magic-active.es-magic-dark .es-chat-input::placeholder {
  color: #9ca3af;
}

.es-drawer.magic-active.es-magic-dark .es-chat-send {
  background: #f3f4f6;
  color: #111827;
}

/* Animated thinking dots */
.thinking-dots {
  display: inline-block;
}

.thinking-dots span {
  animation: thinkingDot 1.4s infinite;
  opacity: 0;
}

.thinking-dots span:nth-child(1) {
  animation-delay: 0s;
}

.thinking-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.thinking-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes thinkingDot {
  0%, 60%, 100% {
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
}

/* Standard State */
.es-standard-state {
  display: block;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.es-standard-state.hidden {
  display: none;
}

/* Top Searches */
.es-top-searches {
  margin-bottom: 2rem;
  margin-top: 1rem;
}

.es-top-searches-title {
  font-size: 1rem;
  font-weight: 500;
  color: #000000;
  margin-bottom: 0.75rem;
  text-transform: capitalize;
}

.es-top-searches-list {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.es-top-search-btn {
  padding: 0.17rem .65rem;
  background: #f7f7f7;
  border-radius: 5px;
  color: #000000;
  font-size: 0.7rem;
  cursor: pointer;
  transition: all 0.2s;
}

.es-top-search-btn:hover {
  background: #f7f7f7;
  border-color: #000000;
}

.es-prompt-btn {
  padding: 0.55rem 0.65rem;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: #6b7280;
  font-size: 0.78rem;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.1s;
}

.es-prompt-btn:hover {
  border-color: #d1d5db;
  box-shadow: none;
  transform: translateY(-1px);
}

/* See What's New */
.es-new-section {
  margin-bottom: 1rem;
}

.es-new-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.es-new-title {
  font-size: 1rem;
  font-weight: 500;
  color: #000000;
  margin: 0;
  text-transform: capitalize;
}

.es-shop-all-link {
  font-size: 0.75rem;
  color: #6b7280;
  text-decoration: underline;
}

.es-new-products-wrapper {
  position: relative;
}

.es-new-products {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
  width: calc(2 * 160px + 1rem);
  max-width: 100%;
}

.es-new-products::-webkit-scrollbar {
  display: none;
}

.es-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: 1px solid #d0d0d0;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  opacity: 1;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.es-carousel-btn:hover {
  background: #f7f7f7;
  border-color: #000000;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.es-carousel-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.es-carousel-btn-prev {
  left: -16px;
  opacity: 0.3;
}

.es-carousel-btn-next {
  right: -16px;
}

.es-new-product {
  min-width: 160px;
  width: 160px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  scroll-snap-align: start;
}

.es-new-product-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.es-new-product-image {
  aspect-ratio: 1;
  overflow: hidden;
  background: #f7f7f7;
}

.es-new-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.es-new-product-info {
  padding: 0.75rem;
}

.es-new-product-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: #000000;
  margin-bottom: 0.25rem;
}

.es-new-product-price {
  font-size: 0.875rem;
  font-weight: 600;
  color: #000000;
}

/* Explore Collections */
.es-explore-section {
  margin-bottom: 0;
}

.es-explore-title {
  font-size: 1rem;
  font-weight: 500;
  color: #000000;
  margin-bottom: 0.75rem;
  text-transform: capitalize;
}

.es-explore-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.es-explore-collection {
  text-decoration: none;
  color: inherit;
  display: block;
  background: #fff;
  border: 1px solid #dad9d7;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.2s;
}

.es-explore-collection:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.es-explore-collection-image {
  aspect-ratio: 3 / 1;
  overflow: hidden;
  background: #f7f7f7;
}

.es-explore-collection-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.es-explore-collection-info {
  padding: 0.75rem;
}

.es-explore-collection-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: #000000;
  margin-bottom: 0.25rem;
}

.es-explore-collection-count {
  font-size: 0.75rem;
  color: #6b7280;
}

/* Magic State */
.es-magic-state {
  display: none;
}

.es-magic-state.visible {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}

/* Chat mode layout */
.es-chat-mode.es-magic-state {
  padding: 0;
}

.es-chat-messages {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.75rem 0.6rem 0;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.es-chat-initial {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: 0.25rem 0.55rem 0.75rem;
}

.es-chat-messages.es-guided-selection-active .es-get-started-subtitle,
.es-chat-messages.es-guided-selection-active .es-initial-cta,
.es-chat-messages.es-guided-selection-active .es-chat-prompt-area {
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px) scale(0.99);
  filter: blur(3px);
  transition:
    opacity 0.56s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.62s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.66s cubic-bezier(0.22, 1, 0.36, 1);
}


.es-chat-messages.es-guided-selection-active .es-guided-selection-screen {
  display: flex !important;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.es-guided-selection-screen {
  margin: 0;
  text-align: center;
  max-width: 294px;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px) scale(0.99);
  filter: blur(4px);
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.68s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.72s cubic-bezier(0.22, 1, 0.36, 1);
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.es-guided-question {
  display: none;
}

.es-guided-options {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.6rem;
  width: 100%;
  margin-top: 0.2rem;
}

.es-guided-option {
  appearance: none;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #1f2937;
  border-radius: 10px;
  padding: 0.72rem 0.9rem;
  font-size: 0.92rem;
  line-height: 1.25;
  font-weight: 500;
  text-align: center;
  width: 100%;
  min-height: 46px;
  cursor: pointer;
  text-transform: none !important;
  letter-spacing: 0;
  opacity: 0;
  transform: translateY(4px) scale(0.99);
  filter: blur(2px);
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
  transition:
    opacity 0.52s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.58s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.62s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.es-chat-messages.es-guided-selection-active .es-guided-option {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.es-guided-option:hover {
  border-color: #d1d5db;
  box-shadow: 0 2px 6px rgba(17, 24, 39, 0.08);
}

.es-chat-messages.es-guided-selection-active .es-guided-option:nth-child(1) { transition-delay: 0.08s; }
.es-chat-messages.es-guided-selection-active .es-guided-option:nth-child(2) { transition-delay: 0.13s; }
.es-chat-messages.es-guided-selection-active .es-guided-option:nth-child(3) { transition-delay: 0.18s; }
.es-chat-messages.es-guided-selection-active .es-guided-option:nth-child(4) { transition-delay: 0.23s; }


.es-drawer.magic-active.es-magic-dark .es-guided-question {
  color: #f3f4f6;
}

.es-drawer.magic-active.es-magic-dark .es-guided-option {
  background: #374151;
  border-color: #4b5563;
  color: #e5e7eb;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
}

.es-get-started {
  margin: auto;
  text-align: center;
  max-width: 294px;
}

.es-get-started-title {
  font-size: 1.26rem;
  font-weight: 500;
  color: #111827;
  margin: 0 0 0.5rem 0;
  text-transform: none;
}

.es-welcome-highlight {
  background: linear-gradient(135deg, #d4a5d8 0%, #c77dd0 20%, #b86bc5 40%, #9d5bb8 60%, #c77dd0 80%, #d4a5d8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.es-get-started-subtitle {
  margin: 0 0 0.8rem 0;
  font-size: 0.84rem;
  color: #6b7280;
  line-height: 1.45;
}

.es-initial-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 15% 20%, rgba(248, 187, 208, 0.55) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(209, 196, 233, 0.5) 0%, transparent 46%),
    linear-gradient(135deg, #f3b9d7 0%, #d8b6ef 52%, #c8b6f6 100%);
  border: none;
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 500;
  border-radius: 7px;
  padding: 0.47rem 0.84rem;
  box-shadow: 0 6px 14px rgba(196, 154, 225, 0.25), 0 2px 8px rgba(232, 170, 208, 0.2);
  transition: none;
  white-space: nowrap;
}

.es-initial-cta:hover {
  cursor: pointer;
  transform: none;
  border: none;
  box-shadow: 0 6px 14px rgba(196, 154, 225, 0.25), 0 2px 8px rgba(232, 170, 208, 0.2);
}

.es-cta-char {
  opacity: 0;
  filter: blur(3px);
  transform: translateY(1px);
  transition: opacity 0.46s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.52s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.52s cubic-bezier(0.22, 1, 0.36, 1);
}

.es-cta-char.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.es-chat-prompt-area {
  margin-top: auto;
  text-align: left;
  padding: 0 0.35rem;
}

.es-chat-prompt-label {
  margin: 0 0 0.5rem 0;
  color: #6b7280;
  font-size: 0.8rem;
}

.es-chat-prompt-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.es-chat-prompt-list .es-prompt-btn {
  width: fit-content;
  max-width: 100%;
}

.es-chat-thread {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 0 0.55rem;
  margin-top: auto;
}

.es-chat-thread:empty {
  display: none;
}

.es-chat-bubble {
  max-width: 85%;
  padding: 0.85rem 1.1rem;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.4;
  word-wrap: break-word;
  animation: es-bubble-in 0.25s ease-out;
}

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

.es-chat-bubble-user {
  align-self: flex-end;
  background: #1f2937;
  color: #fff;
  border-bottom-right-radius: 4px;
}

.es-chat-bubble-assistant {
  align-self: flex-start;
  background: #f3f4f6;
  color: #111827;
  border-bottom-left-radius: 4px;
}

.es-sensei-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.45rem;
}

.es-sensei-avatar {
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  background: linear-gradient(145deg, #e9d5ff, #c4b5fd);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  border: 1px solid #c4b5fd;
}

.es-sensei-name {
  font-size: 0.76rem;
  font-weight: 600;
  color: #6d28d9;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.es-chat-bubble-products {
  align-self: flex-start;
  max-width: 100%;
  padding: 1.2rem;
}

.es-chat-bubble-products .es-results-grid {
  max-height: none;
  margin-top: 0.5rem;
}

.es-chat-bubble-products .es-chat-bubble-text {
  margin: 0 0 0.65rem 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

.es-chat-bubble-survey {
  max-width: 100%;
}

.es-chat-survey-question {
  margin: 0 0 0.55rem 0;
}

.es-chat-survey-options {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.es-chat-survey-option-btn {
  appearance: none;
  width: 100%;
  text-align: left;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #111827;
  border-radius: 10px;
  padding: 0.55rem 0.62rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
}

.es-chat-survey-option-btn:hover {
  border-color: #9ca3af;
  background: #f9fafb;
}

.es-chat-survey-option-index {
  min-width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.es-chat-survey-option-label {
  font-size: 0.9rem;
  line-height: 1.35;
  font-weight: 500;
}

.es-drawer.magic-active.es-magic-dark .es-chat-survey-option-btn {
  background: #1f2937;
  border-color: #374151;
  color: #e5e7eb;
}

.es-drawer.magic-active.es-magic-dark .es-chat-survey-option-btn:hover {
  border-color: #4b5563;
  background: #243142;
}

.es-drawer.magic-active.es-magic-dark .es-chat-survey-option-index {
  background: #374151;
  color: #d1d5db;
}

.es-chat-bubble-product-link {
  color: #111827;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.es-chat-bubble-product-link:hover {
  color: #000000;
}

.es-chat-bubble-style-select {
  max-width: 100%;
}

.es-chat-style-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.45rem;
}

.es-chat-style-option {
  appearance: none;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #111827;
  border-radius: 999px;
  padding: 0.38rem 0.72rem;
  font-size: 0.82rem;
  line-height: 1.2;
  font-weight: 500;
  cursor: pointer;
}

.es-drawer.magic-active.es-magic-dark .es-chat-style-option {
  background: #1f2937;
  border-color: #374151;
  color: #e5e7eb;
}

.es-chat-carousel-wrap {
  position: relative;
  margin-top: 0.2rem;
}

.es-chat-carousel-track {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0.2rem 0.2rem 0;
}

.es-chat-carousel-track::-webkit-scrollbar {
  display: none;
}

.es-chat-product-card {
  min-width: calc(50% - 0.4rem);
  width: calc(50% - 0.4rem);
  height: auto;
  flex-shrink: 0;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
}

.es-chat-product-image-link {
  display: block;
  text-decoration: none;
  aspect-ratio: 1;
  overflow: hidden;
  background: #fff;
  border-radius: 8px;
}

.es-chat-product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.es-chat-product-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: 0.75rem;
}

.es-chat-product-title {
  color: #000000;
  font-size: 0.875rem;
  line-height: 1.3;
  font-weight: 500;
  text-decoration: none;
  display: block;
  margin-top: 0.45rem;
}

.es-chat-product-about-btn {
  margin-top: 0.4rem;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 15% 20%, rgba(248, 187, 208, 0.55) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(209, 196, 233, 0.5) 0%, transparent 46%),
    linear-gradient(135deg, #f3b9d7 0%, #d8b6ef 52%, #c8b6f6 100%);
  border: none;
  border-radius: 7px;
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 500;
  padding: 0.47rem 0.84rem;
  box-shadow: 0 6px 14px rgba(196, 154, 225, 0.25), 0 2px 8px rgba(232, 170, 208, 0.2);
  transition: none;
  cursor: pointer;
  line-height: 1.2;
  white-space: nowrap;
}

.es-chat-product-about-btn:hover {
  cursor: pointer;
  transform: none;
  border: none;
  box-shadow: 0 6px 14px rgba(196, 154, 225, 0.25), 0 2px 8px rgba(232, 170, 208, 0.2);
}

.es-chat-product-price {
  margin-top: 0.3rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: #111827;
}

.es-chat-carousel-btn {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.es-chat-carousel-btn-prev {
  left: 6px;
}

.es-chat-carousel-btn-next {
  right: 6px;
}

.es-chat-single-product-wrap {
  display: block;
}

.es-chat-single-product-wrap .es-chat-product-card {
  width: 100%;
  min-width: 100%;
}

.es-chat-typing {
  align-self: flex-start;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  color: #6b7280;
  font-style: italic;
}

.es-chat-typing:empty {
  display: none;
}

.es-chat-typing.visible {
  display: block;
  animation: es-typing-pulse 1.2s ease-in-out infinite;
}

@keyframes es-typing-pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.es-quick-actions {
  padding: 0.25rem 0.95rem 0.35rem;
  margin-bottom: .5rem;
}

.es-quick-actions-title {
  margin-top: 1rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: #111827;
}

.es-quick-actions-row {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.es-quick-action-btn {
  appearance: none;
  background: #f7f7f7;
  color: #9b9b9b;
  text-decoration: none;
  border-radius: 6px;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  line-height: 1.2;
  font-weight: 500;
  cursor: pointer;
}

.es-quick-action-btn:hover {
  background: #ebedf0;
  color: #374151;
}

.es-drawer.magic-active.es-magic-dark .es-quick-actions-title {
  color: #e5e7eb;
}

.es-drawer.magic-active.es-magic-dark .es-quick-action-btn {
  background: #374151;
  border-color: #4b5563;
  color: #d1d5db;
}

.es-chat-input-area {
  display: flex;
  gap: 0.5rem;
  padding: 0.8rem 0.6rem 0.9rem;
  border-top: none;
  background: transparent;
  flex-shrink: 0;
  box-shadow: none;
}

.es-chat-input {
  flex: 1;
  padding: 0.75rem 0.95rem;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.es-chat-input:focus {
  border-color: #a855f7;
  box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.12);
}

.es-chat-send {
  padding: 0.75rem 1rem;
  background: #111827;
  color: #fff;
  border: none;
  border-radius: 7px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.es-chat-send:hover {
  background: #0f172a;
  transform: translateY(-1px);
}

.es-chat-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#es-explore-results {
  display: none;
  margin-top: 2rem;
}

#es-explore-results .es-explore-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.es-explore-collections-wrapper {
  position: relative;
}

.es-explore-collections-carousel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
  width: 100%;
}

.es-explore-collections-carousel::-webkit-scrollbar {
  display: none;
}

#es-explore-results .es-explore-collection {
  min-width: 160px;
  width: 160px;
  flex-shrink: 0;
  scroll-snap-align: start;
}

.es-explore-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: 1px solid #d0d0d0;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  opacity: 1;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.es-explore-carousel-btn:hover {
  background: #f7f7f7;
  border-color: #000000;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.es-explore-carousel-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.es-explore-carousel-btn-prev {
  left: -16px;
  opacity: 0.3;
}

.es-explore-carousel-btn-next {
  right: -16px;
}

.es-assistant {
  margin-top: 0.5rem;
  display: none;
  background: #fff;
  border-radius: 10px;
  padding: 0.65rem 0.9rem;
  color: #000000;
  font-size: 0.875rem;
}

.es-assistant.visible {
  display: block;
}

.es-results {
  margin-top: 0.75rem;
}

.es-results:empty {
  display: none;
}

.es-results-count {
  font-size: 0.875rem;
  color: #000000;
  margin-bottom: 1rem;
  font-weight: 500;
}

.es-results-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: calc(3 * 160px + 2 * 1rem); /* 3 result cards (~160px each) + margins */
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #d0d0d0 #f7f7f7;
}

.es-results-grid::-webkit-scrollbar {
  width: 6px;
}

.es-results-grid::-webkit-scrollbar-track {
  background: #f7f7f7;
}

.es-results-grid::-webkit-scrollbar-thumb {
  background: #d0d0d0;
  border-radius: 3px;
}

.es-results-grid::-webkit-scrollbar-thumb:hover {
  background: #a0a0a0;
}

.es-result-card {
  /* border: 1px solid #e5e7eb;
  border-radius: 10px; */
  overflow: hidden;
  display: flex;
  flex-direction: row;
  background: #fff;
  position: relative;
  /* padding-bottom: 1rem;
  margin-bottom: 1rem; */
  min-height: 160px;
  flex-shrink: 0;
}

.es-result-card:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
}

.es-result-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: #e5e7eb;
}

.es-result-card:last-child .es-result-divider {
  display: none;
}

.es-result-link {
  text-decoration: none;
  color: inherit;
}

.es-result-image-wrapper {
  position: relative;
  width: 120px;
  height: auto;
  /* min-width: 200px; */
  flex-shrink: 0;
}

.es-result-image {
  width: 100%;
  height: 160px;
  object-fit: contain;
  display: block;
  padding: 12px 0px;
}

.es-result-image-placeholder {
  width: 200px;
  height: 200px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.es-result-badges {
  display: flex;
  flex-direction: row; 
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.es-badge {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1;
}

.es-badge-sale {
  background: #cf202f;
  color: #fff;
}

.es-badge-free-shipping {
  background: #000000;
  color: #fff;
}

.es-result-info {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  /* gap: 0.5rem; */
  flex: 1;
  justify-content: center;
}

.es-result-title {
  text-decoration: none;
  color: #000000;
  font-weight: 500;
  font-size: 0.875rem;
  display: block;
  /* margin-bottom: 0.25rem; */
}

.es-result-price {
  color: #000000;
  font-weight: 500;
  font-size: 0.75rem;
  /* margin-bottom: 0.5rem; */
}

.es-add-to-cart {
  padding: 0.1rem 0.775rem;
  background: #fff;
  color: #000000;
  border: 1px solid #000000;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 400;
  margin-top: 0.5rem;
  width: auto;
  display: inline-block;
  align-self: flex-start;
}

/* Add-to-Cart Overlay Styles */
.es-add-to-cart-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  z-index: 100;
  overflow-y: auto;
  overflow-x: hidden;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.es-add-to-cart-overlay.visible {
  transform: translateX(0);
}

.es-add-to-cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.75rem;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 10;
  flex-shrink: 0;
}

.es-add-to-cart-back-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.es-add-to-cart-back-btn:hover {
  opacity: 0.7;
}

.es-review-cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: #000000;
  text-decoration: none;
  transition: opacity 0.2s;
}

.es-review-cart-link:hover {
  opacity: 0.7;
}

.es-cart-icon {
  display: block;
  width: 26px;
  height: 26px;
}

.es-cart-dot {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #cf202f;
  top: 60%;
  left: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.6);
  transition: opacity 0.2s, transform 0.2s;
}

.es-cart-dot.has-items {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.es-cart-dot.pulse {
  animation: esCartPulse 1s ease-out;
}

@keyframes esCartPulse {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    box-shadow: 0 0 0 0 rgba(207, 32, 47, 0.6);
  }
  70% {
    transform: translate(-50%, -50%) scale(1.2);
    box-shadow: 0 0 0 8px rgba(207, 32, 47, 0);
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 0 0 0 rgba(207, 32, 47, 0);
  }
}

.es-add-to-cart-image-wrapper {
  width: 100%;
  aspect-ratio: 1.4;
  margin-top: 10px;
  margin-bottom: 0;
  overflow: hidden;
  flex-shrink: 0;
}

.es-add-to-cart-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.es-add-to-cart-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: 0.875rem;
}

.es-add-to-cart-info {
  padding: 1rem 1.75rem;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.es-add-to-cart-title {
  font-size: 1rem;
  font-weight: 500;
  color: #000000;
  margin: 0.25rem 0 0.25rem 0;
  text-transform: capitalize;
}

.es-add-to-cart-price {
  font-size: 0.9rem;
  font-weight: 600;
  color: #000000;
  margin-bottom: 0.5rem;
}

.es-add-to-cart-description {
  font-size: 0.8rem;
  color: #6b7280;
  line-height: 1.4;
  margin: 0 0 0.75rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.es-add-to-cart-variants {
  margin: 0.75rem 0;
}

.es-variant-group {
  margin-bottom: 0.75rem;
}

.es-variant-group:last-child {
  margin-bottom: 0;
}

.es-variant-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: #000000;
  margin-bottom: 0.4rem;
  display: block;
  text-transform: capitalize;
}

.es-variant-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.es-variant-btn {
  padding: 0.2rem 0.75rem;
  border: 1px solid #d0d0d0;
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.8rem;
  color: #000000;
  font-weight: 400;
}

.es-variant-btn:hover {
  border-color: #000000;
}

.es-variant-btn.selected {
  background: #000000;
  color: #fff;
  border-color: #000000;
}

.es-variant-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.es-add-to-cart-quantity {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.75rem 0;
  justify-content: flex-start;
}

.es-quantity-minus {
  width: 32px;
  height: 32px;
  border: 1px solid #d0d0d0;
  background: #fff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  color: #000000;
  transition: all 0.2s;
}

.es-quantity-minus:hover {
  border-color: #000000;
  background: #f7f7f7;
}

.es-quantity-plus {
  width: 32px;
  height: 32px;
  border: 1px solid #d0d0d0;
  background: #fff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  color: #000000;
  transition: all 0.2s;
}

.es-quantity-plus:hover {
  border-color: #000000;
  background: #f7f7f7;
}

.es-add-to-cart-btn {
  width: auto;
  min-width: 140px;
  height: 36px;
  padding: 0 1rem;
  border: none;
  background: #cf202f;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  color: #ffffff;
  transition: all 0.2s;
  position: relative;
}

.es-add-to-cart-btn:hover {
  background: #b01d2a;
}

.es-add-to-cart-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: #cf202f;
}

.es-add-to-cart-btn .es-btn-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-top-color: #ffffff;
  border-radius: 50%;
  display: none;
  animation: esSpin 0.8s linear infinite;
}

.es-add-to-cart-btn.is-loading .es-btn-spinner {
  display: inline-block;
}

.es-add-to-cart-btn.is-loading .es-add-to-cart-text {
  opacity: 0.75;
}

@keyframes esSpin {
  to {
    transform: rotate(360deg);
  }
}

.es-quantity-input {
  width: 50px;
  padding: 0.2rem;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  text-align: center;
  font-size: 0.8rem;
  color: #000000;
}

/* Remove spinner arrows from number input */
.es-quantity-input::-webkit-outer-spin-button,
.es-quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.es-quantity-input {
  -moz-appearance: textfield;
  appearance: textfield;
}

.es-add-to-cart-success {
  font-size: 0.875rem;
  color: #16a34a;
  font-weight: 500;
  margin-top: 0.5rem;
  text-align: left;
}

.es-view-all {
  display: block;
  padding: 1rem;
  text-align: center;
  background-color: #fff;
  border-radius: 8px;
  border: 2px solid #000;
  color: #000;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.8rem;
}

.es-add-to-cart-success {
  background: #ecfdf3;
  border: 1px solid #bbf7d0;
  color: #15803d;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  display: none;
  transform: translateY(4px);
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
}

.es-add-to-cart-success.visible {
  opacity: 1;
  transform: translateY(0);
}

.es-add-to-cart-btn.is-added {
  background: #16a34a;
}

/* Chat mode - mobile layout */
@media (max-width: 768px) {
  .es-drawer {
    top: 12px;
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
    max-width: none;
    border-radius: 14px;
    transform: translateX(calc(100% + 24px));
  }

  .es-content {
    padding: 1rem;
    border-radius: 14px;
  }

  .es-magic-subheader {
    padding: 0.1rem 0 0.65rem;
  }

  .es-chat-messages {
    padding: 0.6rem 0 0;
  }

  .es-chat-initial {
    padding: 0.2rem 0 0.65rem;
  }

  .es-chat-thread {
    padding: 0;
  }

  .es-quick-actions {
    padding: 0.2rem 0 0.3rem;
    margin-bottom: 0.4rem;
  }

  .es-chat-input-area {
    padding: 0.65rem 0 0.7rem;
    gap: 0.45rem;
  }
}

@media (max-width: 480px) {
  .es-drawer {
    top: 10px;
    right: 10px;
    bottom: 10px;
    left: 10px;
    border-radius: 12px;
  }

  .es-content {
    padding: 0.9rem;
    border-radius: 12px;
  }

  .es-chat-messages {
    padding: 0.55rem 0 0;
  }

  .es-get-started-title {
    font-size: 1.8rem;
  }

  .es-get-started-subtitle {
    font-size: 0.78rem;
  }

  .es-chat-bubble {
    max-width: 92%;
  }

  .es-chat-input-area {
    padding: 0.62rem 0 0.65rem;
  }

  .es-quick-actions-title {
    margin-top: 0.7rem;
  }

  .es-chat-input {
    font-size: 16px; /* Prevents zoom on iOS */
  }
}
