/* Diseño del fondo del formulario en el frontend */
.popup-content {
  max-width: 500px;
  background: #ffffff;
  padding: 20px;
  border-radius: 10px;
  position: relative;
  margin: 30px auto; 
  height: auto; 
  overflow-y: auto; 
  width: 50%; 
  box-sizing: border-box; 
}

/* ----------BOTON----------*/
/* Botón front-end: icono, texto y subtítulo */
.button-text-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Contenedor del texto y el icono */
.button-main-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
}

/* Ajuste del icono */
.button-icon-container {
  margin-right: 8px; /* Reducir el margen entre icono y texto */
  display: flex;
  align-items: center;
}

/* Estilos generales para el botón */
#cash-on-delivery-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 95%;
  margin: 0 auto;
  box-sizing: border-box;
  text-align: center;
  padding: 10px;
}

/* Estilos específicos para dispositivos móviles */
@media only screen and (max-width: 768px) {
  /* Botón en dispositivos móviles */
  #cash-on-delivery-button {
    width: 90% !important; /* Asegura que el ancho sea ajustable */
    padding: 5px 10px; /* Añadir un padding adecuado */
    display: flex;
    align-items: center;
    justify-content: center; /* Centrar contenido en el botón */
  }

  /* Icono y texto alineados verticalmente */
  .button-main-container {
    flex-direction: column; /* Cambiar icono y texto a una columna */
  }

  /* Ajustar el contenedor del texto */
  .button-text-container {
    padding: 0; /* Eliminar el padding lateral */
  }

  /* Ajustar el tamaño del icono en móviles */
  .button-icon-container {
    font-size: 1.2em !important; /* Ajustar el tamaño del icono */
    margin-right: 0; /* Eliminar el margen entre el icono y el texto */
    margin-bottom: 5px; /* Añadir un margen inferior para separar el icono del texto */
  }
}

/* ESTILOS DE Oferta y suboferta */
.offers-section {
  display: flex;
  flex-direction: column;
  padding-top: 20px;
}
.offer, .sub-offer {
  display: grid;
  grid-template-columns: auto minmax(150px, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  border: 5px solid #ccc;
  border-radius: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  padding: 8px;
  background-color: #fff;
  max-width: 100%;
  box-sizing: border-box;
}

.offer img, .sub-offer img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  grid-row: 1 / span 2;
  margin-right: 5px;
  border-radius: 5px;
  border: 3px solid #ff5733;
}

.offer-text {
  font-size: 1.3em;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 3px;
  grid-column: 2;
  grid-row: 1;
  text-align: left;
  word-wrap: break-word;
}

.saving-text {
  background-color: #f5f5f5;
  line-height: 1;
  padding: 3px;
  font-size: 1.1em;
  display: inline-block;
  font-weight: bold;
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  border-radius: 10px;
}

.right-text {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  grid-column: 3;
  grid-row: 1 / span 2;
  text-align: right;
  margin-left: 15px;
}

.comparison-price {
  text-decoration: line-through;
  font-weight: bold;
  font-size: 1.1em;
  margin-bottom: 0;
  line-height: 1.2;
}

.final-price {
  font-size: 1.3em;
  font-weight: bold;
  margin-top: 0;
  line-height: 1;
  color: #ff4d4d;
}

/* Ajustes para pantallas móviles medianas */
@media screen and (max-width: 768px) {
  .popup-content {
    width: 95%;
    padding: 50px 10px 15px 10px !important; /* Aumentamos el techo a 60px */
  }
  
  #closePopup {
    font-size: 28px !important; 
    top: 10px !important; 
    right: 10px !important; 
    width: 40px !important; /* Ancho fijo para el botón */
    height: 40px !important; /* Alto fijo para el botón */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #f2f2f2 !important; /* Le ponemos un fondo gris claro */
    border-radius: 50% !important; /* Lo hacemos un círculo perfecto */
    z-index: 9999 !important; /* Forzamos a que esté por encima de TODO */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important; /* Sombrita elegante */
    padding: 0 !important; /* Reseteamos el padding viejo */
  }
  
  .offer, .sub-offer {
    grid-template-columns: 60px minmax(120px, 1fr) auto; /* Ajuste para pantallas medianas */
    grid-template-rows: auto auto;
    padding: 8px;
  }

  .right-text{
    padding-left: 3px;
  }

  .offer img, .sub-offer img {
    width: 50px;
    height: 50px;
    margin-right: 5px;
  }

  .offer-text {
    font-size: 1.1em;
    max-width: 90%;
  }

  .saving-text {
    font-size: 0.9em;
    margin-top: 5px;
  }

  .comparison-price {
    font-size: 0.9em;
  }

  .final-price {
    font-size: 1.1em;
  }
}

