/* my-cart.css */

.page-id-46 div#hero{
	display:none;
}

@media (min-width: 1000px){ 
	.page-id-46 .menu-item a{
		color:black!important;
	}
	.page-id-46 .h-menu-horizontal>div>.colibri-menu-container>.colibri-menu>li>a svg.svg-inline--fa{
		color:black!important;
	}

}
	
.page-id-46 .style-552 > div > .colibri-menu-container > ul.colibri-menu{
			padding-top:15px;
}

.my-custom-cart-section {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, #fff 0%, #fff 14%, rgba(255, 255, 255, 0) 30%),
        radial-gradient(780px 560px at 72% 22%, rgba(7, 146, 226, 0.07), transparent 72%),
        radial-gradient(620px 400px at 26% 18%, rgba(4, 190, 254, 0.045), transparent 74%),
        radial-gradient(860px 420px at 60% 78%, rgba(7, 146, 226, 0.035), transparent 78%),
        linear-gradient(180deg, #ffffff 0%, #f8fcff 52%, #fcfeff 82%, #ffffff 100%);
    background-repeat: no-repeat;
    margin-bottom: 60px;
}

.my-custom-cart-section::after {
    content: "";
    position: absolute;
    left: -10%;
    right: -10%;
    bottom: -118px;
    height: 240px;
    border-radius: 50% 50% 0 0 / 70% 70% 0 0;
    background: linear-gradient(180deg, rgba(248, 253, 255, 0.32), rgba(255, 255, 255, 0.8));
    box-shadow: 0 -28px 54px rgba(255, 255, 255, 0.8);
    pointer-events: none;
}

.my-custom-cart-title,
.my-custom-cart-wrapper {
    position: relative;
    z-index: 1;
}

.my-custom-cart-title {
  font-size: 2.5rem;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  text-align: left;
  max-width: 1200px;
  margin: 14rem auto 1rem auto;
  padding: 0 1rem;
  color: #000;
}

.my-custom-cart-wrapper {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 2rem auto 6rem auto;
  padding: 0 1rem;
  justify-content: flex-start;
  color:#000;
  width: 100%;
  box-sizing: border-box;
}

.my-custom-cart-table-container {
    flex: 2;
    margin-right: 2rem;
    padding: 30px 30px 15px 35px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
    border: solid 1px #ececec;
    height: fit-content;
    font-family: 'Montserrat', sans-serif;
    color: #000;
}

.my-custom-cart-empty-message {
  font-size: 1.2rem;
  font-weight: 500;
  text-align: center;
  padding: 3rem 1rem;
  color: #555;
  font-family: 'Montserrat', sans-serif;
}

#summary-loader {
  display: flex; 
}

.my-custom-cart-summary {
    position: relative;
    flex: 1;
    margin: 0px 0px 0px 10px;
    padding: 30px 30px 30px 35px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
    border: solid 1px #ececec;
    height: fit-content;
    font-family: 'Montserrat', sans-serif;
    color:#000;
}

@media (min-width: 1001px) and (max-width: 1250px) {
  .my-custom-cart-title,
  .my-custom-cart-wrapper {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (max-width: 1000px) {
  
  .my-custom-cart-title{
      text-align:center;
  }
    
  .my-custom-cart-wrapper {
    flex-direction: column;
    padding: 0 1.5rem;
  }

  .my-custom-cart-table-container {
    margin-bottom: 2rem;
    padding: 10px;
    width: 100%;
    margin-right: 0px;
    box-sizing: border-box;
  }

  .my-custom-cart-summary {
    margin-left: 0;
    padding: 30px;
    margin-right: 0;
    width: 100%;
    box-sizing: border-box;
  }
  .my-custom-cart-product-info img {
    display: none;
  }

  .my-custom-cart-product-info {
    gap: 0rem!important;
    flex-direction: column!important;
    align-items: flex-start!important;
  }

  .my-custom-cart-product-info > div {
    margin-left: 0;
  }

  .my-custom-cart-table td {
    padding: 0.75rem 0.5rem;
    width:auto!important;
  }

  .my-custom-cart-table th:nth-child(1),
  .my-custom-cart-table td:nth-child(1),
  .my-custom-cart-table th:nth-child(2),
  .my-custom-cart-table td:nth-child(2),
  .my-custom-cart-table th:nth-child(3),
  .my-custom-cart-table td:nth-child(3) {
    text-align: left;
  }

  .my-custom-cart-table th:last-child,
  .my-custom-cart-table td:last-child {
    width: 40px;
    text-align: right;
  }
   .my-custom-cart-summary-table td:first-child,
    .my-custom-cart-summary-table tr td:first-child,
    .my-custom-cart-summary-table tr th:first-child,
    .my-custom-cart-summary .my-custom-cart-coupon label {
      text-align: left;
    }
    
    .my-custom-cart-coupon-feedback{
        text-align: left;
    }

}

.my-custom-cart-summary-content {
  opacity: 0.2; /* 👈 por defecto ya está difuminado */
  transition: opacity 0.3s ease;
}
.my-custom-cart-summary-content.loaded {
  opacity: 1;
}

.my-custom-cart-summary-loader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: 8px;
}

.my-custom-cart-summary-loader .spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(0, 0, 0, 0.2);
  border-top-color: #000;
  border-radius: 50%;
  animation: my-cart-summary-spin 0.7s linear infinite;
}

