
@media (width <= 960px) {
  .site > *,
  .site > .store-sidebar > *,
  .site > .site-main > * {
    align-self: stretch;
  }

  body.cs-mobile-l2.page-index .site-navigation .log-out {
    display: none;
  }

  body.cs-mobile-l2.page-index .cs-topcustomer {
    order: 7;
  }

  .cs-sidebar-logo img,
  .cs-mobile-logo img {
    margin-inline: auto;
  }
}

.basket-popup-content .popup-close {
  border-radius: 0 var(--cs-radius) 0 var(--cs-radius);
}

.store-products-images,
.store-products-tiered {
  grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr));
}

.store-product-full > .cs-product-media:has(> .image-default) {
  display: none;
}

@media (width > 600px) {
  .store-product-full:has(> .cs-product-media > .image-default) {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (width <= 600px) {
  .store-product-full {
    grid-template-columns: minmax(0, 1fr);
  }
}

.text-content {
  min-width: 0;
  overflow-wrap: anywhere;
}

.text-content pre,
.text-content code,
.text-content kbd,
.text-content samp {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.text-content pre {
  max-width: 100%;
  overflow-x: auto;
}

.text-content table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

.text-content img,
.text-content svg,
.text-content video,
.text-content iframe,
.text-content embed,
.text-content object {
  max-width: 100%;
}

.text-content iframe,
.text-content video {
  height: auto;
}

.store-product .price {
  color: var(--color-primary);
}

.popup.gift-form-popup .popup-content {
  max-width: 480px;
}

.popup.gift-form-popup .popup-content .actions {
  width: auto;
  margin-top: 22px;
}

.popup.gift-form-popup .popup-content .btn-primary {
  width: 100%;
  height: auto;
  padding: 14px;
  line-height: 1.2;
  text-align: center;
}

.popup.gift-form-popup .popup-content.store-form input[type='text'] {
  margin: 0 0 18px;
  padding: 13px 14px;
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 16px;
}

.popup.gift-form-popup .popup-content.store-form input[type='text']::placeholder {
  color: var(--color-text-secondary);
}

.basket-popup {
  width: 100%;
  overflow: hidden;
}

.basket .basket-checkout {
  padding-bottom: var(--content-padding);
}

.basket .basket-item .quantity-field:has(input.quantity[disabled]) {
  display: none;
}


/* =========================================================
   Daretto Network
   Modal profesional de paquetes V2
   ========================================================= */

.popup-content.store-product-popup-content {
  width: min(1120px, calc(100vw - 50px));
  max-width: 1120px;
  height: min(720px, calc(100vh - 50px));
  max-height: 720px;
  padding: 0;
  overflow: hidden;
}


/* ----- Estructura principal ----- */

.popup-content.store-product-popup-content
.drt-package-modal {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 0;
  margin: 0;
  gap: 0;
}


/* =========================================================
   IZQUIERDA
   ========================================================= */

.drt-package-sidebar {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  padding: 28px 24px 26px;
  border-right: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.10);
}

.drt-package-media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 0 22px;
}

.drt-package-media > .image {
  display: block;
  width: 100%;
  max-width: 255px;
  height: auto;
  max-height: 255px;
  object-fit: contain;
  border-radius: 10px;
}

.drt-package-media .media-slider {
  width: 100%;
}

.drt-package-summary {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
}

.drt-package-title {
  margin: 0 0 18px;
  font-size: 25px;
  line-height: 1.15;
  font-weight: 800;
  text-align: center;
}


/* ----- Precio y acciones ----- */

.drt-package-summary .product-actions {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 10px;
  margin: 0;
}

.drt-package-summary .product-actions .price {
  width: 100%;
  margin: 0 0 5px;
  font-size: 21px;
  text-align: center;
}

.drt-package-summary .product-actions > a,
.drt-package-summary .product-actions > button,
.drt-package-summary .product-actions > .quantity-field {
  width: 100%;
  max-width: none;
}

.drt-package-summary .product-actions .add,
.drt-package-summary .product-actions .subscribe {
  min-height: 48px;
}

.drt-package-summary .product-actions .gift {
  min-height: 46px;
}


/* =========================================================
   DERECHA
   ========================================================= */

.drt-package-information {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  padding: 30px 34px 0;
  overflow: hidden;
}

.drt-package-information-header {
  flex: 0 0 auto;
  padding: 0 0 20px;
  margin: 0 0 4px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.drt-package-eyebrow {
  display: block;
  margin-bottom: 5px;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 1.2px;
  opacity: .55;
}

.drt-package-information-header h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 800;
}


/* ----- Contenido con scroll ----- */

.drt-package-description {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: none;
  padding: 22px 12px 34px 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  line-height: 1.55;
  scrollbar-width: thin;
}

.drt-package-description > :first-child {
  margin-top: 0;
}

.drt-package-description img {
  display: block;
  max-width: min(100%, 650px);
  height: auto;
  margin: 18px auto;
  border-radius: 8px;
}

.drt-package-description ul,
.drt-package-description ol {
  padding-left: 22px;
}

.drt-package-description li {
  margin: 3px 0;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

  .popup-content.store-product-popup-content {
    width: calc(100vw - 28px);
    height: calc(100vh - 28px);
    max-height: none;
  }

  .popup-content.store-product-popup-content
  .drt-package-modal {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .drt-package-sidebar {
    padding: 24px 18px;
  }

  .drt-package-media > .image {
    max-width: 215px;
    max-height: 215px;
  }

  .drt-package-information {
    padding: 26px 24px 0;
  }

}


/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 650px) {

  .popup-content.store-product-popup-content {
    width: calc(100vw - 16px);
    height: calc(100vh - 16px);
    overflow-y: auto;
  }

  .popup-content.store-product-popup-content
  .drt-package-modal {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 100%;
  }

  .drt-package-sidebar {
    height: auto;
    padding: 24px 20px;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }

  .drt-package-media {
    margin-bottom: 18px;
  }

  .drt-package-media > .image {
    max-width: 220px;
    max-height: 220px;
  }

  .drt-package-title {
    font-size: 24px;
  }

  .drt-package-information {
    height: auto;
    padding: 24px 20px;
    overflow: visible;
  }

  .drt-package-description {
    overflow: visible;
    padding: 20px 0 10px;
  }

}


/* =========================================================
   Daretto Network
   Pulido final modal de paquetes V3
   ========================================================= */

@media (min-width: 901px) {

  /* Modal más parecido a una ficha premium */
  .popup-content.store-product-popup-content {
    width: min(1160px, calc(100vw - 60px));
    max-width: 1160px;
    height: min(700px, calc(100vh - 60px));
    max-height: 700px;
  }

  .popup-content.store-product-popup-content
  .drt-package-modal {
    grid-template-columns: 320px minmax(0, 1fr);
    height: 100%;
    min-height: 0;
  }


  /* ================= IZQUIERDA ================= */

  .drt-package-sidebar {
    box-sizing: border-box;
    height: 100%;
    padding: 30px 26px;
    justify-content: flex-start;
  }

  .drt-package-media {
    flex: 0 0 auto;
    margin: 0 0 22px;
  }

  .drt-package-media > .image {
    width: 100%;
    max-width: 265px;
    max-height: 265px;
    object-fit: contain;
  }

  .drt-package-summary {
    flex: 0 0 auto;
    display: block;
  }

  .drt-package-title {
    margin: 0 0 18px;
    font-size: 27px;
    text-align: center;
  }


  /* ================= ACCIONES ================= */

  .drt-package-summary .product-actions {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 11px !important;

    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
  }

  .drt-package-summary .product-actions .price {
    flex: 0 0 auto !important;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 0 7px !important;

    text-align: center;
    font-size: 22px;
    line-height: 1.2;
  }

  /* Evita que reglas originales de Altara estiren los botones */
  .drt-package-summary .product-actions > * {
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
  }

  .drt-package-summary .product-actions a,
  .drt-package-summary .product-actions button,
  .drt-package-summary .product-actions .btn,
  .drt-package-summary .product-actions .button,
  .drt-package-summary .product-actions .add,
  .drt-package-summary .product-actions .subscribe,
  .drt-package-summary .product-actions .gift {
    box-sizing: border-box !important;

    width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;

    margin: 0 !important;
    padding: 0 18px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    line-height: 1 !important;
  }

  .drt-package-summary .product-actions .quantity-field {
    flex: 0 0 auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
  }


  /* ================= DERECHA ================= */

  .drt-package-information {
    box-sizing: border-box;
    height: 100%;
    min-height: 0;

    padding: 32px 38px 0;

    overflow: hidden;
  }

  .drt-package-information-header {
    flex: 0 0 auto;
    margin: 0;
    padding: 0 0 20px;
  }

  .drt-package-eyebrow {
    font-size: 11px;
    letter-spacing: 1.35px;
  }

  .drt-package-information-header h3 {
    font-size: 26px;
  }

  .drt-package-description {
    flex: 1 1 0;
    min-height: 0;

    padding: 22px 14px 35px 0;

    overflow-y: auto !important;
    overflow-x: hidden;

    line-height: 1.55;
  }

  .drt-package-description strong {
    font-weight: 700;
  }

  .drt-package-description ul,
  .drt-package-description ol {
    margin-top: 10px;
    margin-bottom: 18px;
    padding-left: 24px;
  }

  .drt-package-description li {
    margin: 5px 0;
  }

  .drt-package-description img {
    max-width: min(100%, 650px);
    height: auto;
    margin: 20px auto;
  }

}


/* =========================================================
   Daretto Network - Cerrar ficha de paquete
   ========================================================= */

.drt-package-information {
  position: relative;
}

.drt-package-close {
  position: absolute;
  top: 18px;
  right: 22px;
  z-index: 20;

  width: 38px;
  height: 38px;
  min-width: 38px;

  margin: 0;
  padding: 0;

  border: 1px solid rgba(255,255,255,.10);
  border-radius: 8px;

  background: rgba(255,255,255,.035);

  cursor: pointer;

  transition:
    background .15s ease,
    border-color .15s ease,
    transform .15s ease;
}

.drt-package-close::before,
.drt-package-close::after {
  content: "";
  position: absolute;

  top: 50%;
  left: 50%;

  width: 17px;
  height: 2px;

  border-radius: 2px;

  background: currentColor;
}

.drt-package-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.drt-package-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.drt-package-close:hover {
  background: rgba(235,145,15,.12);
  border-color: rgba(235,145,15,.55);
  transform: scale(1.04);
}

.drt-package-information-header {
  padding-right: 55px;
}

@media (max-width: 650px) {

  .drt-package-close {
    top: 14px;
    right: 14px;

    width: 36px;
    height: 36px;
    min-width: 36px;
  }

  .drt-package-information-header {
    padding-right: 48px;
  }

}


/* =========================================================
   Daretto Network - X premium V2
   ========================================================= */

.drt-package-close {
  position: absolute !important;
  top: 16px !important;
  right: 18px !important;
  z-index: 999 !important;

  display: block !important;

  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  max-width: 44px !important;
  max-height: 44px !important;

  margin: 0 !important;
  padding: 0 !important;

  border: 1px solid rgba(235, 145, 15, .55) !important;
  border-radius: 10px !important;

  background:
    linear-gradient(
      180deg,
      rgba(235, 145, 15, .16),
      rgba(235, 145, 15, .07)
    ) !important;

  box-shadow:
    0 0 0 1px rgba(235, 145, 15, .05),
    0 5px 16px rgba(0, 0, 0, .22) !important;

  color: #f0a11b !important;

  cursor: pointer !important;

  opacity: 1 !important;

  transition:
    background .18s ease,
    border-color .18s ease,
    box-shadow .18s ease,
    transform .18s ease !important;
}

.drt-package-close::before,
.drt-package-close::after {
  content: "" !important;

  position: absolute !important;
  top: 50% !important;
  left: 50% !important;

  width: 19px !important;
  height: 2.5px !important;

  border-radius: 10px !important;

  background: currentColor !important;

  pointer-events: none !important;
}

.drt-package-close::before {
  transform: translate(-50%, -50%) rotate(45deg) !important;
}

.drt-package-close::after {
  transform: translate(-50%, -50%) rotate(-45deg) !important;
}

.drt-package-close:hover {
  color: #ffb52b !important;

  border-color: rgba(245, 158, 11, .95) !important;

  background:
    linear-gradient(
      180deg,
      rgba(245, 158, 11, .28),
      rgba(235, 145, 15, .13)
    ) !important;

  box-shadow:
    0 0 18px rgba(235, 145, 15, .16),
    0 6px 18px rgba(0, 0, 0, .28) !important;

  transform: scale(1.06) !important;
}

.drt-package-close:active {
  transform: scale(.96) !important;
}

.drt-package-information-header {
  padding-right: 64px !important;
}


/* =========================================================
   Daretto Network
   Cierre premium definitivo del paquete V3
   ========================================================= */

.drt-package-information > .popup-close.drt-package-close {
  position: absolute !important;
  top: 17px !important;
  right: 18px !important;
  z-index: 1000 !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  min-height: 46px !important;
  max-width: 46px !important;
  max-height: 46px !important;

  margin: 0 !important;
  padding: 0 !important;

  border:
    1px solid rgba(242, 151, 17, .72) !important;

  border-radius: 11px !important;

  background:
    linear-gradient(
      180deg,
      rgba(242, 151, 17, .22) 0%,
      rgba(202, 112, 5, .11) 100%
    ) !important;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.035),
    0 0 0 1px rgba(242,151,17,.04),
    0 5px 16px rgba(0,0,0,.25) !important;

  color: #f5a623 !important;

  font-size: 0 !important;

  opacity: 1 !important;
  visibility: visible !important;

  cursor: pointer !important;

  transform: none !important;

  transition:
    border-color .18s ease,
    background .18s ease,
    box-shadow .18s ease,
    color .18s ease,
    transform .18s ease !important;
}


