:root {
  --btn-hover-bg-color: #edf0f2;
  --fs-header: 1rem;
}

/* modal media */

.modal-media .modal-title {
  font-size: 1rem;
}

.modal-media .header-wrapper {
  padding: 1rem 1rem 0 1rem;
}

.modal-media #all {
  overflow: hidden;
}

.modal-media .right {
  min-height: 0;
  flex: 1;
}

.modal-media .action-end {
  position: absolute;
  right: 0;
  bottom: 0;
}

.custom-col button:hover {
  background-color: var(--btn-hover-bg-color) !important;
}

.content-group:hover {
  background-color: #f3f6f9;
}

.modal-media .modal-dialog {
  height: 80%;
  max-height: 80%;
}

.modal-media .modal-content {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card-gallery {
  height: 90%;
}

.card-gallery .tab-content {
  height: 95%;
}

.modal-media .modal-body {
  flex: 1 1 auto;
  height: calc(calc(100% - 250px) - 250px);
}

.modal-media #all {
  height: 90%;
}

#gallery-image-container,
#gallery-video-container {
  max-height: 100%;
  /* Adjust the height as needed */
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gallery-image,
.gallery-video {
  position: relative;
  width: 100px;
  height: 150px;
  margin: 5px;
  cursor: pointer;
  transition: transform 0.3s;
}

.gallery-image .name,
.gallery-video .name {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  display: block;
}

.gallery-image .info,
.gallery-video .info {
  position: absolute;
  bottom: 0;
  width: 100%;
}

.gallery-image img,
.gallery-video img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 5px;
}

.gallery-image:hover,
.gallery-video:hover {
  transform: scale(1.1);
}

.gallery-image.selected,
.gallery-video.selected {
  border: 3px solid #007bff;
  opacity: 0.8;
  overflow: hidden;
}

.content-group:hover {
  background-color: #f3f6f9;
}

.gallery-menu .nav-link.active {
  background-color: rgba(225, 237, 247, 1) !important;
  color: rgba(10, 120, 190, 1) !important;
}

.gallery-menu .nav-link.active:hover {
  background-color: rgb(132 169 199) !important;
}

.card-gallery .nav-item:hover {
  background-color: #f2f2f2;
}

.gallery-menu .nav-link i {
  color: #1c1e21 !important;
}

.gallery-left-panel {
  background-color: #eeeef7;
}

.step-item:hover {
  background-color: #f2f2f2;
  cursor: pointer;
}

.ad-set-inputs .choices {
  width: 100%;
}

#draggable-list .list-group-item.dragging {
  opacity: 0.5;
}

#draggable-list .list-group-item:hover {
  background-color: #e6e6e6;
}

.drag-icon {
  margin-right: 2px;
  cursor: move;
  cursor: grab;
  cursor: -moz-grab;
  cursor: -webkit-grab;
}

.drag-icon:active {
  cursor: grabbing;
  cursor: -moz-grabbing;
  cursor: -webkit-grabbing;
}

.drag-icon::before {
  content: url(/static/images/ads/drag.png);
}

#draggable-list .header-btn .headline {
  font-size: larger;
}

#draggable-list .header-btn img {
  height: 48px;
  width: 48px;
  object-fit: contain;
}

#draggable-list .collapse .content {
  width: 100%;
}

#draggable-list .collapse .close {
  width: 36px;
  height: 36px;
  position: absolute;
  top: 5px;
  right: 5px;
  display: flex;
  justify-content: center;
  align-items: center;

  i {
    font-size: 1.375rem;
  }
}

#draggable-list .collapse .close:hover {
  background-color: #e8eaeb;
}

.header-btn .description {
}

#draggable-list .collapse .title {
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  max-width: 200px;
}

#draggable-list .collapse .size {
}

.remove-carousel-btn {
  width: max-content;
}

#addCustomParameterBtn:hover,
.delete-row-btn:hover {
  background-color: #edf0f2;
}

.pixel-element {
  color: #737373;
}

.pixel-element .active {
  height: 8px;
  width: 8px;
}

button.form-control:hover {
  background-color: #eef0f3;
}

/* ad-set item */
.choices__list.choices__list--dropdown {
  padding: 0.8em 1.5em;
}

