.quotes {
  background-color: #ffffff;
  display: flex;
  flex-direction: row;
  justify-content: center;
  width: 100%;
}

.quotes .div {
  background-color: #ffffff;
  overflow: hidden;
  width: 375px;
  height: 812px;
  position: relative;
}

.quotes .overlap {
  position: absolute;
  width: 375px;
  height: 90px;
  top: 0;
  left: 0;
  background-color: #47e4c9;
}

.quotes .frame {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  position: absolute;
  top: 0;
  left: 0;
}

.quotes .rectangle {
  position: relative;
  width: 375px;
  height: 40px;
}

.quotes .group {
  position: absolute;
  width: 345px;
  height: 20px;
  top: 10px;
  left: 16px;
}


.quotes .overlap-group {
  position: absolute;
  width: 19px;
  height: 10px;
  top: 0;
  left: 0;
  border-radius: 2.67px;
  border: 1px solid;
  border-color: #222222;
}

.quotes .capacity {
  position: relative;
  width: 16px;
  height: 7px;
  top: 1px;
  left: 1px;
  background-color: #222222;
  border-radius: 1.33px;
}

.quotes .cap {
  position: absolute;
  width: 1px;
  height: 4px;
  top: 4px;
  left: 20px;
}
.quotes .img {
  position: absolute;
  width: 14px;
  height: 10px;
  top: 1px;
  left: 2px;
}


.quotes .group-2 {
  position: absolute;
  width: 341px;
  height: 27px;
  top: 50px;
  left: 18px;
}

.quotes .text-wrapper {
  position: absolute;
  top: 0;
  left: 36px;
  font-family: "Poppins", Helvetica;
  font-weight: 700;
  color: #ffffff;
  font-size: 18px;
  letter-spacing: 0;
  line-height: normal;
}

.quotes .overlap-group-wrapper {
  position: absolute;
  width: 24px;
  height: 24px;
  top: 2px;
  left: 0;
}

.quotes .overlap-group-2 {
  position: relative;
  height: 24px;
  border-radius: 12px;
}

.quotes .ellipse {
  position: absolute;
  width: 24px;
  height: 24px;
  top: 0;
  left: 0;
  background-color: #ffffff4c;
  border-radius: 12px;
  transform: rotate(-90deg);
  backdrop-filter: blur(2px) brightness(100%);
  -webkit-backdrop-filter: blur(2px) brightness(100%);
}

.quotes .ic-round-navigate-wrapper {
  position: absolute;
  width: 17px;
  height: 17px;
  top: 3px;
  left: 3px;
  transform: rotate(180deg);
}

.quotes .ic-round-navigate {
  position: absolute;
  width: 17px;
  height: 17px;
  top: 0;
  left: 0;
  transform: rotate(-180deg);
}

.quotes .group-3 {
  position: absolute;
  width: 24px;
  height: 24px;
  top: 1px;
  left: 315px;
  background-size: 100% 100%;
}

.quotes .group-4 {
  position: absolute;
  width: 24px;
  height: 24px;
  top: 1px;
  left: 271px;
  background-size: 100% 100%;
}

.quotes .overlap-2 {
  position: absolute;
  width: 652px;
  height: 540px;
  top: 120px;
  left: -289px;
}

.quotes .overlap-wrapper {
  position: absolute;
  width: 329px;
  height: 540px;
  top: 0;
  left: 313px;
}

.quotes .div-wrapper {
  position: relative;
  width: 375px;
  height: 590px;
  top: -15px;
  left: -24px;
  background-size: 100% 100%;
}

.quotes .p {
  position: absolute;
  width: 155px;
  top: 204px;
  left: 110px;
  font-family: "Poppins", Helvetica;
  font-weight: 600;
  color: #ffffff;
  font-size: 16px;
  text-align: center;
  letter-spacing: 0;
  line-height: normal;
}

.quotes .group-5 {
  position: absolute;
  width: 301px;
  height: 494px;
  top: 23px;
  left: 0;
}

.quotes .image {
  left: 289px;
  position: absolute;
  width: 33px;
  height: 540px;
  top: -14px;
  object-fit: cover;
}

.quotes .text-wrapper-2 {
  position: absolute;
  width: 142px;
  top: 173px;
  left: 79px;
  font-family: "Poppins", Helvetica;
  font-weight: 600;
  color: #ffffff;
  font-size: 14.6px;
  text-align: center;
  letter-spacing: 0;
  line-height: normal;
}

.quotes .group-wrapper {
  position: absolute;
  width: 24px;
  height: 24px;
  top: 258px;
  left: 628px;
  background-color: #ffffff;
  border-radius: 12px;
  transform: rotate(-90deg);
  backdrop-filter: blur(2px) brightness(100%);
  -webkit-backdrop-filter: blur(2px) brightness(100%);
}

