#module-inglotfreedom-compose #content-wrapper {
  padding: 0;
}

#freedom-system-pallets .freedom-list {
  display: flex;
  flex-wrap: wrap;
  background-color: #f0f0f0;
}

#freedom-system-products .freedom-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background-color: #f0f0f0;
}

#freedom-system-pallets,
#freedom-system-products {
  width: 20%;
  background-color: #f0f0f0;
  border: 1px solid #e5e5e5;
}

#freedom-system-pallets .product {
  width: 50%;
  border-left: 1px solid #e5e5e5;
  position: relative;
  height: fit-content;
  border-bottom: 1px solid #e5e5e5;
  cursor: pointer;
}

#freedom-system-products .product {
  width: 100%;
  border-right: 1px solid #e5e5e5;
  position: relative;
  height: fit-content;
  border-bottom: 1px solid #e5e5e5;
}

.product-tab>.product-name {
  border-bottom: 1px solid #e5e5e5;
}

#freedom-system-pallets .product img,
#freedom-system-products .product img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;

}

#freedom-system-pallets .product .product-name h2,
#freedom-system-products .product .product-name h2 {
  font-size:9px;
  font-weight: 400;
  color: #616161;
  position: absolute;
  left: 15px;
  bottom: 12px;
  padding: 0;
}
#freedom-system-products .product .product-name h2{
  font-size: 9px;
}
#freedom-system-minicart {
  width: 20%;
}

#freedom-system-compose {
  width: 40%;
  background-color: #f0f0f0;
  display: flex;
  height: 100%;
  flex-direction: column;

}

#freedom-system-compose .freedom-palette {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 30%;
}

.freedom-system {
  margin-top: 38px;
  width: 100%;
  display: flex;
  background: #f0f0f0;
}

#freedom-system-compose img {
  position: initial;
  width: 100%;
  overflow: visible;
}
#freedom-system-compose .freedom-product-slot[data-size='2'] img{
  transform: rotate(90deg);
} 
.freedom-header h2 {
  font-size: 12px;
  padding: 25px 29px;
  font-weight: 500;
  color: #000;
}

.freedom-header {
  background-color: #fff;
}

.freedom-system h3,
.freedom-system h2 {
  font-size: 12px;
  padding: 20px 30px;
  color: #000;
  margin: 0;
}

#freedom-system-compose .freedom-header {
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
}

#freedom-system-pallets,
#freedom-system-products,
#freedom-system-minicart,
#freedom-system-compose {
  overflow: auto;
  height: calc(100vh - 102px);
}

.freedom-palette {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.freedom-image-wrapper {
  display: block;
  padding: 0;
  height: fit-content;
}

.freedom-grid {
  box-sizing: border-box;
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(var(--cols), 1fr);
  grid-template-rows: repeat(var(--rows), 1fr);
  gap: 4px;
  z-index: 2;
  width: 100%;
  height: 100%;
}

.freedom-slot.drag-hover {
  background-color: #d0f0ff;
}

.freedom-slot {
  position: relative;
  border: 1px dashed rgba(0, 0, 0, 0.3);
  background-color: rgba(255, 255, 255, 0.05);
}

.freedom-slot.drag-active {
  border: 1px dashed #777;
  border-radius: 10px;
}

.product.grab {
  cursor: grab;
}

.product.grab:active {
  cursor: grabbing;
}

div#freedom-system-minicart {
  border: 1px solid #e5e5e5;
  border-left: none;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: visible;
}

#freedom-system-minicart .freedom-header {
  border-bottom: 1px solid #e5e5e5;
  position: relative;
}

.freedom-cart-body {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  height: 100%;
}

.cart-item {
  border-bottom: 1px solid #ddd;
  padding: 20px 30px;
}

.cart-item button {
  background-color: transparent;
  color: #616161;
  border: none;
  padding: 0;
  margin-top: 5px;
  font-size: 9px;
  cursor: pointer;
  width: 100%;
  text-align: right;
  text-underline-offset: 4px;
}

.cart-item button:hover{
  text-decoration: underline;
}

.freedom-cart-name {
  font-size: 12px;
  width: 70%;
  float: left;
}

.freedom-cart-price {
  font-size: 12px;
  color: #616161;
  float: left;
  width: 30%;
  text-align: right;
}

.freedom-slot.preview-highlight {
  background-color: rgba(200, 200, 200, 0.2);
  border-color: #f0f0f0;
}

.freedom-product-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #ccc;
  height: auto;
  border-radius: 10px;
}

#freedom-system-products .product-tab {
  position: relative;
  display: none;
}

.product.added {
  position: relative;
}

.count-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  background: #e5e5e5;
  color: black;
  border-radius: 50%;
  font-size: 11px;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;

}

.freedom-product-slot.hovered-slot {
  box-shadow: 0px 0px 8px 0px #e5e5e5;
  border-radius: 4px;
}

.exit-freedom {
  display: none;
}

button#freedom-system-buy {
  background: #000;
  color: #fff;
  padding: 16px;
  font-size: 12px;
  position: sticky;
  width: 100%;
  bottom: 0;
}

button#freedom-system-buy:hover {
  background: #202020;

}

#freedom-system-products .product-tab .product-arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