/* Eliminar iconografía ::before nativa de Altara */
.drt-package-information > .popup-close.drt-package-close::before {
  content: "" !important;

  position: absolute !important;
  top: 50% !important;
  left: 50% !important;

  width: 20px !important;
  height: 2.5px !important;

  margin: 0 !important;

  border: 0 !important;
  border-radius: 10px !important;

  background: currentColor !important;

  transform:
    translate(-50%, -50%)
    rotate(45deg) !important;

  opacity: 1 !important;
}


/* Segunda línea de la X */
.drt-package-information > .popup-close.drt-package-close::after {
  content: "" !important;

  position: absolute !important;
  top: 50% !important;
  left: 50% !important;

  width: 20px !important;
  height: 2.5px !important;

  margin: 0 !important;

  border: 0 !important;
  border-radius: 10px !important;

  background: currentColor !important;

  transform:
    translate(-50%, -50%)
    rotate(-45deg) !important;

  opacity: 1 !important;
}


.drt-package-information > .popup-close.drt-package-close:hover {
  color: #ffb52b !important;

  border-color:
    rgba(255, 174, 39, .95) !important;

  background:
    linear-gradient(
      180deg,
      rgba(245, 158, 11, .34) 0%,
      rgba(213, 121, 7, .18) 100%
    ) !important;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 0 18px rgba(242,151,17,.20),
    0 6px 18px rgba(0,0,0,.28) !important;

  transform: scale(1.055) !important;
}


