@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

/*
 * Warehouse 4.7 — alineado con theme_4_7_2:
 * - border-radius: 0 (variables $border-radius / $btn-border-radius)
 * - bordes de botones, inputs y modal vía iqitthemeeditor (btn_*, form_input_*, modals_*)
 */

/* --- Botón en listado (usa .btn / .btn-primary del tema) --- */

.tpc-addcart-popup-list-actions {
  text-align: center;
}

.tpc-addcart-popup-list-actions .btn {
  width: 100%;
}

.tpc-addcart-popup-list-actions .shopping-cart {
  font-size: 18px;
  vertical-align: middle;
}

/* --- Modal shell (overlay + contenedor) --- */

/* Fallback: no todas las plantillas cargan utilidades Bootstrap (d-none, etc.). */
#tpc-addcart-popup-modal .d-none,
.tpc-addcart-popup .d-none {
  display: none !important;
}

#tpc-addcart-popup-modal .modal-dialog {
  max-width: 800px;
  margin: 1.25rem auto;
}

#tpc-addcart-popup-modal .modal-content {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  position: relative;
  /* border: lo define iqitthemeeditor (modals_border) */
}

#tpc-addcart-popup-modal .modal-body {
  padding: 0;
  min-height: 0;
  overflow: visible;
}

.tpc-addcart-popup-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  opacity: 1;
  text-shadow: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.tpc-addcart-popup-modal__close:hover,
.tpc-addcart-popup-modal__close:focus {
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  opacity: 1;
  outline: none;
}

.tpc-addcart-popup-modal__close .material-icons {
  font-size: 1.5rem;
  line-height: 1;
}

/* --- Tarjeta popup new layout --- */

.tpc-addcart-popup,
.tpc-addcart-popup__card {
  font-family: "Poppins", sans-serif;
}

.tpc-addcart-popup__card {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 500px;
  max-height: 90vh;
}

.tpc-addcart-popup__media {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 45%;
  min-height: 90%;
  margin-top: 1.5rem;
  padding: 1.5rem 1rem;
  background: #1d212b;
  border-radius: 0;
  overflow: visible;
}

.tpc-addcart-popup__media::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 0;
  pointer-events: none;
}

.tpc-addcart-popup__image {
  position: relative;
  z-index: 2;
  width: 115%;
  max-width: 420px;
  max-height: 320px;
  /* margin-left: -12%; */
  object-fit: contain;
}

.tpc-addcart-popup__info {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  flex: 0 0 55%;
  height: 100%;
  padding: 2.5rem 2rem 2rem;
  background: #fff;
  border-radius: 0;
  box-sizing: border-box;
  overflow-y: auto;
}

.tpc-addcart-popup__heading {
  margin: 0 0 1rem;
  padding: 0 1.5rem 0 0;
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.25;
  color: #1d212b;
}

.tpc-addcart-popup__title-link {
  color: inherit;
  text-decoration: none;
  word-break: break-word;
  transition: color 0.2s ease;
}

.tpc-addcart-popup__title-link:hover,
.tpc-addcart-popup__title-link:focus {
  color: #009dd2;
  text-decoration: none;
}

.tpc-addcart-popup__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #777;
  margin-bottom: 0.5rem;
}

.tpc-addcart-popup__group {
  margin-bottom: 1rem;
}

.tpc-addcart-popup__select {
  border-radius: 0;
  font-family: inherit;
  font-size: 0.9rem;
  /* border: lo define .form-control + iqitthemeeditor (form_input_border) */
}

.tpc-addcart-popup__colors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tpc-addcart-popup__color {
  width: 30px;
  height: 30px;
  border: 2px solid #ddd;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tpc-addcart-popup__color.is-selected {
  border-color: #009dd2;
  box-shadow: 0 0 0 2px rgba(0, 157, 210, 0.25);
}

.tpc-addcart-popup__radios {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tpc-addcart-popup__radio {
  border-radius: 0;
  padding: 0.4rem 0.85rem;
  margin: 0;
  cursor: pointer;
  font-size: 0.85rem;
  border: 1px solid rgba(160, 160, 160, 0.25);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.tpc-addcart-popup__radio.is-selected {
  border-color: #009dd2;
  background: rgba(0, 157, 210, 0.08);
  color: #009dd2;
}

.tpc-addcart-popup__radio input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tpc-addcart-popup__quantity {
  margin-bottom: 1rem;
}

.tpc-addcart-popup__qty-wrap {
  max-width: 160px;
}

.tpc-addcart-popup__qty-wrap .qty,
.tpc-addcart-popup__quantity .qty {
  max-width: 9rem;
}

#tpc-addcart-popup-modal .bootstrap-touchspin {
  width: 100%;
}

#tpc-addcart-popup-modal .bootstrap-touchspin .input-group-btn-vertical .bootstrap-touchspin-up,
#tpc-addcart-popup-modal .bootstrap-touchspin .input-group-btn-vertical .bootstrap-touchspin-down {
  border-radius: 0;
}

