/*Button Style*/


:root {
  --shiny-cta-bg: #000000;
  --shiny-cta-bg-subtle: #1a1818;
  --shiny-cta-fg: #ffffff;
  --shiny-cta-highlight: #ec4141;
  --shiny-cta-highlight-subtle: #ff8484;
}

@property --gradient-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@property --gradient-angle-offset {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@property --gradient-percent {
  syntax: "<percentage>";
  initial-value: 5%;
  inherits: false;
}

@property --gradient-shine {
  syntax: "<color>";
  initial-value: white;
  inherits: false;
}

.shiny-cta {
  --animation: gradient-angle linear infinite;
  --duration: 3s;
  --shadow-size: 2px;
  display: flex;
  align-items: center;
  gap: 10px;
  isolation: isolate;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  outline-offset: 4px;
  padding: 1.25rem 2.5rem;
  font-family: 'Oswald';
  font-size: 1.005rem;
  line-height: 1.2;
  border: 1px solid transparent;
  border-radius: 360px;
  color: var(--shiny-cta-fg);
  background: linear-gradient(var(--shiny-cta-bg), var(--shiny-cta-bg))
      padding-box,
    conic-gradient(
        from calc(var(--gradient-angle) - var(--gradient-angle-offset)),
        transparent,
        var(--shiny-cta-highlight) var(--gradient-percent),
        var(--gradient-shine) calc(var(--gradient-percent) * 2),
        var(--shiny-cta-highlight) calc(var(--gradient-percent) * 3),
        transparent calc(var(--gradient-percent) * 4)
      )
      border-box;
  box-shadow: inset 0 0 0 1px var(--shiny-cta-bg-subtle);
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  

  &::before,
  &::after,
  span::before {
    content: "";
    pointer-events: none;
    position: absolute;
    inset-inline-start: 50%;
    inset-block-start: 50%;
    translate: -50% -50%;
    z-index: -1;
  }

  &:active {
    translate: 0 1px;
  }
}

/* Dots pattern */
.shiny-cta::before {
  --size: calc(100% - var(--shadow-size) * 3);
  --position: 2px;
  --space: calc(var(--position) * 2);
  width: var(--size);
  height: var(--size);
  background: radial-gradient(
      circle at var(--position) var(--position),
      white calc(var(--position) / 4),
      transparent 0
    )
    padding-box;
  background-size: var(--space) var(--space);
  background-repeat: space;
  mask-image: conic-gradient(
    from calc(var(--gradient-angle) + 45deg),
    black,
    transparent 10% 90%,
    black
  );
  border-radius: inherit;
  opacity: 0.4;
  z-index: -1;
}

/* Inner shimmer */
.shiny-cta::after {
  --animation: shimmer linear infinite;
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(
    -50deg,
    transparent,
    var(--shiny-cta-highlight),
    transparent
  );
  mask-image: radial-gradient(circle at bottom, transparent 40%, black);
  opacity: 0.6;
}

.shiny-cta span {
  z-index: 1;

  &::before {
    --size: calc(100% + 1rem);
    width: var(--size);
    height: var(--size);
    box-shadow: inset 0 -1ex 2rem 4px var(--shiny-cta-highlight);
    opacity: 0;
  }
}

/* Animate */
.shiny-cta {
  --transition: 800ms cubic-bezier(0.25, 1, 0.5, 1);
  transition: var(--transition);
  transition-property: --gradient-angle-offset, --gradient-percent,
    --gradient-shine;

  &,
  &::before,
  &::after {
    animation: var(--animation) var(--duration),
      var(--animation) calc(var(--duration) / 0.4) reverse paused;
    animation-composition: add;
  }

  span::before {
    transition: opacity var(--transition);
    animation: calc(var(--duration) * 1.5) breathe linear infinite;
  }
}

.shiny-cta:is(:hover, :focus-visible) {
  --gradient-percent: 20%;
  --gradient-angle-offset: 95deg;
  --gradient-shine: var(--shiny-cta-highlight-subtle);

  &,
  &::before,
  &::after {
    animation-play-state: running;
  }

  span::before {
    opacity: 1;
  }
}

@keyframes gradient-angle {
  to {
    --gradient-angle: 360deg;
  }
}

@keyframes shimmer {
  to {
    rotate: 360deg;
  }
}

@keyframes breathe {
  from,
  to {
    scale: 1;
  }
  50% {
    scale: 1.2;
  }
}




.chatbot-ia-root {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999;
  font-family: Arial, sans-serif;
}

.chatbot-ia-toggle {
    border: 0;
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.chatbot-ia-toggle-hidden {
  display: none;
}

.chatbot-ia-unread {
    position: absolute;
    top: 10px;
    right: 20px;
    z-index: 3;
    min-width: 17px;
    height: 16px;
    padding: 0 6px;
    border: 0px solid #fff;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 10px;
    text-align: center;
    z-index: 9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.chatbot-ia-panel {
  width: 360px;
  max-width: calc(100vw - 40px);
  height: 520px;
  max-height: calc(100vh - 90px);
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
  border: 1px solid #e5e7eb;
}

.chatbot-ia-hidden {
  display: none;
}

.chatbot-ia-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--chatbot-ia-primary, #111827);
  color: #fff;
}

.chatbot-ia-close {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.chatbot-ia-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  background: #f9fafb;
}

.chatbot-ia-message {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.4;
  white-space: pre-wrap;
}

.chatbot-ia-message.user {
  background: var(--chatbot-ia-primary, #111827);
  color: #fff;
  margin-left: 42px;
}

.chatbot-ia-message.assistant {
  background: #fff;
  color: #111827;
  margin-right: 42px;
  border: 1px solid #e5e7eb;
}

.chatbot-ia-actions {
  padding: 10px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 42%;
  overflow-y: auto;
  flex: 0 0 auto;
  border-top: 1px solid #e5e7eb;
  background: #fff;
}

.chatbot-ia-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--chatbot-ia-primary, #111827);
  color: #fff !important;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.chatbot-ia-action-whatsapp {
  background: #16a34a;
}

.chatbot-ia-variation-box {
  width: 100%;
}

.chatbot-ia-details-toggle {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #fff;
  color: #111827;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}

.chatbot-ia-details-toggle::after {
  content: "⌄";
  float: right;
  font-size: 16px;
  line-height: 1;
}

.chatbot-ia-details-toggle[aria-expanded="true"]::after {
  content: "⌃";
}

.chatbot-ia-variation-details {
  max-height: 160px;
  margin-top: 8px;
  overflow-y: auto;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px;
  background: #f9fafb;
}

.chatbot-ia-variation-title {
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 13px;
}

.chatbot-ia-variation-list {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
}

.chatbot-ia-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  background: #fff;
  border-top: 1px solid #e5e7eb;
}

.chatbot-ia-form input {
  flex: 1;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 10px 12px;
  font-size: 14px;
}

.chatbot-ia-form button {
  border: 0;
  border-radius: 999px;
  background: var(--chatbot-ia-primary, #111827);
  color: #fff;
  padding: 10px 14px;
  cursor: pointer;
}

.chatbot-ia-loading {
  position: absolute;
  left: 18px;
  bottom: 68px;
  background: #fff;
  color: #6b7280;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
}

.chatbot-ia-pdp-question {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f9fafb;
}

.chatbot-ia-pdp-question label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.chatbot-ia-pdp-question > div {
  display: flex;
  gap: 8px;
}

.chatbot-ia-pdp-question input {
  flex: 1;
  min-width: 0;
}

.chatbot-ia-pdp-question button {
  border: 0;
  border-radius: 6px;
  padding: 8px 14px;
  color: #fff;
  background: var(--chatbot-ia-primary, #111827);
  cursor: pointer;
}

@media (max-width: 480px) {
  .chatbot-ia-root {
    right: 12px;
    bottom: 12px;
  }

  .chatbot-ia-panel {
    width: calc(100vw - 24px);
    max-width: none;
  }

  .chatbot-ia-actions {
    max-height: 35%;
  }
}