.choices__list.choices__list--dropdown .adset-item {
  display: flex;
  flex-direction: column;
  padding: 0.3em 0.8em;
  margin-bottom: 0.7em;
  border-radius: var(--vz-border-radius-sm);
}

.choices__list.choices__list--dropdown .adset-item:hover {
  background-color: rgba(24, 87, 212, 0.0666666667);
  color: var(--primary-500);
}

.choices__list.choices__list--dropdown .adset-item:hover h5,
.choices__list.choices__list--dropdown .adset-item:hover li,
.choices__list.choices__list--dropdown .adset-item:hover label,
.choices__list.choices__list--dropdown .adset-item:hover span {
  color: var(--primary-500);
}

.choices__list.choices__list--dropdown .adset-item h5 {
  margin-bottom: 0;
}

.choices__list.choices__list--dropdown .adset-item ul {
  display: inline-flex;
  gap: 1.5em;
  padding: 0;
  margin: 0;
}

.choices__list.choices__list--dropdown .adset-item ul li {
  display: list-item;
  font-size: 0.8em;
  list-style-type: disc;
  text-transform: capitalize;
}

.choices__list.choices__list--dropdown .adset-item ul li:first-child {
  display: inline-block;
}

.sidebar-offcanvas-blk .nav-item {
  width: 100%;
}

.sidebar-offcanvas-blk .nav-item-blk .icon {
  padding: 4px;
  width: 20px;
}

.sidebar-offcanvas-blk .nav-item-blk .btn-group {
  width: 40px;
}

.sidebar-offcanvas-blk .nav-item-blk .nav-link {
  /* padding: 0.25rem 0.5rem; */
  width: calc(100% - 20px -40px);
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  display: block;
}

.sidebar-offcanvas-blk .nav-item-blk .icon.level-2 {
  padding-left: 2rem;
  margin-right: 0.5rem;
}

.sidebar-offcanvas-blk .nav-item-blk .icon.level-3 {
  padding-left: 3rem;
  margin-right: 0.5rem;
}

#ad-offcanvas-form .breadcrumb .breadcrumb-item {
  width: 33.33%;
  white-space: nowrap;
  overflow: hidden;
  display: block;
}

.status-indicator span:nth-of-type(1) {
  display: inline-block;
  white-space: nowrap;
}

#ad-offcanvas-form .select2-container {
  width: 100% !important;
}

#modal-creative-posts .search-container {
  display: flex;
  flex-direction: row;
  gap: 0.5em;
  width: 100%;
}

#modal-creative-posts .search-container .search-control {
  flex: 1;
  min-width: 12em;
  position: relative;
}

#modal-creative-posts .search-container .search-control i {
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto;
  height: fit-content;
  left: 0.7em;
}

#modal-creative-posts .search-container .search-control input {
  padding-left: 2.5em;
}

#modal-creative-posts .search-container button {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

#modal-creative-posts #post-container {
  height: 100%;
  padding-bottom: 100px;
}

#modal-creative-posts .table-wrapper {
  width: 100%;
  max-height: 100%;
  overflow-y: auto;
}

#modal-creative-posts .table thead th {
  position: sticky;
  top: -3px;
  background: #f8f9fa;
  z-index: 1;
}

#modal-creative-posts .post-row {
  cursor: pointer;
}

#modal-creative-posts #all {
  height: 100% !important;
}

#modal-creative-posts #previewSection {
  /* position: absolute;
    bottom: 36px;
    width: 93%; */
  position: sticky;
  width: 100%;
  height: 80px;
  padding: 10px;
  bottom: 0;
}

#modal-creative-posts .post-row.selected {
  background-color: #f5f6f7;
}

#modal-creative-posts .preview {
  padding: 10px;
  border-top: 1px solid #ccc;
  background-color: #fff;
}

#modal-creative-posts .preview img {
  height: auto;
  width: 10%;
  object-fit: contain;
}

#modal-creative-posts .content-wrapper {
  width: 90%;
}

#modal-creative-posts .content {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden !important;
  text-overflow: ellipsis;
}

.post-selected {
  max-width: 300px;
}

.post-selected .content-wrapper {
  width: 100%;
}

.post-selected .content {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden !important;
  text-overflow: ellipsis;
}

