@charset "UTF-8";
:root {
  --primary-color: #43BF98F0;
  --secondary-color: #ffffff;
  --text-color: #333333;
  --background-color: #f8f8f8;
  --card-border: #e0e0e0;
  --dark-color: #2A2037;
  --border-color: #E9E9E9;
  --paragraph-color: #797B82;
  --brand-hover-color: #36A280;
  --sub-header-color: #797B82;
  --header-color: #2A2037;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Red Hat Display", sans-serif;
}

body {
  min-height: 100vh;
}

/* Main Content Styles */
.main-content {
  flex: 1;
  padding: 2rem;
  background: #f8f8f8;
  position: relative;
  overflow-y: auto;
  height: 100%;
}

/* AI Tools Panel */
.ai-tools-panel {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  height: calc(100% - 2rem);
  overflow-y: auto;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.panel-header h2 {
  font-size: 1.5rem;
  color: #333;
}

.close-btn {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #666;
}

/* AI Tools Grid */
.ai-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.tool-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tool-card img {
  width: 100%;
  height: 200px;
  -o-object-fit: cover;
     object-fit: cover;
}

.tool-card h3 {
  padding: 1rem;
  margin: 0;
  font-size: 1.2rem;
}

.tool-card p {
  padding: 0 1rem 1rem;
  color: #666;
  font-size: 0.9rem;
  margin: 0;
}

/* Add hidden class */
.hidden {
  display: none;
}

/* Ensure credits counter is only visible in editor containers */
.photo-editor-container .credits-counter,
.editor-container .credits-counter {
  display: flex;
}

.upload-area.drag-over {
  border-color: var(--primary-color);
  background-color: #f7fffc;
}

/* Main Content Background */
.main-content {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  flex: 1;
  position: relative;
  overflow-y: auto;
}

/* Editor Container Styles */
.editor-container {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 44px;
  background: #F9F9F9;
  display: flex;
  z-index: 998;
  display: none;
  padding-bottom: 4px;
}
.editor-container .main-content.explore-ideas {
  display: none;
}
.editor-container.active {
  display: flex;
}

.editor-tool-sidebars-container {
  display: flex;
  width: 100%;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  padding: 16px 24px;
  background: white;
  border-bottom: 1px solid #E9E9E9;
  z-index: 999;
  height: 70px;
}

.logo {
  margin-right: 76px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo img {
  width: 199px;
  height: 34px;
}

.nav-center {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.search-container {
  width: 100%;
  display: flex;
  align-items: center;
  background: #F9F9F9;
  border-radius: 50px;
  border: 1px solid #E9E9E9;
}

.search-container input {
  padding: 9px 16px;
  border: none;
  background: none;
  outline: none;
  width: 100%;
}

.search-btn {
  width: 51px;
  height: 38px;
  padding: 9px 16px;
  background: var(--primary-color);
  border: 1px solid var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-top-right-radius: 50px;
  border-bottom-right-radius: 50px;
}
.search-btn:hover {
  background: #36A280;
}

/* Footer */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  padding: 16px;
  text-align: center;
  z-index: 999;
  background-color: #F2FFFD;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-direction: column;
}

.footer-description p {
  color: #2A2037;
  text-align: center;
  font-family: "Red Hat Display";
  font-size: 10px;
  font-style: normal;
  font-weight: 500;
  line-height: 16px; /* 133.333% */
  -webkit-text-decoration: dashed;
          text-decoration: dashed;
}

.footer-links {
  flex: 1;
  display: flex;
  justify-content: flex-start;
  gap: 40px;
  height: 100%;
  align-items: center;
}
@media only screen and (max-width: 1160px) {
  .footer-links {
    gap: 20px;
  }
}
@media only screen and (max-width: 1060px) {
  .footer-links {
    gap: 10px;
  }
}

.footer-links a {
  color: #2A2037;
  text-align: center;
  font-family: "Red Hat Display";
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 16px; /* 133.333% */
  -webkit-text-decoration: dashed;
          text-decoration: dashed;
}

.footer-links a:hover {
  text-decoration: underline;
}

.features-dropdown {
  position: relative;
  margin-right: 10px;
  display: flex;
  align-items: center;
}

body:not(.optin-active) .features-dropdown:hover {
  border-radius: 8px;
  background: #F2FFFD;
}

.features-btn {
  background: none;
  border: none;
  color: var(--Dark, #2A2037);
  text-align: center;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  cursor: pointer;
}

.features-btn img {
  transition: all 0.2s ease-in-out;
}

.features-menu {
  width: 100%;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid #E9E9E9;
  display: none;
  padding: 32px 32px 40px;
  z-index: 1000;
  min-width: 500px;
}

.features-menu.active {
  display: flex;
  gap: 72px;
}

.features-column {
  flex: 1;
  max-width: 597px;
}

.features-column.ai-tools-menu {
  flex: 1;
  max-width: 374px;
}

.features-column h3 {
  margin-bottom: 16px;
  color: #797B82;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px;
  /* 142.857% */
}

.features-column ul {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 16px 36px;
  flex-wrap: wrap;
}

.features-column ul li {
  width: 151px;
}
.features-column ul li button {
  background: none;
  border: none;
  cursor: pointer;
  color: #2A2037;
  font-family: "Red Hat Display";
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 22px;
}
.features-column ul li button:hover {
  color: var(--primary-color);
}

.features-column.ai-tools-menu ul {
  gap: 16px 72px;
}

.features-column ul li a {
  color: #2A2037;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 22px;
  /* 137.5% */
  text-decoration: none;
  color: var(--Dark, #2A2037);
}

.features-column ul li a:hover {
  color: var(--primary-color);
}

.features-column ul li button.highlight {
  position: relative;
  cursor: default;
}
.features-column ul li button.highlight:after {
  content: "";
  width: 20px;
  height: 20px;
  background: url("../../../../../assets/images/extension-imgs/extension-imgs/arrow-right.svg") no-repeat center center;
  position: absolute;
  top: 0;
  right: -23px;
}
.features-column ul li button.highlight:hover {
  color: #2A2037;
}

/* Add a subtle arrow for the features button */
.features-btn span::after {
  content: "";
  width: 12px;
  height: 8px;
  background-image: url("../../../../../assets/images/extension-imgs/extension-imgs/down-arrow.svg");
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
  right: -18px;
  top: 8px;
  font-size: 0.8em;
  margin-left: 4px;
}

@media screen and (max-width: 1240px) {
  .features-column ul {
    gap: 16px 10px;
  }
  .features-column.ai-tools-menu ul {
    gap: 16px 60px;
  }
  .features-menu.active {
    gap: 60px;
  }
  .features-column {
    max-width: 474px;
  }
  .features-column.ai-tools-menu {
    max-width: 363px;
  }
}
/* Animation for menu appearance */
@keyframes menuFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.features-menu.active {
  animation: menuFadeIn 0.2s ease-out;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 99;
  min-width: 900px;
  overflow: auto;
  scrollbar-width: none;
}
.hero.in-active {
  display: none;
}
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 500px;
  height: 100%;
  background-image: url(../../../../../assets/images/extension-imgs/star-left-frame.svg);
  background-position: top left;
  background-repeat: no-repeat;
  background-size: auto 100%;
  z-index: 1;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 500px;
  height: 100%;
  background-image: url(../../../../../assets/images/extension-imgs/star-right-frame.svg);
  background-position: top right;
  background-repeat: no-repeat;
  background-size: auto 100%;
  z-index: 1;
}

.optin-active .hero {
  visibility: hidden;
}

h1 {
  color: #2A2037;
  text-align: center;
  font-family: "Red Hat Display";
  font-size: 30px;
  font-style: normal;
  font-weight: 700;
  line-height: 40px;
  /* 133.333% */
  position: relative;
  z-index: 999;
}

.features-container {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 40px 0;
  position: relative;
  z-index: 9999;
}
.features-container::after {
  content: "";
  position: absolute;
  top: -67px;
  left: -120px;
  width: 47.739px;
  height: 39.306px;
  background: url(../../../../../assets/images/extension-imgs/green-star.svg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}
.features-container .blur-circle::before {
  content: "";
  position: absolute;
  top: -95px;
  left: -38px;
  background: url(../../../../../assets/images/extension-imgs/blur-circle.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 106px;
  height: 140px;
  z-index: 1;
}

.ellipses-container {
  width: 890px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.ellipses-container .orange-ellipse::before {
  content: "";
  position: absolute;
  left: 91px;
  top: -40px;
  background-color: rgba(252, 212, 109, 0.6);
  filter: blur(92px);
  width: 244px;
  height: 229px;
  background-position: center;
  background-repeat: no-repeat;
}
.ellipses-container .green-ellipse::before {
  content: "";
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 210px;
  height: 210px;
  z-index: 99;
  position: absolute;
  background: #ADFB91;
  filter: blur(97px);
  left: 315px;
  top: 10px;
}
.ellipses-container .yellow-ellipse::before {
  content: "";
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 210px;
  height: 210px;
  z-index: 1;
  position: absolute;
  background: rgba(247, 202, 155, 0.7);
  filter: blur(97px);
  right: 40px;
  top: -104px;
}
.ellipses-container .purple-ellipse::before {
  content: "";
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #9E9BF9;
  filter: blur(97px);
  width: 210px;
  height: 210px;
  z-index: 1;
  position: absolute;
  top: 100px;
  left: 300px;
}

.feature-card {
  width: 414px;
  height: 289px;
  padding: 16px;
  position: relative;
  z-index: 9999;
  border-radius: 16px;
  border: 2px solid #FFF;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(227, 227, 227, 0.5) 100%);
  z-index: revert-layer;
}

.feature-card-content {
  width: 380px;
  height: 257px;
  border-radius: 6px;
  border: 1px dashed var(--Grey-03, #A6A7A8);
  align-items: center;
  justify-content: center;
  background: url(../../../../../assets/images/extension-imgs/bg-grid-shortbox.png);
  background-repeat: no-repeat;
  text-align: center;
}
.feature-card-content .cloud-icon img {
  margin-bottom: 16px;
  width: 105px;
  height: 70px;
  filter: drop-shadow(0px 4px 13px rgba(2, 207, 157, 0.4));
  margin-top: 23px;
}
.feature-card-content .drag-text {
  color: #2A2037;
  text-align: center;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px;
  margin-bottom: 16px;
}
.feature-card-content .supported-text {
  margin-bottom: 5px;
  color: #797B82;
  font-family: "Red Hat Display";
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 16px;
}
.feature-card-content .supported-text .dark-text {
  color: #797B82;
  font-family: "Red Hat Display";
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}
.feature-card-content .ai-icon img {
  width: 82px;
  height: 70px;
  margin-top: 25px;
  margin-bottom: 16px;
}

.feature-card.ai-card .feature-card-content {
  background: #fff;
  border: 0;
}

.primary-btn,
.secondary-btn {
  max-width: 243px;
  height: 52px;
  width: 100%;
  text-align: center;
  font-size: 16px;
  font-style: normal;
  border-radius: 19px;
  font-weight: 700;
  line-height: 22px;
  /* 137.5% */
  text-transform: capitalize;
  border: 2px solid rgba(67, 191, 152, 0.9411764706);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin: 0 auto;
}

.primary-btn:hover {
  border-color: var(--Brand-Hover, #36A280);
}
.primary-btn:hover span {
  border-color: #36A280;
  background: #36A280;
}

.primary-btn span {
  width: 235px;
  height: 44px;
  display: block;
  border-radius: 16px;
  background: var(--primary-color);
  color: white;
  border: 2px solid rgba(67, 191, 152, 0.9411764706);
  display: flex;
  align-items: center;
  justify-content: center;
}

.secondary-btn {
  background: #F2FFFD;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border-radius: 16px;
  width: 235px;
}
.secondary-btn:hover {
  color: #FFFFFF;
  border-color: #36A280;
  background: #36A280;
}
.secondary-btn:hover svg path {
  fill: #FFF;
}

.drag-text,
.feature-text {
  color: var(--text-color);
  margin: 1rem 0;
}

.feature-text {
  color: #2A2037;
  text-align: center;
  font-family: "Red Hat Display";
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px;
  /* 142.857% */
}

.limit-text {
  color: #797B82;
  font-family: "Red Hat Display";
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 16px;
  margin-bottom: -16px;
}

.photo-editor-card::after {
  content: "";
  position: absolute;
  top: -71px;
  left: -115px;
  width: 160px;
  height: 150px;
  background: url(../../../../../assets/images/extension-imgs/puppy-hero.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
}
.photo-editor-card::before {
  content: "";
  position: absolute;
  top: -127px;
  left: -44px;
  width: 172px;
  height: 158px;
  background: url(../../../../../assets/images/extension-imgs/girl-hero.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
}

.feature-card.ai-card::after {
  content: "";
  position: absolute;
  bottom: -85px;
  right: -120px;
  width: 163px;
  height: 161px;
  background-image: url(../../../../../assets/images/extension-imgs/pot-hero.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
}
.feature-card.ai-card::before {
  content: "";
  position: absolute;
  bottom: -108px;
  right: -161px;
  width: 133px;
  height: 126px;
  background-image: url(../../../../../assets/images/extension-imgs/pot-hover.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

.screen-overlay.active {
  background: rgba(0, 0, 0, 0.3607843137);
  background: rgba(32, 55, 51, 0.16);
  z-index: 999;
  position: absolute;
  width: 100%;
  height: 100%;
}

.sidebar {
  width: 68px;
  height: calc(100% - 40px);
  margin-top: 14px;
  margin-left: 4px;
  border-radius: 8px;
  border: 0.85px solid #E9E9E9;
  background: #fff;
  overflow-y: auto;
  scrollbar-width: none;
}

.tool-group {
  margin: 8px 0;
  width: 100%;
  padding: 0 8px;
  display: flex;
  flex-direction: column;
}

.tool-item {
  margin-bottom: 8px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.tool-item img {
  width: auto;
  height: auto;
  margin-bottom: 0.25rem;
}

.tool-item span {
  color: #2A2037;
  text-align: center;
  font-size: 10px;
  font-style: normal;
  font-weight: 500;
  line-height: 14px;
  text-align: center;
  border-radius: 8px;
}

.tool-item:hover {
  background: #F2FFFD;
}
.tool-item:hover span {
  color: rgba(67, 191, 152, 0.94);
}
.tool-item:hover svg path {
  fill: rgba(67, 191, 152, 0.94);
}

.tool-item.active {
  background: #F2FFFD;
  color: rgba(67, 191, 152, 0.9411764706);
  border: 0;
}

.tool-item.active span {
  color: rgba(67, 191, 152, 0.94);
}

.tool-item.active svg path {
  fill: rgba(67, 191, 152, 0.94);
}

.credits-counter {
  width: 100%;
  justify-content: right;
  margin-bottom: 8px;
}
.credits-counter .wrap {
  background: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: right;
  gap: 0.5rem;
  z-index: 1000;
  font-size: 14px;
  line-height: 20px;
  color: #2A2037;
  height: 50px;
  border: 1px solid #E9E9E9;
  min-width: 180px;
  margin-right: 4px;
}

.coin-icon {
  font-size: 1.2rem;
}

/* Make it responsive */
@media (max-width: 768px) {
  .credits-counter {
    top: unset;
    bottom: 70px;
    /* Position above footer on mobile */
    right: 10px;
    font-size: 0.8rem;
  }
}
/* Add this style to hide credits counter when in hero section */
.hero .credits-counter {
  display: none;
}

/* Photo Editor Container Styles */
.photo-editor-container {
  width: 100%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 998;
  display: none;
}
.photo-editor-container .credits-counter {
  position: absolute;
  top: 0;
}
.photo-editor-container .main-content {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ellipses-edit-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.ellipses-edit-photo .ellipse-green1::after {
  content: "";
  position: absolute;
  left: 55px;
  top: 45px;
  background-color: #62F6D2;
  filter: blur(77px);
  width: 288px;
  height: 189px;
  background-position: center;
  background-repeat: no-repeat;
}
.ellipses-edit-photo .ellipse-green2::after {
  content: "";
  position: absolute;
  left: 230px;
  top: 30px;
  background-color: #64FD57;
  filter: blur(77px);
  width: 228px;
  height: 125px;
  background-position: center;
  background-repeat: no-repeat;
}
.ellipses-edit-photo .ellipse-orange::after {
  content: "";
  width: 205px;
  height: 168px;
  position: absolute;
  left: 360px;
  top: 12px;
  background-color: #F6BE2D;
  filter: blur(57px);
  background-position: center;
  background-repeat: no-repeat;
}

.editor-welcome-screen {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
}

.editor-welcome-screen h1 {
  margin-bottom: 16px;
  color: #2A2037;
  text-align: center;
  font-size: 34px;
  font-style: normal;
  font-weight: 700;
  line-height: 42px;
}

.editor-welcome-screen .subtitle {
  margin-bottom: 40px;
  color: #797B82;
  text-align: center;
  font-family: "Red Hat Display";
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

.upload-container {
  background: white;
  border: 2px dashed #e0e0e0;
  border-radius: 12px;
  padding: 3rem;
  margin: 2rem 0;
  position: relative;
}

.upload-container h2 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 1.5rem;
}

.upload-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 24px;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 auto;
  cursor: pointer;
  transition: background-color 0.2s;
}

.upload-btn:hover {
  background-color: #2cc59f;
}

.upload-btn img {
  width: 24px;
  height: 24px;
}

.drag-text {
  margin: 1rem 0;
  color: #666;
}

.supported-text {
  color: #999;
  font-size: 0.9rem;
}

.upload-area {
  width: 632px;
  height: 332px;
  background: white;
  padding: 12px;
  border-radius: 12px;
  margin-bottom: 48px;
  transition: all 0.3s ease;
  border-radius: 16px;
  border: 3px solid #FFF;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(248, 247, 254, 0.4) 100%);
  position: relative;
}
.upload-area .wrap {
  width: 600px;
  height: 300px;
  border: 2px dashed rgba(67, 191, 152, 0.9411764706);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: url(../../../../assets/images/extension-imgs/dot-grid-pattern.png);
}
.upload-area .drag-text {
  margin: 8px 0 24px;
  color: #2A2037;
  text-align: center;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px;
}
.upload-area .format-text {
  color: #797B82;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 16px;
}

.upload-area h2 {
  margin-bottom: 24px;
  color: #2A2037;
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: 24px;
  text-transform: capitalize;
}

.open-image-btn {
  padding: 11px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 auto;
  cursor: pointer;
  transition: background-color 0.2s;
  border-radius: 16px;
  border: 1px solid var(--primary-color);
  background: var(--primary-color);
  color: #fff;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 22px;
  text-transform: capitalize;
  text-align: center;
  width: 184px;
  height: 48px;
}
.open-image-btn.loading {
  cursor: wait;
}
.open-image-btn.loading .loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #E8F7F3;
  border-top: 2px solid #3DD7B3;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

.open-image-btn img {
  width: 24px;
  height: 24px;
}

.open-image-btn:hover {
  background-color: #36A280;
}

/* Drag and Drop States */
.upload-area.drag-over {
  border-color: var(--primary-color);
  background-color: #f7fffc;
}

/* Main Content Background */
.main-content {
  background: #F9F9F9;
  flex: 1;
  position: relative;
  overflow-y: auto;
  width: calc(100vw - 345px);
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.canvas-area {
  display: none;
  position: relative;
}
.canvas-area.active {
  display: block;
}
.canvas-area .canvas-container {
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background: #fff;
  padding: 20px;
  margin: 20px auto;
  max-width: 1200px;
}
.canvas-area .canvas-container .canvas-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}
.canvas-area .canvas-container .canvas-wrapper canvas {
  max-width: 100%;
  height: auto;
  border-radius: 2px;
}
.canvas-area .canvas-container .canvas-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 15px;
  border-top: 1px solid #e0e0e0;
}
.canvas-area .canvas-container .canvas-controls .dimensions-control {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #666;
  font-size: 14px;
}
.canvas-area .canvas-container .canvas-controls .dimensions-control .rotate-controls {
  display: flex;
  gap: 8px;
}
.canvas-area .canvas-container .canvas-controls .dimensions-control .rotate-controls button {
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
  padding: 4px;
}
.canvas-area .canvas-container .canvas-controls .dimensions-control .rotate-controls button:hover {
  color: #333;
}
.canvas-area .canvas-container .canvas-controls .size-control {
  display: flex;
  align-items: center;
  gap: 15px;
}
.canvas-area .canvas-container .canvas-controls .size-control .current-dimensions {
  color: #666;
  font-size: 14px;
}
.canvas-area .canvas-container .canvas-controls .size-control .zoom-slider {
  width: 200px;
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
}
.canvas-area .canvas-container .canvas-controls .size-control .zoom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  background: #2ecc71;
  border-radius: 50%;
  cursor: pointer;
}
.canvas-area .canvas-container .canvas-controls .size-control .action-buttons {
  display: flex;
  gap: 10px;
}
.canvas-area .canvas-container .canvas-controls .size-control .action-buttons button {
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
  padding: 5px;
  font-size: 14px;
}
.canvas-area .canvas-container .canvas-controls .size-control .action-buttons button:hover {
  color: #333;
}

/* AI Editor Layout */
.image-editor-layout {
  margin-left: 4px;
  margin-top: 14px;
  display: flex;
  width: calc(100% - 68px);
  height: calc(100% - 40px);
  display: none;
  border-radius: 8px;
}

/* AI Tools Sidebar */
.left-sidebar {
  width: 272px;
  border-radius: 8px;
  background: #fff;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.3s ease;
}
.left-sidebar .ai-tools-options {
  border-radius: 8px;
  border: 1px solid #E9E9E9;
  height: 100%;
  overflow: auto;
  scrollbar-width: none;
}

/* Open Sidebar Button */
.open-sidebar-btn {
  position: fixed;
  top: 20px;
  left: 20px;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--primary-color);
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  z-index: 100;
}
.open-sidebar-btn:hover {
  background: #3bad89;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.tool-header {
  padding: 16px;
  border-bottom: 1px solid #E9E9E9;
}

.ai-tool-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-tool-title h3 {
  color: var(--dark-color, #2A2037);
  font-family: "Red Hat Display";
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 22px;
  /* 137.5% */
}

.close-sidebar {
  margin-left: auto;
  background: none;
  border: none;
  font-size: 24px;
  color: #797B82;
  cursor: pointer;
  line-height: 0;
}
.close-sidebar svg {
  width: 13px;
  height: 13px;
}

.tools-list {
  height: 100%;
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-top: 0;
}
.tools-list::-webkit-scrollbar {
  display: none;
}
.tools-list .tool-item {
  padding: 16px 16px 0;
  margin-bottom: 0;
  border-radius: 0;
  gap: 0;
}
.tools-list .tool-item .tool-info h4 {
  margin-bottom: 8px;
  color: var(--dark-color, #2A2037);
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 22px;
}
.tools-list .tool-item .tool-info p {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color, #E9E9E9);
  color: var(--paragraph-color, #797B82);
  font-family: "Red Hat Display";
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 16px;
  /* 133.333% */
}
.tools-list .tool-item .tool-icon {
  height: 100px;
  margin-bottom: 8px;
}
.tools-list .tool-item img {
  width: 240px;
  height: 100px;
  -o-object-fit: cover;
     object-fit: cover;
  background-repeat: no-repeat;
  background-size: contain;
}
.tools-list .tool-item:last-child .tool-info p {
  border-bottom: none;
}

.tool-item {
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.tool-item.active {
  background-color: #F2FFFD;
}

.tool-group .ai-tools {
  position: relative;
}
.tool-group .ai-tools span {
  white-space: nowrap;
}
.tool-group .ai-tools::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 1px;
  background-color: #E9E9E9;
  bottom: -8px;
  margin-top: 8px;
}
.tool-group .ai-tools.noBorder-enabled::after {
  display: none;
}
.tool-group .trending-tool {
  position: relative;
}
.tool-group .trending-tool::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 1px;
  background-color: #E9E9E9;
  bottom: -8px;
  margin-top: 8px;
}
.tool-group .adjust-tool {
  margin-top: 8px;
}

.tool-icon {
  margin-bottom: 12px;
}

.tool-info h4 {
  margin: 0 0 8px 0;
  font-size: 16px;
  color: #333;
}
.tool-info p {
  margin: 0;
  font-size: 14px;
  color: #666;
  line-height: 1.4;
}

/* Main Content Area */
.ai-content-area {
  flex: 1;
  padding: 0 0 0 24px;
  background: #F9F9F9;
  overflow-y: auto;
  width: calc(100vw - 345px);
}
.ai-content-area .content-header {
  text-align: center;
}
.ai-content-area h1 {
  margin-bottom: 32px;
  display: inline-block;
  font-family: "Red Hat Display";
  font-size: 34px;
  font-style: normal;
  font-weight: 700;
  line-height: 42px;
  /* 123.529% */
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background: linear-gradient(90.34deg, #E2112A 0.29%, #21DFB1 99.94%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
}

.ai-content-header {
  margin-bottom: 40px;
}
.ai-content-header h1 {
  font-size: 32px;
  font-weight: 700;
  color: #333;
  margin: 0;
}

.text-popular {
  color: #666;
}

.text-ideas {
  color: #3DD7B3;
}

.inspiration-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  padding-bottom: 32px;
}

.inspiration-item {
  border-radius: 8px;
  position: relative;
  width: 306px;
  flex-shrink: 0;
}
.inspiration-item img {
  width: 306px;
  height: 190px;
  border-radius: 8px;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
  background-repeat: no-repeat;
}
.inspiration-item.grayscale img {
  opacity: 0.5;
}
.inspiration-item.active img {
  border: 2px solid rgba(67, 191, 152, 0.9411764706);
  opacity: 1;
}
.inspiration-item .prompt-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.inspiration-item .prompt-overlay .overlay-wrap {
  height: 100%;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  border: 8px solid var(--Brand-Light, #F2FFFD);
  background: rgba(86, 53, 255, 0.7);
  border-radius: 8px;
}
@-moz-document url-prefix() {
  .inspiration-item .prompt-overlay .overlay-wrap {
    border-radius: 6px;
  }
}
.inspiration-item .prompt-overlay .overlay-wrap p {
  color: var(--White, #FFF);
  font-family: "Red Hat Display";
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px;
  /* 142.857% */
}
.inspiration-item .prompt-overlay .overlay-wrap button {
  padding: 8px;
  color: var(--Dark, #2A2037);
  font-family: "Red Hat Display";
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px;
  /* 142.857% */
  background: rgba(242, 240, 254, 0.8);
  border-radius: 8px;
  border: none;
  cursor: pointer;
}
.inspiration-item:hover .prompt-overlay {
  opacity: 1;
  visibility: visible;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .inspiration-grid {
    justify-content: center;
  }
}
@media (max-width: 768px) {
  .left-sidebar {
    width: 280px;
  }
  .inspiration-grid {
    justify-content: center;
  }
}
/* AI Generator Interface */
.ai-generator-interface {
  flex: 1;
  background: #fff;
  display: none;
}
.ai-generator-interface.active {
  display: block;
}

.generator-header {
  padding: 20px;
  border-bottom: 1px solid #e0e0e0;
}
.generator-header .back-button {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 16px;
  color: #333;
}
.generator-header .back-button .back-arrow {
  font-size: 20px;
}
.generator-header .back-button:hover {
  color: var(--primary-color);
}

.generator-content {
  padding: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.tab-navigation {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid #e0e0e0;
}
.tab-navigation .tab-btn {
  padding: 12px 24px;
  background: none;
  border: none;
  font-size: 16px;
  color: #666;
  cursor: pointer;
  position: relative;
}
.tab-navigation .tab-btn.active {
  color: var(--primary-color);
  font-weight: 500;
}
.tab-navigation .tab-btn.active:after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-color);
}
.tab-navigation .tab-btn:hover:not(.active) {
  color: #333;
}

.input-section .prompt-input {
  width: 100%;
  min-height: 120px;
  padding: 16px;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  font-size: 16px;
  line-height: 1.5;
  resize: none;
  margin-bottom: 24px;
}
.input-section .prompt-input:focus {
  outline: none;
  border-color: var(--primary-color);
}
.input-section .prompt-input::-moz-placeholder {
  color: #999;
}
.input-section .prompt-input::placeholder {
  color: #999;
}

.aspect-ratio-section {
  margin-bottom: 24px;
}
.aspect-ratio-section h4 {
  font-size: 14px;
  color: #666;
  margin-bottom: 12px;
}
.aspect-ratio-section .ratio-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px;
}
.aspect-ratio-section .ratio-options .ratio-btn {
  padding: 8px 16px;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
}
.aspect-ratio-section .ratio-options .ratio-btn:hover {
  background: #eee;
}
.aspect-ratio-section .ratio-options .ratio-btn.active {
  background: #e6fff5;
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.action-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
}
.action-buttons button {
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.action-buttons .generate-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  flex: 1;
}
.action-buttons .generate-btn:hover {
  background: #3bad89;
}
.action-buttons .reset-btn {
  background: none;
  border: 1px solid #e0e0e0;
  color: #666;
}
.action-buttons .reset-btn:hover {
  background: #f5f5f5;
}

.credits-info {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #666;
  font-size: 14px;
}
.credits-info .dot {
  color: #ccc;
}
.credits-info .credit-amount {
  display: flex;
  align-items: center;
  gap: 4px;
}
.credits-info .credit-amount:before {
  content: "🪙";
  font-size: 16px;
}

.ai-features-sidebar {
  display: none;
  width: 272px;
  height: 100%;
  position: relative;
  overflow: hidden;
  border: 1px solid #E9E9E9;
  border-radius: 8px;
}
.ai-features-sidebar .ai-tools-options,
.ai-features-sidebar .ai-image-generator {
  opacity: 1;
  transform: translateX(0);
  transition: all 0.3s ease-in-out;
  background: white;
  width: 100%;
}
.ai-features-sidebar .ai-tools-options .tool-header {
  border-radius: 8px;
}
.ai-features-sidebar .ai-tools-options.hidden {
  opacity: 0;
  transform: translateX(-20px);
  pointer-events: none;
}
.ai-features-sidebar .features-content {
  padding-bottom: 54px;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}
.ai-features-sidebar .features-content .brush-controls {
  overflow-y: auto;
  scrollbar-width: none;
}
.ai-features-sidebar .features-content .wrapper {
  min-width: 270px;
  overflow-y: auto;
  scrollbar-width: none;
}
.ai-features-sidebar .generate-section {
  padding: 16px;
  border-top: 1px solid #E9E9E9;
}
.ai-features-sidebar .generate-section .generate-button.disabled {
  background: #B0EADC;
  cursor: not-allowed;
}
.ai-features-sidebar .generate-section .generate-button.disabled:hover {
  background: #B0EADC;
}
.ai-features-sidebar .generate-section .reset-button.disabled {
  background: #F9F9F9;
  cursor: not-allowed;
}
.ai-features-sidebar .generate-section .reset-button.disabled:hover {
  background: #F9F9F9;
}
.ai-features-sidebar .back-button {
  font-size: 24px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: #2A2037;
  border-bottom: 1px solid #E9E9E9;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}
.ai-features-sidebar .back-button svg {
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}
.ai-features-sidebar .back-button svg:hover path {
  fill: rgba(67, 191, 152, 0.94);
}
.ai-features-sidebar .back-button span {
  font-weight: 500;
  font-size: 16px;
  line-height: 22px;
  letter-spacing: 0%;
}
.ai-features-sidebar .action-buttons {
  display: flex;
  flex-direction: column;
  margin-top: auto;
  gap: 0;
}
.ai-features-sidebar .action-buttons .generate-button {
  margin-bottom: 8px;
  padding: 9px 0;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-align: center;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 22px;
  /* 137.5% */
  text-transform: capitalize;
  width: 240px;
  height: 40px;
}
.ai-features-sidebar .action-buttons .generate-button:hover {
  background-color: var(--brand-hover-color);
}
.ai-features-sidebar .action-buttons .reset-button {
  padding: 9px 0;
  background-color: white;
  color: #797B82;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: #F9F9F9;
  text-align: center;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 22px;
  /* 137.5% */
  text-transform: capitalize;
  width: 240px;
  height: 40px;
}
.ai-features-sidebar .action-buttons .reset-button:hover {
  background-color: #E9E9E9;
}
.ai-features-sidebar .credits-info {
  margin-top: 16px;
  text-align: center;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ai-features-sidebar .credits-info span {
  display: flex;
  color: #2A2037;
  font-family: "Red Hat Display";
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 16px;
}
.ai-features-sidebar .credits-info .credit-icon {
  color: #ffd700;
  font-size: 20px;
}
.ai-features-sidebar .remove-button {
  margin-top: 8px;
  cursor: pointer;
  color: #F55;
  border: none;
  background: none;
  text-align: center;
  font-family: "Red Hat Display";
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 16px;
  display: none;
}
.ai-features-sidebar .remove-button:hover {
  color: #ff0909;
}
.ai-features-sidebar .ai-image-generator {
  display: none;
  height: 100%;
  border-radius: 8px;
  justify-content: space-between;
}
.ai-features-sidebar .ai-image-generator .control-panel {
  height: 100%;
  padding-bottom: 61px;
}
.ai-features-sidebar .ai-image-generator .features-content {
  padding-bottom: 54px;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}
.ai-features-sidebar .ai-image-generator .features-content .tab-navigation {
  padding: 0 16px;
  margin-bottom: 16px;
}
.ai-features-sidebar .ai-image-generator .features-content .input-section {
  padding: 0 16px;
}
.ai-features-sidebar .ai-image-generator .features-content .input-section h3 {
  margin-bottom: 8px;
  color: #797B82;
  font-family: "Red Hat Display";
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px;
  /* 142.857% */
}
.ai-features-sidebar .ai-image-generator .tab-navigation {
  display: flex;
  margin-bottom: 30px;
  border-bottom: 1px solid #e0e0e0;
  gap: 0;
}
.ai-features-sidebar .ai-image-generator .tab-navigation .tab {
  flex: 1;
  padding: 10px 20px;
  color: #797B82;
  cursor: pointer;
  position: relative;
  text-align: center;
  font-weight: 500;
  font-size: 16px;
  line-height: 22px;
  letter-spacing: 0%;
}
.ai-features-sidebar .ai-image-generator .tab-navigation .tab:hover {
  background-color: #F2FFFD;
  color: rgba(67, 191, 152, 0.9411764706);
  border-radius: 8px;
}
.ai-features-sidebar .ai-image-generator .tab-navigation .tab.active {
  color: var(--primary-color);
}
.ai-features-sidebar .ai-image-generator .tab-navigation .tab.active:after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}
.ai-features-sidebar .ai-image-generator .text-tab,
.ai-features-sidebar .ai-image-generator .image-tab {
  display: none;
}
.ai-features-sidebar .ai-image-generator .tab-content {
  height: 100%;
  display: none;
  flex-direction: column;
  justify-content: space-between;
}
.ai-features-sidebar .ai-image-generator .tab-content.active {
  display: block;
  display: flex;
}
.ai-features-sidebar .ai-image-generator .tab-content .field-wrapper {
  overflow-y: auto;
  scrollbar-width: none;
}
.ai-features-sidebar .ai-image-generator .text-tab h3,
.ai-features-sidebar .ai-image-generator .image-tab h3 {
  color: #797B82;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px;
  /* 142.857% */
}
.ai-features-sidebar .ai-image-generator .text-tab textarea,
.ai-features-sidebar .ai-image-generator .image-tab textarea {
  width: 100%;
  padding: 8px;
  border-radius: 8px;
  border: none;
  background: #F9F9F9;
  font-size: 16px;
  min-height: 120px;
  resize: none;
  color: var(--dark-color);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 16px;
  border-radius: 8px;
}
.ai-features-sidebar .ai-image-generator .text-tab textarea:focus,
.ai-features-sidebar .ai-image-generator .image-tab textarea:focus {
  outline: 1px solid var(--primary-color);
}
.ai-features-sidebar .ai-image-generator .text-tab textarea::-moz-placeholder, .ai-features-sidebar .ai-image-generator .image-tab textarea::-moz-placeholder {
  color: #A6A7A8;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 16px;
}
.ai-features-sidebar .ai-image-generator .text-tab textarea::placeholder,
.ai-features-sidebar .ai-image-generator .image-tab textarea::placeholder {
  color: #A6A7A8;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 16px;
}
.ai-features-sidebar .ai-image-generator .image-tab {
  height: 100%;
}
.ai-features-sidebar .ai-image-generator .image-tab .field-wrapper {
  overflow-y: auto;
  scrollbar-width: none;
}
.ai-features-sidebar .ai-image-generator .image-tab .upload-section {
  padding: 0 16px;
  margin-bottom: 24px;
}
.ai-features-sidebar .ai-image-generator .image-tab .upload-section .upload-area {
  border: 2px dashed #e0e0e0;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  background-color: #f8f8f8;
}
.ai-features-sidebar .ai-image-generator .image-tab .upload-section .upload-area .browse-button {
  cursor: pointer;
  background-color: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  transition: all 0.3s ease;
  cursor: pointer;
}
.ai-features-sidebar .ai-image-generator .image-tab .upload-section .upload-area .browse-button:hover {
  background-color: var(--primary-color);
  color: white;
}
.ai-features-sidebar .ai-image-generator .image-tab .upload-section .upload-area .browse-button i {
  font-size: 20px;
}
.ai-features-sidebar .ai-image-generator .image-tab .upload-section .upload-area .drag-text {
  color: #666;
  font-size: 14px;
  margin: 0;
}
.ai-features-sidebar .ai-image-generator .image-tab .upload-section .uploaded-img {
  display: flex;
}
.ai-features-sidebar .ai-image-generator .image-tab .upload-section .uploaded-img img {
  width: 100%;
  height: 64px;
  -o-object-fit: contain;
     object-fit: contain;
  border-radius: 8px;
  max-width: 220px !important;
}
.ai-features-sidebar .ai-image-generator .image-tab .prompt-section {
  margin-bottom: 24px;
  padding: 0 16px;
}
.ai-features-sidebar .ai-image-generator .image-tab .prompt-section h3 {
  margin-bottom: 8px;
}
.ai-features-sidebar .ai-image-generator .image-tab .prompt-section textarea {
  height: 120px;
}
.ai-features-sidebar .ai-image-generator .aspect-ratio-section {
  margin-bottom: 30px;
  margin-top: 24px;
  padding: 0 16px;
}
.ai-features-sidebar .ai-image-generator .aspect-ratio-section h3 {
  color: #797B82;
  margin-bottom: 8px;
}
.ai-features-sidebar .ai-image-generator .aspect-ratio-section .ratio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}
.ai-features-sidebar .ai-image-generator .aspect-ratio-section .ratio-grid .ratio-button {
  padding: 7px 8px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  background: white;
  transition: all 0.3s ease;
  color: var(--Dark, #2A2037);
  text-align: center;
  font-family: "Red Hat Display";
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 16px;
  /* 133.333% */
}
.ai-features-sidebar .ai-image-generator .aspect-ratio-section .ratio-grid .ratio-button:hover {
  border-color: var(--primary-color);
  background: #F2FFFD;
}
.ai-features-sidebar .ai-image-generator .aspect-ratio-section .ratio-grid .ratio-button.active {
  border-color: var(--primary-color);
  background: #F2FFFD;
}
.ai-features-sidebar .ai-image-generator .upload-area-ai-sec {
  width: 100%;
  height: 102px;
  padding: 23px 8px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px dashed #A6A7A8;
  background: #F9F9F9;
}
.ai-features-sidebar .ai-image-generator .upload-area-ai-sec .browse-button {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--Brand, rgba(67, 191, 152, 0.94));
  background: var(--White, #FFF);
  color: var(--primary-color);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 16px;
  transition: all 0.3s ease-in-out;
}
.ai-features-sidebar .ai-image-generator .upload-area-ai-sec .browse-button svg path {
  transition: all 0.3s ease-in-out;
}
.ai-features-sidebar .ai-image-generator .upload-area-ai-sec .browse-button:hover {
  background: rgba(67, 191, 152, 0.94);
  color: #FFF;
}
.ai-features-sidebar .ai-image-generator .upload-area-ai-sec .browse-button:hover svg path {
  fill: #FFF;
}
.ai-features-sidebar .ai-image-generator .upload-area-ai-sec .drag-text {
  margin: 0;
  color: var(--dark-color);
  text-align: center;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 16px;
  /* 133.333% */
}
.ai-features-sidebar .ai-image-generator .upload-area-ai-sec:has(button.browse-button:hover) {
  border-color: rgba(67, 191, 152, 0.94);
}
.ai-features-sidebar .ai-image-generator .upload-area-ai-sec:has(.uploaded-img img) {
  border-color: rgba(67, 191, 152, 0.94);
}
.ai-features-sidebar .upscale-image-sidebar {
  display: none;
  background: white;
  height: 100%;
  border-radius: 8px;
}
.ai-features-sidebar .upscale-image-sidebar .scale-ratio-section {
  padding: 0 16px;
  margin-bottom: 24px;
}
.ai-features-sidebar .upscale-image-sidebar .scale-ratio-section h3 {
  margin-bottom: 24px;
  color: var(--dark-color);
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px;
}
.ai-features-sidebar .upscale-image-sidebar .scale-ratio-section .scale-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.ai-features-sidebar .upscale-image-sidebar .scale-ratio-section .scale-options-grid .scale-option {
  all: unset;
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid #E8E8E8;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  text-align: left;
  box-sizing: border-box;
  width: 100%;
}
.ai-features-sidebar .upscale-image-sidebar .scale-ratio-section .scale-options-grid .scale-option:hover {
  border-color: var(--primary-color);
}
.ai-features-sidebar .upscale-image-sidebar .scale-ratio-section .scale-options-grid .scale-option.active, .ai-features-sidebar .upscale-image-sidebar .scale-ratio-section .scale-options-grid .scale-option:hover {
  background-color: #E7FAF5;
  border-color: var(--primary-color);
}
.ai-features-sidebar .upscale-image-sidebar .scale-ratio-section .scale-options-grid .scale-option.active .scale-value,
.ai-features-sidebar .upscale-image-sidebar .scale-ratio-section .scale-options-grid .scale-option.active .scale-dimensions,
.ai-features-sidebar .upscale-image-sidebar .scale-ratio-section .scale-options-grid .scale-option.active .scale-size, .ai-features-sidebar .upscale-image-sidebar .scale-ratio-section .scale-options-grid .scale-option:hover .scale-value,
.ai-features-sidebar .upscale-image-sidebar .scale-ratio-section .scale-options-grid .scale-option:hover .scale-dimensions,
.ai-features-sidebar .upscale-image-sidebar .scale-ratio-section .scale-options-grid .scale-option:hover .scale-size {
  color: var(--primary-color);
}
.ai-features-sidebar .upscale-image-sidebar .scale-ratio-section .scale-options-grid .scale-option .scale-value {
  margin-bottom: 10px;
  color: #797B82;
  text-align: center;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 22px;
  /* 137.5% */
  text-transform: capitalize;
}
.ai-features-sidebar .upscale-image-sidebar .scale-ratio-section .scale-options-grid .scale-option .scale-dimensions {
  margin-bottom: 4px;
  color: #A6A7A8;
  text-align: center;
  /* Small */
  font-family: "Red Hat Display";
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 16px;
  /* 133.333% */
}
.ai-features-sidebar .upscale-image-sidebar .scale-ratio-section .scale-options-grid .scale-option .scale-size {
  color: #A6A7A8;
  text-align: center;
  font-family: "Red Hat Display";
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 16px;
}
.ai-features-sidebar .upscale-image-sidebar .scale-info {
  padding: 16px;
}
.ai-features-sidebar .upscale-image-sidebar .scale-info ul li {
  margin: 0 16px;
  color: var(--Grey-04, #797B82);
  font-family: "Red Hat Display";
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 16px;
  /* 133.333% */
  margin-bottom: 16px;
}

.remove-bg-sidebar {
  display: none;
  background: white;
  height: 100%;
  border-radius: 8px;
}
.remove-bg-sidebar .tool-description {
  padding: 8px 16px;
  color: #797B82;
  margin-bottom: 24px;
  font-family: "Red Hat Display", Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px;
}

.left-sidebar.remove-bg-active .remove-bg-sidebar {
  display: block;
}

.left-sidebar.remove-bg-active .ai-tools-options {
  display: none;
}

.replace-bg-sidebar {
  display: none;
  background: #fff;
  height: 100%;
  border-radius: 8px;
}
.replace-bg-sidebar .custom-prompt-toggle {
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-direction: row-reverse;
  gap: 7px;
}
.replace-bg-sidebar .custom-prompt-toggle span {
  color: var(--sub-header-color);
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px;
}
.replace-bg-sidebar .custom-prompt-toggle .switch {
  position: relative;
  display: inline-block;
  width: 30px;
  height: 19px;
  border: 1px solid #797B82;
  border-radius: 30px;
  background-color: #E9E9E9;
}
.replace-bg-sidebar .custom-prompt-toggle .switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.replace-bg-sidebar .custom-prompt-toggle .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #E9E9E9;
  transition: 0.4s;
  border-radius: 34px;
}
.replace-bg-sidebar .custom-prompt-toggle .slider::before {
  position: absolute;
  content: "";
  height: 11px;
  width: 10px;
  left: 3px;
  top: 3.4px;
  background-color: #797B82;
  transition: 0.4s;
  border-radius: 50%;
  box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.16);
}
.replace-bg-sidebar .custom-prompt-toggle .switch input:checked + .slider {
  background-color: #F2FFFD;
}
.replace-bg-sidebar .custom-prompt-toggle .switch input:checked + .slider::before {
  background-color: rgba(67, 191, 152, 0.94);
}
.replace-bg-sidebar .custom-prompt-toggle .switch input:checked + .slider::before {
  transform: translateX(12px);
}
.replace-bg-sidebar .custom-prompt-toggle .switch:has(input:checked) {
  border-color: rgba(67, 191, 152, 0.94);
}
.replace-bg-sidebar .category-buttons {
  padding: 0 16px;
  margin-bottom: 16px;
  display: flex;
  border-bottom: 1px solid #E9E9E9;
}
.replace-bg-sidebar .category-buttons::-webkit-scrollbar {
  height: 4px;
  width: 4px;
}
.replace-bg-sidebar .category-buttons::-webkit-scrollbar-thumb {
  background: #E8E8E8;
  border-radius: 2px;
}
.replace-bg-sidebar .category-buttons .category-btn {
  flex: 1;
  padding: 8px 10px;
  border: none;
  background: none;
  color: #797B82;
  font-size: 16px;
  line-height: 22px;
  white-space: nowrap;
  cursor: pointer;
  border-radius: 4px;
  position: relative;
  font-weight: 500;
}
.replace-bg-sidebar .category-buttons .category-btn:hover {
  background-color: #F2FFFD;
  color: rgba(67, 191, 152, 0.9411764706);
  border-radius: 8px;
}
.replace-bg-sidebar .category-buttons .category-btn.active {
  color: rgba(67, 191, 152, 0.94);
}
.replace-bg-sidebar .category-buttons .category-btn.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: rgba(67, 191, 152, 0.94);
}
.replace-bg-sidebar .category-content {
  padding: 0 16px;
}
.replace-bg-sidebar .category-content .background-grid {
  display: none;
  margin-bottom: 24px;
}
.replace-bg-sidebar .category-content .background-grid.active {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 40px;
  gap: 8px;
}
.replace-bg-sidebar .category-content .background-grid .bg-option {
  cursor: pointer;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}
.replace-bg-sidebar .category-content .background-grid .bg-option.color-option {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 8px;
}
.replace-bg-sidebar .category-content .background-grid .bg-option.color-option span {
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.replace-bg-sidebar .category-content .background-grid .bg-option.active img {
  border: 2px solid var(--Brand, rgba(67, 191, 152, 0.94));
}
.replace-bg-sidebar .category-content .background-grid .bg-option.active span {
  color: rgba(67, 191, 152, 0.94);
}
.replace-bg-sidebar .category-content .background-grid .bg-option img {
  width: 112px;
  height: 100px;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 8px;
  margin-bottom: 8px;
  border-radius: 8px;
  border: 2px solid transparent;
}
.replace-bg-sidebar .category-content .background-grid .bg-option img:hover {
  border: 2px solid var(--Brand, rgba(67, 191, 152, 0.94));
}
.replace-bg-sidebar .category-content .background-grid .bg-option span {
  color: var(--dark-color);
  text-align: center;
  font-family: "Red Hat Display";
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px;
  /* 142.857% */
}
.replace-bg-sidebar .category-content .product-grid .bg-option:nth-child(even),
.replace-bg-sidebar .category-content .portrait-grid .bg-option:nth-child(even) {
  margin-right: 0;
}
.replace-bg-sidebar .category-content .background-grid.color-grid.active {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
}
.replace-bg-sidebar .category-content .background-grid.color-grid.active .bg-option {
  width: 54px;
  height: 40px;
  border: 2px solid transparent;
}
.replace-bg-sidebar .category-content .background-grid.color-grid.active .bg-option:nth-child(4n) {
  margin-right: 0;
}
.replace-bg-sidebar .category-content .background-grid.color-grid.active .bg-option:hover, .replace-bg-sidebar .category-content .background-grid.color-grid.active .bg-option.active {
  border-color: var(--primary-color);
}
.replace-bg-sidebar .category-content .background-grid.color-grid.active .custom-color-option {
  border: 1px solid #E9E9E9;
  border-radius: 4px;
  position: relative;
}
.replace-bg-sidebar .category-content .background-grid.color-grid.active .custom-color-option::after {
  content: "Custom";
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: #2A2037;
  color: white;
  padding: 4px 8px;
  border-radius: 9px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}
.replace-bg-sidebar .category-content .background-grid.color-grid.active .custom-color-option:hover::after {
  opacity: 1;
  visibility: visible;
}
.replace-bg-sidebar .category-content .background-grid.color-grid.active .custom-color-option.active, .replace-bg-sidebar .category-content .background-grid.color-grid.active .custom-color-option:hover {
  border-color: rgba(67, 191, 152, 0.94);
  background: #F2FFFD;
}
.replace-bg-sidebar .category-content .background-grid.color-grid.active .custom-color-option.active svg path, .replace-bg-sidebar .category-content .background-grid.color-grid.active .custom-color-option:hover svg path {
  fill: var(--primary-color);
}
.replace-bg-sidebar .custom-prompt-section .tab-navigation {
  padding: 0 16px;
  display: flex;
  margin-bottom: 24px;
  gap: 0;
  border-bottom: 1px solid #E8E8E8;
}
.replace-bg-sidebar .custom-prompt-section .tab-navigation .tab {
  flex: 1;
  padding: 8px 0;
  cursor: pointer;
  position: relative;
  text-align: center;
  color: var(--sub-header-color);
  font-family: "Red Hat Display";
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 22px;
}
.replace-bg-sidebar .custom-prompt-section .tab-navigation .tab:hover {
  background-color: #F2FFFD;
  color: rgba(67, 191, 152, 0.9411764706);
  border-radius: 8px;
}
.replace-bg-sidebar .custom-prompt-section .tab-navigation .tab.active {
  color: var(--primary-color);
  font-weight: 500;
}
.replace-bg-sidebar .custom-prompt-section .tab-navigation .tab.active:after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}
.replace-bg-sidebar .custom-prompt-section .tab-content {
  padding: 0 16px;
  display: none;
}
.replace-bg-sidebar .custom-prompt-section .tab-content.active {
  display: block;
}
.replace-bg-sidebar .custom-prompt-section .tab-content h3 {
  margin-bottom: 8px;
  color: #2A2037;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px;
}
.replace-bg-sidebar .custom-prompt-section .text-content textarea {
  width: 100%;
  height: 120px;
  padding: 8px;
  border-radius: 8px;
  border: 0;
  color: var(--dark-color);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 16px;
  resize: none;
  background: #F9F9F9;
}
.replace-bg-sidebar .custom-prompt-section .text-content textarea::-moz-placeholder {
  color: #A6A7A8;
}
.replace-bg-sidebar .custom-prompt-section .text-content textarea::placeholder {
  color: #A6A7A8;
}
.replace-bg-sidebar .custom-prompt-section .text-content textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}
.replace-bg-sidebar .custom-prompt-section .image-content .upload-area-custom-prompt {
  width: 100%;
  padding: 23px 8px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px dashed #A6A7A8;
  background: #F9F9F9;
  max-height: 102px;
}
.replace-bg-sidebar .custom-prompt-section .image-content .upload-area-custom-prompt .uploaded-img {
  display: flex;
}
.replace-bg-sidebar .custom-prompt-section .image-content .upload-area-custom-prompt .uploaded-img img {
  width: 100%;
  height: 64px;
  -o-object-fit: contain;
     object-fit: contain;
  border-radius: 8px;
  max-width: 220px !important;
}
.replace-bg-sidebar .custom-prompt-section .image-content .upload-area-custom-prompt button.browse-button {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid rgba(67, 191, 152, 0.94);
  background: var(--White, #FFF);
  color: rgba(67, 191, 152, 0.94);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 16px;
  transition: all 0.3s ease-in-out;
}
.replace-bg-sidebar .custom-prompt-section .image-content .upload-area-custom-prompt button.browse-button svg path {
  transition: all 0.3s ease-in-out;
}
.replace-bg-sidebar .custom-prompt-section .image-content .upload-area-custom-prompt button.browse-button:hover {
  background: rgba(67, 191, 152, 0.94);
  color: #FFF;
}
.replace-bg-sidebar .custom-prompt-section .image-content .upload-area-custom-prompt button.browse-button:hover svg path {
  fill: #FFF;
}
.replace-bg-sidebar .custom-prompt-section .image-content .upload-area-custom-prompt .drag-text {
  margin: 0;
  color: var(--dark-color);
  text-align: center;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 16px;
}
.replace-bg-sidebar .custom-prompt-section .image-content .upload-area-custom-prompt:has(button.browse-button:hover) {
  border-color: rgba(67, 191, 152, 0.94);
}
.replace-bg-sidebar .custom-prompt-section .image-content .upload-area-custom-prompt:has(.uploaded-img img) {
  border-color: rgba(67, 191, 152, 0.94);
}
.replace-bg-sidebar .custom-prompt-section .browse-button {
  cursor: pointer;
}
.replace-bg-sidebar .color-picker-container {
  position: absolute;
  opacity: 0;
}

.remove-objects-sidebar {
  display: none;
  background: white;
  height: 100%;
  border-radius: 8px;
}
.remove-objects-sidebar .generate-section {
  padding: 0 16px;
  position: sticky;
  bottom: 0;
  width: 100%;
  background: #fff;
  padding-top: 16px;
  padding-bottom: 16px;
  border-top: 1px solid #E9E9E9;
}
.remove-objects-sidebar .brush-size-section {
  padding: 0 16px;
  margin-bottom: 24px;
}
.remove-objects-sidebar .brush-size-section h3 {
  padding: 16px 0;
  color: var(--sub-header-color);
  font-family: "Red Hat Display";
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 22px;
}
.remove-objects-sidebar .brush-size-section .brush-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.remove-objects-sidebar .brush-size-section .brush-options-grid .brush-option {
  all: unset;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  justify-content: flex-end;
  padding: 0px;
  gap: 10px;
  border: 1px solid #E9E9E9;
  border-radius: 8px;
  cursor: pointer;
  background: white;
  width: 111px;
  height: 90px;
  padding-top: 21px;
}
.remove-objects-sidebar .brush-size-section .brush-options-grid .brush-option:hover {
  border-color: var(--primary-color);
}
.remove-objects-sidebar .brush-size-section .brush-options-grid .brush-option.active, .remove-objects-sidebar .brush-size-section .brush-options-grid .brush-option:hover {
  background: #F2FFFD;
  border-color: rgba(67, 191, 152, 0.94);
}
.remove-objects-sidebar .brush-size-section .brush-options-grid .brush-option.active .brush-preview, .remove-objects-sidebar .brush-size-section .brush-options-grid .brush-option:hover .brush-preview {
  background: rgba(67, 191, 152, 0.94);
}
.remove-objects-sidebar .brush-size-section .brush-options-grid .brush-option.active span, .remove-objects-sidebar .brush-size-section .brush-options-grid .brush-option:hover span {
  color: rgba(67, 191, 152, 0.94);
}
.remove-objects-sidebar .brush-size-section .brush-options-grid .brush-option .brush-preview {
  border-radius: 50%;
  background: #E9E9E9;
}
.remove-objects-sidebar .brush-size-section .brush-options-grid .brush-option .brush-preview.small {
  width: 8px;
  height: 8px;
  margin-top: 16px;
}
.remove-objects-sidebar .brush-size-section .brush-options-grid .brush-option .brush-preview.medium {
  width: 20px;
  height: 20px;
  margin-top: 10px;
}
.remove-objects-sidebar .brush-size-section .brush-options-grid .brush-option .brush-preview.large {
  width: 30px;
  height: 30px;
  margin-top: 5px;
}
.remove-objects-sidebar .brush-size-section .brush-options-grid .brush-option .brush-preview.x-large {
  width: 40px;
  height: 40px;
}
.remove-objects-sidebar .brush-size-section .brush-options-grid .brush-option span {
  color: var(--sub-header-color);
  text-align: center;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px;
}
.remove-objects-sidebar .brush-intensity {
  margin-bottom: 24px;
  padding: 16px 22px;
}
.remove-objects-sidebar .brush-intensity .intensity-slider {
  position: relative;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.remove-objects-sidebar .brush-intensity .intensity-slider .slider {
  width: 89%;
  height: 6px;
  background: #E8E8E8;
  background: linear-gradient(to right, #43BF98 0%, #43BF98 var(--progress, 0%), #E5E7EB var(--progress, 0%), #E5E7EB 100%) !important;
  border-radius: 3px;
  outline: none;
  -webkit-appearance: none;
  /* Progress fill for Firefox */
}
.remove-objects-sidebar .brush-intensity .intensity-slider .slider::-webkit-slider-runnable-track {
  width: 100%;
  height: 6px;
  background: transparent;
  border-radius: 3px;
  border: none;
}
.remove-objects-sidebar .brush-intensity .intensity-slider .slider::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 28px;
  height: 15px;
  border-radius: 5px;
  background: #fff !important;
  border: 2px solid #43BF98 !important;
  cursor: pointer;
  margin-top: -5px;
  position: relative;
  z-index: 2;
  box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.16);
}
.remove-objects-sidebar .brush-intensity .intensity-slider .slider::-moz-range-track {
  width: 100%;
  height: 6px;
  background: #E5E7EB !important;
  border-radius: 3px;
  border: none;
}
.remove-objects-sidebar .brush-intensity .intensity-slider .slider::-moz-range-progress {
  height: 6px;
  background-color: #43BF98;
  border-radius: 3px;
}
.remove-objects-sidebar .brush-intensity .intensity-slider .slider::-moz-range-thumb {
  width: 28px !important;
  height: 14px !important;
  border-radius: 5px !important;
  background: #fff !important;
  border: 2px solid #43BF98 !important;
  cursor: pointer;
  position: relative;
  z-index: 2;
  box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.16);
}
.remove-objects-sidebar .brush-intensity .intensity-slider .slider-value {
  position: absolute;
  right: 0;
  top: -5px;
  font-size: 12px;
  line-height: 16px;
  color: #797B82;
  font-weight: 500;
}

.left-sidebar.remove-obj-active .ai-tools-options {
  display: none;
}
.left-sidebar.remove-obj-active .remove-objects-sidebar {
  display: block;
}

.canvas-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: #fff;
  border-radius: 12px;
  margin: 0 auto;
  display: none;
}

.canvas-wrap {
  position: relative;
  margin-bottom: 20px;
  width: 100%;
}

.canvas-toolbar {
  display: flex;
  align-items: center;
  width: -moz-fit-content;
  width: fit-content;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  padding: 10px 18px;
  margin-bottom: 18px;
  gap: 0.5rem;
}

.toolbar-separator {
  width: 1px;
  height: 28px;
  background: #e0e0e0;
  margin: 0 12px;
  display: inline-block;
}

.canvas-toolbar button {
  background: none;
  border: none;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 18px;
  cursor: pointer;
  color: #888;
  display: flex;
  align-items: center;
  transition: background 0.2s, color 0.2s;
}

.canvas-toolbar button:disabled {
  color: #d3d3d3;
  cursor: not-allowed;
  opacity: 0.7;
}

.canvas-toolbar button:hover:not(:disabled) {
  background: #f4f6fa;
  color: #2A2037;
}

#zoomLevel {
  margin-right: 16px;
  text-align: center;
  color: #797B82;
  font-family: "Red Hat Display";
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 16px;
  min-width: 29px;
}

.zoom-controls::after {
  content: "|";
  padding: 0 16px;
  font-size: 16px;
  color: #E9E9E9;
}

#zoomSlider {
  width: 100px;
  accent-color: #36A280;
  vertical-align: middle;
}

.fit-btn {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  color: #2A2037;
  font-weight: 500;
  padding: 6px 18px;
  margin-left: 8px;
  transition: background 0.2s, border 0.2s;
}

.fit-btn:hover {
  background: #f4f6fa;
  border-color: #36A280;
}

.canvas-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 18px;
}

#mainCanvas {
  position: relative;
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 0px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  transition: box-shadow 0.2s ease;
  margin: 0 auto;
}

.history-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.history-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(30, 32, 37, 0.45);
  z-index: 1;
}

.history-modal-content {
  position: relative;
  z-index: 2;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  padding: 32px 28px 24px 28px;
  min-width: 340px;
  max-width: 95vw;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.history-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #888;
  cursor: pointer;
  transition: color 0.2s;
}

.history-modal-close:hover {
  color: #36A280;
}

.history-modal-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 18px;
  color: #2A2037;
}

.history-modal-list {
  width: 100%;
  max-height: 45vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.history-modal-list .history-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f8f9fa;
  cursor: pointer;
  transition: background 0.18s;
  border: 1px solid transparent;
}

.history-modal-list .history-item.selected {
  border: 1.5px solid #36A280;
  background: #e7faf5;
}

.history-modal-list .history-thumb {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  -o-object-fit: cover;
     object-fit: cover;
  background: #e0e0e0;
  border: 1px solid #e0e0e0;
}

.history-modal-list .history-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  font-size: 0.95rem;
  color: #555;
}

.confirm-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 32, 37, 0.18);
  -webkit-backdrop-filter: blur(2px);
          backdrop-filter: blur(2px);
}

.confirm-modal-content {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 8px 32px 0 rgba(30, 32, 37, 0.18), 0 0 0 8px #e9e9f7;
  padding: 36px 38px 28px 38px;
  min-width: 340px;
  max-width: 95vw;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.confirm-modal-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #2A2037;
  margin-bottom: 10px;
  text-align: center;
}

.confirm-modal-subtitle {
  font-size: 1.08rem;
  color: #797B82;
  margin-bottom: 28px;
  text-align: center;
}

.confirm-modal-actions {
  display: flex;
  gap: 18px;
  width: 100%;
  justify-content: center;
}

.confirm-btn {
  min-width: 110px;
  padding: 13px 0;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  outline: none;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}

.confirm-btn.yes {
  background: #36A280;
  color: #fff;
  box-shadow: 0 2px 8px 0 rgba(54, 162, 128, 0.1333333333);
}

.confirm-btn.yes:hover {
  background: #28936b;
}

.confirm-btn.no {
  background: #f6f6f6;
  color: #797B82;
  border: 1.5px solid #e0e0e0;
}

.confirm-btn.no:hover {
  background: #ececec;
  color: #2A2037;
}

.canvas-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background-color: #F9F9F9;
  z-index: 5;
  position: relative;
}
.hidden.canvas-container {
  display: none;
}

.canvas-container canvas {
  display: block;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
}

.canvas-tools {
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 636px;
}
.canvas-tools .canvas-toolbar-wrapper {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 24px;
}
.canvas-tools .canvas-toolbar-wrapper button {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  border: 0;
  border-radius: 6px;
  padding: 0;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}
.canvas-tools .canvas-toolbar-wrapper button[data-title]::after {
  content: attr(data-title);
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 8px;
  background: #2A2037;
  color: white;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  border-radius: 9px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  pointer-events: none;
  z-index: 1000;
}
.canvas-tools .canvas-toolbar-wrapper button[data-title]:hover::after {
  opacity: 1;
  visibility: visible;
}
.canvas-tools .canvas-tools-left {
  display: flex;
  align-items: center;
  background-color: #ffffff;
  padding: 6px 16px;
  border-radius: 8px;
  border: 1px solid #E5E7EB;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.canvas-tools .canvas-tools-left .dimension {
  color: var(--Dark, #2A2037);
  font-family: "Red Hat Display";
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 16px;
  /* 133.333% */
}
.canvas-tools .canvas-tools-left .dimension::after {
  content: "|";
  padding: 0 16px;
  font-size: 16px;
  color: #E9E9E9;
}
.canvas-tools .canvas-tools-left span {
  font-size: 14px;
  color: #4B5563;
  font-weight: 500;
  white-space: nowrap;
}
.canvas-tools .canvas-tools-left .undo-redo-controls {
  display: flex;
  align-items: center;
}
.canvas-tools .canvas-tools-left .undo-redo-controls::after {
  content: "|";
  padding: 0 16px;
  font-size: 16px;
  color: #E9E9E9;
}
.canvas-tools .canvas-tools-left .undo-redo-controls .tool-btn {
  border-radius: 6px;
  background-color: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.canvas-tools .canvas-tools-left .undo-redo-controls .tool-btn:first-child {
  margin-right: 16px;
}
.canvas-tools .canvas-tools-left .undo-redo-controls .tool-btn img {
  width: 16px;
  height: 16px;
  transition: opacity 0.2s ease;
}
.canvas-tools .canvas-tools-left .undo-redo-controls .tool-btn img:hover {
  filter: invert(66%) sepia(25%) saturate(976%) hue-rotate(115deg) brightness(93%) contrast(144%);
}
.canvas-tools .canvas-tools-left .undo-redo-controls .tool-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.canvas-tools .canvas-tools-left .undo-redo-controls .tool-btn:disabled img {
  opacity: 0.5;
}
.canvas-tools .canvas-tools-left .undo-redo-controls .tool-btn:disabled img:hover {
  filter: none;
}
.canvas-tools .canvas-tools-left .undo-redo-controls .tool-btn:disabled:hover {
  background-color: transparent;
}
.canvas-tools .canvas-tools-left #historyBtn.tool-btn {
  background-color: transparent;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
  border-radius: 6px;
}
.canvas-tools .canvas-tools-left #historyBtn.tool-btn img {
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.canvas-tools .canvas-tools-left #historyBtn.tool-btn img:hover {
  filter: invert(66%) sepia(25%) saturate(976%) hue-rotate(115deg) brightness(93%) contrast(144%);
}
.canvas-tools .canvas-tools-left .zoom-label {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  margin-left: 10px;
}
.canvas-tools .canvas-tools-left .zoom-slider {
  width: 100px;
  height: 6px;
  border-radius: 3px;
  background: #E5E7EB;
  -webkit-appearance: none;
  -moz-appearance: none;
       appearance: none;
  outline: none;
  margin-right: 16px;
  background: linear-gradient(to right, #43BF98 0%, #43BF98 var(--progress, 50%), #E5E7EB var(--progress, 50%), #E5E7EB 100%) !important;
}
.canvas-tools .canvas-tools-left .zoom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 30px;
  height: 15px;
  border-radius: 5px;
  background: #fff;
  border: 2px solid #43BF98;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}
.canvas-tools .canvas-tools-left .zoom-slider::-moz-range-thumb {
  width: 30px;
  height: 15px;
  border-radius: 5px;
  background: #fff;
  border: 1px solid #43BF98;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}
.canvas-tools .canvas-tools-left .fit-btn,
.canvas-tools .canvas-tools-left #fitBtn.tool-btn {
  background-color: #ffffff;
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 14px;
  font-weight: 600;
  color: #1F2937;
  cursor: pointer;
  display: flex;
  padding: 4px 8px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 4px;
  background: #FFF;
  box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.16);
  color: #2A2037;
  /* Small */
  font-family: "Red Hat Display";
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 16px;
  /* 133.333% */
}
.canvas-tools .canvas-tools-left .fit-btn:hover,
.canvas-tools .canvas-tools-left #fitBtn.tool-btn:hover {
  background-color: #F2FFFD;
  color: rgba(67, 191, 152, 0.94);
}
.canvas-tools .canvas-tools-right {
  display: flex;
  position: relative;
  align-items: center;
  gap: 16px;
  background-color: #ffffff;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid #E5E7EB;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  /* Create hover target group for share functionality */
  /* Download popup styling - mirrors share popup styling */
}
.canvas-tools .canvas-tools-right .tool-btn {
  background-color: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  position: relative;
}
.canvas-tools .canvas-tools-right .tool-btn img {
  width: 18px;
  height: 18px;
}
.canvas-tools .canvas-tools-right .tool-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.canvas-tools .canvas-tools-right .tool-btn:disabled:hover {
  background-color: transparent;
}
.canvas-tools .canvas-tools-right .tool-btn#cropBtn img, .canvas-tools .canvas-tools-right .tool-btn#shareBtn img, .canvas-tools .canvas-tools-right .tool-btn#deleteBtn img, .canvas-tools .canvas-tools-right .tool-btn#downloadBtn img {
  filter: none;
  transition: filter 0.3s ease;
}
.canvas-tools .canvas-tools-right .tool-btn#cropBtn img:hover, .canvas-tools .canvas-tools-right .tool-btn#shareBtn img:hover, .canvas-tools .canvas-tools-right .tool-btn#deleteBtn img:hover, .canvas-tools .canvas-tools-right .tool-btn#downloadBtn img:hover {
  filter: invert(66%) sepia(25%) saturate(976%) hue-rotate(115deg) brightness(93%) contrast(144%);
}
.canvas-tools .canvas-tools-right #shareBtn {
  position: relative;
  cursor: pointer;
}
.canvas-tools .canvas-tools-right #shareBtn img {
  cursor: pointer;
}
.canvas-tools .canvas-tools-right .share-group {
  position: relative;
}
.canvas-tools .canvas-tools-right .share-popup {
  position: absolute;
  top: auto;
  bottom: 36px;
  left: 45%;
  transform: translateX(-50%);
  border-radius: 16px;
  background: var(--White, #FFF);
  box-shadow: 0px 8px 24px 0px rgba(149, 157, 165, 0.2);
  width: auto;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  flex-direction: column;
  padding: 0;
  min-width: 118px;
  z-index: 10000;
  /* Create bottom padding area to help with hover path */
}
.canvas-tools .canvas-tools-right .share-popup.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  display: flex;
}
.canvas-tools .canvas-tools-right .share-popup:after {
  content: "";
  position: absolute;
  width: 100%;
  height: 20px;
  bottom: -20px;
  left: 0;
}
.canvas-tools .canvas-tools-right .share-popup .share-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  color: var(--Dark, #2A2037);
  font-family: "Red Hat Display";
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}
.canvas-tools .canvas-tools-right .share-popup .share-option:first-child {
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}
.canvas-tools .canvas-tools-right .share-popup .share-option:last-child {
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
}
.canvas-tools .canvas-tools-right .share-popup .share-option:hover {
  background-color: #F2FFFD;
}
.canvas-tools .canvas-tools-right .share-popup .share-option:hover svg path {
  transition: all 0.2s ease-in-out;
  fill: #2A2037;
}
.canvas-tools .canvas-tools-right .share-popup .share-option img {
  width: 14px;
  height: 14px;
}
.canvas-tools .canvas-tools-right .download-group {
  position: relative;
}
.canvas-tools .canvas-tools-right .download-popup {
  position: absolute;
  top: auto;
  bottom: 36px;
  left: 45%;
  transform: translateX(-50%);
  border-radius: 16px;
  background: var(--White, #FFF);
  box-shadow: 0px 8px 24px 0px rgba(149, 157, 165, 0.2);
  width: 73px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  flex-direction: column;
  padding: 0;
  min-width: 73px;
  z-index: 10000;
  /* Create bottom padding area to help with hover path */
}
.canvas-tools .canvas-tools-right .download-popup.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  display: flex;
}
.canvas-tools .canvas-tools-right .download-popup:after {
  content: "";
  position: absolute;
  width: 100%;
  height: 20px;
  bottom: -20px;
  left: 0;
}
.canvas-tools .canvas-tools-right .download-popup .download-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  color: var(--Dark, #2A2037);
  font-family: "Red Hat Display";
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}
.canvas-tools .canvas-tools-right .download-popup .download-option:first-child {
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}
.canvas-tools .canvas-tools-right .download-popup .download-option:last-child {
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
}
.canvas-tools .canvas-tools-right .download-popup .download-option:hover {
  background-color: #F2FFFD;
}
.canvas-tools .canvas-tools-right .download-popup .download-option:hover svg path {
  transition: all 0.2s ease-in-out;
  fill: #2A2037;
}
.canvas-tools .canvas-tools-right .download-popup .download-option img {
  width: 14px;
  height: 14px;
}