.drt-package-information > .popup-close.drt-package-close:active {
  transform: scale(.94) !important;
}


.drt-package-information-header {
  padding-right: 70px !important;
}


@media (max-width: 650px) {

  .drt-package-information > .popup-close.drt-package-close {
    top: 13px !important;
    right: 13px !important;

    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    max-width: 42px !important;
    max-height: 42px !important;
  }

}


/* =========================================================
   Daretto Network
   X premium FINAL del popup de paquetes V4
   ========================================================= */

.popup:has(.drt-package-modal)
.popup-close.drt-package-popup-close {

  position: absolute !important;
  top: 18px !important;
  right: 18px !important;
  z-index: 99999 !important;

  display: block !important;

  width: 46px !important;
  height: 46px !important;

  min-width: 46px !important;
  min-height: 46px !important;

  max-width: 46px !important;
  max-height: 46px !important;

  padding: 0 !important;
  margin: 0 !important;

  border:
    1px solid rgba(245, 158, 11, .78) !important;

  border-radius: 11px !important;

  background:
    linear-gradient(
      180deg,
      rgba(245,158,11,.24),
      rgba(185,96,5,.13)
    ) !important;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 0 0 1px rgba(245,158,11,.05),
    0 5px 18px rgba(0,0,0,.30),
    0 0 15px rgba(245,158,11,.08)
    !important;

  color: #f5a623 !important;

  font-size: 0 !important;

  opacity: 1 !important;
  visibility: visible !important;

  cursor: pointer !important;

  transform: none !important;

  transition:
    background .18s ease,
    border-color .18s ease,
    box-shadow .18s ease,
    color .18s ease,
    transform .18s ease
    !important;
}


