@tailwind base;
@tailwind components;
@tailwind utilities;

@layer utilities {
  .text-balance {
    text-wrap: balance;
  }
}

@layer base {
  :root {
    --font-proxima-nova: "Proxima Nova", sans-serif;
    --background: 0 0% 100%;
    --foreground: 222.2 84% 4.9%;
    --card: 0 0% 100%;
    --card-foreground: 222.2 84% 4.9%;
    --popover: 0 0% 100%;
    --popover-foreground: 222.2 84% 4.9%;
    --primary: 222.2 47.4% 11.2%;
    --primary-foreground: 210 40% 98%;
    --secondary: 210 40% 96.1%;
    --secondary-foreground: 222.2 47.4% 11.2%;
    --muted: 210 40% 96.1%;
    --muted-foreground: 215.4 16.3% 46.9%;
    --accent: 210 40% 96.1%;
    --accent-foreground: 222.2 47.4% 11.2%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 210 40% 98%;
    --border: 214.3 31.8% 91.4%;
    --input: 214.3 31.8% 91.4%;
    --ring: 222.2 84% 4.9%;
    --chart-1: 12 76% 61%;
    --chart-2: 173 58% 39%;
    --chart-3: 197 37% 24%;
    --chart-4: 43 74% 66%;
    --chart-5: 27 87% 67%;
    --radius: 0.5rem;
  }

  .dark {
    --background: 222.2 84% 4.9%;
    --foreground: 210 40% 98%;
    --card: 222.2 84% 4.9%;
    --card-foreground: 210 40% 98%;
    --popover: 222.2 84% 4.9%;
    --popover-foreground: 210 40% 98%;
    --primary: 210 40% 98%;
    --primary-foreground: 222.2 47.4% 11.2%;
    --secondary: 217.2 32.6% 17.5%;
    --secondary-foreground: 210 40% 98%;
    --muted: 217.2 32.6% 17.5%;
    --muted-foreground: 215 20.2% 65.1%;
    --accent: 217.2 32.6% 17.5%;
    --accent-foreground: 210 40% 98%;
    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 210 40% 98%;
    --border: 217.2 32.6% 17.5%;
    --input: 217.2 32.6% 17.5%;
    --ring: 212.7 26.8% 83.9%;
    --chart-1: 220 70% 50%;
    --chart-2: 160 60% 45%;
    --chart-3: 30 80% 55%;
    --chart-4: 280 65% 60%;
    --chart-5: 340 75% 55%;
  }
}

@layer base {
  * {
    @apply border-border;
  }

  body {
    @apply bg-background text-foreground;
    font-family: var(--font-proxima-nova) !important;
    background-color: var(---background) !important;
  }
}
.main-page {
  max-width: 858px;
  padding-top: 2.5rem;
  padding-bottom: 3.75rem;
}

@media (max-width: 768px) {
  .main-page {
    padding-top: 1rem;
    padding-bottom: 2.5rem;
  }
}

/* Blog Page Heading Styles (scoped to #sg-blog-page) */
:where(#sg-blog-page) h1 {
  font-size: 36px;
  font-weight: bold;
  line-height: 44px;
  color: var(--foreground);
  margin-bottom: 12px; /* Added margin for spacing */
  padding-bottom: 8px; /* Optional padding for visual separation */
}

:where(#sg-blog-page) h2 {
  font-size: 30px;
  font-weight: bold;
  line-height: 40px;
  color: var(--foreground);
  margin-bottom: 8px; /* Added margin for spacing */
  padding-bottom: 6px;
}

:where(#sg-blog-page) h3 {
  font-size: 24px;
  font-weight: bold;
  line-height: 34px;
  color: var(--foreground);
  margin-bottom: 8px;
  margin-top: 20px; /* Added margin for spacing */
  padding-bottom: 4px;
}

:where(#sg-blog-page) h4 {
  font-size: 20px;
  font-weight: bold;
  line-height: 28px;
  color: var(--foreground);
  margin-bottom: 6px;
  padding-bottom: 4px;
}