.post-selected img {
  height: 20vh;
  width: auto;
  max-width:300px;
  margin: auto;
}

.post-selected .content {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden !important;
  text-overflow: ellipsis;
}

#modal-creative-posts .card-gallery .gallery-menu {
  height: 5%;
}

#modal-creative-posts .card-gallery .tab-content {
  height: 95%;
}

.detail-data-blk .detail-data-content .detail-data {
  flex: 1 0 65%;
}

.offcanvas-expanded {
  width: 100vw;
  transition: width 0.3s ease-in-out;
  overflow: hidden;
}

.offcanvas-expanded .ri-arrow-left-circle-fill:before {
  content: "\ea67";
}

.offcanvas-collapsed {
  width: 85vw;
  transition: width 0.3s ease-in-out;
  overflow: hidden;
}

.preview-container .item {
  width: 320px;
  height: 500px;
  background-color: #f1f1f1;
  padding: 8px;
  border-radius: 6px;
}

.preview-container .item iframe {
  transform-origin: center center;
  width: 100%;
  height: 100%;
  align-self: center;
}

.fixed-overview-blk {
  overflow: scroll;
}

.list-group-numbered {
  .list-group-item-numbered {
    &::before {
      content: counters(section, ".") ". ";
      counter-increment: section;
    }
  }
}

/* message-template-modal */
#message-template-modal .modal-header {
  border-bottom: 1px solid #000;
  padding-bottom: 15px;
  -webkit-box-shadow: 0 1px 2px rgba(56, 65, 74, 0.15);
  box-shadow: 0 1px 2px rgba(56, 65, 74, 0.15);
  border-bottom: 1px solid var(--vz-header-border);
}

#message-template-modal .modal-body {
  padding-bottom: 0;
}

.message-template-modal__content {
  display: flex;
}

.message-template-modal__right-column {
  width: 55%;
  background-color: var(--vz-body-bg);
}

.message-template-modal__left-column {
  flex: 1 1 auto;
  border-right: 1px solid var(--vz-input-border);
  padding-right: var(--vz-modal-padding);
}

.message-template-modal__section + .message-template-modal__section {
  margin-top: 15px;
}

.message-template-modal__section {
  border-bottom: 1px solid var(--vz-input-border);
  padding-bottom: 20px;
}

.message-template-modal__section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.message-template-modal__faq-item,
.message-template-modal__quick-replies-item,
.message-template-modal__buttons-item {
  border: 1px solid var(--vz-modal-border-color);
  border-radius: 5px;
  padding: 15px;
}

.message-template-modal__faq-item + .message-template-modal__faq-item,
.message-template-modal__quick-replies-item + .message-template-modal__quick-replies-item,
.message-template-modal__buttons-item + .message-template-modal__buttons-item {
  margin-top: 15px;
}

.form-check-input.message-template-modal__save-template-section-checkbox {
  font-size: inherit;
}

.message-template-modal__sticky-block {
  position: sticky;
  top: 0;
}

.message-template-modal__preview {
  border: 1px solid var(--vz-modal-border-color);
  border-radius: 15px 15px 5px 5px;
  background: #fff;
  margin: 15px;
}

.message-template-modal__preview-header {
  border-bottom: 1px solid var(--vz-modal-border-color);
  padding-top: 15px;
  padding-bottom: 15px;
  text-align: center;
}

.message-template-modal__preview-center-line {
  background: var(--vz-modal-border-color);
  height: 3px;
  width: 40px;
  display: table;
  margin: 0 auto 10px auto;
  border: 25px;
}

.message-template-modal__preview-greeting {
  display: flex;
  gap: 10px;
  padding: 10px;
  align-items: end;
}

.message-template-modal__preview-greeting-text {
  word-wrap: break-word;
  word-break: break-word;
  padding: 10px;
}

.message-template-modal__preview-faqs-list,
.message-template-modal__preview-quick-replies-list {
  padding: 10px;
}

.message-template-modal__preview-footer {
  display: flex;
  gap: 10px;
  padding: 12px 15px;
  justify-content: center;
  align-items: center;
}

.message-template-modal__preview-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.message-template-modal__preview-item + .message-template-modal__preview-item {
  margin-top: 20px;
}