#tpc-addcart-popup-modal .bootstrap-touchspin .input-group-btn-vertical .bootstrap-touchspin-down {
  margin-top: -2px;
}

#tpc-addcart-popup-modal .bootstrap-touchspin .input-group-btn-vertical .touchspin-up::after {
  content: "\E5CE";
  font-family: "Material Icons";
  font-size: 1.25rem;
  line-height: 1;
}

#tpc-addcart-popup-modal .bootstrap-touchspin .input-group-btn-vertical .touchspin-down::after {
  content: "\E5CF";
  font-family: "Material Icons";
  font-size: 1.25rem;
  line-height: 1;
}

.tpc-addcart-popup__minimal-quantity,
.tpc-addcart-popup__stock,
.tpc-addcart-popup__available-quantity {
  margin-top: 0.35rem;
  margin-bottom: 0;
  font-size: 0.8rem;
}

.tpc-addcart-popup__price {
  margin: 0.5rem 0 1rem;
  line-height: 1.1;
}

.tpc-addcart-popup__price-current {
  font-size: 2.5rem;
  font-weight: 300;
  color: #1d212b;
}

.tpc-addcart-popup__price-old {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 1rem;
  font-weight: 400;
  color: #999;
  text-decoration: line-through;
  vertical-align: middle;
}

.tpc-addcart-popup__actions {
  margin-top: auto;
  padding-top: 0.5rem;
  text-align: center;
}

.tpc-addcart-popup__add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: auto;
  min-width: 220px;
  margin: 0.5rem auto 0;
  border-radius: 0;
  /* colores y borde: .btn.btn-primary + iqitthemeeditor (btn_action_*) */
}

.tpc-addcart-popup__add .material-icons {
  font-size: 1.15rem;
}

.tpc-addcart-popup__notify {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: auto;
  min-width: 220px;
  margin: 0.5rem auto 0;
  border-radius: 0;
  /* colores y borde: .btn.btn-secondary + iqitthemeeditor (btn_default_*) */
}

.tpc-addcart-popup__notify .material-icons {
  font-size: 1.15rem;
}

.tpc-addcart-popup__mailalert-registered {
  margin-top: 1rem;
  margin-bottom: 0;
  font-size: 0.9rem;
}

.tpc-addcart-popup__customization-notice {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
  line-height: 1.45;
}

.tpc-addcart-popup__customization-link {
  display: inline-block;
  margin-top: 0.35rem;
  font-weight: 600;
}

.tpc-addcart-popup__mailalert-panel {
  margin-top: 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid #ececec;
}

.tpc-addcart-popup__mailalert-title {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1d212b;
}

.tpc-addcart-popup__mailalert-text {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: #555;
}

.tpc-addcart-popup__mailalert-email {
  margin-bottom: 0.75rem;
}

.tpc-addcart-popup__mailalert-feedback {
  margin-top: 0.75rem;
  margin-bottom: 0;
  font-size: 0.9rem;
}

.tpc-addcart-popup__mailalert-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.tpc-addcart-popup__mailalert-submit,
.tpc-addcart-popup__mailalert-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  border-radius: 0;
}

#tpc-addcart-popup-modal .tpc-addcart-popup__info .form-control {
  border-radius: 0;
}

.tpc-addcart-popup__loader .spinner-border {
  color: #009dd2;
}

/* --- Responsive new layout breakpoint ~900px) --- */

@media (max-width: 900px) {
  #tpc-addcart-popup-modal .modal-dialog {
    max-width: 550px;
  }

  .tpc-addcart-popup__card {
    flex-direction: column;
    min-height: 0;
    max-height: none;
  }

  .tpc-addcart-popup__media {
    flex: 0 0 auto;
    width: 100%;
    min-height: 200px;
    margin-top: 0;
    padding: 1.25rem;
    border-radius: 0;
  }

  .tpc-addcart-popup__image {
    width: 100%;
    max-width: 100%;
    max-height: 180px;
    margin-left: 0;
  }

  .tpc-addcart-popup__info {
    flex: 1 1 auto;
    width: 100%;
    padding: 1.25rem;
    border-radius: 0;
  }

  .tpc-addcart-popup__heading {
    font-size: 1.35rem;
    padding-right: 2rem;
  }

  .tpc-addcart-popup__price-current {
    font-size: 1.85rem;
  }

  .tpc-addcart-popup__add {
    width: 100%;
    min-width: 0;
  }

  .tpc-addcart-popup-modal__close {
    z-index: 6;
  }
}