.editor-tool-sidebars-container {
  border-radius: 8px;
  display: flex;
}

.image-tools-sidebar {
  flex-direction: column;
  height: 100%;
  display: none;
  border-radius: 8px;
}

.image-tools-sidebar #adjust-tool-panel {
  display: flex;
  flex-direction: column;
  width: 272px;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  padding: 0;
  background-color: #fff;
  font-family: "Red Hat Display", sans-serif;
  min-width: 272px;
  flex-shrink: 0;
  border-radius: 8px;
  border: 1px solid #E9E9E9;
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}
.image-tools-sidebar #adjust-tool-panel::-webkit-scrollbar {
  display: none;
}
.image-tools-sidebar #adjust-tool-panel .tool-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #E9E9E9;
  background-color: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}
.image-tools-sidebar #adjust-tool-panel .tool-header h3 {
  color: var(--dark-color, #2A2037);
  font-family: "Red Hat Display";
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 22px;
}
.image-tools-sidebar #adjust-tool-panel .tool-header .close-button {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  color: #797B82;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.image-tools-sidebar #adjust-tool-panel .tool-header .close-button:hover {
  color: #666;
}
.image-tools-sidebar #adjust-tool-panel .tool-header .close-button svg {
  width: 13px;
  height: 13px;
}
.image-tools-sidebar #adjust-tool-panel .adjust-panel {
  flex: 1;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.image-tools-sidebar #adjust-tool-panel .adjust-panel .adjust-heading {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin: 0;
  padding: 16px 20px;
  border-bottom: 1px solid #E5E7EB;
}
.image-tools-sidebar #adjust-tool-panel .adjust-panel .adjust-section {
  padding: 0 16px 12px 16px;
}
.image-tools-sidebar #adjust-tool-panel .adjust-panel .adjust-section:last-child {
  padding-bottom: 0;
}
.image-tools-sidebar #adjust-tool-panel .adjust-panel .adjust-section .adjust-section-title {
  margin: 8px 0 8px 0;
  color: #2A2037;
  font-family: "Red Hat Display";
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 22px;
}
.image-tools-sidebar #adjust-tool-panel .adjust-panel .adjust-section .adjust-control {
  display: flex;
  flex-direction: column;
  padding-top: 12px;
}
.image-tools-sidebar #adjust-tool-panel .adjust-panel .adjust-section .adjust-control:last-child {
  margin-bottom: 0;
}
.image-tools-sidebar #adjust-tool-panel .adjust-panel .adjust-section .adjust-control label {
  color: var(--Grey-04, #797B82);
  font-family: "Red Hat Display";
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 22px;
  margin-bottom: 4px;
  display: block;
}
.image-tools-sidebar #adjust-tool-panel .adjust-panel .adjust-section .adjust-control .slider-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  position: relative;
  margin-top: 0px;
  /* High specificity for the slider styles */
}
.image-tools-sidebar #adjust-tool-panel .adjust-panel .adjust-section .adjust-control .slider-wrapper input[type=range].adjust-slider {
  flex: 1;
  height: 24px;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  margin: 0;
  padding: 0;
  cursor: pointer;
  position: relative;
  /* Track styling */
  /* Progress fill for Firefox */
  /* Thumb styling */
}
.image-tools-sidebar #adjust-tool-panel .adjust-panel .adjust-section .adjust-control .slider-wrapper input[type=range].adjust-slider:focus {
  outline: none;
}
.image-tools-sidebar #adjust-tool-panel .adjust-panel .adjust-section .adjust-control .slider-wrapper input[type=range].adjust-slider::-webkit-slider-runnable-track {
  width: 100%;
  height: 6px;
  background: linear-gradient(to right, #43BF98 0%, #43BF98 var(--progress, 0%), #E5E7EB var(--progress, 0%), #E5E7EB 100%) !important;
  border-radius: 3px;
  border: none;
}
.image-tools-sidebar #adjust-tool-panel .adjust-panel .adjust-section .adjust-control .slider-wrapper input[type=range].adjust-slider::-moz-range-track {
  width: 100%;
  height: 6px;
  background: #E5E7EB !important;
  border-radius: 3px;
  border: none;
}
.image-tools-sidebar #adjust-tool-panel .adjust-panel .adjust-section .adjust-control .slider-wrapper input[type=range].adjust-slider::-moz-range-progress {
  height: 6px;
  background-color: #43BF98;
  border-radius: 3px;
}
.image-tools-sidebar #adjust-tool-panel .adjust-panel .adjust-section .adjust-control .slider-wrapper input[type=range].adjust-slider::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 30px;
  height: 15px;
  border-radius: 5px;
  background: #fff !important;
  border: 2px solid #43BF98 !important;
  cursor: pointer;
  margin-top: -5px;
  position: relative;
  z-index: 2;
  box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.16);
}
.image-tools-sidebar #adjust-tool-panel .adjust-panel .adjust-section .adjust-control .slider-wrapper input[type=range].adjust-slider::-moz-range-thumb {
  width: 30px !important;
  height: 15px !important;
  border-radius: 5px !important;
  background: #fff !important;
  border: 2px solid #43BF98 !important;
  cursor: pointer;
  position: relative;
  z-index: 2;
  box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.16);
}
.image-tools-sidebar #adjust-tool-panel .adjust-panel .adjust-section .adjust-control .slider-wrapper input[type=text].adjust-input {
  width: 45px;
  height: 24px;
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 15px;
  text-align: center;
  color: #2A2037;
  font-family: "Red Hat Display";
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 16px;
  -moz-appearance: textfield;
}
.image-tools-sidebar #adjust-tool-panel .adjust-panel .adjust-section .adjust-control .slider-wrapper input[type=text].adjust-input::-webkit-outer-spin-button, .image-tools-sidebar #adjust-tool-panel .adjust-panel .adjust-section .adjust-control .slider-wrapper input[type=text].adjust-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.image-tools-sidebar #adjust-tool-panel .adjust-panel .adjust-section .adjust-control .slider-wrapper input[type=text].adjust-input:focus {
  outline: none;
  border-color: #43BF98;
  background: #F2FFFD;
}
.image-tools-sidebar #adjust-tool-panel .adjust-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  flex-shrink: 0;
  margin-top: 8px;
  position: sticky;
  bottom: 0;
  background-color: #fff;
  z-index: 10;
  border-top: 1px solid #E9E9E9;
}
.image-tools-sidebar #adjust-tool-panel .adjust-actions button {
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 240px;
  height: 40px;
}
.image-tools-sidebar #adjust-tool-panel .adjust-actions .apply-btn {
  background: rgba(67, 191, 152, 0.94);
  color: white;
  border: none;
}
.image-tools-sidebar #adjust-tool-panel .adjust-actions .apply-btn:hover {
  background: #3bad89;
}
.image-tools-sidebar #adjust-tool-panel .adjust-actions .reset-btn {
  background: #F9F9F9;
  color: #797B82;
  border: 1px solid #E9E9E9;
}
.image-tools-sidebar #adjust-tool-panel .adjust-actions .reset-btn:hover {
  background: #E9E9E9;
}