.message-template-modal__preview-footer-user-avatar {
  background: var(--vz-modal-border-color);
  border-radius: 35px;
  padding: 5px 10px;
}

.message-template-modal__preview-footer-user-avatar i.ri-user-line.fs-22 {
  color: #616871;
}

.message-template-modal__preview-footer-write-message {
  flex: 1 1 auto;
}

.message-template-modal__preview-footer-write-message div {
  border-radius: 35px;
}

.message-template-modal__preview-footer .bx {
  font-size: 25px;
  color: rgb(0, 153, 255);
}

.message-template-modal_preview-guideline {
  text-align: center;
  color: rgba(0, 0, 0, 0.5);
}

.messenger-preview .message-template-modal__preview-footer-write-message {
  border: 1px solid #dee2e6;
  border-radius: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.25rem 0.5rem 0.25rem 0.75rem;
  background-color: rgba(0, 0, 0, 0.065);
}

.messenger-preview .message-template-modal__preview {
  position: relative;
  min-height: 600px;
  max-height: 800px;
}

.messenger-preview .message-template-modal__preview-header {
  text-align: unset;
  margin-left: 1rem;
  border-bottom: none;
}

.messenger-preview .message-template-modal__preview-body {
  height: 450px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.messenger-preview .message-template-modal__preview-body > :first-child {
  margin-top: auto;
}

.messenger-preview.message-template-modal__preview-header {
  position: sticky;
  top: 0;
}

.messenger-preview .message-template-modal__preview-footer {
  position: absolute;
  width: 100%;
  bottom: 0;
}

.messenger-preview .message-template-modal__preview-page-status {
  right: -20%;
  bottom: -20%;
}

.messenger-preview .message-template-modal__preview-message {
  border-radius: 15px;
  border-bottom-left-radius: 0px;
  background: #f1f0f0;
  width: fit-content;
  min-width: 5rem;
  min-height: 1.875rem;
}

.messenger-preview .message-template-modal__preview-message.message-template-modal__preview-greeting-media {
  border-radius: 15px;
  width: 55%;
  height: auto;
  padding: 0;
  overflow: hidden;
}

.messenger-preview .message-template-modal__preview-message img {
  /* object-position: center;
  object-fit: cover; */
  height: auto;
  width: 100%;
}

.messenger-preview .message-template-modal__preview-faqs-item,
.messenger-preview .message-template-modal__preview-quick-replies-item {
  margin: 0 auto;
  text-align: center;
  border-radius: 25px;
}

.messenger-preview .message-template-modal__preview-buttons-item {
  margin: 0em 0.5em 1.25em 0.5em;
  padding: 0.5em 0.25em;
  border-radius: 5px;
  text-align: center;
  background-color: #f8f8f8;
  font-weight: bold;
}

.messenger-preview .message-template-modal__preview-faqs-item {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  background-color: var(--bs-body-bg, #fff);
  border-radius: 25px;
  padding: 0.4rem 0.75rem;
}

.messenger-preview .message-template-modal__preview-faqs-item span {
  color: var(--primary-500, #1858d4);
}

.messenger-preview .message-template-modal__preview-quick-replies-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  overflow: hidden;
}

.messenger-preview .message-template-modal__preview-quick-replies-list-wrapper {
  overflow-x: auto;
  scroll-behavior: smooth;
  white-space: nowrap;
  display: flex;
  width: 100%;
  scrollbar-width: none;
  max-width: 20rem;
}

.messenger-preview .message-template-modal__preview-quick-replies-list {
  display: flex;
  gap: 10px;
}

.messenger-preview .message-template-modal__preview-quick-replies-item {
  flex: 0 0 auto;
  min-width: 150px;
  background-color: var(--bs-body-bg, #fff);
  padding: 0.4rem 0.75rem;
  box-shadow: 0.125rem 0.14rem var(--neutral-600, #d6d6d6);
}

.messenger-preview .scroll-button {
  position: absolute;
  padding: 10px;
  cursor: pointer;
}

.messenger-preview .scroll-button.left {
  left: 0;
}

.messenger-preview .scroll-button.right {
  right: 0;
}

.square-box {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.instagram-preview .message-template-modal__preview-greeting {
  align-items: center;
}

.instagram-preview .message-template-modal__preview {
  max-height: 550px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