/* Primera línea */
.popup:has(.drt-package-modal)
.popup-close.drt-package-popup-close::before {

  content: "" !important;

  position: absolute !important;

  top: 50% !important;
  left: 50% !important;

  width: 20px !important;
  height: 2.5px !important;

  margin: 0 !important;

  border: 0 !important;
  border-radius: 5px !important;

  background: currentColor !important;

  opacity: 1 !important;

  transform:
    translate(-50%, -50%)
    rotate(45deg) !important;
}


/* Segunda línea */
.popup:has(.drt-package-modal)
.popup-close.drt-package-popup-close::after {

  content: "" !important;

  position: absolute !important;

  top: 50% !important;
  left: 50% !important;

  width: 20px !important;
  height: 2.5px !important;

  margin: 0 !important;

  border: 0 !important;
  border-radius: 5px !important;

  background: currentColor !important;

  opacity: 1 !important;

  transform:
    translate(-50%, -50%)
    rotate(-45deg) !important;
}


.popup:has(.drt-package-modal)
.popup-close.drt-package-popup-close:hover {

  color: #ffc04a !important;

  border-color:
    rgba(255,181,43,.98) !important;

  background:
    linear-gradient(
      180deg,
      rgba(245,158,11,.38),
      rgba(200,105,5,.21)
    ) !important;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.07),
    0 0 20px rgba(245,158,11,.22),
    0 6px 20px rgba(0,0,0,.32)
    !important;

  transform: scale(1.06) !important;
}