#crop-tools-panel {
  width: 272px;
  height: 100%;
  display: none;
  flex-direction: column;
  background-color: #fff;
  overflow-y: auto;
  overflow-x: hidden;
  min-width: 272px;
  flex-shrink: 0;
  font-family: "Red Hat Display", sans-serif;
  border-radius: 8px;
  border: 1px solid #E9E9E9;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
#crop-tools-panel::-webkit-scrollbar {
  display: none;
}
#crop-tools-panel .tool-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #E9E9E9;
  background-color: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}
#crop-tools-panel .tool-header h3 {
  color: var(--dark-color, #2A2037);
  font-family: "Red Hat Display";
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 22px;
}
#crop-tools-panel .tool-header .close-button {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  color: #797B82;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
#crop-tools-panel .tool-header .close-button:hover {
  color: #666;
}
#crop-tools-panel .tool-header .close-button svg {
  width: 13px;
  height: 13px;
}
#crop-tools-panel .crop-content {
  padding: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: calc(100% - 207px);
  overflow: auto;
  scrollbar-width: none;
}
#crop-tools-panel .crop-content .section-title {
  color: #797B82;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  padding: 0 16px;
}
#crop-tools-panel .crop-content .aspect-ratio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 0 16px 16px;
}
#crop-tools-panel .crop-content .aspect-ratio-grid .aspect-ratio-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  background-color: transparent;
  border: none;
  padding: 0;
  height: 92px;
  cursor: pointer;
}
#crop-tools-panel .crop-content .aspect-ratio-grid .aspect-ratio-option .ratio-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  transition: all 0.2s ease;
}
#crop-tools-panel .crop-content .aspect-ratio-grid .aspect-ratio-option span {
  color: #2A2037;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}