.quotes .img-wrapper {
  position: relative;
  width: 17px;
  height: 17px;
  top: 3px;
  left: 3px;
  transform: rotate(90deg);
}

.quotes .ic-round-navigate-2 {
  position: absolute;
  width: 17px;
  height: 17px;
  top: 0;
  left: 0;
  transform: rotate(-90deg);
}

.quotes .group-6 {
  position: absolute;
  width: 24px;
  height: 24px;
  top: 258px;
  left: 301px;
  background-color: #ffffff;
  border-radius: 12px;
  transform: rotate(-90deg);
  backdrop-filter: blur(2px) brightness(100%);
  -webkit-backdrop-filter: blur(2px) brightness(100%);
}

.quotes .group-7 {
  position: absolute;
  width: 301px;
  height: 494px;
  top: 143px;
  left: 365px;
}

.quotes .image-2 {
  left: -23px;
  position: absolute;
  width: 33px;
  height: 540px;
  top: -14px;
  object-fit: cover;
}

.quotes .group-8 {
  position: absolute;
  width: 63px;
  height: 87px;
  top: 692px;
  left: 115px;
}

.quotes .group-9 {
  position: absolute;
  width: 61px;
  height: 60px;
  top: 0;
  left: 0;
  background-color: #ffffff;
  border-radius: 11.43px;
  box-shadow: 0px 0px 17.14px #0000001a;
}

.quotes .group-10 {
  position: relative;
  width: 34px;
  height: 34px;
  top: 13px;
  left: 14px;
  background-size: 100% 100%;
}

.quotes .text-wrapper-3 {
  position: absolute;
  top: 72px;
  left: 5px;
  font-family: "Poppins", Helvetica;
  font-weight: 400;
  color: #47e3cb;
  font-size: 10px;
  text-align: center;
  letter-spacing: 0;
  line-height: normal;
}

.quotes .group-11 {
  position: absolute;
  width: 63px;
  height: 87px;
  top: 692px;
  left: 199px;
}

.quotes .group-12 {
  position: relative;
  width: 34px;
  height: 34px;
  top: 13px;
  left: 14px;
  background-size: 100% 100%;
}
/* Inject original CSS here */

/* Additional styles for refactored HTML */
.quotes-container {
  position: relative;
  width: 375px;
  height: 812px;
  overflow: hidden;
}

.nav-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-button.back {
  width: 24px;
  height: 24px;
  background-color: #ffffff4c;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-button.refresh,
.nav-button.capture {
  width: 24px;
  height: 24px;
  background-size: contain;
}


.quotes-carousel {
  position: relative;
  height: 540px;
  margin-top: 20px;
}

.quote-slide {
  position: absolute;
  width: 100%;
  height: 100%;
}

.quote-slide.current {
  left: 0;
}

.quote-slide.previous {
  left: -95%;
}

.quote-slide.next {
  left: 96%;
}

/* .quote-background {
  width: 100%;
  height: 100%;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
} */
.quote-background {
  width: 87%;
  height: 100%;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 16px;
  margin-left: 25px;
  box-shadow: 4px 7px 9px 8px rgba(0, 0, 0, 0.1);
}
.quote-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.quote-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 155px;
  text-align: center;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background-color: #ffffff;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-button.prev {
  left: 10px;
}

.carousel-button.next {
  right: 10px;
}

.action-buttons {
  position: absolute;
  bottom: 138px;
  left: 51%;
  transform: translateX(-50%);
  display: flex;
  gap: 26px;
  
}

.action-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
}


.edit-icon {
  background-image: url("img/Frame.svg");
  width: 34px;
  height: 34px;
  background-size: contain;
}

.download-icon {
  background-image: url("img/download-square-svgrepo-com.svg");
  width: 34px;
  height: 34px;
  background-size: contain;
}

.button-text {
  margin-top: 12px;
  font-family: "Poppins", Helvetica;
  font-weight: 400;
  color: #47e3cb;
  font-size: 10px;
}
/* Save confirmation */
.save-confirmation {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  z-index: 1000;
  text-align: center;
  display: none;
}

.save-confirmation.show {
  display: block;
}

.save-confirmation p {
  font-family: "Poppins", sans-serif;
  margin-bottom: 16px;
  font-weight: 500;
}

.save-confirmation button {
  padding: 8px 16px;
  background-color: #62e1ca;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}
.save-confirmation p {
    margin-bottom: 16px;
    font-weight: 500;
}
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: none;
}

.overlay.show {
  display: block;
}
.copy-notification {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #62e1ca;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.copy-notification.show {
  opacity: 1;
}
.copy-icon {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%2362e1ca"><path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  width: 20px;
  height: 20px;
  display: inline-block;
  margin-top: 6px;
}