.popup:has(.drt-package-modal)
.popup-close.drt-package-popup-close:active {

  transform: scale(.94) !important;

}


@media (max-width: 650px) {

  .popup:has(.drt-package-modal)
  .popup-close.drt-package-popup-close {

    top: 13px !important;
    right: 13px !important;

    width: 42px !important;
    height: 42px !important;

    min-width: 42px !important;
    min-height: 42px !important;

  }

}


/* =========================================================
   Daretto Network
   X definitiva de paquetes V5
   ========================================================= */

.drt-package-information {
  position: relative !important;
}

.drt-package-information > .drt-package-close {
  position: absolute !important;
  top: 16px !important;
  right: 18px !important;
  z-index: 10000 !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;

  margin: 0 !important;
  padding: 0 !important;

  border: 1px solid rgba(245, 158, 11, .78) !important;
  border-radius: 11px !important;

  background:
    linear-gradient(
      180deg,
      rgba(245, 158, 11, .22),
      rgba(202, 112, 5, .10)
    ) !important;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 0 0 1px rgba(245,158,11,.04),
    0 5px 16px rgba(0,0,0,.24) !important;

  color: #f5a623 !important;

  font-size: 0 !important;
  line-height: 0 !important;

  opacity: 1 !important;
  visibility: visible !important;

  cursor: pointer !important;

  transition:
    background .18s ease,
    border-color .18s ease,
    box-shadow .18s ease,
    transform .18s ease,
    color .18s ease !important;
}


/* Primera línea de la X */
.drt-package-information > .drt-package-close::before {
  content: "" !important;

  position: absolute !important;
  top: 50% !important;
  left: 50% !important;

  width: 20px !important;
  height: 2.5px !important;

  background: currentColor !important;
  border-radius: 999px !important;

  transform:
    translate(-50%, -50%)
    rotate(45deg) !important;

  pointer-events: none !important;
}


/* Segunda línea de la X */
.drt-package-information > .drt-package-close::after {
  content: "" !important;

  position: absolute !important;
  top: 50% !important;
  left: 50% !important;

  width: 20px !important;
  height: 2.5px !important;

  background: currentColor !important;
  border-radius: 999px !important;

  transform:
    translate(-50%, -50%)
    rotate(-45deg) !important;

  pointer-events: none !important;
}