#crop-tools-panel .crop-content .aspect-ratio-grid .aspect-ratio-option:hover span {
  color: rgba(67, 191, 152, 0.9411764706);
}
#crop-tools-panel .crop-content .aspect-ratio-grid .aspect-ratio-option:hover .ratio-icon {
  border-color: #43BF98;
  background: #F2FFFD;
}
#crop-tools-panel .crop-content .aspect-ratio-grid .aspect-ratio-option:hover .ratio-icon svg rect,
#crop-tools-panel .crop-content .aspect-ratio-grid .aspect-ratio-option:hover .ratio-icon svg path,
#crop-tools-panel .crop-content .aspect-ratio-grid .aspect-ratio-option:hover .ratio-icon svg line {
  stroke: rgba(67, 191, 152, 0.9411764706);
}
#crop-tools-panel .crop-content .aspect-ratio-grid .aspect-ratio-option.active .ratio-icon {
  background-color: #E6FAF5;
  border-color: rgba(67, 191, 152, 0.9411764706);
}
#crop-tools-panel .crop-content .aspect-ratio-grid .aspect-ratio-option.active span {
  color: rgba(67, 191, 152, 0.9411764706);
}
#crop-tools-panel .crop-content .aspect-ratio-grid .aspect-ratio-option.active svg rect,
#crop-tools-panel .crop-content .aspect-ratio-grid .aspect-ratio-option.active svg path,
#crop-tools-panel .crop-content .aspect-ratio-grid .aspect-ratio-option.active svg line {
  stroke: rgba(67, 191, 152, 0.9411764706);
}
#crop-tools-panel .keep-aspect-ratio {
  padding: 0;
  margin-top: 0;
  margin-bottom: 16px;
}
#crop-tools-panel .keep-aspect-ratio .checkbox-container {
  display: flex;
  align-items: center;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  position: relative;
  padding-left: 24px;
  min-height: 16px;
}
#crop-tools-panel .keep-aspect-ratio .checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}
#crop-tools-panel .keep-aspect-ratio .checkbox-container input:checked ~ .checkmark {
  border-color: rgba(67, 191, 152, 0.9411764706);
  background-color: rgba(67, 191, 152, 0.9411764706);
}
#crop-tools-panel .keep-aspect-ratio .checkbox-container input:checked ~ .checkmark:after {
  display: block;
}
#crop-tools-panel .keep-aspect-ratio .checkbox-container .checkmark {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 16px;
  width: 16px;
  background-color: #F9F9F9;
  border: 1px solid #A6A7A8;
  border-radius: 4px;
}
#crop-tools-panel .keep-aspect-ratio .checkbox-container .checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 5.5px;
  top: 2px;
  width: 3px;
  height: 7px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
@-moz-document url-prefix() {
  #crop-tools-panel .keep-aspect-ratio .checkbox-container .checkmark:after {
    left: 5px;
  }
}
#crop-tools-panel .keep-aspect-ratio .checkbox-container .label-text {
  font-size: 12px;
  color: #2A2037;
  display: inline-block;
  vertical-align: middle;
  line-height: 16px;
  font-weight: 600;
}
#crop-tools-panel .label-text {
  color: var(--Dark, #2A2037);
  text-align: center;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 16px;
}
#crop-tools-panel .crop-actions {
  display: flex;
  flex-direction: column;
  padding: 16px 15px;
  flex-shrink: 0;
  position: sticky;
  bottom: 0;
  background-color: #fff;
  z-index: 10;
  border-top: 1px solid #E9E9E9;
}
#crop-tools-panel .crop-actions button {
  width: 100%;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  height: 40px;
  width: 240px;
}
#crop-tools-panel .crop-actions button.primary-button {
  background: rgba(67, 191, 152, 0.94);
  color: white;
  border: none;
  margin-bottom: 8px;
}
#crop-tools-panel .crop-actions button.primary-button:hover {
  background: #3bad89;
}
#crop-tools-panel .crop-actions button.secondary-button {
  background: #F9F9F9;
  color: #797B82;
  border: 1px solid #E9E9E9;
}
#crop-tools-panel .crop-actions button.secondary-button:hover {
  background: #E9E9E9;
}
#crop-tools-panel .dimensions-group {
  display: none;
  padding: 8px 16px;
  background: #F9F9F9;
  margin-top: auto;
}
#crop-tools-panel .dimensions-group .dimension-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  max-width: 144px;
}
#crop-tools-panel .dimensions-group .dimension-labels label {
  color: #6A718D;
  font-family: "Red Hat Display";
  font-size: 12px;
  font-weight: 500;
  line-height: normal;
}
#crop-tools-panel .dimensions-group .dimension-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}
#crop-tools-panel .dimensions-group .dimension-inputs input {
  height: 40px;
  width: 84px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #E9E9E9;
  background: #FFFFFF;
  color: #2A2037;
  font-family: "Red Hat Display";
  font-size: 14px;
  font-weight: 500;
  flex: 1;
  text-align: center;
  transition: all 0.2s ease;
  outline: none;
}
#crop-tools-panel .dimensions-group .dimension-inputs input.error {
  border-color: #F55;
}
#crop-tools-panel .dimensions-group .dimension-inputs .multiply {
  color: #797B82;
  font-family: "Red Hat Display";
  font-size: 20px;
  font-weight: 500;
  width: 6px;
  display: flex;
  justify-content: center;
}
#crop-tools-panel .dimensions-group .dimension-inputs .swap-button {
  width: 40px;
  height: 40px;
  padding: 8px;
  max-width: 160px;
  border-radius: 10px;
  border: 1px solid #E9E9E9;
  background: #FFF;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
#crop-tools-panel .dimensions-group .dimension-inputs .swap-button:hover {
  background: #F9F9F9;
  border-color: #43BF98;
}
#crop-tools-panel .dimensions-group .dimension-inputs .swap-button:hover svg path {
  fill: #43BF98;
}
#crop-tools-panel .dimensions-group .error-message {
  color: #F55;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  margin-top: 8px;
  display: none;
}

#crop-overlay .crop-box {
  cursor: move;
}
#crop-overlay .crop-handle {
  z-index: 101;
}
#crop-overlay .crop-handle.nw, #crop-overlay .crop-handle.ne, #crop-overlay .crop-handle.sw, #crop-overlay .crop-handle.se, #crop-overlay .crop-handle.n, #crop-overlay .crop-handle.s, #crop-overlay .crop-handle.e, #crop-overlay .crop-handle.w {
  background-color: #43BF98;
  border: 2px solid white;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
}

#flip-rotate-tools-panel {
  width: 272px;
  height: 100%;
  display: none;
  flex-direction: column;
  background-color: #fff;
  overflow-y: auto;
  overflow-x: hidden;
  min-width: 272px;
  flex-shrink: 0;
  font-family: "Red Hat Display", sans-serif;
  border-radius: 8px;
  border: 1px solid #E9E9E9;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
#flip-rotate-tools-panel::-webkit-scrollbar {
  display: none;
}
#flip-rotate-tools-panel .tool-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #E9E9E9;
  background-color: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}
#flip-rotate-tools-panel .tool-header h3 {
  color: var(--dark-color, #2A2037);
  font-family: "Red Hat Display";
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 22px;
  margin: 0;
}
#flip-rotate-tools-panel .tool-header .close-button {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  color: #797B82;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
#flip-rotate-tools-panel .tool-header .close-button:hover {
  color: #666;
}
#flip-rotate-tools-panel .tool-header .close-button svg {
  width: 13px;
  height: 13px;
}
#flip-rotate-tools-panel .flip-rotate-content {
  padding: 16px 16px 0;
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: visible;
  height: calc(100% - 56px);
}
#flip-rotate-tools-panel .flip-rotate-content .section-title {
  margin-bottom: 16px;
  color: #797B82;
  font-family: "Red Hat Display";
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px;
}
#flip-rotate-tools-panel .flip-rotate-content .flip-options, #flip-rotate-tools-panel .flip-rotate-content .rotate-options {
  display: flex;
  gap: 16px;
  justify-content: flex-start;
  margin-bottom: 40px;
}
#flip-rotate-tools-panel .flip-rotate-content .flip-options .flip-option, #flip-rotate-tools-panel .flip-rotate-content .flip-options .rotate-option, #flip-rotate-tools-panel .flip-rotate-content .rotate-options .flip-option, #flip-rotate-tools-panel .flip-rotate-content .rotate-options .rotate-option {
  width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}
#flip-rotate-tools-panel .flip-rotate-content .flip-options .flip-option .option-icon, #flip-rotate-tools-panel .flip-rotate-content .flip-options .rotate-option .option-icon, #flip-rotate-tools-panel .flip-rotate-content .rotate-options .flip-option .option-icon, #flip-rotate-tools-panel .flip-rotate-content .rotate-options .rotate-option .option-icon {
  width: 112px;
  height: 64px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background-color: #fff;
  transition: all 0.2s ease;
  margin-bottom: 8px;
  /* Styling for both SVG and img elements */
}
#flip-rotate-tools-panel .flip-rotate-content .flip-options .flip-option .option-icon img, #flip-rotate-tools-panel .flip-rotate-content .flip-options .rotate-option .option-icon img, #flip-rotate-tools-panel .flip-rotate-content .rotate-options .flip-option .option-icon img, #flip-rotate-tools-panel .flip-rotate-content .rotate-options .rotate-option .option-icon img {
  width: 28px;
  height: 28px;
  -o-object-fit: contain;
     object-fit: contain;
}
#flip-rotate-tools-panel .flip-rotate-content .flip-options .flip-option span, #flip-rotate-tools-panel .flip-rotate-content .flip-options .rotate-option span, #flip-rotate-tools-panel .flip-rotate-content .rotate-options .flip-option span, #flip-rotate-tools-panel .flip-rotate-content .rotate-options .rotate-option span {
  color: #2A2037;
  text-align: center;
  font-family: "Red Hat Display";
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px;
}
#flip-rotate-tools-panel .flip-rotate-content .flip-options .flip-option:hover .option-icon, #flip-rotate-tools-panel .flip-rotate-content .flip-options .rotate-option:hover .option-icon, #flip-rotate-tools-panel .flip-rotate-content .rotate-options .flip-option:hover .option-icon, #flip-rotate-tools-panel .flip-rotate-content .rotate-options .rotate-option:hover .option-icon {
  border-color: rgba(67, 191, 152, 0.9411764706);
  background: #F2FFFD;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}