#freedom-system-products .product-tab .product-arrow::after {
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M5 5.63477L5.31479 5.33652L10 0.874547L9.37043 0.134767L5 4.29849L0.629576 0.134766L0 0.874547L4.68521 5.33652L5 5.63477Z' fill='black'/></svg>") no-repeat center;
  width: 10px;
  background-size: 10px 10px;
  height: 10px;
  content: "";
  display: block;
}

#freedom-system-products .product-tab .product-arrow.rotated {
  transform: rotate(180deg);
}

#freedom-system-products .product-tab .freedom-list {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.product-arrow {
  position: absolute;
  right: 30px;
  top: 22px;
  font-size: 12px;
}

#freedom-system-products .product-tab.expanded .freedom-list {
  overflow: visible;
  max-height: initial;
}

.freedom-grid.circle-mode .freedom-slot {
  border-radius: 50%;
  overflow: hidden;
}

.freedom-grid.circle-mode .freedom-product-slot img,
.freedom-grid.circle-mode .freedom-product-slot {
  border-radius: 50%;
}

#freedom-system-compose .freedom-image-wrapper img {
  object-fit: initial !important;
  transform: rotate(0);
}

#freedom-system-pallets .product.active-palette {
  border: 1px solid black;
}

span.cart-total-price {
  position: absolute;
  top: 20px;
  right: 30px;
}

.freedom-cart-list {
  padding-bottom: 50px;
  background-color: #fff;
  height: 100%;
  overflow: auto;
}

.freedom-palette[data-palette-type="flex"] .freedom-slot, .freedom-palette[data-palette-type="blush"] .freedom-slot {
  background: none;
}

.freedom-product-slot[data-type='circle'] {
  border-radius: 50%;
  aspect-ratio: 1;
}

@media (max-width: 768px) {
  span.cart-total-price{
    display: none;
  }
  .freedom-header:after {
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M5 5.63477L5.31479 5.33652L10 0.874547L9.37043 0.134767L5 4.29849L0.629576 0.134766L0 0.874547L4.68521 5.33652L5 5.63477Z' fill='black'/></svg>") no-repeat center;
    content: "";
    position: absolute;
    color: #000;
    width: 10px;
    height: 10px;
    right: 30px;
}
  .freedom-slot::after {
    content: "";
    position: absolute;
    background: #e5e5e5;
    z-index: 1000;
    width: 1px;
    left: calc(50% - 1px);
    height: 22px;
    top: calc(50% - 11px);
  }

  .freedom-slot::before {
    content: "";
    position: absolute;
    background: #e5e5e5;
    z-index: 1000;
    width: 22px;
    left: calc(50% - 11px);
    height: 1px;
    top: calc(50% - 1px);
  }

  #freedom-system-products {
    transform: translateY(100%);
    transition: transform 0.3s ease;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    overflow-y: auto;
    z-index: 9999;
    padding: 20px;
  }

  #freedom-system-products.drawer-open {
    transform: translateY(0);
  }

  .freedom-header {
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #ddd;
  }

  .exit-freedom {
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    padding: 5px 27px;
    background: none;
    display: block;
    text-align: right;
    font-weight: 500;
}
.exit-freedom span.material-icons {
  margin: 0;
  margin-left: 5px;
}
  .exit-freedom:hover {
    background: #ddd;
  }

  #freedom-system-pallets,
  #freedom-system-products,
  #freedom-system-minicart,
  #freedom-system-compose {
    width: 100%;
    height: 100%;
    padding: 0;
  }

  #freedom-system-pallets .product {
    width: 33.3%;
  }

  .freedom-system {
    flex-direction: column;
  }

  #freedom-system-pallets .freedom-list {
    display: flex;
    flex-direction: row;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
  }

  #freedom-system-pallets .freedom-list::-webkit-scrollbar {
    display: none;
  }

  #freedom-system-pallets .product {
    flex: 0 0 30%;
    height: 100%;
    scroll-snap-align: start;
    box-sizing: border-box;
  }
  div#freedom-system-compose .freedom-header {
    display: none;
  }
  #freedom-system-pallets .product-name {
    display: none;
  }
  #freedom-system-pallets .freedom-list.hidden,
  #freedom-system-minicart .freedom-cart-body .freedom-cart-list.hidden {
    display: none;
  }
  .freedom-header.active:after {
    transform: rotate(180deg);
  }
  button#freedom-system-buy {
    position: fixed;
    z-index: 1000;
    border: none;
  }
  .freedom-header.active:after {
    transform: rotate(180deg);
  }
  .freedom-cart-list{
    padding-bottom: 0px;
  }
  #freedom-system-minicart .freedom-cart-body .freedom-cart-list {
    display: flex;
    flex-direction: column;
  }
  #freedom-system-products .freedom-header:after{
    content: none;
  }
}
.freedom-product-slot {
  position: relative;
}

.slot-remove-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 20px;
  padding: 3px;
  cursor: pointer;
  display: none;
  z-index: 2;
  color:#e5e5e5;
}
.freedom-product-slot[data-type='circle'] span.slot-remove-btn.material-icons{
  top: 15%;
  right: 15%;
}
.freedom-product-slot:hover .slot-remove-btn {
  display: block;
}
.buy-info {
  display: block;
  position: sticky;
  bottom: 50px;
  padding: 20px;
  background: white;
  border-top: 1px solid #e5e5e5;
}