@keyframes my-cart-summary-spin {
  to { transform: rotate(360deg); }
}


.my-custom-cart-summary h2 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  font-weight:600;
  font-family: 'Montserrat', sans-serif;
  color:#000;
}

.my-custom-cart-summary-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

.my-custom-cart-summary-table td {
  padding-bottom:10px;
  font-size: 1rem;
  color: #333;
}

.my-custom-cart-summary-table td:last-child {
  text-align: right;
}

.my-custom-cart-divider {
  height: 1px;
  background-color: #ccc;
  width: 100%;
  margin: 1.2rem 0;
}

.my-custom-cart-coupon label {
  font-weight: 500;
  display: block;
  margin-bottom: 0.5rem;
}

.my-custom-cart-coupon-row {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 5px;
  width: 100%;
  min-height: 42px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  box-sizing: border-box;
  overflow: hidden;
}

.my-custom-cart-coupon-row input[type="text"] {
  flex: 1;
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 0.5rem 0.75rem;
  border: 0;
  border-radius: 0;
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif; 
  background: transparent;
  box-sizing: border-box;
  outline: none;
}

.my-custom-cart-coupon-btn:disabled,
.my-custom-cart-coupon-btn:disabled:hover {
  background: transparent;
  color: #9e9e9e;
  cursor: not-allowed;
}

.my-custom-cart-coupon-row.error input {
  outline: none;
}

.my-custom-cart-coupon-row.error {
  border-color: #d63636;
}

.my-custom-cart-coupon-btn {
  position: relative;
  flex: 0 0 auto;
  background: transparent;
  color: green;
  border: none;
  padding: 0 13px;
  border-radius: 0;
  font-weight: 600;
  cursor: pointer;
  min-width: auto;
  height: 40px;
  text-transform: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  overflow: hidden;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Texto ocupa el espacio, pero se hace invisible */
.my-custom-cart-coupon-btn .text {
  transition: opacity 0.2s ease;
}

.my-custom-cart-coupon-btn.loading .text {
  opacity: 0;
}

/* Spinner alineado a la derecha del boton */
.my-custom-cart-coupon-spinner {
  position: absolute;
  top: 50%;
  right: 13px;
  left: auto;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 0;
  border: 2px solid rgba(0, 0, 0, 0.18);
  border-top-color: green;
  border-radius: 50%;
  animation: my-custom-cart-coupon-spin 0.6s linear infinite;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

/* Mostrar spinner solo en estado loading */
.my-custom-cart-coupon-btn.loading .my-custom-cart-coupon-spinner {
  opacity: 1;
}

.my-custom-cart-coupon-btn.loading {
  background: transparent !important;
}

.my-custom-cart-coupon-btn.loading:hover {
  background: transparent !important;
}



@keyframes my-custom-cart-coupon-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#coupon-feedback {
  display: none; 
}

/* Mensaje de error tipo Woo */
.my-custom-cart-coupon-feedback {
  margin-top: 4px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  padding: 2px 10px;
  color: #E04562;
  background: #F9E4E8;
  font-weight: 500;
}

.my-custom-cart-coupon-timer {
  display: none;
  margin-top: 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #E04562;
}

/* Chips de cupones aplicados */
.my-custom-cart-applied-coupons {
  display: flex;
  flex-wrap: wrap;
  margin-top: 10px;
}


.my-coupon-chip {
  background: #e8fae8;
  border-radius: 30px;
  padding: 6px 15px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #333;
  display: flex;
  align-items: center;
  position: relative;
  text-transform: uppercase;
  margin-right: 10px;
  margin-bottom: 10px;
}

.my-coupon-chip-remove-btn {
  background: transparent;
  border: none;
  color: #d00;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  margin-left: 7px;
}


.my-custom-cart-checkout-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-family: 'Montserrat', sans-serif; /* Repetido para asegurar la fuente */
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #fff!important;
  cursor: pointer;
  padding: 0.8rem 0.8rem; /* Espaciado interno */
  text-align: center;
  border: none;
  border-radius: 50px; /* Bordes redondeados */
  background-size: 300% 100%;
  background-image: linear-gradient(
    to right,
    #25aae1,
    #4481eb,
    #04befe,
    #3f86ed
  );
  box-shadow: 0 2px 15px 0 rgba(65, 132, 234, 0.75); /* Sombra suave */
  transition: all 0.4s ease-in-out;
  white-space: nowrap; /* Evita que el texto se rompa en varias líneas */
  text-transform: uppercase;
  min-height: 50px;
}