#flip-rotate-tools-panel .flip-rotate-content .flip-options .flip-option:hover .option-icon svg path, #flip-rotate-tools-panel .flip-rotate-content .flip-options .rotate-option:hover .option-icon svg path, #flip-rotate-tools-panel .flip-rotate-content .rotate-options .flip-option:hover .option-icon svg path, #flip-rotate-tools-panel .flip-rotate-content .rotate-options .rotate-option:hover .option-icon svg path {
  fill: rgba(67, 191, 152, 0.9411764706);
}
#flip-rotate-tools-panel .flip-rotate-content .flip-options .flip-option:hover span, #flip-rotate-tools-panel .flip-rotate-content .flip-options .rotate-option:hover span, #flip-rotate-tools-panel .flip-rotate-content .rotate-options .flip-option:hover span, #flip-rotate-tools-panel .flip-rotate-content .rotate-options .rotate-option:hover span {
  color: rgba(67, 191, 152, 0.9411764706);
}
#flip-rotate-tools-panel .flip-rotate-content .flip-options .flip-option.active .option-icon, #flip-rotate-tools-panel .flip-rotate-content .flip-options .rotate-option.active .option-icon, #flip-rotate-tools-panel .flip-rotate-content .rotate-options .flip-option.active .option-icon, #flip-rotate-tools-panel .flip-rotate-content .rotate-options .rotate-option.active .option-icon {
  border: 1px solid rgba(67, 191, 152, 0.9411764706);
  background: #F2FFFD;
}
#flip-rotate-tools-panel .flip-rotate-content .flip-options .flip-option.active .option-icon svg path, #flip-rotate-tools-panel .flip-rotate-content .flip-options .rotate-option.active .option-icon svg path, #flip-rotate-tools-panel .flip-rotate-content .rotate-options .flip-option.active .option-icon svg path, #flip-rotate-tools-panel .flip-rotate-content .rotate-options .rotate-option.active .option-icon svg path {
  fill: rgba(67, 191, 152, 0.9411764706);
}
#flip-rotate-tools-panel .flip-rotate-content .flip-options .flip-option.active .option-icon img, #flip-rotate-tools-panel .flip-rotate-content .flip-options .rotate-option.active .option-icon img, #flip-rotate-tools-panel .flip-rotate-content .rotate-options .flip-option.active .option-icon img, #flip-rotate-tools-panel .flip-rotate-content .rotate-options .rotate-option.active .option-icon img {
  filter: invert(59%) sepia(93%) saturate(385%) hue-rotate(116deg) brightness(93%) contrast(88%);
}
#flip-rotate-tools-panel .flip-rotate-content .flip-options .flip-option.active span, #flip-rotate-tools-panel .flip-rotate-content .flip-options .rotate-option.active span, #flip-rotate-tools-panel .flip-rotate-content .rotate-options .flip-option.active span, #flip-rotate-tools-panel .flip-rotate-content .rotate-options .rotate-option.active span {
  color: rgba(67, 191, 152, 0.9411764706);
}
#flip-rotate-tools-panel .flip-rotate-content .action-buttons {
  display: flex;
  flex-direction: column;
  padding: 16px 16px 16px;
  flex-shrink: 0;
  position: sticky;
  bottom: 0;
  background-color: #fff;
  z-index: 10;
  border-top: 1px solid #E9E9E9;
  margin: 0 -16px;
  margin-top: auto;
  gap: 0;
}
#flip-rotate-tools-panel .flip-rotate-content .action-buttons button {
  padding: 0;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 240px;
  height: 40px;
}
#flip-rotate-tools-panel .flip-rotate-content .action-buttons .primary-button {
  margin-bottom: 10px;
  background: rgba(67, 191, 152, 0.94);
  color: white;
  border: none;
}
#flip-rotate-tools-panel .flip-rotate-content .action-buttons .primary-button:hover {
  background: #3bad89;
}
#flip-rotate-tools-panel .flip-rotate-content .action-buttons .primary-button:active {
  transform: scale(0.98);
}
#flip-rotate-tools-panel .flip-rotate-content .action-buttons .secondary-button {
  background: #F9F9F9;
  color: #797B82;
  border: 1px solid #E9E9E9;
}
#flip-rotate-tools-panel .flip-rotate-content .action-buttons .secondary-button:hover {
  background: #E9E9E9;
}

.rotate-flip-popup {
  position: absolute;
  top: 65px;
  right: 24px;
  width: 320px;
  background: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  padding: 16px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.rotate-flip-popup.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
}
.rotate-flip-popup .popup-section {
  padding: 12px 0;
  border-bottom: 1px solid #F0F0F0;
}
.rotate-flip-popup .popup-section:last-child {
  border-bottom: none;
}
.rotate-flip-popup .popup-section h3 {
  font-size: 16px;
  font-weight: 600;
  color: #2A2037;
  margin: 0 0 12px 0;
}
.rotate-flip-popup .rotation-slider-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.rotate-flip-popup .rotation-slider-container .rotation-slider {
  flex: 1;
  -webkit-appearance: none;
  height: 6px;
  border-radius: 3px;
  background: #F0F0F0;
  outline: none;
}
.rotate-flip-popup .rotation-slider-container .rotation-slider::-webkit-slider-runnable-track {
  width: 100%;
  height: 6px;
  background: linear-gradient(to right, #3DD7B3 var(--progress, 0%), #F0F0F0 var(--progress, 0%));
  border-radius: 3px;
}
.rotate-flip-popup .rotation-slider-container .rotation-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #3DD7B3;
  cursor: pointer;
  border: 2px solid #FFFFFF;
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);
}
.rotate-flip-popup .rotation-slider-container .rotation-slider::-moz-range-track {
  width: 100%;
  height: 6px;
  background: #F0F0F0;
  border-radius: 3px;
}
.rotate-flip-popup .rotation-slider-container .rotation-slider::-moz-range-progress {
  height: 6px;
  background: #3DD7B3;
  border-radius: 3px;
}
.rotate-flip-popup .rotation-slider-container .rotation-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #3DD7B3;
  cursor: pointer;
  border: 2px solid #FFFFFF;
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);
}
.rotate-flip-popup .rotation-slider-container .rotation-value {
  display: flex;
  align-items: center;
  min-width: 70px;
  background: #F8F8F8;
  border-radius: 4px;
  padding: 0 8px;
}
.rotate-flip-popup .rotation-slider-container .rotation-value .rotation-input {
  width: 40px;
  background: transparent;
  border: none;
  font-size: 14px;
  text-align: right;
  padding: 6px 0;
  color: #2A2037;
}
.rotate-flip-popup .rotation-slider-container .rotation-value .rotation-input:focus {
  outline: none;
}
.rotate-flip-popup .rotation-slider-container .rotation-value .rotation-input::-webkit-inner-spin-button, .rotate-flip-popup .rotation-slider-container .rotation-value .rotation-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.rotate-flip-popup .rotation-slider-container .rotation-value .degree-symbol {
  font-size: 14px;
  color: #2A2037;
  margin-left: 2px;
}
.rotate-flip-popup .action-buttons .action-button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.rotate-flip-popup .action-buttons .action-button:hover {
  background-color: #F8F8F8;
}
.rotate-flip-popup .action-buttons .action-button .action-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background-color: #F0F0F0;
}
.rotate-flip-popup .action-buttons .action-button .action-icon svg {
  width: 20px;
  height: 20px;
}
.rotate-flip-popup .action-buttons .action-button span {
  font-size: 14px;
  font-weight: 500;
  color: #2A2037;
}

.image-tools-sidebar #filter-tool-panel {
  display: flex;
  flex-direction: column;
  width: 272px;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0;
  background-color: #fff;
  font-family: "Red Hat Display", sans-serif;
  flex-shrink: 0;
  border-radius: 8px;
  min-width: 272px;
  border: 1px solid #E9E9E9;
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}
.image-tools-sidebar #filter-tool-panel::-webkit-scrollbar {
  display: none;
}
.image-tools-sidebar #filter-tool-panel .tool-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #E9E9E9;
  background-color: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}
.image-tools-sidebar #filter-tool-panel .tool-header h3 {
  color: var(--dark-color, #2A2037);
  font-family: "Red Hat Display";
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 22px;
  margin: 0;
}
.image-tools-sidebar #filter-tool-panel .tool-header .close-button {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  color: #797B82;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.image-tools-sidebar #filter-tool-panel .tool-header .close-button:hover {
  color: #666;
}
.image-tools-sidebar #filter-tool-panel .tool-header .close-button svg {
  width: 13px;
  height: 13px;
}
.image-tools-sidebar #filter-tool-panel .filter-panel {
  flex: 1;
  padding: 16px 16px;
}
.image-tools-sidebar #filter-tool-panel .filter-panel .filter-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 14px;
  margin-bottom: 24px;
}
.image-tools-sidebar #filter-tool-panel .filter-panel .filter-options .filter-option {
  position: relative;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  border-radius: 10px;
  background: url(<path-to-image>) lightgray 50%/cover no-repeat, #FFF;
}
.image-tools-sidebar #filter-tool-panel .filter-panel .filter-options .filter-option img {
  width: 100%;
  height: 86px;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
  border-radius: 8px;
  border: 2px solid transparent;
}
.image-tools-sidebar #filter-tool-panel .filter-panel .filter-options .filter-option span {
  display: block;
  text-align: center;
  padding: 6px 0;
  font-size: 14px;
  color: #2A2037;
  font-weight: 500;
}
.image-tools-sidebar #filter-tool-panel .filter-panel .filter-options .filter-option:hover img, .image-tools-sidebar #filter-tool-panel .filter-panel .filter-options .filter-option.active img {
  border: 2px solid var(--Brand, rgba(67, 191, 152, 0.94));
  background: url(<path-to-image>) lightgray 50%/cover no-repeat, #FFF;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}
.image-tools-sidebar #filter-tool-panel .filter-panel .filter-options .filter-option:hover span, .image-tools-sidebar #filter-tool-panel .filter-panel .filter-options .filter-option.active span {
  color: rgba(67, 191, 152, 0.94);
}
.image-tools-sidebar #filter-tool-panel .action-buttons {
  display: flex;
  flex-direction: column;
  padding: 16px;
  flex-shrink: 0;
  margin-top: 8px;
  position: sticky;
  bottom: 0;
  background-color: #fff;
  z-index: 10;
  border-top: 1px solid #E9E9E9;
  margin-bottom: 0;
  gap: 0;
}
.image-tools-sidebar #filter-tool-panel .action-buttons button {
  width: 240px;
  height: 40px;
  padding: 0;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.image-tools-sidebar #filter-tool-panel .action-buttons button.reset-button {
  background: #F9F9F9;
  color: #797B82;
  border: 1px solid #E9E9E9;
}
.image-tools-sidebar #filter-tool-panel .action-buttons button.reset-button:hover {
  background: #E9E9E9;
}
.image-tools-sidebar #filter-tool-panel .action-buttons button.apply-button {
  background: rgba(67, 191, 152, 0.94);
  color: white;
  border: none;
  margin-bottom: 8px;
}
.image-tools-sidebar #filter-tool-panel .action-buttons button.apply-button:hover {
  background: #3bad89;
}
.image-tools-sidebar #filter-tool-panel .action-buttons .intensity-control {
  margin: 0 0 16px;
  position: relative;
}
.image-tools-sidebar #filter-tool-panel .action-buttons .intensity-control .slider-label {
  color: #797B82;
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
}
.image-tools-sidebar #filter-tool-panel .action-buttons .intensity-control .slider-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  position: relative;
  margin-top: 4px;
}
.image-tools-sidebar #filter-tool-panel .action-buttons .intensity-control .slider-container .intensity-slider {
  flex: 1;
  height: 24px;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  margin: 0;
  padding: 0;
  cursor: pointer;
  position: relative;
  margin-right: 16px;
  /* Track styling */
  /* Progress fill for Firefox */
  /* Thumb styling */
}
.image-tools-sidebar #filter-tool-panel .action-buttons .intensity-control .slider-container .intensity-slider:focus {
  outline: none;
}
.image-tools-sidebar #filter-tool-panel .action-buttons .intensity-control .slider-container .intensity-slider::-webkit-slider-runnable-track {
  width: 100%;
  height: 6px;
  background: linear-gradient(to right, #43BF98 0%, #43BF98 var(--progress, 20%), #E5E7EB var(--progress, 20%), #E5E7EB 100%) !important;
  border-radius: 3px;
  border: none;
}
.image-tools-sidebar #filter-tool-panel .action-buttons .intensity-control .slider-container .intensity-slider::-moz-range-track {
  width: 100%;
  height: 6px;
  background: #E5E7EB !important;
  border-radius: 3px;
  border: none;
}
.image-tools-sidebar #filter-tool-panel .action-buttons .intensity-control .slider-container .intensity-slider::-moz-range-progress {
  height: 6px;
  background-color: #43BF98;
  border-radius: 3px;
}
.image-tools-sidebar #filter-tool-panel .action-buttons .intensity-control .slider-container .intensity-slider::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 25px;
  height: 15px;
  border-radius: 5px;
  background: #fff !important;
  border: 2px solid #43BF98 !important;
  cursor: pointer;
  margin-top: -5px;
  position: relative;
  z-index: 2;
  box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.16);
}
.image-tools-sidebar #filter-tool-panel .action-buttons .intensity-control .slider-container .intensity-slider::-moz-range-thumb {
  width: 25px !important;
  height: 15px !important;
  border-radius: 5px !important;
  background: #fff !important;
  border: 2px solid #43BF98 !important;
  cursor: pointer;
  position: relative;
  z-index: 2;
  box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.16);
}
.image-tools-sidebar #filter-tool-panel .action-buttons .intensity-control .slider-container .intensity-value-container {
  width: 36px;
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  color: #374151;
  padding: 4px 8px;
  font-size: 15px;
  height: 24px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-tools-sidebar #filter-tool-panel .action-buttons .intensity-control .slider-container .intensity-value-container #intensity-value {
  color: var(--Dark, #2A2037);
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  flex: 1;
}
.image-tools-sidebar #filter-tool-panel .action-buttons .intensity-control .slider-container .percentage {
  margin-left: 4px;
  color: #A6A7A8;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}

.ai-loader-container {
  width: calc(100vw - 345px);
  height: 100%;
  background-color: #f9f9f9;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  flex-direction: column;
  display: none;
}
.ai-loader-container .loader-animation {
  margin-bottom: 27px;
  position: relative;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: linear-gradient(45deg, transparent, transparent 40%, #fff), linear-gradient(#11D0B0, #0CBA9D);
  animation: rotate 1.5s linear infinite;
}
.ai-loader-container .loader-animation:before,
.ai-loader-container .loader-animation:after {
  content: " ";
  position: absolute;
  inset: 8px;
  background: linear-gradient(#fff, #11D0B0);
  border-radius: inherit;
}
.ai-loader-container .loader-animation:before {
  background: linear-gradient(45deg, transparent, transparent 40%, --primary-color);
  filter: blur(32px);
}
@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}
.ai-loader-container .loader-content {
  text-align: center;
  padding: 0 20px 0;
  max-width: 400px;
}
.ai-loader-container .loader-content h2 {
  margin-bottom: 8px;
  color: var(--dark-color, #2A2037);
  font-family: "Red Hat Display";
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: 24px; /* 120% */
  text-transform: capitalize;
}
.ai-loader-container .loader-content p {
  color: var(--Dark, #2A2037);
  text-align: center;
  font-family: "Red Hat Display";
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px;
}
.ai-loader-container .loader-content .cancel-btn {
  margin-top: 24px;
  padding: 4px 16px;
  border: 1px solid #E9E9E9;
  border-radius: 8px;
  cursor: pointer;
  background: #fff;
  color: var(--Grey-04, #797B82);
  text-align: center;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 22px; /* 137.5% */
  text-transform: capitalize;
  transition: all 0.2s ease;
}
.ai-loader-container .loader-content .cancel-btn:hover {
  background: #ebebeb;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.resize-panel {
  width: 272px;
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: #fff;
  overflow-y: auto;
  overflow-x: hidden;
  min-width: 272px;
  flex-shrink: 0;
  font-family: "Red Hat Display", sans-serif;
  border-radius: 8px;
  border: 1px solid #E9E9E9;
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}
.resize-panel::-webkit-scrollbar {
  display: none;
}
.resize-panel .tool-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #E9E9E9;
  background-color: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}
.resize-panel .tool-header h3 {
  color: var(--dark-color, #2A2037);
  font-family: "Red Hat Display";
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 22px;
  margin: 0;
}
.resize-panel .tool-header .close-button {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  color: #797B82;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.resize-panel .tool-header .close-button:hover {
  color: #666;
}
.resize-panel .tool-header .close-button svg {
  width: 13px;
  height: 13px;
}
.resize-panel .resize-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.resize-panel .resize-content .dimensions-group .dimension-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  max-width: 144px;
}
.resize-panel .resize-content .dimensions-group .dimension-labels label {
  color: #6A718D;
  font-family: "Red Hat Display";
  font-size: 12px;
  font-weight: 500;
  line-height: normal;
}
.resize-panel .resize-content .dimensions-group .dimension-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}
.resize-panel .resize-content .dimensions-group .dimension-inputs input {
  height: 40px;
  width: 84px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #E9E9E9;
  background: #FFFFFF;
  color: #2A2037;
  font-family: "Red Hat Display";
  font-size: 14px;
  font-weight: 500;
  flex: 1;
  text-align: center;
  transition: all 0.2s ease;
  outline: none;
}
.resize-panel .resize-content .dimensions-group .dimension-inputs input:not([readonly]):hover {
  background-color: #F2FFFD !important;
  border-color: #A6A7A8;
}
.resize-panel .resize-content .dimensions-group .dimension-inputs input:not([readonly]):focus {
  background-color: #F2FFFD !important;
  border-color: rgba(67, 191, 152, 0.94);
}
.resize-panel .resize-content .dimensions-group .dimension-inputs .multiply {
  color: #797B82;
  font-family: "Red Hat Display";
  font-size: 20px;
  font-weight: 500;
  width: 6px;
  display: flex;
  justify-content: center;
}
.resize-panel .resize-content .dimensions-group .dimension-inputs .swap-button {
  width: 40px;
  height: 40px;
  padding: 8px;
  max-width: 160px;
  border-radius: 10px;
  border: 1px solid #E9E9E9;
  background: #FFF;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.resize-panel .resize-content .dimensions-group .dimension-inputs .swap-button:hover {
  background-color: #F2FFFD;
  border-color: rgba(67, 191, 152, 0.94);
}
.resize-panel .resize-content .dimensions-group .dimension-inputs .swap-button:hover svg path {
  transition: all 0.1s ease-in-out;
  fill: rgba(67, 191, 152, 0.94);
}
.resize-panel .resize-content .aspect-ratio-toggle {
  margin-top: 0;
}
.resize-panel .resize-content .aspect-ratio-toggle .checkbox-container {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  position: relative;
  padding-left: 24px;
  /* Space for the checkbox */
}
.resize-panel .resize-content .aspect-ratio-toggle .checkbox-container input[type=checkbox] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}
.resize-panel .resize-content .aspect-ratio-toggle .checkbox-container input[type=checkbox]:checked + .checkmark {
  border-color: rgba(67, 191, 152, 0.9411764706);
  background-color: rgba(67, 191, 152, 0.9411764706);
}
.resize-panel .resize-content .aspect-ratio-toggle .checkbox-container input[type=checkbox]:checked + .checkmark:after {
  display: block;
}
.resize-panel .resize-content .aspect-ratio-toggle .checkbox-container .checkmark {
  position: absolute;
  left: 0;
  top: 0;
  width: 16px;
  height: 16px;
  background-color: #F9F9F9;
  border: 1px solid #A6A7A8;
  border-radius: 4px;
  display: inline-block;
  background: #FFFFFF;
  transition: all 0.2s ease;
  top: 50%;
  transform: translateY(-50%);
}
.resize-panel .resize-content .aspect-ratio-toggle .checkbox-container .checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 5.5px;
  top: 2px;
  width: 3px;
  height: 7px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
@-moz-document url-prefix() {
  .resize-panel .resize-content .aspect-ratio-toggle .checkbox-container .checkmark:after {
    left: 5px;
  }
}
.resize-panel .resize-content .aspect-ratio-toggle .checkbox-container span:not(.checkmark) {
  color: #2A2037;
  font-family: "Red Hat Display";
  font-size: 14px;
  font-weight: 500;
}
.resize-panel .resize-content .size-preview {
  display: flex;
  background: #F9F9F9;
  border-radius: 8px;
  padding: 16px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 6px;
}
.resize-panel .resize-content .size-preview .original-size,
.resize-panel .resize-content .size-preview .new-size {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  max-width: 80px;
  word-break: break-word;
}
.resize-panel .resize-content .size-preview .original-size .dimensions,
.resize-panel .resize-content .size-preview .new-size .dimensions {
  color: #2A2037;
  font-family: "Red Hat Display";
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
}
.resize-panel .resize-content .size-preview .original-size .size,
.resize-panel .resize-content .size-preview .new-size .size {
  color: #797B82;
  font-family: "Red Hat Display";
  font-size: 13px;
  font-weight: 400;
}
.resize-panel .resize-content .size-preview .new-size .dimensions,
.resize-panel .resize-content .size-preview .new-size .size {
  color: rgba(67, 191, 152, 0.94) !important;
}
.resize-panel .resize-content .size-preview .arrow {
  color: #888;
  font-size: 20px;
  line-height: 1;
  margin: 0 0;
}
.resize-panel .action-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding: 16px;
  position: sticky;
  bottom: 0;
  background-color: #fff;
  z-index: 10;
  border-top: 1px solid #E9E9E9;
  margin-bottom: 0;
}
.resize-panel .action-buttons button {
  width: 240px;
  height: 40px;
  padding: 0;
  border-radius: 8px;
  font-family: "Red Hat Display";
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.resize-panel .action-buttons button.apply-button {
  background: rgba(67, 191, 152, 0.94);
  color: white;
  border: none;
}
.resize-panel .action-buttons button.apply-button:hover {
  background: rgba(59, 173, 137, 0.94);
}
.resize-panel .action-buttons button.reset-button {
  background: #F9F9F9;
  color: #797B82;
  border: 1px solid #E9E9E9;
}
.resize-panel .action-buttons button.reset-button:hover {
  background: #E9E9E9;
}

.processing-loader {
  position: absolute;
  display: none;
  left: 0 !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100%;
  height: 100% !important;
  justify-content: center;
  align-items: center;
  background: rgba(42, 32, 55, 0.5);
  margin: 0 auto;
}
.processing-loader .cancel-button {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.processing-loader .cancel-button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}
.processing-loader .cancel-button:active {
  transform: scale(0.95);
}
.processing-loader .cancel-button::before, .processing-loader .cancel-button::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 2px;
  background: white;
  border-radius: 1px;
}
.processing-loader .cancel-button::before {
  transform: rotate(45deg);
}
.processing-loader .cancel-button::after {
  transform: rotate(-45deg);
}
.processing-loader .wrap {
  padding: 20px 40px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}