/* Ajustes para pantallas móviles pequeñas */
@media screen and (max-width: 480px) {

  .popup-content {
    padding: 50px 10px 15px 10px !important; /* Aumentamos el techo a 60px también aquí */
  }

  #closePopup {
    font-size: 26px !important; 
    top: 8px !important; 
    right: 8px !important;
    width: 38px !important; /* Ancho fijo */
    height: 38px !important; /* Alto fijo */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #f2f2f2 !important; /* Fondo gris claro */
    border-radius: 50% !important; /* Círculo perfecto */
    z-index: 9999 !important; /* Siempre arriba */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important; 
    padding: 0 !important; 
  }
  .offer, .sub-offer {
    grid-template-columns: 50px minmax(100px, 1fr) auto; /* Ajuste para pantallas pequeñas */
    grid-template-rows: auto auto;
    padding: 6px;
  }

  .offer-text {
    font-size: 1em;
    max-width: 85%;
    margin-left: 8px;
  }

  .saving-text {
    font-size: 0.9em;
    margin-top: 2px;
    max-width: 90%;
    margin-left: 7px;
  }

  .comparison-price {
    font-size: 0.9em;
  }

  .final-price {
    font-size: 1em;
  }
}

/*Resumen de Compra*/
.offer-summary {
  background-color: #d3d3d3;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-weight: normal;
  font-size: 1em;
}

.offer-summary p {
  margin: 0;
  font-size: 1em; /* Utilizar "em" para que escale con el tamaño base */
}

.offer-summary .float-right {
  float: right;
}

.offer-summary hr {
  border: 2px solid #ccc;
  margin: 10px 0;
}

.offer-summary .total {
  font-size: 1em;
  font-weight: 700;
}

.discount-line .discount-amount {
  color: #ff4d4d;
  font-weight: bold;
}

/* Ajustes para pantallas medianas */
@media screen and (max-width: 768px) {
  .offer-summary {
      padding: 12px;
      font-size: 1em;
  }
  
  .offer-summary p {
      font-size: 0.9em;
  }

  .offer-summary hr {
      margin: 8px 0;
  }
  
  .offer-summary .total {
    font-size: 1em;
  }
}

/* Ajustes para pantallas pequeñas */
@media screen and (max-width: 480px) {
  .offer-summary {
      padding: 10px;
      font-size: 1em;
  }
  
  .offer-summary p {
      font-size: 0.85em;
  }

  .offer-summary hr {
      margin: 6px 0;
  }

  .offer-summary .total {
    font-size: 1em;
  }
}

/*Aréa de configuraciónes del icono*/
.icon-tabs {
  display: flex;
  list-style: none;
}
.icon-tabs li {
  cursor: pointer;
  padding: 15px;
  border: 1px solid #ccc;
  margin-right: 5px;
  border-radius: 3px;
}
.icon-tabs li.current-icon {
  background-color: #f1f1f1;
  border-color: #000;
}
.icon-tab-content {
  display: none;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 0 0 5px 5px;
  width: 250px;
}
.icon-tab-content.current-icon {
  display: block;
}

/* Animaciones del boton */
#cash-on-delivery-button.shake, #buttonshop.shake {
  animation: shake 0.5s;
}

#cash-on-delivery-button.bounce, #buttonshop.bounce {
  animation: bounce 0.5s;
}

#cash-on-delivery-button.vibration, #buttonshop.vibration {
  animation: vibration 0.5s;
}

