
.add-cart-dialog {
  width: 300px;
  display: grid;
  z-index: 1000;
  right: 0;
  top: 8em;
  width: 100%;
  height: 1px;
  justify-content: end;
  transition: all ease 0.3s;
  opacity: 0;
  transform: translateY(100px);
  pointer-events: none;
  position: sticky;
}
.add-cart-dialog.shown {

  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.add-cart-dialog-content {
  width: 30em;
  margin-right: 2em;
  background-color: rgba(var(--bs-body-bg-rgb), 1);
  border: 1px solid #ccc;
}
.add-cart-dialog-header {
  background-color: var(--bg-color-light-gray);
  border-top-left-radius: var(--bs-border-radius);
  border-top-right-radius: var(--bs-border-radius);
}
.add-cart-dialog-body {
  border-bottom-right-radius: var(--bs-border-radius);
  border-bottom-left-radius: var(--bs-border-radius);
}



.direct-modal-dialog {
  .cart-item, .item-title-wrapper {
    margin: 0;
  }
  .direct-modal-dialog-content {
    width: 100%;
    max-width: 600px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: rgba(var(--bs-body-bg-rgb), 1);
    padding: 1em;
    max-height: 90vh;
    overflow-y: auto;
  }
}
.direct-modal-dialog.shown {
  display: block;
  z-index: 1000;
  background: rgba(0,0,0,0.5);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;

}
.direct-modal-dialog {
  .modal-header {
    border-radius: 10px;
    background: var(--bg-color-light-gray);
    padding: 1em;

    .cart-item {
      align-items: center;
      .product-image {
        width: 33px;
      }
      .item-free {
        display: none;
      }
    }
  }
}

.direct-modal-dialog-header {
  margin: -1em;
  padding: 1em;
  margin-bottom: .5em;
  background-color: var(--bg-color-light-gray);
}
.direct-order-modal-top-text {
  position: relative;
  top: -.2d5em;
}

.item-title-wrapper {
  line-height: 1.3em;
  margin-bottom: .35em;
}
.order-modal-close {
  font-size: 1.3em;
  display: block;
  padding: 0em .5em;
  text-align: center;
}

@media (max-width: 767px) {
  .add-cart-dialog {
    width: calc(100vw - 2em);
    left: 1em;
    position: fixed!important;
    bottom: 3em;
    top: unset;
    height: auto;
    justify-content: center;

    .add-cart-dialog-content {
      width: 100%;
      margin: 0;
    }
  }
  .direct-modal-dialog.shown {
    align-items: flex-start;
  }
}

[data-bs-theme="dark"] .add-cart-dialog-header {
  background-color: #000;
}
[data-bs-theme="dark"] .add-cart-dialog-content {
  border-color: #777;
}


.ucg-order-handler-modal-checkout {
  input[type="submit"] {
    width: 100%;
  }
}