.processing-loader .wrap span {
  font-family: "Red Hat Display";
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 22px;
  color: #fff;
}
.processing-loader .wrap .processing-animation {
  width: 200px;
  height: 6px;
  background: #f0f0f0;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}
.processing-loader .wrap .processing-animation::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, #3DD7B3, #5CEAC5);
  border-radius: 3px;
  animation: progress 1.5s ease-in-out infinite;
}

@keyframes progress {
  0% {
    left: -40%;
  }
  100% {
    left: 100%;
  }
}
.image-tools-sidebar #text-tool-panel {
  display: none;
  flex-direction: column;
  width: 272px;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0;
  background-color: #fff;
  font-family: "Red Hat Display", sans-serif;
  min-width: 272px;
  flex-shrink: 0;
  border-radius: 8px;
  border: 1px solid #E9E9E9;
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}
.image-tools-sidebar #text-tool-panel::-webkit-scrollbar {
  display: none;
}
.image-tools-sidebar #text-tool-panel .tool-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #E9E9E9;
  background-color: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}
.image-tools-sidebar #text-tool-panel .tool-header h3 {
  color: var(--dark-color, #2A2037);
  font-family: "Red Hat Display";
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 22px;
  margin: 0;
}
.image-tools-sidebar #text-tool-panel .tool-header .close-button {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  color: #797B82;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.image-tools-sidebar #text-tool-panel .tool-header .close-button:hover {
  color: #666;
}
.image-tools-sidebar #text-tool-panel .tool-header .close-button svg {
  width: 13px;
  height: 13px;
}
.image-tools-sidebar #text-tool-panel .text-content {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
}
.image-tools-sidebar #text-tool-panel .text-content .add-text-section {
  margin-bottom: 16px;
}
.image-tools-sidebar #text-tool-panel .text-content .add-text-section .add-text-button {
  width: 240px;
  height: 40px;
  background-color: #F2FFFD;
  border: 1px solid rgba(67, 191, 152, 0.94);
  border-radius: 8px;
  color: rgba(67, 191, 152, 0.94);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.image-tools-sidebar #text-tool-panel .text-content .add-text-section .add-text-button:hover {
  background-color: #E8F9F5;
}
.image-tools-sidebar #text-tool-panel .text-content .add-text-section .add-text-button:active {
  background-color: #DCF5EF;
}
.image-tools-sidebar #text-tool-panel .text-content label {
  font-size: 16px;
  font-weight: 500;
  color: #797B82;
  margin-bottom: 8px;
  display: block;
}
.image-tools-sidebar #text-tool-panel .text-content .font-size-label {
  margin-bottom: 5px;
}
.image-tools-sidebar #text-tool-panel .text-content .font-size-section {
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
}
.image-tools-sidebar #text-tool-panel .text-content .font-size-section .font-size-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.image-tools-sidebar #text-tool-panel .text-content .font-size-section .font-size-control .slider-container {
  flex: 1;
  margin-right: 10px;
  position: relative;
  height: 24px;
}
.image-tools-sidebar #text-tool-panel .text-content .font-size-section .font-size-control .slider-container .track-fill {
  position: absolute;
  height: 6px;
  background-color: #43BF98;
  border-radius: 3px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
  left: 0;
}
.image-tools-sidebar #text-tool-panel .text-content .font-size-section .font-size-control .slider-container .font-size-slider {
  width: 100%;
  -webkit-appearance: none;
  height: 24px;
  background: transparent;
  margin: 0;
  position: relative;
  /* Progress fill for Firefox */
}
.image-tools-sidebar #text-tool-panel .text-content .font-size-section .font-size-control .slider-container .font-size-slider::-webkit-slider-runnable-track {
  width: 100%;
  height: 6px;
  background: #E5E7EB;
  border-radius: 3px;
  border: none;
}
.image-tools-sidebar #text-tool-panel .text-content .font-size-section .font-size-control .slider-container .font-size-slider::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 28px;
  height: 15px;
  border-radius: 5px;
  background: #fff !important;
  border: 2px solid #43BF98 !important;
  cursor: pointer;
  margin-top: -5px;
  position: relative;
  z-index: 2;
  box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.16);
}
.image-tools-sidebar #text-tool-panel .text-content .font-size-section .font-size-control .slider-container .font-size-slider::-moz-range-track {
  width: 100%;
  height: 6px;
  background: #E5E7EB !important;
  border-radius: 3px;
  border: none;
}
.image-tools-sidebar #text-tool-panel .text-content .font-size-section .font-size-control .slider-container .font-size-slider::-moz-range-progress {
  height: 6px;
  background-color: #43BF98;
  border-radius: 3px;
}
.image-tools-sidebar #text-tool-panel .text-content .font-size-section .font-size-control .slider-container .font-size-slider::-moz-range-thumb {
  width: 28px !important;
  height: 14px !important;
  border-radius: 5px !important;
  background: #fff !important;
  border: 2px solid #43BF98 !important;
  cursor: pointer;
  position: relative;
  z-index: 2;
  box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.16);
}
@-moz-document url-prefix() {
  .image-tools-sidebar #text-tool-panel .text-content .font-size-section .font-size-control .slider-container .font-size-slider {
    z-index: 9;
  }
}
.image-tools-sidebar #text-tool-panel .text-content .font-size-section .font-size-control .font-size-value input {
  width: 36px;
  height: 24px;
  background: white;
  border: 1px solid #E9E9E9;
  border-radius: 4px;
  color: #2A2037;
  padding: 8px;
  font-size: 16px;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
}
.image-tools-sidebar #text-tool-panel .text-content .font-size-section .font-size-control .font-size-value input:focus {
  outline: none;
  border-color: #3DD7B3;
}
.image-tools-sidebar #text-tool-panel .text-content .font-style-section {
  margin-top: 0;
  margin-bottom: 24px;
}
.image-tools-sidebar #text-tool-panel .text-content .font-style-section .style-buttons {
  display: flex;
  gap: 8px;
}
.image-tools-sidebar #text-tool-panel .text-content .font-style-section .style-buttons .style-button {
  border: 1px solid #E9E9E9;
  background-color: #fff;
  border-radius: 8px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #2A2037;
  cursor: pointer;
  transition: all 0.2s ease;
}
.image-tools-sidebar #text-tool-panel .text-content .font-style-section .style-buttons .style-button:hover {
  background-color: #F7FAFC;
}
.image-tools-sidebar #text-tool-panel .text-content .font-style-section .style-buttons .style-button.active {
  background-color: #F6FDFB;
  border-color: #3DD7B3;
  color: #3DD7B3;
}
.image-tools-sidebar #text-tool-panel .text-content .font-style-section .style-buttons .style-button em {
  line-height: 0;
}
.image-tools-sidebar #text-tool-panel .text-content .font-family-section {
  margin-top: 0;
  margin-bottom: 24px;
}
.image-tools-sidebar #text-tool-panel .text-content .font-family-section .font-family-dropdown select {
  width: 100%;
  height: 48px;
  padding: 12px 16px;
  border: 1px solid #E9E9E9;
  border-radius: 8px;
  color: #2A2037;
  font-size: 16px;
  background-color: #fff;
  background-image: url(../../../../../assets/images/extension-imgs/font-arrow.svg);
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 14px auto;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
  outline: none;
}
.image-tools-sidebar #text-tool-panel .text-content .font-family-section .font-family-dropdown select:focus {
  outline: none;
  border-color: #3DD7B3;
}
.image-tools-sidebar #text-tool-panel .text-content .align-section {
  margin-top: 0;
  margin-bottom: 24px;
}
.image-tools-sidebar #text-tool-panel .text-content .align-section .align-buttons {
  display: flex;
  gap: 8px;
}
.image-tools-sidebar #text-tool-panel .text-content .align-section .align-buttons .align-button {
  border: 1px solid #E9E9E9;
  background-color: #fff;
  border-radius: 8px;
  height: 48px;
  width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #2A2037;
}
.image-tools-sidebar #text-tool-panel .text-content .align-section .align-buttons .align-button svg {
  width: 20px;
  height: 20px;
}
.image-tools-sidebar #text-tool-panel .text-content .align-section .align-buttons .align-button:hover {
  background-color: #F7FAFC;
}
.image-tools-sidebar #text-tool-panel .text-content .align-section .align-buttons .align-button.active {
  background-color: #F6FDFB;
  border-color: #3DD7B3;
  color: #3DD7B3;
}
.image-tools-sidebar #text-tool-panel .text-content .align-section .align-buttons .align-button.active svg path {
  fill: #3DD7B3;
}
.image-tools-sidebar #text-tool-panel .text-content .font-color-section {
  margin-top: 0;
}
.image-tools-sidebar #text-tool-panel .text-content .font-color-section .color-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.image-tools-sidebar #text-tool-panel .text-content .font-color-section .color-options .color-option {
  width: 54px;
  height: 40px;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  border: 2px solid transparent;
  transition: transform 0.2s ease;
}
.image-tools-sidebar #text-tool-panel .text-content .font-color-section .color-options .color-option:hover {
  border-color: rgba(67, 191, 152, 0.94);
}
.image-tools-sidebar #text-tool-panel .text-content .font-color-section .color-options .color-option.active {
  border-color: rgba(67, 191, 152, 0.94);
}
.image-tools-sidebar #text-tool-panel .text-content .font-color-section .color-options .custom-color-button {
  width: 54px;
  height: 40px;
  border-radius: 4px;
  background: #FFFFFF;
  border: 1px solid #A6A7A8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: transform 0.2s ease;
}
.image-tools-sidebar #text-tool-panel .text-content .font-color-section .color-options .custom-color-button::after {
  content: "Custom";
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: #2A2037;
  color: white;
  padding: 4px 8px;
  border-radius: 9px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
  transition: all 0.2s ease;
}
.image-tools-sidebar #text-tool-panel .text-content .font-color-section .color-options .custom-color-button:hover::after {
  opacity: 1;
  visibility: visible;
}
.image-tools-sidebar #text-tool-panel .text-content .font-color-section .color-options .custom-color-button.active {
  border-color: rgba(67, 191, 152, 0.94);
  background-color: #F2FFFD;
}
.image-tools-sidebar #text-tool-panel .text-content .font-color-section .color-options .custom-color-button svg {
  width: 24px;
  height: 24px;
  fill: #2A2037;
}
.image-tools-sidebar #text-tool-panel .text-content .font-color-section .color-options .custom-color-button:hover {
  border-color: rgba(67, 191, 152, 0.94);
  background-color: #F2FFFD;
}
.image-tools-sidebar #text-tool-panel .text-content .font-color-section .color-options .custom-color-button:hover svg path {
  fill: rgba(67, 191, 152, 0.94);
}
.image-tools-sidebar #text-tool-panel .action-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  flex-shrink: 0;
  margin-bottom: 0;
  position: sticky;
  bottom: 0;
  background-color: #fff;
  z-index: 10;
  border-top: 1px solid #E9E9E9;
}
.image-tools-sidebar #text-tool-panel .action-buttons button {
  width: 240px;
  height: 40px;
  border-radius: 8px;
  padding: 0;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.image-tools-sidebar #text-tool-panel .action-buttons .apply-button {
  background: rgba(67, 191, 152, 0.94);
  color: white;
  border: none;
}
.image-tools-sidebar #text-tool-panel .action-buttons .apply-button:hover {
  background: #3bad89;
}
.image-tools-sidebar #text-tool-panel .action-buttons .apply-button:active {
  transform: translateY(1px);
}
.image-tools-sidebar #text-tool-panel .action-buttons .apply-button:disabled {
  background: #94E3CC;
  cursor: not-allowed;
}
.image-tools-sidebar #text-tool-panel .action-buttons .reset-button {
  background: #F9F9F9;
  color: #797B82;
  border: 1px solid #E9E9E9;
}
.image-tools-sidebar #text-tool-panel .action-buttons .reset-button:hover {
  background: #E9E9E9;
}

.color-palette-popup {
  position: absolute;
  top: 230px;
  left: 20px;
  width: 240px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  padding: 12px;
  display: none;
}
.color-palette-popup .color-palette-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.color-palette-popup .color-palette-header h4 {
  margin: 0;
  font-size: 14px;
  color: #333;
}
.color-palette-popup .close-palette {
  background: none;
  border: none;
  font-size: 18px;
  color: #666;
  cursor: pointer;
}
.color-palette-popup .color-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 15px;
}
.color-palette-popup .color-swatch {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}
.color-palette-popup .color-swatch:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.color-palette-popup .color-swatch.active {
  border: 2px solid #3DD7B3;
}
.color-palette-popup .color-palette-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.color-palette-popup .apply-color-btn,
.color-palette-popup .cancel-color-btn {
  flex: 1;
  padding: 8px;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  border: none;
}
.color-palette-popup .apply-color-btn {
  background-color: #3DD7B3;
  color: white;
}
.color-palette-popup .apply-color-btn:hover {
  background-color: #34c4a3;
}
.color-palette-popup .cancel-color-btn {
  background-color: #f1f1f1;
  color: #333;
}
.color-palette-popup .cancel-color-btn:hover {
  background-color: #e5e5e5;
}
.color-palette-popup .custom-color-swatch {
  position: relative;
}
.color-palette-popup .custom-color-swatch::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 6px;
  height: 6px;
  background-color: #3DD7B3;
  border-radius: 50%;
}

.text-editing-toolbar {
  display: none;
  position: absolute;
  top: 1px;
  z-index: 100;
  background-color: white;
  border-radius: 8px;
  border: 1px solid #E9E9E9;
  padding: 8px 16px;
  justify-content: space-between;
  align-items: center;
  left: 5px;
  right: 190px;
  min-width: 300px;
  min-height: 51px;
}
.text-editing-toolbar .left-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  flex: 1;
  margin-right: 16px;
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}
.text-editing-toolbar .left-actions::-webkit-scrollbar {
  display: none;
}
.text-editing-toolbar .left-actions .edit-text-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #FFFFFF;
  border: 1px solid #3DD7B3;
  border-radius: 4px;
  padding: 5px 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: "Red Hat Display", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #797B82;
  height: 34px;
  white-space: nowrap;
  flex-shrink: 0;
}
.text-editing-toolbar .left-actions .edit-text-btn:hover {
  background-color: rgba(61, 215, 179, 0.05);
}
.text-editing-toolbar .left-actions .edit-text-btn.active-text-layer {
  background-color: rgba(61, 215, 179, 0.1);
  border-color: #3DD7B3;
}
.text-editing-toolbar .left-actions .edit-text-btn.active-text-layer svg path {
  fill: rgba(67, 191, 152, 0.94);
}
.text-editing-toolbar .left-actions .edit-text-btn .text-icon {
  color: #3DD7B3;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.5px;
}
.text-editing-toolbar .left-actions .edit-text-btn[data-layer-id] {
  background-color: #F9F9F9;
  border: 1px solid #F9F9F9;
}
.text-editing-toolbar .left-actions .edit-text-btn[data-layer-id]:hover {
  background-color: #ececec;
  border-color: #ececec;
}
.text-editing-toolbar .left-actions .edit-text-btn[data-layer-id].active-text-layer {
  background-color: rgba(61, 215, 179, 0.1);
  border-color: #3DD7B3;
}
.text-editing-toolbar .left-actions .edit-text-btn[data-layer-id].active-text-layer .text-icon {
  color: #3DD7B3;
}
.text-editing-toolbar .left-actions .edit-text-btn[data-layer-id].active-text-layer span:not(.text-icon) {
  color: #3DD7B3;
}
.text-editing-toolbar .right-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.text-editing-toolbar .right-actions button {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  border: 0;
  border-radius: 6px;
  padding: 0;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}
.text-editing-toolbar .right-actions button[data-title]::after {
  content: attr(data-title);
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 8px;
  background: #2A2037;
  color: white;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  border-radius: 9px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  pointer-events: none;
  z-index: 1000;
}
.text-editing-toolbar .right-actions button[data-title]:hover::after {
  opacity: 1;
  visibility: visible;
}
.text-editing-toolbar .right-actions button:hover {
  background-color: #F8F8F8;
}
.text-editing-toolbar .right-actions button:active {
  background-color: #F0F0F0;
  transform: scale(0.98);
}
.text-editing-toolbar .right-actions button svg {
  width: 24px;
  height: 24px;
}
.text-editing-toolbar .right-actions button.delete-btn:hover {
  background-color: rgba(255, 77, 79, 0.08);
  border-color: rgba(255, 77, 79, 0.2);
}
.text-editing-toolbar .right-actions button.delete-btn:hover rect {
  fill: #F2FFFD;
}
.text-editing-toolbar .right-actions button.delete-btn:hover svg path {
  fill: #43BF98;
}
.text-editing-toolbar .right-actions button.duplicate-btn:hover {
  background-color: rgba(61, 215, 179, 0.08);
  border-color: rgba(61, 215, 179, 0.2);
}
.text-editing-toolbar .right-actions button.duplicate-btn:hover rect {
  fill: #F2FFFD;
}
.text-editing-toolbar .right-actions button.duplicate-btn:hover svg path {
  fill: #43BF98;
}

.text-tool-active .text-editing-toolbar {
  display: flex;
}

.shape-inner,
.circle-section,
.rectangle-section,
.lines-arrows-section,
.hearts-section {
  flex: 1;
}

.image-tools-sidebar #shapes-tool-panel {
  display: flex;
  flex-direction: column;
  width: 272px;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0;
  background-color: #fff;
  font-family: "Red Hat Display", sans-serif;
  min-width: 272px;
  flex-shrink: 0;
  border-radius: 8px;
  border: 1px solid #E9E9E9;
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}
.image-tools-sidebar #shapes-tool-panel::-webkit-scrollbar {
  display: none;
}
.image-tools-sidebar #shapes-tool-panel .tool-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #E9E9E9;
  background-color: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}
.image-tools-sidebar #shapes-tool-panel .tool-header h3 {
  color: var(--dark-color, #2A2037);
  font-family: "Red Hat Display";
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 22px;
  margin: 0;
}
.image-tools-sidebar #shapes-tool-panel .tool-header .close-button {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  color: #797B82;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.image-tools-sidebar #shapes-tool-panel .tool-header .close-button:hover {
  color: #666;
}
.image-tools-sidebar #shapes-tool-panel .tool-header .close-button svg {
  width: 13px;
  height: 13px;
}
.image-tools-sidebar #shapes-tool-panel .shapes-content {
  flex: 1;
  overflow-y: visible;
  display: flex;
  flex-direction: column;
  padding: 16px;
}
.image-tools-sidebar #shapes-tool-panel .shapes-content::-webkit-scrollbar {
  display: none;
}
.image-tools-sidebar #shapes-tool-panel .shapes-content::-webkit-scrollbar-track {
  display: none;
}
.image-tools-sidebar #shapes-tool-panel .shapes-content::-webkit-scrollbar-thumb {
  display: none;
}
.image-tools-sidebar #shapes-tool-panel .shapes-content .shapes-search {
  margin-bottom: 20px;
}
.image-tools-sidebar #shapes-tool-panel .shapes-content .shapes-search .search-input-wrapper {
  position: relative;
  width: 100%;
}
.image-tools-sidebar #shapes-tool-panel .shapes-content .shapes-search .search-input-wrapper .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  color: #797B82;
}
.image-tools-sidebar #shapes-tool-panel .shapes-content .shapes-search .search-input-wrapper input {
  width: 100%;
  padding: 12px 16px 12px 40px;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  font-size: 14px;
  color: #333;
}
.image-tools-sidebar #shapes-tool-panel .shapes-content .shapes-search .search-input-wrapper input:focus {
  outline: none;
  border-color: #43BF98;
}
.image-tools-sidebar #shapes-tool-panel .shapes-content .shapes-search .search-input-wrapper input::-moz-placeholder {
  color: #999;
}
.image-tools-sidebar #shapes-tool-panel .shapes-content .shapes-search .search-input-wrapper input::placeholder {
  color: #999;
}
.image-tools-sidebar #shapes-tool-panel .shapes-content .shapes-section {
  margin-bottom: 24px;
}
.image-tools-sidebar #shapes-tool-panel .shapes-content .shapes-section .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding: 0;
  margin-top: 32px;
}
.image-tools-sidebar #shapes-tool-panel .shapes-content .shapes-section .section-header h4 {
  margin: 0;
  font-family: "Red Hat Display";
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 22px;
  color: #797B82;
}
.image-tools-sidebar #shapes-tool-panel .shapes-content .shapes-section .section-header .more-button,
.image-tools-sidebar #shapes-tool-panel .shapes-content .shapes-section .section-header .back-button {
  background: none;
  border: none;
  font-size: 12px;
  line-height: 16px;
  color: #797B82;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 3px 4px;
  transition: all 0.1s ease-in-out;
}
.image-tools-sidebar #shapes-tool-panel .shapes-content .shapes-section .section-header .more-button:hover,
.image-tools-sidebar #shapes-tool-panel .shapes-content .shapes-section .section-header .back-button:hover {
  border-radius: 4px;
  background: #F2FFFD;
}
.image-tools-sidebar #shapes-tool-panel .shapes-content .shapes-section .section-header .more-button .arrow,
.image-tools-sidebar #shapes-tool-panel .shapes-content .shapes-section .section-header .back-button .arrow {
  margin-left: 8px;
  line-height: 0;
  margin-top: 1px;
}
.image-tools-sidebar #shapes-tool-panel .shapes-content .shapes-section .section-header .more-button:hover,
.image-tools-sidebar #shapes-tool-panel .shapes-content .shapes-section .section-header .back-button:hover {
  color: rgba(67, 191, 152, 0.94);
}
.image-tools-sidebar #shapes-tool-panel .shapes-content .shapes-section .section-header .more-button:hover svg path,
.image-tools-sidebar #shapes-tool-panel .shapes-content .shapes-section .section-header .back-button:hover svg path {
  transition: all 0.1s ease-in-out;
  fill: rgba(67, 191, 152, 0.94);
}
.image-tools-sidebar #shapes-tool-panel .shapes-content .shapes-section .section-header .back-button .arrow {
  margin-left: auto;
  margin-right: 8px;
  transform: rotate(180deg);
}
.image-tools-sidebar #shapes-tool-panel .shapes-content .shapes-section .shapes-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.image-tools-sidebar #shapes-tool-panel .shapes-content .shapes-section .shapes-grid .shape-item {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.image-tools-sidebar #shapes-tool-panel .shapes-content .shapes-section .shapes-grid .shape-item img {
  width: 38px;
  height: auto;
  -o-object-fit: contain;
     object-fit: contain;
}
.image-tools-sidebar #shapes-tool-panel .shapes-content .shapes-section .shapes-grid .shape-item:hover {
  transform: scale(1.05);
}
.image-tools-sidebar #shapes-tool-panel .action-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  flex-shrink: 0;
  margin-top: 8px;
  position: sticky;
  bottom: 0;
  background-color: #fff;
  z-index: 10;
  border-top: 1px solid #E9E9E9;
  margin-bottom: 0;
}
.image-tools-sidebar #shapes-tool-panel .action-buttons button {
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 240px;
  height: 40px;
  padding: 0;
}
.image-tools-sidebar #shapes-tool-panel .action-buttons .apply-button {
  background: rgba(67, 191, 152, 0.94);
  color: white;
  border: none;
}
.image-tools-sidebar #shapes-tool-panel .action-buttons .apply-button:hover {
  background: #3bad89;
}
.image-tools-sidebar #shapes-tool-panel .action-buttons .reset-button {
  background: #F9F9F9;
  color: #797B82;
  border: 1px solid #E9E9E9;
}
.image-tools-sidebar #shapes-tool-panel .action-buttons .reset-button:hover {
  background: #E9E9E9;
}

