.giftcard-details__fifth-row {
  width: 100%;
  margin-bottom: 2em;
}

.add-audio__wrapper-div {
  width: 100%;
  display: grid;
  grid-template-columns: calc(50% - 1em) calc(50% - 1em);
  gap: 2em;
}

.selected-greeting-wrapper__block {
  position: relative;
  width: 100%;
  height: 100%;
}

.wrapped-giftcard {
  position: absolute;
  bottom: 2em;
  left: calc(50% - 150px);
}

.greetingcard-back {
  position: absolute;
  top: 25%;
  right: 50%;
  width: 153px;
  height: 200px;
  background-image: url("");
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: center center;
  filter: drop-shadow(rgba(50, 50, 0, 0.5) -2px 5px 3px);
  transform: rotate(-25deg);
}

.greetingcard-back::before {
  content: attr(data-greetingmessage);
  position: absolute;
  top: 0px;
  left: 100%;
  width: 153px;
  height: 200px;
  background-color: rgb(255, 255, 255);
  background-image: linear-gradient(
    to right,
    rgba(128, 128, 128, 0.376),
    rgb(247, 247, 247) 30%,
    rgb(255, 255, 255) 50%,
    rgb(247, 247, 247) 70%,
    rgba(128, 128, 128, 0.19)
  );
  padding: 1em;
  text-align: center;
  word-break: break-word;
  font-family: OpenSans-Light;
  font-size: 0.8rem;
  line-height: 1.3em;
  display: grid;
  -webkit-box-align: center;
  align-items: center;
}

.greetingcard-back::after {
  content: "";
  position: absolute;
  top: 0px;
  left: 0px;
  width: 153px;
  height: 200px;
  background-image: linear-gradient(
    to right,
    rgba(128, 128, 128, 0.19),
    rgba(247, 247, 247, 0.19) 30%,
    transparent 50%,
    rgba(247, 247, 247, 0.19) 70%,
    rgba(128, 128, 128, 0.376) 99%,
    rgba(45, 45, 45, 0.5) 100%
  );
}

.greeting-front-image {
  position: absolute;
  bottom: 3em;
  right: 1em;
  background: "";
  width: 153px;
  height: 200px;
  filter: drop-shadow(rgba(50, 50, 0, 0.5) -1px 5px 3px);
}

.greeting-front-image::before {
  content: "";
  position: absolute;
  top: -15px;
  left: 4px;
  width: 75%;
  height: 15px;
  clip-path: polygon(0% 100%, 100% 0%, 100% 100%);
  background-image: linear-gradient(
    to right,
    rgb(128, 128, 128),
    rgb(247, 247, 247)
  );
  filter: drop-shadow(rgba(50, 50, 0, 0.5) -1px 0px 3px);
}

.greetingcard-item {
  width: 100px;
  height: 141px;
  padding-right: 0.5em;
}

.greetingcard-item:not(:last-of-type) {
  margin-right: 0.5em;
}

.greetingcard-item img {
  width: 100px;
  height: auto;
  border-radius: 5px;
  filter: drop-shadow(rgba(50, 50, 0, 0.5) -1px 4px 3px);
}

.audio-tune-title {
  position: relative;
  height: 15px;
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAXCAYAAADk3wSdAAABcklEQVQ4jeXVPWsUURTG8d8mgYBVGisFCy1MIKYwii/FNlYGEpImn2CsJF3IZ/ALyIJgIRaClULsRAdBd5kiIS+kSZEugRhiEkhIWNFi7sIwzozrbukDh+G8zP/eO+fMTO3K8iclmsMeVnBWVhQl8R+xobJiLKCONlbRwrdw3a64T61ip6uYKMkdoBmshVaUxMf/Cm2rPtUvbElP0qgqzGoUlzCJ28HGQwxqGAu20S20jbVgL0NsEDfDAvN43Cke6BJapJ/YjJL4Fd5mE/1AS/WfQ/PdH8YD3MDlfqGDWMQSRnqF5aHP8aRfWBZ6q0fgMB69uFOfxMM8tN4F4CjnT6GBq0XFQzguSmS0g8OMX8c7aR8KNYBl/KiAPivwS4Ed6HfMYj+XO5dORCMXv1sFxEWn+59xXfqsrmEXH8KCeR2pHrv17PCf4M1fdgGv8bQk14yS+Esvr+kS3hfEP2Ka6l9EmU4xg3u4L/3qf42SuNkp+A3/PE43VjaFtwAAAABJRU5ErkJggg==");
  background-position: 15% bottom;
  background-repeat: no-repeat;
  display: none;
  background-size: 15px;
}