:where(#sg-blog-page) h5 {
  font-size: 18px;
  font-weight: bold;
  line-height: 26px;
  color: var(--foreground);
  margin-bottom: 5px;
  padding-bottom: 2px;
}

/* Paragraph Style */
:where(#sg-blog-page) p {
  font-size: 16px;
  font-weight: normal;
  line-height: 32px;
  color: var(--foreground);
  margin-bottom: 8px; /* Added margin for spacing */
  padding-top: 4px; /* Optional padding for visual separation */
}

/* List Item Style */
:where(#sg-blog-page) li {
  font-size: 18px;
  font-weight: normal;
  line-height: 28px;
  color: var(--foreground);
  margin-bottom: 3px; /* Spacing between list items */
  padding-top: 2px; /* Optional padding for separation */
  padding-bottom: 2px; /* Padding for visual separation */
  list-style-type: disc; /* Default bullet style */
  padding-left: 2px; /* Indent for better alignment */
}
:where(#sg-blog-page) ul {
  margin-left: 1rem;
}

/* Typography Support Style */
.typography-support {
  font-size: 18px;
  font-weight: normal;
  line-height: 32px;
  color: var(--gray-400, #9ca3af);
}

/* Button Styles */
.primary-action-button {
  background: var(--gray-900, #212121);
  color: var(--white);
  box-shadow:
    0px 4px 6px -1px rgba(33, 33, 33, 0.2),
    0px 2px 4px -2px rgba(33, 33, 33, 0.2);
}

.secondary-action-button {
  border: 1px solid var(--blue-gray-900, #263238);
  background: var(--white);
  color: var(--foreground);
}

.tertiary-action-button {
  background: var(--white);
  color: var(--foreground);
}

.primary-terminal-action-button {
  background: var(--red-500);
  box-shadow:
    0px 4px 6px -1px rgba(244, 67, 54, 0.2),
    0px 2px 4px -2px rgba(244, 67, 54, 0.2);
  color: var(--white);
  transition: opacity 0.3s ease;
}

.primary-terminal-action-button:hover {
  opacity: 0.7;
}

.secondary-terminal-action-button {
  border: 1px solid var(--red-500, #8b1d40);
  background: var(--white);
  color: var(--red-500);
}

.tertiary-terminal-action-button {
  background: var(--white);
  color: var(--foreground);
}

/* Default styles for editor */
.richtext-relative {
  max-height: 400px;
  overflow-y: auto;
  padding: 10px;
  overflow-x: hidden;
  height: 100%;
  width: 100%;
  margin: 0;
}

/* Adjusted Tippy styles */
div[id^="tippy-"] {
  left: 23px !important;
}

button.richtext-inline-flex {
  width: 100% !important;
  overflow: hidden !important;
}

/* ------------------------------Blog Page---------------------------- */
#sg-breadcrumb-container-wrapper {
  margin-top: 0px;
}

/* -----------------------------Widget Wrapper------------------------------------- */
#sg-widget-wrapper {
  margin-bottom: 3rem;
}

#sg-widget-blogList-wrapper {
  margin-bottom: 3.75rem;
}

/* This is for next widget below tabs widget */
#sg-widget-tabs-widget-wrapper {
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  #sg-widget-wrapper {
    margin-bottom: 40px;
    margin-top: 0px;
  }
  #sg-widget-blogList-wrapper {
    margin-bottom: 2.5rem;
  }
  /* This is for next widget below tabs widget */
  #sg-widget-tabs-widget-wrapper {
    margin-bottom: 2.5rem;
  }
}

/*----------------------------- Breadcrumb Styles----------------------------- */
#sg-breadcrumb-container {
  margin-bottom: 24px;
}

#sg-breadcrumb-normal {
  color: #474747;
}

#sg-breadcrumb-selected {
  color: #2a2a2a;
}