.drt-package-information > .drt-package-close:hover {
  color: #ffba38 !important;

  border-color: rgba(255, 181, 43, .98) !important;

  background:
    linear-gradient(
      180deg,
      rgba(245, 158, 11, .36),
      rgba(202, 112, 5, .19)
    ) !important;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.07),
    0 0 20px rgba(245,158,11,.20),
    0 6px 18px rgba(0,0,0,.28) !important;

  transform: scale(1.055) !important;
}


.drt-package-information > .drt-package-close:active {
  transform: scale(.94) !important;
}


.drt-package-information-header {
  padding-right: 70px !important;
}


@media (max-width: 650px) {

  .drt-package-information > .drt-package-close {
    top: 12px !important;
    right: 12px !important;

    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
  }

}



/* =========================================================
   Daretto Network
   X NATIVA FINAL - popup de paquetes
   No crea botones ni modifica el cierre de Altara.
   ========================================================= */

.store-product-popup > .popup-scroll-cont
> .store-product-popup-content {
  position: relative !important;
}


/* X NATIVA creada por openUrlPopup() */
.store-product-popup
.store-product-popup-content
> .popup-close {

  position: absolute !important;
  top: 16px !important;
  right: 16px !important;
  z-index: 999999 !important;

  display: block !important;

  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  max-width: 44px !important;
  max-height: 44px !important;

  margin: 0 !important;
  padding: 0 !important;

  overflow: visible !important;

  border: 1px solid rgba(245, 158, 11, .82) !important;
  border-radius: 11px !important;

  background:
    linear-gradient(
      180deg,
      rgba(245,158,11,.25),
      rgba(190,96,4,.13)
    ) !important;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 0 0 1px rgba(245,158,11,.04),
    0 5px 16px rgba(0,0,0,.30),
    0 0 14px rgba(245,158,11,.08)
    !important;

  color: #f5a623 !important;

  font-size: 0 !important;
  line-height: 0 !important;

  opacity: 1 !important;
  visibility: visible !important;

  cursor: pointer !important;

  transform: none !important;

  transition:
    color .18s ease,
    border-color .18s ease,
    background .18s ease,
    box-shadow .18s ease,
    transform .18s ease
    !important;
}


/* Línea 1 */
.store-product-popup
.store-product-popup-content
> .popup-close::before {

  content: "" !important;

  position: absolute !important;
  top: 50% !important;
  left: 50% !important;

  width: 20px !important;
  height: 2.5px !important;

  margin: 0 !important;

  border: 0 !important;
  border-radius: 999px !important;

  background: currentColor !important;

  transform:
    translate(-50%, -50%)
    rotate(45deg) !important;

  pointer-events: none !important;
}


/* Línea 2 */
.store-product-popup
.store-product-popup-content
> .popup-close::after {

  content: "" !important;

  position: absolute !important;
  top: 50% !important;
  left: 50% !important;

  width: 20px !important;
  height: 2.5px !important;

  margin: 0 !important;

  border: 0 !important;
  border-radius: 999px !important;

  background: currentColor !important;

  transform:
    translate(-50%, -50%)
    rotate(-45deg) !important;

  pointer-events: none !important;
}


.store-product-popup
.store-product-popup-content
> .popup-close:hover {

  color: #ffc04a !important;

  border-color: rgba(255,181,43,.98) !important;

  background:
    linear-gradient(
      180deg,
      rgba(245,158,11,.40),
      rgba(200,105,5,.22)
    ) !important;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 0 21px rgba(245,158,11,.24),
    0 6px 18px rgba(0,0,0,.32)
    !important;

  transform: scale(1.055) !important;
}


.store-product-popup
.store-product-popup-content
> .popup-close:active {
  transform: scale(.94) !important;
}


@media (max-width: 650px) {

  .store-product-popup
  .store-product-popup-content
  > .popup-close {

    top: 12px !important;
    right: 12px !important;

    width: 42px !important;
    height: 42px !important;

    min-width: 42px !important;
    min-height: 42px !important;

    max-width: 42px !important;
    max-height: 42px !important;
  }

}



/* =========================================================
   Daretto Network
   X NATIVA - corrección visual definitiva
   ========================================================= */