.my-custom-cart-checkout-button:hover {
  background-position: 100% 0;
  box-shadow: 0 1px 8px 0 rgba(65, 132, 234, 0.85); /* Sombra más intensa */
  transform: scale(1.05); /* Efecto de ligera ampliación */
}

.my-custom-cart-checkout-button:focus {
  outline: none;
}

.my-cart-checkout-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 255, 255, 0.4);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: my-cart-checkout-spin 0.7s linear infinite;
  margin: 0 auto;
}

@keyframes my-cart-checkout-spin {
  to { transform: rotate(360deg); }
}


.my-custom-cart-table {
  width: 100%;
  border-collapse: collapse;
}

.my-custom-cart-table th {
  background: #f5f5f5;
  padding: 0.5rem 1rem 0.5rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 1rem;
}

.my-custom-cart-table td {
  padding: 1rem;
  border-bottom: 1px solid #eee;
  vertical-align: middle;
  width: 80%;
}

.my-custom-cart-table tbody tr:last-child td {
  border-bottom: none;
}

.my-custom-cart-product-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.my-custom-cart-product-info img {
  height: 60px;
  width: auto;
  border-radius: 4px;
}

.my-custom-cart-tachado {
  color: red;
  margin-right: 0.5rem;
}

.my-custom-cart-precio-final {
  font-weight: 400;
}

.my-custom-cart-remove {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 24px;   /* ancho fijo */
  height: 24px;
  font-size: 1.25rem;
  color: red;
  cursor: pointer;
  transition: 0.2s;
}


.my-custom-cart-loader {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-top-color: red;
  border-radius: 50%;
  animation: my-custom-cart-loader-spin 0.6s linear infinite;
}


@keyframes my-custom-cart-loader-spin {
  to { transform: rotate(360deg); }
}

/* --- Modal Login Requerido --- */
.login-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.login-modal.hidden {
  display: none;
}

.login-modal-content {
  background: #fff;
  padding: 2.75rem 2rem 2rem;
  border-radius: 12px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  position: relative;
  font-family: 'Montserrat', sans-serif;
}

.login-modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: red;
  cursor: pointer;
}

.login-modal-image {
  width: 80%;
  margin: 0.35rem auto 1.35rem auto;
  display: block;
  object-fit: contain;
}

.login-modal-content h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: #000;
  font-family: 'Montserrat', sans-serif;
}

.login-modal-content p {
  font-size: 1rem;
  margin-bottom: 1.8rem;
  color: #000;
  font-family: 'Montserrat', sans-serif;
}

.login-modal-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-family: 'Montserrat', sans-serif; /* Repetido para asegurar la fuente */
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #fff!important;
  cursor: pointer;
  padding: 0.8rem 0.8rem; /* Espaciado interno */
  text-align: center;
  border: none;
  border-radius: 50px; /* Bordes redondeados */
  background-size: 300% 100%;
  background-image: linear-gradient(
    to right,
    #25aae1,
    #4481eb,
    #04befe,
    #3f86ed
  );
  box-shadow: 0 2px 15px 0 rgba(65, 132, 234, 0.75); /* Sombra suave */
  transition: all 0.4s ease-in-out;
  white-space: nowrap; /* Evita que el texto se rompa en varias líneas */
  text-transform: uppercase;
  min-height: 50px;
}

.login-modal-btn:hover {
  background-position: 100% 0;
  box-shadow: 0 1px 8px 0 rgba(65, 132, 234, 0.85); /* Sombra más intensa */
  transform: scale(1.05); /* Efecto de ligera ampliación */
}

.login-modal-btn:focus {
  outline: none;
}

/* --- Spinner Botón Modal Iniciar Sesión --- */
.login-modal-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 255, 255, 0.4);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: login-modal-spin 0.7s linear infinite;
  margin: 0 auto;
}

@keyframes login-modal-spin {
  to { transform: rotate(360deg); }
}