#sg-breadcrumb-list {
  padding-top: 0px !important;
  padding-bottom: 0px !important;
  margin-bottom: 0px !important;
}

@media (max-width: 768px) {
  #sg-breadcrumb-container {
    margin-bottom: 1rem;
  }
}

/* --------------------------Banner With Share Widget Styles------------------------- */
#sg-bannerWithShare-content-container p {
  margin-bottom: 0px !important;
  padding: 0px !important;
}

#sg-bannerWithShare-left-wrapper {
  max-width: 798px;
}

#sg-bannerWithShare-image-container {
  margin-bottom: 24px;
}

#sg-bannerWithShare-categoryContainer {
  margin-bottom: 0px;
}

#sg-bannerWithShare-categoryName {
  color: #8800ec;
}

#sg-bannerWithShare-separator {
  color: #474747;
}

#sg-bannerWithShare-readTime {
  padding: 0px;
}

#sg-bannerWithShare-title {
  padding-bottom: 0px;
  margin-bottom: 0px;
}

@media (max-width: 768px) {
  #sg-bannerWithShare-image-container {
    margin-bottom: 1rem;
  }

  #sg-bannerWithShare-content-container {
    margin: 0px;
  }

  #sg-bannerWithShare-categoryContainer {
    gap: 0.5rem;
    padding: 4px 0px;
  }

  #sg-bannerWithShare-categoryName {
    line-height: 28px;
  }
  #sg-bannerWithShare-left-wrapper {
    max-width: 88%;
  }
}

/* ----------------------------------Left Engagement Right Content Widget-------------------- */
#sg-leftContent-rightEngagement-engagementCard {
  margin-left: 32px;
  margin-bottom: 8px;
}

@media (max-width: 768px) {
  #sg-leftContent-rightEngagement-engagementCard {
    margin-top: 1rem;
    margin-bottom: 0px;
    margin-left: 0px;
  }
}

/* ----------------------------------Right Engagement Left Content Widget----------------------- */
#sg-rightContent-leftEngagement-engagementCard {
  margin-right: 32px;
  margin-bottom: 8px;
}

@media (max-width: 768px) {
  #sg-rightContent-leftEngagement-engagementCard {
    margin-top: 1rem;
    margin-bottom: 0px;
    margin-right: 0px;
  }
}

/* ------------------------------Default Carousel Widget--------------------- */
#sg-defaultCarousel-container {
  margin-top: 0.625rem;
}

#sg-defaultCarousel-heading {
  padding-bottom: 0px;
  font-size: 32px;
  line-height: 40px;
  color: #2a2a2a;
}

#sg-defaultCardWidget-content-container {
  height: 5rem;
}

#sg-defaultCardWidget-content-container h3 {
  padding: 0px;
  margin: 0px;
  line-height: 1.5rem;
  color: #2a2a2a;
}

#sg-defaultCardWidget-image-container {
  width: 275.33px;
  height: 206.5px;
}

@media (max-width: 768px) {
  #sg-defaultCarousel-heading {
    padding-bottom: 0px;
    font-size: 20px;
    line-height: 28px;
  }
  #sg-defaultCardWidget-image-container {
    width: 100%;
    height: 216px;
  }
}

/* --------------------------------------Image CTA Widget--------------------------- */
#sg-imageWithCta-button {
  padding: 0px 0px;
  height: 2.5rem;
}

@media (max-width: 768px) {
  #sg-imageWithCta-button {
    padding: 0px 0px;
    height: 2rem;
    border-radius: 8px;
  }

  #sg-imageWithCta-button-container {
    left: 8px;
    right: 8px;
    bottom: 7.5px;
  }
}

/* ----------------------------------------------Default Tabs Widget------------------------------------ */
#sg-tabs-trigger {
  margin-bottom: calc(10px - 0.57px);
}

/* ------------------------------------------Stack Carousel Widget---------------------------------- */
#sg-stackCarousel-heading {
  font-size: 32px;
  line-height: 40px;
  font-weight: 700;
}