.store-product-popup
.store-product-popup-content
> .popup-close {

  position: absolute !important;
  top: 16px !important;
  right: 16px !important;
  z-index: 999999 !important;

  display: block !important;

  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  max-width: 44px !important;
  max-height: 44px !important;

  padding: 0 !important;
  margin: 0 !important;

  border: 1px solid rgba(245, 158, 11, .82) !important;
  border-radius: 11px !important;

  /*
   * La X se dibuja directamente en el fondo.
   * No depende de ::before / ::after de Altara.
   */
  background:
    linear-gradient(
      45deg,
      transparent 46%,
      #f5a623 46%,
      #f5a623 54%,
      transparent 54%
    ),
    linear-gradient(
      -45deg,
      transparent 46%,
      #f5a623 46%,
      #f5a623 54%,
      transparent 54%
    ),
    linear-gradient(
      180deg,
      rgba(245,158,11,.22),
      rgba(190,96,4,.12)
    ) !important;

  background-size:
    18px 18px,
    18px 18px,
    100% 100% !important;

  background-position:
    center,
    center,
    center !important;

  background-repeat:
    no-repeat,
    no-repeat,
    no-repeat !important;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 0 0 1px rgba(245,158,11,.04),
    0 5px 16px rgba(0,0,0,.28),
    0 0 15px rgba(245,158,11,.09)
    !important;

  color: transparent !important;

  font-size: 0 !important;
  line-height: 0 !important;

  opacity: 1 !important;
  visibility: visible !important;

  cursor: pointer !important;

  transform: none !important;
}


/* Neutralizar por completo los dibujos nativos */
.store-product-popup
.store-product-popup-content
> .popup-close::before,

.store-product-popup
.store-product-popup-content
> .popup-close::after {

  content: none !important;
  display: none !important;
}


/* Hover */
.store-product-popup
.store-product-popup-content
> .popup-close:hover {

  border-color: rgba(255, 185, 50, 1) !important;

  background:
    linear-gradient(
      45deg,
      transparent 46%,
      #ffc04a 46%,
      #ffc04a 54%,
      transparent 54%
    ),
    linear-gradient(
      -45deg,
      transparent 46%,
      #ffc04a 46%,
      #ffc04a 54%,
      transparent 54%
    ),
    linear-gradient(
      180deg,
      rgba(245,158,11,.38),
      rgba(200,105,5,.20)
    ) !important;

  background-size:
    18px 18px,
    18px 18px,
    100% 100% !important;

  background-position:
    center,
    center,
    center !important;

  background-repeat:
    no-repeat,
    no-repeat,
    no-repeat !important;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 0 21px rgba(245,158,11,.23),
    0 6px 18px rgba(0,0,0,.31)
    !important;

  transform: scale(1.055) !important;
}


.store-product-popup
.store-product-popup-content
> .popup-close:active {
  transform: scale(.94) !important;
}

/* =========================================================
   DARETTO NETWORK
   BOTÓN REGALAR - CONFIGURACIÓN FINAL
   ========================================================= */

/*
 * Mantiene la funcionalidad nativa de Altara/Tebex.
 * Visualmente iguala "Regalar" al botón primario
 * "Añadir al carrito".
 */

.store-product .product-actions .gift,
.drt-package-summary .product-actions .gift {
  box-sizing: border-box !important;

  flex: 1 1 auto !important;

  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;

  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;

  margin: 0 !important;
  padding: 0 18px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  gap: 0 !important;

  border: 0 !important;
  border-radius: var(--cs-radius, 16px) !important;

  background: var(--color-primary) !important;
  color: var(--color-primary-text) !important;

  font-family: inherit !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1 !important;

  letter-spacing: normal !important;
  text-align: center !important;
  text-indent: 0 !important;
  white-space: nowrap !important;

  box-shadow: none !important;

  cursor: pointer !important;

  transition:
    background-color .15s ease-in-out,
    color .15s ease-in-out,
    transform .15s ease-in-out !important;
}


/* Sin glyph: mantiene el texto matemáticamente centrado */
.store-product .product-actions .gift::before,
.drt-package-summary .product-actions .gift::before {
  content: none !important;
  display: none !important;
}