.shape-editing-toolbar {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  background-color: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.08);
  padding: 12px 20px;
  position: absolute;
  top: 0;
  z-index: 100;
  left: 10px;
  right: 190px;
  transition: all 0.3s ease;
  border: 1px solid #E9E9E9;
  display: none;
  height: 50px;
  z-index: 9;
}
.shape-editing-toolbar .left-actions,
.shape-editing-toolbar .right-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}
.shape-editing-toolbar .left-actions button,
.shape-editing-toolbar .right-actions button {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  border: 0;
  border-radius: 6px;
  padding: 0;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}
.shape-editing-toolbar .left-actions button[title-shapes]::after,
.shape-editing-toolbar .right-actions button[title-shapes]::after {
  content: attr(title-shapes);
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 8px;
  background: #2A2037;
  color: white;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  border-radius: 9px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  pointer-events: none;
  z-index: 1000;
}
.shape-editing-toolbar .left-actions button[title-shapes]:hover::after,
.shape-editing-toolbar .right-actions button[title-shapes]:hover::after {
  opacity: 1;
  visibility: visible;
}
.shape-editing-toolbar .left-actions button:hover,
.shape-editing-toolbar .right-actions button:hover {
  background-color: #F8F8F8;
}
.shape-editing-toolbar .left-actions button:active,
.shape-editing-toolbar .right-actions button:active {
  background-color: #F0F0F0;
  transform: scale(0.98);
}
.shape-editing-toolbar .left-actions button svg,
.shape-editing-toolbar .right-actions button svg {
  width: 24px;
  height: 24px;
}
.shape-editing-toolbar .left-actions button.delete-btn:hover,
.shape-editing-toolbar .right-actions button.delete-btn:hover {
  background-color: rgba(255, 77, 79, 0.08);
  border-color: rgba(255, 77, 79, 0.2);
}
.shape-editing-toolbar .left-actions button.delete-btn:hover rect,
.shape-editing-toolbar .right-actions button.delete-btn:hover rect {
  fill: #F2FFFD;
}
.shape-editing-toolbar .left-actions button.delete-btn:hover svg path,
.shape-editing-toolbar .right-actions button.delete-btn:hover svg path {
  fill: #43BF98;
}
.shape-editing-toolbar .left-actions button.duplicate-btn:hover,
.shape-editing-toolbar .right-actions button.duplicate-btn:hover {
  background-color: rgba(61, 215, 179, 0.08);
  border-color: rgba(61, 215, 179, 0.2);
}
.shape-editing-toolbar .left-actions button.duplicate-btn:hover rect,
.shape-editing-toolbar .right-actions button.duplicate-btn:hover rect {
  fill: #F2FFFD;
}
.shape-editing-toolbar .left-actions button.duplicate-btn:hover svg path,
.shape-editing-toolbar .right-actions button.duplicate-btn:hover svg path {
  fill: #43BF98;
}
.shape-editing-toolbar .color-pickers {
  display: flex;
  gap: 8px;
  align-items: center;
}
.shape-editing-toolbar .color-pickers .color-picker {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}
.shape-editing-toolbar .color-pickers .color-picker.stroke::before {
  content: "";
  width: 10px;
  height: 10px;
  position: absolute;
  background: #fff;
  z-index: 1;
  top: 50%;
  margin-top: -5px;
  outline: 1px solid rgba(0, 0, 0, 0.1);
  display: none;
}
.shape-editing-toolbar .color-pickers .color-picker.stroke.show-before::before {
  display: block;
}
.shape-editing-toolbar .color-pickers .color-picker.active .color-label {
  color: #0D9488;
  font-weight: 600;
}
.shape-editing-toolbar .color-pickers .color-picker .color-preview {
  width: 24px;
  height: 24px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.shape-editing-toolbar .color-pickers .color-picker .color-preview.fill-preview {
  background-color: #34D399;
  border: none;
}
.shape-editing-toolbar .color-pickers .color-picker .color-preview.stroke-preview {
  background-color: #FFFFFF;
  border: 1px solid #D1D5DB;
}
.shape-editing-toolbar .color-pickers .color-picker .color-preview.no-stroke {
  background-color: #FFFFFF;
  border: 1px solid #D1D5DB;
}
.shape-editing-toolbar .color-pickers .color-picker .color-preview.no-stroke:hover {
  border-color: rgba(67, 191, 152, 0.94);
}
.shape-editing-toolbar .color-pickers .color-picker .color-label {
  font-size: 14px;
  color: #9CA3AF;
  font-weight: 500;
  margin-top: 0;
  white-space: nowrap;
}
.shape-editing-toolbar .right-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}
.shape-editing-toolbar .right-actions .tool-btn {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  color: #6B7280;
}
.shape-editing-toolbar .right-actions .tool-btn:hover rect {
  fill: #F2FFFD;
}
.shape-editing-toolbar .right-actions .tool-btn:hover svg path {
  fill: #43BF98;
}
.shape-editing-toolbar .right-actions .tool-btn:active rect {
  fill: #F2FFFD;
}
.shape-editing-toolbar .right-actions .tool-btn:active svg path {
  fill: #43BF98;
}
.shape-editing-toolbar .right-actions .tool-btn.active rect {
  fill: #F2FFFD;
}
.shape-editing-toolbar .right-actions .tool-btn.active svg path {
  fill: #43BF98;
}
.shape-editing-toolbar .right-actions .tool-btn svg,
.shape-editing-toolbar .right-actions .tool-btn img {
  width: auto;
  height: auto;
  display: block;
}

@media (max-width: 640px) {
  .shape-editing-toolbar {
    left: 5px;
    right: 5px;
    flex-wrap: wrap;
    gap: 12px;
  }
  .shape-editing-toolbar .left-actions,
  .shape-editing-toolbar .right-actions {
    margin: 4px 0;
  }
}
.shapes-tool-active .shape-editing-toolbar {
  display: flex;
}

.color-picker-popup {
  display: none;
  position: absolute;
  left: 150px;
  transform: translateX(-50%);
  top: 54px;
  width: 304px;
  background-color: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0px 7px 29px 0px rgba(100, 100, 111, 0.2);
  padding: 16px;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.color-picker-popup.visible {
  display: block;
  opacity: 1;
}
.color-picker-popup .popup-section {
  margin-bottom: 20px;
}
.color-picker-popup .popup-section:last-child {
  margin-bottom: 0;
}
.color-picker-popup .popup-section h3 {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 14px;
  letter-spacing: 0.1px;
}
.color-picker-popup .custom-color-selector {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}
.color-picker-popup .custom-color-selector .color-wheel {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  transition: all 0.2s ease;
}
.color-picker-popup .custom-color-selector .color-wheel:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.color-picker-popup .custom-color-selector .color-wheel:active {
  transform: scale(0.95);
}
.color-picker-popup .custom-color-selector .color-wheel img {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
.color-picker-popup .custom-color-selector .color-wheel input[type=color] {
  position: absolute;
  top: -5px;
  left: -5px;
  width: 56px;
  height: 56px;
  border: none;
  cursor: pointer;
  opacity: 0;
}
.color-picker-popup .custom-color-selector .current-color {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  border: 1px solid #E0E0E0;
  background-color: #43BF98;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.color-picker-popup .default-colors {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}
.color-picker-popup .default-colors .color-swatch {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.1s ease;
  border: 1px solid transparent;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.color-picker-popup .default-colors .color-swatch:hover {
  transform: scale(1.15);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  z-index: 2;
}
.color-picker-popup .default-colors .color-swatch:active {
  transform: scale(0.92);
}
.color-picker-popup .default-colors .color-swatch.selected {
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 0 0 2px #43BF98, 0 0 0 4px rgba(67, 191, 152, 0.2);
}
.color-picker-popup .default-colors .color-swatch.selected:after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  animation: confirm 0.3s ease forwards;
}
.color-picker-popup .default-colors .color-swatch.no-color {
  background-color: white;
  border: 1px solid #E0E0E0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.color-picker-popup .default-colors .color-swatch.no-color svg {
  width: 32px;
  height: 32px;
  stroke-width: 2px;
}
@keyframes confirm {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.5);
    opacity: 0;
  }
}

.color-picker.active .color-preview {
  transform: scale(1.05);
  transition: all 0.2s ease;
}

.shape-editing-toolbar .color-picker {
  cursor: pointer;
  position: relative;
}
.shape-editing-toolbar .color-picker:hover .color-preview {
  border-color: rgba(67, 191, 152, 0.94);
}
.shape-editing-toolbar .color-picker .color-preview {
  transition: all 0.2s ease;
}
.shape-editing-toolbar .color-picker .color-preview {
  background: #E9E9E9;
  border: 1px solid #E9E9E9;
  border-radius: 4px;
}
.shape-editing-toolbar .color-picker.active .color-label {
  transform: translateY(1px);
  text-shadow: 0 0 1px rgba(67, 191, 152, 0.3);
}

.stroke-picker-popup {
  position: absolute;
  left: 170px;
  transform: translateX(-50%);
  top: 54px;
  font-family: "Red Hat Display";
  width: 304px;
  background-color: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0px 7px 29px 0px rgba(100, 100, 111, 0.2);
  padding: 16px;
  z-index: 1000;
  display: none;
}
.stroke-picker-popup.visible {
  display: block !important;
}
.stroke-picker-popup.hidden {
  display: none;
}
.stroke-picker-popup .popup-section {
  margin-bottom: 16px;
}
.stroke-picker-popup .popup-section:last-child {
  margin-bottom: 0;
}
.stroke-picker-popup .popup-section h3 {
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 22px;
  color: #797B82;
}
.stroke-picker-popup .line-style-dropdown {
  position: relative;
  width: 100%;
  margin-top: 4px;
}
.stroke-picker-popup .line-style-dropdown .dropdown-selection {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
  border: 1px solid #E9E9E9;
  border-radius: 8px;
  cursor: pointer;
  background-color: #FFFFFF;
  height: 35px;
}
.stroke-picker-popup .line-style-dropdown .dropdown-selection .line-preview {
  flex: 1;
  line-height: 0;
}
.stroke-picker-popup .line-style-dropdown .dropdown-selection .line-preview svg {
  width: 100%;
  height: 2px;
}
.stroke-picker-popup .line-style-dropdown .dropdown-selection .dropdown-arrow {
  margin-left: 16px;
  line-height: 0;
  margin-top: 3px;
}
.stroke-picker-popup .line-style-dropdown .dropdown-selection:hover {
  border-color: #BBBBBB;
  background-color: #F9F9F9;
}
.stroke-picker-popup .line-style-dropdown .line-style-options {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: #FFFFFF;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  margin-top: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 10;
  overflow: hidden;
}
.stroke-picker-popup .line-style-dropdown .line-style-options .line-option {
  padding: 10px 15px;
  display: flex;
  align-items: center;
  cursor: pointer;
}
.stroke-picker-popup .line-style-dropdown .line-style-options .line-option svg {
  width: 100%;
  height: 2px;
  margin-right: 10px;
}
.stroke-picker-popup .line-style-dropdown .line-style-options .line-option span {
  margin-left: 12px;
  color: #333;
  font-size: 14px;
  font-weight: 400;
}
.stroke-picker-popup .line-style-dropdown .line-style-options .line-option:hover {
  background-color: #F5F5F5;
}
.stroke-picker-popup .thickness-control {
  display: flex;
  align-items: center;
  gap: 12px;
}
.stroke-picker-popup .thickness-control .thickness-slider-container {
  flex: 1;
  display: flex;
  position: relative;
}
.stroke-picker-popup .thickness-control .thickness-slider-container .thickness-slider {
  -webkit-appearance: none;
  -moz-appearance: none;
       appearance: none;
  width: 100%;
  height: 4px;
  background: #E0E0E0;
  border-radius: 2px;
  outline: none;
  /* Track styling */
  /* Progress fill for Firefox */
  /* Thumb styling */
}
.stroke-picker-popup .thickness-control .thickness-slider-container .thickness-slider::-webkit-slider-runnable-track {
  width: 100%;
  height: 6px;
  background: linear-gradient(to right, #43BF98 0%, #43BF98 var(--progress, 0%), #E5E7EB var(--progress, 0%), #E5E7EB 100%) !important;
  border-radius: 3px;
  border: none;
}
.stroke-picker-popup .thickness-control .thickness-slider-container .thickness-slider::-moz-range-track {
  width: 100%;
  height: 6px;
  background: #E5E7EB !important;
  border-radius: 3px;
  border: none;
}
.stroke-picker-popup .thickness-control .thickness-slider-container .thickness-slider::-moz-range-progress {
  height: 6px;
  background-color: #43BF98;
  border-radius: 3px;
}
.stroke-picker-popup .thickness-control .thickness-slider-container .thickness-slider::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 30px;
  height: 15px;
  border-radius: 5px;
  background: #fff !important;
  border: 2px solid #43BF98 !important;
  cursor: pointer;
  margin-top: -6px;
  position: relative;
  z-index: 2;
  box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.16);
}
.stroke-picker-popup .thickness-control .thickness-slider-container .thickness-slider::-moz-range-thumb {
  width: 30px !important;
  height: 15px !important;
  border-radius: 5px !important;
  background: #fff !important;
  border: 2px solid #43BF98 !important;
  cursor: pointer;
  position: relative;
  z-index: 2;
  box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.16);
}
.stroke-picker-popup .thickness-control .thickness-value {
  width: 36px;
}
.stroke-picker-popup .thickness-control .thickness-value .thickness-input {
  width: 100%;
  text-align: center;
  padding: 4px;
  border: 1px solid #E0E0E0;
  border-radius: 4px;
  font-size: 14px;
  -moz-appearance: textfield;
  color: #2A2037;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  -moz-appearance: textfield;
}
.stroke-picker-popup .thickness-control .thickness-value .thickness-input:focus {
  outline: none;
  border-color: #43BF98;
}
.stroke-picker-popup .thickness-control .thickness-value .thickness-input::-webkit-inner-spin-button, .stroke-picker-popup .thickness-control .thickness-value .thickness-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.stroke-picker-popup .custom-color-selector {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}
.stroke-picker-popup .custom-color-selector .color-wheel {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.stroke-picker-popup .custom-color-selector .color-wheel svg {
  position: absolute;
  width: 24px;
  height: 24px;
  z-index: 1;
}
.stroke-picker-popup .custom-color-selector .color-wheel input[type=color] {
  position: absolute;
  top: -5px;
  left: -5px;
  width: 50px;
  height: 50px;
  opacity: 0;
  cursor: pointer;
}
.stroke-picker-popup .default-colors {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-top: 8px;
}
.stroke-picker-popup .default-colors .color-swatch {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.stroke-picker-popup .default-colors .color-swatch:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.stroke-picker-popup .default-colors .color-swatch.selected {
  box-shadow: 0 0 0 2px #43BF98;
}
.stroke-picker-popup .default-colors .color-swatch.no-color {
  background-color: white;
  border: 1px solid #E0E0E0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stroke-picker-popup .default-colors .color-swatch.no-color svg {
  width: 32px;
  height: 32px;
  stroke-width: 2px;
}

.color-picker-popup {
  font-family: "Red Hat Display";
}
.color-picker-popup .color-wheel {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}
.color-picker-popup .color-wheel:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.color-picker-popup .color-wheel:active {
  transform: scale(0.95);
}
.color-picker-popup .popup-section h3 {
  color: #797B82;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 22px;
  margin-bottom: 8px;
}

.rotate-flip-popup {
  position: absolute;
  right: 32px;
  top: 55px;
  width: 304px;
  background-color: #FFFFFF;
  border-radius: 16px;
  padding: 16px;
  z-index: 1000;
  display: none;
  box-shadow: 0px 10px 36px 0px rgba(0, 0, 0, 0.16), 0px 0px 0px 1px rgba(0, 0, 0, 0.06);
}
.rotate-flip-popup .action-buttons {
  flex-direction: column;
  margin-bottom: 0;
  gap: 8px;
}
.rotate-flip-popup .action-buttons .action-button {
  gap: 8px;
  padding: 4px 0;
}
.rotate-flip-popup .action-buttons .action-button.active {
  background-color: rgba(67, 191, 152, 0.1);
  border-radius: 4px;
}
.rotate-flip-popup .action-buttons .action-button.active svg path {
  fill: #43BF98;
}
.rotate-flip-popup .action-buttons .action-button.active span {
  color: #43BF98;
  font-weight: 500;
}
.rotate-flip-popup .action-buttons .action-button:hover {
  background-color: #F8F8F8;
  border-radius: 4px;
}
.rotate-flip-popup.visible {
  display: block;
}
.rotate-flip-popup.hidden {
  display: none;
}
.rotate-flip-popup .popup-section {
  border: 0;
}
.rotate-flip-popup .popup-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  padding-top: 8px;
}
.rotate-flip-popup .popup-section .rotation-value {
  display: flex;
  align-items: center;
  width: 36px;
  height: 24px;
  background: #fff;
  border-radius: 4px;
  padding: 0 2px;
  min-width: auto;
  border: 1px solid #E9E9E9;
}
.rotate-flip-popup .popup-section .rotation-value input.rotation-input {
  width: 100%;
  font-family: "Red Hat Display";
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 16px;
  color: #2A2037;
  text-align: center;
}
.rotate-flip-popup .popup-section h3 {
  font-size: 16px;
  font-weight: 500;
  color: #797B82;
  margin-bottom: 4px;
  line-height: 20px;
}
.rotate-flip-popup .popup-section .action-button .action-icon {
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
}
.rotate-flip-popup .popup-section .action-button .action-icon svg {
  width: 16px;
  height: auto;
}
.rotate-flip-popup .rotation-slider {
  /* Progress fill for Firefox */
  /* Thumb styling */
}
.rotate-flip-popup .rotation-slider::-webkit-slider-runnable-track {
  width: 100%;
  height: 6px;
  background: linear-gradient(to right, #43BF98 0%, #43BF98 var(--progress, 0%), #E5E7EB var(--progress, 0%), #E5E7EB 100%) !important;
  border-radius: 3px;
  border: none;
}
.rotate-flip-popup .rotation-slider::-moz-range-track {
  width: 100%;
  height: 6px;
  background: #E5E7EB !important;
  border-radius: 3px;
  border: none;
}
.rotate-flip-popup .rotation-slider::-moz-range-progress {
  height: 6px;
  background-color: #43BF98;
  border-radius: 3px;
}
.rotate-flip-popup .rotation-slider::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 30px !important;
  height: 15px !important;
  border-radius: 5px !important;
  background: #fff !important;
  border: 2px solid #43BF98 !important;
  cursor: pointer;
  margin-top: -5px;
  position: relative;
  z-index: 2;
  box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.16);
}
.rotate-flip-popup .rotation-slider::-moz-range-thumb {
  width: 30px !important;
  height: 15px !important;
  border-radius: 5px !important;
  background: #fff !important;
  border: 2px solid #43BF98 !important;
  cursor: pointer;
  position: relative;
  z-index: 2;
  box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.16);
}

.opacity-popup {
  position: absolute;
  right: -30px;
  top: 60px;
  width: 304px;
  background-color: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0px 7px 29px 0px rgba(100, 100, 111, 0.2);
  padding: 16px;
  z-index: 1000;
  display: none;
}
.opacity-popup.visible {
  display: block;
}
.opacity-popup .popup-section {
  margin-bottom: 22px;
}
.opacity-popup .popup-section:last-child {
  margin-bottom: 0;
}
.opacity-popup .popup-section h3 {
  font-size: 16px;
  font-weight: 500;
  color: #797B82;
  margin-bottom: 4px;
}
.opacity-popup .opacity-slider-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}
.opacity-popup .opacity-slider-container .opacity-slider {
  flex: 1;
  -webkit-appearance: none;
  height: 6px;
  border-radius: 3px;
  background: #F0F0F0;
  outline: none;
  /* Thumb styling */
}
.opacity-popup .opacity-slider-container .opacity-slider::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 30px;
  height: 15px;
  border-radius: 5px;
  background: #fff !important;
  border: 2px solid #43BF98 !important;
  cursor: pointer;
  margin-top: -1px;
  position: relative;
  z-index: 2;
  box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.16);
}
.opacity-popup .opacity-slider-container .opacity-slider::-moz-range-thumb {
  width: 30px !important;
  height: 15px !important;
  border-radius: 5px !important;
  background: #fff !important;
  border: 2px solid #43BF98 !important;
  cursor: pointer;
  position: relative;
  z-index: 2;
  box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.16);
}
.opacity-popup .opacity-slider-container .opacity-value {
  display: flex;
  align-items: center;
  min-width: 36px;
  background: #fff;
  border-radius: 4px;
  border: 1px solid #E9E9E9;
}
.opacity-popup .opacity-slider-container .opacity-value .opacity-input {
  width: 36px;
  background: transparent;
  border: none;
  font-size: 14px;
  text-align: center;
  padding: 4px 0;
  color: #2A2037;
}
.opacity-popup .opacity-slider-container .opacity-value .opacity-input:focus {
  outline: none;
}
.opacity-popup .opacity-slider-container .opacity-value .opacity-input::-webkit-inner-spin-button, .opacity-popup .opacity-slider-container .opacity-value .opacity-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.opacity-popup .opacity-slider-container .percentage-symbol {
  font-size: 14px;
  color: #A6A7A8;
  margin-left: 2px;
}