#stackCarousel-arrow-button {
  background-color: #f5f5f5;
}

@media (max-width: 768px) {
  #sg-stackCarousel-heading {
    font-size: 20px;
    line-height: 28px;
    font-weight: 700;
    padding: 0px;
  }
}

/* -------------------------------------------Description Card  Widget---------------------------------- */
#sg-descriptionBlogCard-subText-container * {
  margin-bottom: 8px !important;
}

#sg-descriptionBlogCard-readMoreButton {
  bottom: -8px;
}

/* --------------------------------------------Image Text Split Small Card Widget-------------------------- */
#sg-imageTextSplitSmallCard-text {
  margin-bottom: 12px;
}

@media (max-width: 768px) {
  #sg-imageTextSplitSmallCard-text {
    margin-bottom: 10px;
  }
}

/* ----------------------------------- Content Card List Widget------------------------------------- */
#sg-content-card-list-heading {
  margin-bottom: 1rem;
}

/* -----------------------------------Image Text Split Big Card Widget------------------------------ */
#sg-imageTextSplitBigCard-container {
  gap: 2rem;
  padding-bottom: 1.25rem;
}

#sg-imageTextSplitBigCard-text {
  margin-bottom: 0.5rem;
  line-height: 1.75rem;
}

#sg-imageTextSplitBigCard-subText-container {
  margin-bottom: 8px;
}

#sg-content-card-list-loadMore {
  padding: 8px 25.5px;
  line-height: 1.5rem;
  font-weight: 600;
  border-radius: 0.5rem;
}

#sg-content-card-list-loadMore-container {
  margin-top: 0.25rem;
}

@media (max-width: 768px) {
  #sg-imageTextSplitBigCard-container {
    gap: 0.75rem;
    padding-bottom: 1.25rem;
  }
  #sg-imageTextSplitBigCard-text {
    line-height: 1.5rem;
    margin-bottom: 0.3125rem;
  }
  #sg-imageTextSplitBigCard-content-container {
    width: 100%;
  }
  #sg-imageTextSplitBigCard-subText-container {
    margin-bottom: 0px;
    margin-top: 0px;
  }
  #sg-content-card-list-loadMore {
    padding: 6px 22px;
    line-height: 1.25rem;
    font-weight: 600;
    border-radius: 0.5rem;
  }
}

.shopify-section.shopify-section-group-header-group.shopify-section--scrolling-text
  div.section {
  padding: 4px 0 !important;
}
.scrolling-text {
  overflow: hidden;
}

.scrolling-text__wrapper {
  display: grid;
}

.scrolling-text__text {
  display: flex; /* fix: text + dots on one line */
  align-items: center;
  gap: 1.5em; /* space around each dot */
  white-space: nowrap;
  line-height: normal;
  font-size: var(--scrolling-text-font-size);
  padding-inline: min(1em, 2rem);
}

.scrolling-text__text svg {
  display: inline-block; /* fix: was display:block, which broke lines */
  flex-shrink: 0;
}

@supports (overflow: clip) {
  .scrolling-text {
    overflow: clip visible;
  }

  .scrolling-text__text {
    line-height: 1;
  }
}

@media screen and (min-width: 700px) {
  .scrolling-text__text {
    padding-inline: min(1.5em, 4rem);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .scrolling-text__wrapper {
    grid: auto / auto-flow max-content;
  }

  .scrolling-text--auto .scrolling-text__text {
    animation: translateFull var(--marquee-animation-duration, 0s) linear
      infinite;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scrolling-text {
    --scrolling-text-font-size: var(--text-h0);
  }

  .scrolling-text__wrapper {
    text-align: center;
    justify-content: center;
  }
}
/* Hide the bullet in the breadcrumb */
#sg-breadcrumb-container li {
  list-style: none !important;
  padding-left: 0;
}

#sg-breadcrumb-container li::marker {
  content: none;
}