/* Mismo comportamiento visual que el botón primario */
.store-product .product-actions .gift:hover,
.store-product .product-actions .gift:focus,
.store-product .product-actions .gift:focus-visible,
.drt-package-summary .product-actions .gift:hover,
.drt-package-summary .product-actions .gift:focus,
.drt-package-summary .product-actions .gift:focus-visible {
  background: var(--color-primary-hover) !important;
  color: var(--color-primary-text-hover) !important;

  border: 0 !important;
  box-shadow: none !important;

  transform: none !important;
}


.store-product .product-actions .gift:active,
.drt-package-summary .product-actions .gift:active {
  transform: scale(.985) !important;
}


/* Móvil */
@media (max-width: 650px) {

  .store-product .product-actions .gift,
  .drt-package-summary .product-actions .gift {
    width: 100% !important;

    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;

    padding: 0 18px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
  }

}


/* =========================================================
   DARETTO NETWORK
   NOTIFICACIONES - DISEÑO COMPACTO FINAL
   Solo afecta #cs-notify-modal.
   ========================================================= */

#cs-notify-modal .cs-modal-card {
  box-sizing: border-box !important;

  width: min(390px, calc(100vw - 32px)) !important;
  min-width: 0 !important;
  max-width: 390px !important;

  padding: 22px 54px 22px 24px !important;

  border: 1px solid rgba(245, 158, 11, .22) !important;
  border-radius: 16px !important;

  background: #17140e !important;

  box-shadow:
    0 18px 55px rgba(0, 0, 0, .45),
    inset 0 1px 0 rgba(255, 255, 255, .035) !important;
}


/* Título */
#cs-notify-modal .cs-modal-title {
  margin: 0 0 7px !important;

  color: var(--color-primary) !important;

  font-size: 20px !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;

  letter-spacing: -.2px !important;
  text-transform: none !important;
}


/* Mensaje */
#cs-notify-modal .cs-modal-text {
  margin: 0 !important;

  color: var(--color-text) !important;

  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 1.45 !important;
}


/* X compacta */
#cs-notify-modal .cs-modal-close {
  top: 14px !important;
  right: 14px !important;

  width: 32px !important;
  height: 32px !important;

  border-radius: 10px !important;

  opacity: .72 !important;
}

#cs-notify-modal .cs-modal-close:hover,
#cs-notify-modal .cs-modal-close:focus {
  opacity: 1 !important;
}


/* En éxito usamos el naranja Daretto, no verde */
#cs-notify-modal .cs-modal-success .cs-modal-title {
  color: var(--color-primary) !important;
}


/* Errores siguen diferenciándose visualmente */
#cs-notify-modal .cs-modal-error .cs-modal-title {
  color: var(--color-removed) !important;
}


/* Fondo ligeramente más sutil */
#cs-notify-modal .cs-modal-overlay {
  background: rgba(0, 0, 0, .58) !important;
}


/* Móvil */
@media (max-width: 650px) {

  #cs-notify-modal .cs-modal-card {
    width: calc(100vw - 28px) !important;
    max-width: 390px !important;

    padding: 20px 50px 20px 20px !important;

    border-radius: 14px !important;
  }

  #cs-notify-modal .cs-modal-title {
    font-size: 19px !important;
  }

  #cs-notify-modal .cs-modal-text {
    font-size: 14px !important;
  }

}


/* =========================================================
   DARETTO NETWORK
   FIX RESPONSIVE - BOTONES DE COMPRA EN MODAL
   ========================================================= */

@media screen and (max-width: 650px) {

  .store-product-popup .product-actions {
    align-items: stretch !important;
  }

  .store-product-popup .product-actions > button,
  .store-product-popup .product-actions > a,
  .store-product-popup .product-actions > form > button {
    box-sizing: border-box !important;
    width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    flex: 0 0 48px !important;
    padding: 0 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1.2 !important;
  }

  .store-product-popup .product-actions > form {
    flex: 0 0 auto !important;
    width: 100% !important;
    min-height: 0 !important;
  }
}

/* Daretto Network - Logo oficial Altara */
.cs-sidebar-logo img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 190px;
    object-fit: contain;
    object-position: center;
    margin: 0 auto;
}

.cs-mobile-logo img {
    display: block;
    width: auto;
    height: 54px;
    max-width: 100%;
    object-fit: contain;
}