.shadow-popup {
  position: absolute;
  right: -30px;
  top: 60px;
  width: 304px;
  background-color: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0px 7px 29px 0px rgba(100, 100, 111, 0.2);
  padding: 16px 0;
  z-index: 1000;
  display: none;
  font-family: "Red Hat Display";
}
.shadow-popup.visible {
  display: block;
}
.shadow-popup .shadow-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 16px !important;
  border-bottom: 1px solid #E9E9E9;
}
.shadow-popup .shadow-header-row .shadow-title {
  font-size: 16px;
  font-weight: 500;
  color: #797B82;
  letter-spacing: 0.01em;
}
.shadow-popup .shadow-header-row .shadow-toggle {
  position: relative;
  display: inline-block;
  width: 30px;
  height: 19px;
}
.shadow-popup .shadow-header-row .shadow-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.shadow-popup .shadow-header-row .shadow-toggle .toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #E5E7EB;
  border-radius: 26px;
  transition: background 0.2s;
  border: 1px solid #797B82;
}
.shadow-popup .shadow-header-row .shadow-toggle input:checked + .toggle-slider {
  border: 1px solid rgba(67, 191, 152, 0.94);
  background: #F2FFFD;
}
.shadow-popup .shadow-header-row .shadow-toggle .toggle-slider:before {
  position: absolute;
  content: "";
  height: 11px;
  width: 11px;
  left: 3px;
  bottom: 3.5px;
  background: #797B82;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}
.shadow-popup .shadow-header-row .shadow-toggle input:checked + .toggle-slider:before {
  transform: translateX(12px);
  background: rgba(67, 191, 152, 0.94);
}
.shadow-popup .shadow-label {
  font-size: 16px;
  font-weight: 500;
  color: #797B82;
  margin-bottom: 8px;
}
.shadow-popup .custom-color-selector {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.shadow-popup .custom-color-selector .color-wheel {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  background: #F5F5F5;
  transition: all 0.2s ease;
}
.shadow-popup .custom-color-selector .color-wheel img {
  width: 100%;
  height: 100%;
}
.shadow-popup .custom-color-selector .color-wheel input[type=color] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.shadow-popup .default-colors {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}
.shadow-popup .default-colors .color-swatch {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s, border 0.1s;
  border: 1px solid transparent;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.shadow-popup .default-colors .color-swatch:hover {
  transform: scale(1.12);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.13);
  z-index: 2;
}
.shadow-popup .default-colors .color-swatch.no-color {
  background: #fff;
  border: 1px solid #E0E0E0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.shadow-popup .default-colors .color-swatch.no-color svg {
  width: 32px;
  height: 32px;
  stroke-width: 2px;
}
.shadow-popup .popup-section {
  margin-bottom: 16px;
  padding: 0 16px;
}
.shadow-popup .popup-section:last-child {
  margin-bottom: 0;
}
.shadow-popup .shadow-slider-row {
  display: flex;
  margin-bottom: 16px;
  flex-direction: column;
}
.shadow-popup .shadow-slider-row:last-child {
  margin-bottom: 0;
}
.shadow-popup .shadow-slider-row .shadow-slider-label {
  font-size: 16px;
  color: #797B82;
  font-weight: 500;
  margin-bottom: 4px;
}
.shadow-popup .shadow-slider-row .shadow-slider-container {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}
.shadow-popup .shadow-slider-row .shadow-slider-container .shadow-slider {
  flex: 1;
  -webkit-appearance: none;
  -moz-appearance: none;
       appearance: none;
  height: 6px;
  border-radius: 3px;
  background: #F0F0F0;
  outline: none;
  /* Thumb styling */
}
.shadow-popup .shadow-slider-row .shadow-slider-container .shadow-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #43BF98;
  cursor: pointer;
  border: 2px solid #FFFFFF;
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);
}
.shadow-popup .shadow-slider-row .shadow-slider-container .shadow-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #43BF98;
  cursor: pointer;
  border: 2px solid #FFFFFF;
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);
}
.shadow-popup .shadow-slider-row .shadow-slider-container .shadow-slider::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 30px;
  height: 15px;
  border-radius: 5px;
  background: #fff !important;
  border: 2px solid #43BF98 !important;
  cursor: pointer;
  margin-top: 0px;
  position: relative;
  z-index: 2;
  box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.16);
}
.shadow-popup .shadow-slider-row .shadow-slider-container .shadow-slider::-moz-range-thumb {
  width: 30px !important;
  height: 15px !important;
  border-radius: 5px !important;
  background: #fff !important;
  border: 2px solid #43BF98 !important;
  cursor: pointer;
  position: relative;
  z-index: 2;
  box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.16);
}
.shadow-popup .shadow-slider-row .shadow-slider-container .shadow-slider-value {
  min-width: 36px;
  width: 36px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 4px;
  padding: 0 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #E9E9E9;
}
.shadow-popup .shadow-slider-row .shadow-slider-container .shadow-slider-value .shadow-slider-input {
  width: 22px;
  background: transparent;
  border: none;
  font-size: 12px;
  text-align: right;
  padding: 4px 0;
  color: #2A2037;
  text-align: center;
}
.shadow-popup .shadow-slider-row .shadow-slider-container .shadow-slider-value .shadow-slider-input:focus {
  outline: none;
}
.shadow-popup .shadow-slider-row .shadow-slider-container .shadow-slider-value .shadow-slider-input::-webkit-inner-spin-button, .shadow-popup .shadow-slider-row .shadow-slider-container .shadow-slider-value .shadow-slider-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.shadow-popup .shadow-slider-row .shadow-slider-container .shadow-slider-value .shadow-slider-unit {
  font-size: 12px;
  color: #2A2037;
  margin-left: 2px;
  flex-shrink: 0;
  font-weight: 500;
}

.reorder-popup {
  position: absolute;
  right: 26px;
  top: 54px;
  width: 155px;
  background-color: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0px 7px 29px 0px rgba(100, 100, 111, 0.2);
  z-index: 1000;
  display: none;
  padding: 8px 0;
  overflow: hidden;
}
.reorder-popup.visible {
  display: block;
}
.reorder-popup .popup-section {
  margin-bottom: 18px;
}
.reorder-popup .popup-section:last-child {
  margin-bottom: 0;
}
.reorder-popup .popup-section h3 {
  font-size: 16px;
  font-weight: 600;
  color: #6E6A76;
  margin-bottom: 16px;
}
.reorder-popup .layer-order-controls {
  display: flex;
  flex-direction: column;
}
.reorder-popup .layer-order-controls .layer-order-btn {
  display: flex;
  align-items: center;
  border: none;
  background-color: #fff;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.reorder-popup .layer-order-controls .layer-order-btn img {
  width: 16px;
  height: auto;
  margin-right: 8px;
}
.reorder-popup .layer-order-controls .layer-order-btn span {
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px;
  color: #2A2037;
  font-family: "Red Hat Display";
}
.reorder-popup .layer-order-controls .layer-order-btn:hover {
  text-decoration: underline;
}
.reorder-popup .layer-order-controls .layer-order-btn:active {
  text-decoration: underline;
}

.shape-editing-toolbar.shapes-tool-panel {
  position: absolute;
  background: none;
  box-shadow: none;
  border: 0;
  z-index: 1;
}

@-moz-document url-prefix() {
  input[type=number] {
    -moz-appearance: textfield;
  }
  input[type=number]::-webkit-inner-spin-button,
  input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
  }
  .rotate-flip-popup input[type=number],
  .stroke-picker-popup input[type=number],
  .opacity-popup input[type=number],
  .shadow-popup input[type=number] {
    overflow: hidden;
  }
}
/* Set max-height when viewport height is less than 803px */
@media (max-height: 802px) {
  .shadow-popup {
    max-height: 340px;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(67, 191, 152, 0.35) transparent;
  }
}
.confirm-modal, .alert-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}
.confirm-modal-content, .alert-modal-content {
  background-color: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  width: 100%;
  min-width: 293px;
  max-width: 293px;
  padding: 24px;
  text-align: center;
}
.confirm-modal-title, .alert-modal-title {
  font-family: "Red Hat Display";
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 22px;
  text-transform: capitalize;
  color: #2A2037;
  margin-bottom: 0px;
}
.confirm-modal-subtitle, .alert-modal-subtitle {
  font-family: "Red Hat Display";
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px;
  color: #797B82;
  margin-bottom: 16px;
}
.confirm-modal-actions, .alert-modal-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.confirm-modal-actions .confirm-btn, .alert-modal-actions .confirm-btn {
  font-family: "Red Hat Display", sans-serif;
  font-weight: 600;
  font-size: 16px;
  padding: 0;
  border-radius: 8px;
  width: 100px;
  min-width: 100px;
  height: 40px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid rgba(67, 191, 152, 0.94);
}
.confirm-modal-actions .confirm-btn.yes, .alert-modal-actions .confirm-btn.yes {
  background-color: rgba(67, 191, 152, 0.94);
  color: white;
}
.confirm-modal-actions .confirm-btn.yes:hover, .alert-modal-actions .confirm-btn.yes:hover {
  background-color: rgba(59, 173, 137, 0.94);
  border-color: rgba(59, 173, 137, 0.94);
}
.confirm-modal-actions .confirm-btn.no, .alert-modal-actions .confirm-btn.no {
  background-color: #F9F9F9;
  color: #797B82;
  border-color: #E9E9E9;
}
.confirm-modal-actions .confirm-btn.no:hover, .alert-modal-actions .confirm-btn.no:hover {
  background-color: #ececec;
  border-color: gainsboro;
}

.alert-modal-title {
  margin-bottom: 16px;
}

.trending-tool-panel {
  width: 272px;
  min-height: 100%;
  position: relative;
  overflow: hidden;
  border: 1px solid #E9E9E9;
  border-radius: 8px;
  background: white;
  display: none;
  flex-direction: column;
  overflow-y: auto;
  scrollbar-width: none;
}
.trending-tool-panel .tool-header {
  padding: 16px;
  border-bottom: 1px solid #E9E9E9;
}
.trending-tool-panel .tool-header .ai-tool-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.trending-tool-panel .tool-header .ai-tool-title h3 {
  color: var(--dark-color, #2A2037);
  font-family: "Red Hat Display";
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 22px;
}
.trending-tool-panel .tool-header .ai-tool-title .close-sidebar-trend {
  margin-left: auto;
  background: none;
  border: none;
  font-size: 24px;
  color: #797B82;
  cursor: pointer;
  line-height: 0;
}
.trending-tool-panel .tool-header .ai-tool-title .close-sidebar-trend svg {
  width: 13px;
  height: 13px;
}
.trending-tool-panel .tools-list {
  height: 100%;
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-top: 0;
}
.trending-tool-panel .tools-list::-webkit-scrollbar {
  display: none;
}
.trending-tool-panel .tools-list .tool-item {
  padding: 16px 16px 0;
  margin-bottom: 0;
  border-radius: 0;
  gap: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}
.trending-tool-panel .tools-list .tool-item:hover {
  background: #F2FFFD;
}
.trending-tool-panel .tools-list .tool-item .tool-icon {
  height: 100px;
  margin-bottom: 8px;
  border-radius: 10px;
  overflow: hidden;
}
.trending-tool-panel .tools-list .tool-item .tool-icon img {
  width: 240px;
  height: 100px;
  -o-object-fit: cover;
     object-fit: cover;
  background-repeat: no-repeat;
  background-size: contain;
}
.trending-tool-panel .tools-list .tool-item .tool-info {
  width: 100%;
}
.trending-tool-panel .tools-list .tool-item .tool-info h4 {
  margin-bottom: 8px;
  color: var(--dark-color, #2A2037);
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 22px;
}
.trending-tool-panel .tools-list .tool-item .tool-info p {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color, #E9E9E9);
  color: var(--paragraph-color, #797B82);
  font-family: "Red Hat Display";
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 16px;
}
.trending-tool-panel .tools-list .tool-item:last-child .tool-info p {
  border-bottom: none;
}

.trending-tool img {
  width: 50px;
  height: auto;
}

.tool-item.trending-tool span {
  margin-top: -15px;
}

.permission-container {
  font-family: "Red Hat Display";
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  bottom: 70px;
  background-color: rgba(249, 249, 249, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}
.permission-container .permission-content {
  border-radius: 16px;
  background: #F2FFFD;
  border: 1px solid #A6A7A8;
  padding: 56px;
  text-align: center;
  max-width: 501px;
  width: 100%;
}
.permission-container .permission-content figure {
  margin-bottom: 32px;
}
.permission-container .permission-content figure img {
  width: 55px;
  height: 63px;
  vertical-align: bottom;
}
.permission-container .permission-content h2 {
  font-size: 24px;
  font-weight: 600;
  color: #2A2037;
  margin-bottom: 16px;
  font-weight: 700;
}
.permission-container .permission-content p {
  font-size: 16px;
  font-weight: 400;
  color: #797B82;
  max-width: 369px;
  margin: 0 auto 32px;
  font-weight: 700;
}
.permission-container .permission-content .permissions-button {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2A2037;
  border-radius: 16px;
  border: 1px solid rgba(67, 191, 152, 0.94);
  background: rgba(67, 191, 152, 0.94);
  color: #FFFFFF;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 22px; /* 137.5% */
  text-transform: capitalize;
  width: 180px;
  height: 48px;
  cursor: pointer;
  margin: 0 auto;
}
.permission-container .permission-content .permissions-button:hover {
  background: #FFFFFF;
  color: #2A2037;
}

.privacyOptin-overlay {
  position: fixed;
  display: none;
  left: 0;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  font-family: "Red Hat Display", arial, sans-serif;
  background: #4c4c4c;
  z-index: 1000;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 0 10px;
}
.privacyOptin-overlay span.optin-close {
  position: absolute;
  right: 15px;
  top: 15px;
  cursor: pointer;
  line-height: 0;
}
.privacyOptin-overlay .optin-wrap {
  border-radius: 10px;
  max-width: 680px;
  margin: 0 auto;
  background: #fff;
  text-align: center;
  position: relative;
}
@media only screen and (max-height: 760px) {
  .privacyOptin-overlay .optin-wrap {
    max-height: 550px;
  }
}
.privacyOptin-overlay .optin-wrap p.optin-head {
  color: #000;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: capitalize;
  padding: 32px 10px 34px;
  border-bottom: 4px solid #dfebff;
}
@media only screen and (max-height: 760px) {
  .privacyOptin-overlay .optin-wrap p.optin-head {
    padding: 20px 10px;
    font-size: 30px;
  }
}
.privacyOptin-overlay .optin-wrap .p-icon-wrap {
  background: #fff;
  width: 60px;
  margin: 0 auto;
  padding: 0 10px;
  transform: translateY(-24px);
  line-height: 0;
}
@media only screen and (max-height: 760px) {
  .privacyOptin-overlay .optin-wrap .p-icon-wrap {
    width: 50px;
    transform: translateY(-21px);
  }
  .privacyOptin-overlay .optin-wrap .p-icon-wrap img {
    width: 30px;
    height: auto;
  }
}
.privacyOptin-overlay .optin-wrap .privacy-cont {
  padding: 0 31px 48px;
  text-align: left;
}
@media only screen and (max-height: 760px) {
  .privacyOptin-overlay .optin-wrap .privacy-cont {
    transform: translateY(-10px);
    padding-bottom: 20px;
  }
}
.privacyOptin-overlay .optin-wrap .privacy-cont a.optin-cta {
  width: 400px;
  height: 70px;
  border-radius: 10px;
  background: #0bbc08;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  color: #fff;
  text-align: center;
  font-size: 26px;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0 auto 15px;
  transition: all 420ms;
}
.privacyOptin-overlay .optin-wrap .privacy-cont a.optin-cta:hover {
  background: #23a321;
}
.privacyOptin-overlay .optin-wrap .privacy-cont a.optin-cta.disagree {
  background-color: #b5b5b5;
}
.privacyOptin-overlay .optin-wrap .privacy-cont a.optin-cta.disagree:hover {
  background-color: #9f9f9f;
}
.privacyOptin-overlay .optin-wrap .privacy-cont #uninstallForm {
  max-width: 570px;
  margin: 0 auto;
}
.privacyOptin-overlay .optin-wrap .privacy-cont .form-group {
  display: block;
  margin-bottom: 30px;
}
@media only screen and (max-height: 760px) {
  .privacyOptin-overlay .optin-wrap .privacy-cont .form-group {
    margin-bottom: 20px;
  }
}
.privacyOptin-overlay .optin-wrap .privacy-cont .form-group ul li {
  position: relative;
  color: #000;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  display: block;
  margin-bottom: 10px;
  text-align: center;
}
@media only screen and (max-height: 760px) {
  .privacyOptin-overlay .optin-wrap .privacy-cont .form-group ul li {
    font-size: 14px;
    margin-bottom: 3px;
  }
}
.privacyOptin-overlay .optin-wrap .privacy-cont .form-group input {
  padding: 0;
  height: initial;
  width: initial;
  margin-bottom: 0;
  display: none;
  cursor: pointer;
}
.privacyOptin-overlay .optin-wrap .privacy-cont .form-group label {
  position: relative;
  cursor: pointer;
  color: #000;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  display: block;
  margin-bottom: 10px;
  -webkit-user-select: none;
  -moz-user-select: none;
       user-select: none;
}
@media only screen and (max-height: 760px) {
  .privacyOptin-overlay .optin-wrap .privacy-cont .form-group label {
    font-size: 14px;
    margin-bottom: 3px;
  }
}
.privacyOptin-overlay .optin-wrap .privacy-cont .form-group p {
  color: #333;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}
.privacyOptin-overlay .optin-wrap .privacy-cont .form-group p.frst-para {
  margin-bottom: 12px;
}
@media only screen and (max-height: 760px) {
  .privacyOptin-overlay .optin-wrap .privacy-cont .form-group p.frst-para {
    margin-bottom: 3px;
  }
}
.privacyOptin-overlay .optin-wrap .privacy-cont .form-group label:before {
  content: "";
  -webkit-appearance: none;
  display: inline-block;
  position: relative;
  vertical-align: middle;
  cursor: pointer;
  margin-right: 30px;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  border: 1px solid #353b4a;
  background: #dfebff;
  box-shadow: 2px 2px 4px 0px rgba(0, 0, 0, 0.25);
}
@media only screen and (max-height: 760px) {
  .privacyOptin-overlay .optin-wrap .privacy-cont .form-group label:before {
    margin-right: 30px;
    width: 15px;
    height: 15px;
  }
}
.privacyOptin-overlay .optin-wrap .privacy-cont .form-group input:checked + label:after {
  content: "";
  display: block;
  position: absolute;
  top: 7px;
  left: 2.5px;
  width: 19px;
  height: 12px;
  background: url(../../../../../assets/images/extension-imgs/checked.svg) center no-repeat;
}
@media only screen and (max-height: 760px) {
  .privacyOptin-overlay .optin-wrap .privacy-cont .form-group input:checked + label:after {
    background-size: 10px auto !important;
    top: 4px;
    left: -1.5px;
  }
}
.privacyOptin-overlay .optin-wrap .privacy-cont .form-group.disabled label:before {
  box-shadow: none;
  border-radius: 4px;
  border: 1px solid #353b4a;
  opacity: 0.400000006;
  background: #d8d8d8;
}
.privacyOptin-overlay .optin-wrap .privacy-cont .form-group.disabled input:checked + label:after {
  background: url(../../../../../assets/images/extension-imgs/checkedisabled.svg) center no-repeat;
}
.privacyOptin-overlay .optin-wrap .privacy-cont .ref-desc {
  color: #5c5c5c;
  text-align: center;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 30px;
}
@media only screen and (max-height: 760px) {
  .privacyOptin-overlay .optin-wrap .privacy-cont .ref-desc {
    margin-bottom: 20px;
  }
}
.privacyOptin-overlay .optin-wrap .privacy-cont p.privacy-desc {
  color: #5c5c5c;
  text-align: center;
  font-size: 12px;
  font-family: "Red Hat Display", arial, sans-serif;
  line-height: 120%;
  max-width: 385px;
  margin: 0 auto 20px;
}
.privacyOptin-overlay .optin-wrap .privacy-cont p.privacy-desc a {
  color: inherit;
  text-decoration: underline;
}
.privacyOptin-overlay .optin-wrap .privacy-cont p.privacy-desc a:hover {
  text-decoration: none;
}
.privacyOptin-overlay .optin-wrap .privacy-cont .button-flex {
  display: flex;
  gap: 20px;
}
.privacyOptin-overlay .optin-wrap .privacy-cont p.privacy-desc {
  color: #5c5c5c;
  text-align: center;
  font-size: 12px;
  line-height: 120%;
  max-width: 385px;
  margin: 0 auto 20px;
}
.privacyOptin-overlay .optin-wrap .privacy-cont p.privacy-desc a {
  color: inherit;
  text-decoration: underline;
}
.privacyOptin-overlay .optin-wrap .privacy-cont p.privacy-desc a:hover {
  text-decoration: none;
}
.privacyOptin-overlay .optin-wrap .privacy-cont a.un-steps {
  display: block;
  color: #333;
  text-align: center;
  font-size: 12px;
  font-family: Roboto;
  line-height: 120%;
  text-decoration-line: underline;
  width: 113px;
  margin: 0 auto;
}
.privacyOptin-overlay .optin-wrap .privacy-cont a.un-steps:hover {
  text-decoration: none;
}

.optin-desc-1 {
  margin-bottom: 10px;
}

/* Simple horizontal scrolling solution for screens below 1024px */
@media only screen and (max-width: 1024px) {
  /* Set minimum width and enable horizontal scrolling */
  html, body {
    min-width: 1024px;
    overflow-x: auto;
  }
  .main-container {
    position: relative;
    min-height: 100vh;
  }
  /* Set minimum width on main container */
  body > .main-container {
    min-width: 1024px;
  }
  .hero {
    scrollbar-width: none;
  }
  /* Override fixed positioning with absolute positioning */
  .navbar,
  footer,
  .editor-container {
    position: absolute !important;
    min-width: 1024px;
    width: 100%;
  }
}
/* Firefox-specific styles */
@-moz-document url-prefix() {
  @media only screen and (max-height: 680px) {
    .upload-area, .editor-welcome-screen h1, .editor-welcome-screen .subtitle.editor-welcome-screen .subtitle {
      margin-bottom: 10px;
    }
    .upload-area {
      height: auto;
    }
    .editor-welcome-screen {
      padding: 20px;
    }
    .upload-area .wrap {
      height: 200px;
    }
  }
  @media only screen and (max-height: 588px) {
    /* Set minimum height and enable vertical scrolling */
    html, body {
      min-height: 588px;
      overflow-y: auto;
      scrollbar-width: thin;
    }
    .main-container {
      position: relative;
      min-height: 588px;
    }
    /* Override fixed positioning with absolute positioning */
    .navbar,
    footer,
    .editor-container {
      position: absolute !important;
    }
    .features-container {
      margin: 10px 0;
    }
    /* Ensure main content has minimum height */
    main,
    .hero {
      min-height: 450px;
      overflow: hidden;
      scrollbar-width: none;
    }
  }
}
/* Chrome-specific styles */
@media only screen and (-webkit-min-device-pixel-ratio: 0) and (max-height: 680px) {
  .upload-area, .editor-welcome-screen h1, .editor-welcome-screen .subtitle.editor-welcome-screen .subtitle {
    margin-bottom: 10px;
  }
  .upload-area {
    height: auto;
  }
  .editor-welcome-screen {
    padding: 20px;
  }
  .upload-area .wrap {
    height: 200px;
  }
}
@media only screen and (-webkit-min-device-pixel-ratio: 0) and (max-height: 551px) {
  /* Set minimum height and enable vertical scrolling */
  html, body {
    min-height: 550px;
    overflow-y: auto;
  }
  .main-container {
    position: relative;
    min-height: 550px;
  }
  /* Override fixed positioning with absolute positioning */
  .navbar,
  footer,
  .editor-container {
    position: absolute !important;
  }
  .features-container {
    margin: 10px 0;
  }
  /* Ensure main content has minimum height */
  main,
  .hero {
    min-height: 450px;
    overflow: hidden;
  }
}
@media only screen and (max-width: 1080px) {
  .upload-area {
    width: auto;
    max-width: 475px;
  }
  .upload-area .wrap {
    width: 100%;
  }
}/*# sourceMappingURL=style.css.map */