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

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

.add-greeting__right-col {
  height: 100%;
}

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

.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;
  white-space: pre-line;
}

.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);
}

.greeting-message__textbox {
  position: relative;
}
.msg-textarea {
  border: 2px solid var(--primary-color);
  width: 100%;
  min-height: 100px;
  padding: 10px;
  resize: none;
}
.msg-textarea::after {
  content: "Max 250 characters";
  position: absolute;
  bottom: 0.5em;
  right: 0.5em;
  font-size: 0.8rem;
  color: rgba(128, 128, 128, 0.5);
}

.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);
}

@media (max-width: 768px) {
  .add-greeting__wrapper-div {
    grid-template-columns: 1fr;
  }
  .add-greeting__right-col {
    height: 250px;
  }
}

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

.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;
}

#remaining_char {
  float: right;
  font-family: var(--primary-font);
  font-size: 0.75rem;
  margin-bottom: 1rem;
}

/* Scrollbar for occasions list */
.occasions-list-scrollbar {
  max-height: 225px;
  overflow-y: scroll;
  scrollbar-width: thin;
}
.occasions-list-scrollbar::-webkit-scrollbar {
  width: 0.2rem;
}

.occasions-list-scrollbar::-webkit-scrollbar-track {
  background-color: #cccccc90;
  opacity: 0.5;
}
.occasions-list-scrollbar::-webkit-scrollbar-thumb {
  background-color: #8a8a8a95;
  border-radius: 2px;
}

.dropbtn {
  width: 200px;
  height: 35px;
}

/* Sweet alert box custom css Start*/
.swal2-title {
  font-family: var(--secondary-bold-font), georgia, serif !important;
  color: var(--grey-color) !important;
}

.swal2-html-container {
  margin: 1em 1em 1em !important;
  max-height: 300px;
  overflow-y: scroll;
  word-break: break-word;
}

.swal2-html-container::-webkit-scrollbar {
  width: 0.4rem;
  height: 0;
  right: 0.25rem;
}

.swal2-html-container::-webkit-scrollbar-track {
  background-color: #e5e4e2;
  opacity: 0.5;
  border-radius: 3px;
  background: #e5e4e2;
  border: solid 2px #e5e4e2;
}

.swal2-html-container::-webkit-scrollbar-thumb {
  background-color: #c0c0c0;
  border-radius: 3px;
}

.swal2-modal pre {
  white-space: pre-wrap; /* Since CSS 2.1 */
  white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
  word-wrap: break-word; /* Internet Explorer 5.5+ */
  padding: 0 3px;
}

/* Sweet alert box custom css Stop*/

.greeting-view-more-link {
  transform: rotate(-25deg);
  position: absolute;
  left: calc(100% - 85px);
  top: -60px;
  font-size: 0.8rem;
  color: var(--primary-color) !important;
}