#cash-on-delivery-button.pulse, #buttonshop.pulse {
  animation: pulse 0.5s;
}

#cash-on-delivery-button.flash, #buttonshop.flash {
  animation: flash 0.5s;
}

#cash-on-delivery-button.swing, #buttonshop.swing {
  animation: swing 0.5s;
}

#cash-on-delivery-button.tada, #buttonshop.tada {
  animation: tada 0.5s;
}

#cash-on-delivery-button.rubberBand, #buttonshop.rubberBand {
  animation: rubberBand 0.5s;
}

#cash-on-delivery-button.jello, #buttonshop.jello {
  animation: jello 0.5s;
}

#cash-on-delivery-button.wobble, #buttonshop.wobble {
  animation: wobble 0.5s;
}

#cash-on-delivery-button.flip, #buttonshop.flip {
  animation: flip 0.5s;
}

#cash-on-delivery-button.heartbeat, #buttonshop.heartbeat {
  animation: heartbeat 0.5s;
}

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  50% { transform: translateX(10px); }
  75% { transform: translateX(-10px); }
  100% { transform: translateX(0); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes vibration {
  0% { transform: translate(-3px, -3px) rotate(0deg); }
  10% { transform: translate(3px, -3px) rotate(-1deg); }
  20% { transform: translate(-3px, 3px) rotate(1deg); }
  30% { transform: translate(3px, -3px) rotate(0deg); }
  40% { transform: translate(3px, 3px) rotate(1deg); }
  50% { transform: translate(-3px, 3px) rotate(-1deg); }
  60% { transform: translate(-3px, -3px) rotate(0deg); }
  70% { transform: translate(3px, 3px) rotate(-1deg); }
  80% { transform: translate(-3px, -3px) rotate(1deg); }
  90% { transform: translate(3px, 3px) rotate(0deg); }
  100% { transform: translate(3px, -3px) rotate(-1deg); }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

@keyframes flash {
  15%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0; }
}

@keyframes swing {
  20% { transform: rotate(15deg); }
  40% { transform: rotate(-10deg); }
  60% { transform: rotate(5deg); }
  80% { transform: rotate(-5deg); }
  100% { transform: rotate(0deg); }
}

@keyframes tada {
  0%, 100% { transform: scale(1); }
  10%, 20% { transform: scale(0.9) rotate(-3deg); }
  30%, 50%, 70%, 90% { transform: scale(1.1) rotate(3deg); }
  40%, 60%, 80% { transform: scale(1.1) rotate(-3deg); }
}

@keyframes rubberBand {
  0% { transform: scale(1); }
  30% { transform: scale(1.25, 0.75); }
  40% { transform: scale(0.75, 1.25); }
  50% { transform: scale(1.15, 0.85); }
  65% { transform: scale(0.95, 1.05); }
  75% { transform: scale(1.05, 0.95); }
  100% { transform: scale(1); }
}

@keyframes jello {
  0%, 11.1%, 100% { transform: none; }
  22.2% { transform: skewX(-12.5deg) skewY(-12.5deg); }
  33.3% { transform: skewX(6.25deg) skewY(6.25deg); }
  44.4% { transform: skewX(-3.125deg) skewY(-3.125deg); }
  55.5% { transform: skewX(1.5625deg) skewY(1.5625deg); }
  66.6% { transform: skewX(-0.78125deg) skewY(-0.78125deg); }
  77.7% { transform: skewX(0.390625deg) skewY(0.390625deg); }
  88.8% { transform: skewX(-0.1953125deg) skewY(-0.1953125deg); }
}

@keyframes wobble {
  0%, 100% { transform: translateX(0%); }
  15% { transform: translateX(-25%) rotate(-5deg); }
  30% { transform: translateX(20%) rotate(3deg); }
  45% { transform: translateX(-15%) rotate(-3deg); }
  60% { transform: translateX(10%) rotate(2deg); }
  75% { transform: translateX(-5%) rotate(-1deg); }
}

@keyframes flip {
  0% { transform: perspective(400px) rotateY(0); }
  50% { transform: perspective(400px) rotateY(180deg); }
  100% { transform: perspective(400px) rotateY(360deg); }
}

@keyframes heartbeat {
  0% { transform: scale(1); }
  14% { transform: scale(1.3); }
  28% { transform: scale(1); }
  42% { transform: scale(1.3); }
  70% { transform: scale(1); }
}

/* Estilos para los controles deslizantes de los ajustes del plugin */
.slider-container {
  margin-bottom: 20px;
}
.slider-label {
  display: block;
  margin-bottom: 5px;
}
.slider {
  width: 100%;
}
.slider-value {
  display: inline-block;
  width: 50px;
  text-align: center;
}
/*Chek añadir al carrito*/
.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 20px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: #2196F3;
}
input:checked + .slider:before {
  transform: translateX(14px);

/*css del area de configuración solido y gradiente fondo*/
}
#tab-1, #tab-2 {
  width: 300px;
}
/*CSS del área de configuraciones de fondo solido o gradiente.*/
#tab-2 .wrapper {
  width: 270px;
  padding: 15px;
  background: #fff;
  box-shadow: 0 15px 30px rgba(0,0,0,0.06);
  position: relative;
  overflow: hidden; /* Para contener los elementos dentro del wrapper */
}
#tab-2 .gradient-box {
  height: 60px;
  width: calc(100% - 40px); /* Ajuste para el padding izquierdo y derecho */
  background: linear-gradient(to left top, #5665E9, #A271F8);
  position: relative;
  padding: 0 20px; /* Padding izquierdo y derecho */
  margin: auto;
}
#tab-2 .color-picker-input {
  height: 30px; /* Altura reducida */
  width: 30px; /* Ancho reducido */
  border: 2px solid white; /* Borde blanco */
  cursor: pointer;
  background: transparent; /* Fondo transparente */
  position: absolute; /* Para permitir la posición absoluta */
  top: 50%; /* Centrado vertical */
  transform: translateY(-50%);
}
#color1 {
  left: 0; /* Posiciona en el extremo izquierdo */
}
#color2 {
  right: 0; /* Posiciona en el extremo derecho */
}
#tab-2 input[type="color"] {
  padding: 0; /* Eliminar relleno */
}
#tab-2 .row {
  display: flex;
  margin: 10px 0;
  justify-content: center;
}
.options {
  display: flex;
  flex-direction: column;
  align-items: center;
}
#tab-2 .options p {
  font-size: 1rem;
  margin-bottom: 7px;
}
#tab-2 .options .select-box {
  border: 1px solid #aaa;
  width: 80%;
}
#tab-2 .options .select-box select {
  width: 100%;
  border: none;
  outline: none;
  font-size: 1rem;
  background: none;
}
.centered-text {
  margin-bottom: 10px; /* Puedes ajustar este valor según sea necesario */
  font-size: 1rem; /* Tamaño de fuente */
  margin-bottom: 10px; /* Espaciado inferior */
  font-weight: bold; /* Negrita */
  color: #333; /* Color del texto */
}
/* Estilos para la sección de colores por defecto */
.default-colors-container {
  margin-top: 15px;
  text-align: center;
}
.default-colors {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.color-circle {
  height: 30px;
  width: 30px;
  border-radius: 50%;
  margin: 5px;
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
}
/* Estilo para la opción "Vaciar" */
.clear-colors {
  display: block;
  margin-top: 10px;
  color: #0073aa; /* Color del texto */
  text-decoration: none; /* Sin subrayado */
  font-weight: bold; /* Negrita */
  font-size: 1rem; /* Tamaño de fuente */
  padding: 5px 10px; /* Espaciado */
  background-color: #f0f0f0; /* Fondo */
  border-radius: 5px; /* Bordes redondeados */
  transition: background-color 0.3s ease; /* Transición suave */
}
.clear-colors:hover {
  text-decoration: underline; /* Subrayado al pasar el ratón */
  background-color: #e0e0e0; /* Cambio de fondo al pasar el ratón */
}
/* Estilo para el texto "POR DEFECTO" */
.default-colors-container p {
  font-size: 1rem; /* Tamaño de fuente */
  font-weight: bold; /* Negrita */
  color: #333; /* Color del texto */
  margin-top: 15px; /* Espaciado superior */
}

/* ################# */
/* Contenedor de cada input */
.input-container {
  display: flex;
  align-items: center;
  border: 2px solid #ff4d4d;
  border-radius: 8px;
  padding: 8px;
  margin-bottom: 10px;
  background-color: #fff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}


.input-container svg {
  width: 24px;
  height: 24px;
  margin-right: 8px;
  fill: #000000; 
}

.input-container input[type="text"],
.input-container input[type="email"],
.input-container input[type="password"],
.input-container input[type="tel"],
.input-container select {
  flex-grow: 1;
  border: none;
  outline: none;
  font-size: 16px !important;
  padding: 5px;
  color: #000000;
}

input::placeholder, select::placeholder {
  color: #000000; 
  font-size: 18px;
}
.input-container select {
  padding-right: 40px;
  appearance: none;
  font-size: 18px !important; 
}
.input-container input:focus, 
.input-container select:focus {
  border-color: #ff4d4d; 
  box-shadow: 0 0 8px rgba(255, 77, 77, 0.5);
}
label {
  font-weight: bold;
  color: #000000; 
  display: block;
  margin-bottom: 3px;
  font-size: 16px;
}
textarea {
  min-height: 100px;
  resize: vertical;
}
@media (max-width: 768px) {
  .input-container {
      flex-direction: row; 
      align-items: center; 
      padding: 5px; 
  }
  .input-container input, .input-container select {
      font-size: 16px !important;
  }
  input::placeholder, select::placeholder {
    font-size: 16px;
  }
  .input-container svg {
      width: 20px;
      height: 20px;
      margin-right: 5px;
  }
  label {
      font-size: 13px;
  }
}


.attention-note-containter, .verify-note-container {
  padding: 10px;
  text-align: center;
  font-size: 18px !important;
  margin-bottom: 10px;
  border: 3px dashed #ff4d4d;
  border-radius: 10px;
  background-color: #ffffff;
  color: #000000;
}

.attention-note-containter .highlighted-text {
  color: #ff4d4d;
  font-size: 18px !important;
  font-weight: bold;
}

.attention-note-containter strong, .verify-note-container strong {
  font-size: 18px !important;
  color: #ff4d4d;
}

.verify-note-container {
  padding: 10px;
  font-size: 18px !important;
}

@media (max-width: 768px) {
  .attention-note-containter, .verify-note-container {
      font-size: 16px !important;
      margin-bottom: 5px;
  }

  .attention-note-containter .highlighted-text, 
  .attention-note-containter strong, 
  .verify-note-container strong {
      font-size: 16px !important;
  }
}

.product-attributes {
  display: flex;
  flex-direction: column;
  margin-bottom: 3px;
}
.attribute-select-wrapper {
  display: flex;
  align-items: center;
  margin-bottom: 2px; 
  margin-top: 2px; 
  flex-wrap: wrap;
  margin-right: 3px;
}
.attribute-select-wrapper label {
  margin-right: 3px; 
  flex: 0 0 auto; 
  font-size: 14px; 
}
.attribute-select-wrapper select {
  background-color: #ff4d4d;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  border-radius: 10px;
  padding: 2px 2px;
  display: inline-block;
  max-width: 100px; /* Cambia este valor al ancho deseado */
  width: auto;
  margin-right: 3px;
  margin-top: 3px;
  text-align: center;
  border: 1px solid #ccc;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.attribute-select-row {
  display: flex;
  align-items: center;
  margin-bottom: 3px;
}
.attribute-select-row span {
  font-weight: bold;
  margin-right: 3px;
}

@media (max-width: 768px) {
  .product-attributes {
  	margin-left: 3px;
	}
	
	.attribute-select-wrapper label {
		font-size: 12px;
		margin-right: 2px; 
	}
	
	.attribute-select-wrapper select {
		font-size: 12px;
		padding: 1px 1px;
		margin-right: 2px;
  	margin-top: 2px;
	}
	
}