.audio-tune-title::before {
  content: attr(data-addedtune);
  position: absolute;
  bottom: 0px;
  left: calc(15% + 20px);
  color: var(--primary-color);
  font-family: var(--primary-semi-bold-font);
  font-size: 0.8rem;
  font-style: italic;
}

@media (max-width: 768px) {
  .add-audio__wrapper-div {
    grid-template-columns: 1fr;
  }
}

.scrollable-btns-greetingcard {
  overflow: scroll hidden;
}

:root {
  --category_width: calc(1350px + 2em + 8em);
}

.linkbtn-list {
  width: calc(3000px + 2em + 24em);
  margin: 1em 0px;
  padding: 0.25em 1em;
  display: flex;
  -webkit-box-pack: start;
  justify-content: flex-start;
}

.categories-btn {
  min-width: 100px;
  background: none;
  border: 2px solid var(--primary-color);
  border-radius: 50px;
  cursor: pointer;
  outline: none;
  padding: 0.5em;
  font-size: 1rem;
  color: var(--primary-color);
  font-family: var(--secondary-medium-font), georgia, serif;
  user-select: none;
}

.categories-btn:hover {
  color: var(--primary-color);
}

.categories-btn:not(:first-of-type) {
  margin-left: 1em;
}

.categories-btn.active {
  background: var(--primary-color);
  box-shadow: inset 0 0 1px 1px var(--primary-color);
  color: #fff;
  outline: none;
}

/* Audio icon & scroll list */

.scrollbar {
  max-height: 150px;
  overflow-y: scroll;
  scrollbar-width: thin;
  scrollbar-color: #8a8a8a95 #cccccc90;
}

.scrollbar.long-height {
  max-height: 300px;
  overflow-y: scroll;
  scrollbar-width: thin;
  scrollbar-color: #8a8a8a95 #cccccc90;
}

.scrollbar::-webkit-scrollbar {
  width: 0.3em;
  height: 0;
}

.scrollbar::-webkit-scrollbar-track {
  background-color: #cccccc90;
  opacity: 0.5;
  /*border-radius: 3px;*/
}

.scrollbar::-webkit-scrollbar-thumb {
  background-color: #8a8a8a95;
  /*opacity: 0.9;*/
  border-radius: 3px;
}

.scrollbar:hover {
  background: white;
}

.scrollbar {
  box-shadow: rgb(128 128 128 / 50%) 2px 2px 5px 0px inset;
}

.audio-tunes-list {
  max-height: 200px;
}

.audio-tunes-list-scrollbar__div {
  display: grid;
  grid-template-rows: repeat(auto-fit, minmax(30px, 30px));
  gap: 0.5em;
  padding: 1em;
  font-size: 0.8rem !important;
}

.audio-tunes-list__item {
  display: grid;
  grid-template-columns: 50px 30px 1fr;
  -webkit-box-align: center;
  align-items: center;
  height: 30px;
}

.audio-tunes-list__item p {
  font-size: 0.8rem !important;
}

.audio-tunes-list__switch-btn {
  background: #1eb0c230;
  border: 1px solid var(--primary-color);
  border-left: none;
  border-radius: 25px;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 18px;
  width: 35px;
}

.audio-tunes-switch-handle {
  background: #eafdff;
  border: 1px solid var(--primary-color);
  border-radius: 25px;
  grid-column: 1;
  height: 100%;
  width: 17px;
}

.audio-tunes-list__description {
  width: 95%;
  height: 95%;
  border-radius: 25px;
  border: 2px solid var(--primary-color);
}

.audio-tunes-list__title {
  padding-left: 0.3em;
}

.audio-tunes-list__play_div {
  display: grid;
  grid-template-columns: repeat(2, auto);
  cursor: pointer;
  margin-left: 0.6em;
  margin-top: 0.4em;
}

.audio-tunes-list__play_div .play-triangle {
  background: var(--primary-color);
  height: 15px;
  transition: all 0.1s ease-in;
}

.audio-tunes-list__play_div .play-triangle-secondary {
  background: var(--primary-color);
  height: 15px;
  transition: all 0.1s ease-in;
}

.audio-tunes-list__switch-btn.active {
  background: var(--primary-color);
}

.audio-tunes-switch-handle.active {
  border: none;
  grid-column: 2;
}
