.custom-section {
  padding: 20px;
  margin-top: 30px;
  border: 1px solid #ddd;
}
.order-product-details {
  border: 1px solid #ddd;
  border-radius: 5px;
}
.accordion-item {
  border-bottom: 1px solid #ddd;
}
.accordion-button {
  background-color: #f9f9f9;
  padding: 15px;
  width: 100%;
  text-align: left;
  border: none;
  cursor: pointer;
  outline: none;
  font-size: 16px;
  transition: background-color 0.3s ease;
}
.accordion-button:hover, .accordion-button.active {
  background-color: #e9e9e9;
}
.accordion-content {
  padding: 0 15px;
  display: none;
  overflow: hidden;
}
.accordion-content p {
  margin: 10px 0;
}
.accordion-content img {
  max-width: 50px;
  height: auto;
  margin-right: 10px;
  vertical-align: middle;
}
.tab-container {
  display: inline;  /* Usa flexbox para el contenedor principal */
  flex-direction: column; /* Pone los elementos hijos en una columna */
  align-items: center; /* Centra el contenedor de los botones horizontalmente */
  border-bottom: 2px solid #e0e0e0;
  margin-bottom: 20px;
}

.tab-buttons-wrapper {
  display: flex;  /* Usa flexbox para los botones de pestañas */
  justify-content: center; /* Centra los botones horizontalmente */
  flex-wrap: nowrap; /* Evita que los botones se envuelvan */
  overflow-x: auto; /* Permite el desplazamiento horizontal si es necesario */
  width: 100%; /* Asegura que ocupe todo el ancho disponible */
}

.tab-button {
  background-color: #f9f9f9;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  color: #333;
  transition: all 0.3s ease;
  margin-right: 5px; /* Espacio entre los botones */
  white-space: nowrap; /* Previene el ajuste de texto */
  margin-top: 1rem;
  margin-bottom: 1rem;

}

.tab-button:hover {
  background-color: #e0e0e0;
  color: #000;
}
/* Para el primer .tab-button activo */
.tab-button:nth-child(1).active {
    background-color: #26358C; /* Azul */
    color: #fff;
    border-bottom: 2px solid #26358C;
}

/* Para el segundo .tab-button activo */
.tab-button:nth-child(2).active {
    background-color: #28a745; /* Verde */
    color: #fff;
    border-bottom: 2px solid #28a745;
}

.tab-content {
  display: none;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background-color: #fff;
}
.tab-content#personalize {
  padding: 20px;

}
.tab-content.active {
  display: block;
}

@media (max-width: 768px) {
  .tab-buttons-wrapper {
    flex-wrap: nowrap; /* Asegura que los botones no se envuelvan en dispositivos móviles */
  }
}





.selected-sorted{
  border: 2px solid #69f !important;
}
.shape-container, .print-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin: 10px 0;
  }
  .shape-container.selected,.print-container.selected {
    border: 2px solid #007bff;
  }
  .shape.octagonal {
    position: relative;
  }
  .shape.octagonal::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background-color: red;
    transform: translateX(-50%) rotate(45deg);
  }
a[type="button"].tfmz-product-compra, #personalizar-btn {
    width: 100%;
    margin: 20px 0;
    background-color: #F1880D;
    color: #fff;
    font-size: 15px;
    font-weight: bold;
    padding: 20px 0;
    cursor: pointer;
    border-radius: 0;
    border: none;
    border: 2px solid #F1880D;
    display: flex;
    justify-content: center;
    align-items: center;
   /* height: 100%;  Ajusta la altura según sea necesario */    
}

#openModal {
  margin: 20px;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 800px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.modal-header {
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
}

.modal-body {
  display: flex;
  margin-top: 20px;
}

.sidebar {
  width: 20%;
  padding-right: 20px;
  border-right: 1px solid #ddd;
}

.main-content {
  width: 80%;
  padding-left: 20px;
}

.uploaded-images {
  margin-top: 20px;
}

#imagePreview {
  display: flex;
  flex-wrap: wrap;
}

.image-container {
  position: relative;
  margin: 10px;
}

.image-container img {
  max-width: 100px;
  max-height: 100px;
  border: 1px solid #ddd;
}

.remove-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  background: rgba(255, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
}

.modal-footer {
  border-top: 1px solid #ddd;
  padding-top: 10px;
  text-align: right;
}