
.coq-env-wrap,
.coq-env-product-mini,
.coq-env-modal { box-sizing:border-box; font-family:inherit; }

.coq-env-wrap *,.coq-env-product-mini *,.coq-env-modal *{box-sizing:border-box}

.coq-env-wrap{
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  border-radius:24px;
  padding:24px;
  box-shadow:0 18px 55px rgba(22,12,18,.08);
  color:#171217;
  width:100%;
  max-width:760px;
  margin:0 auto;
}
.coq-env-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}
.coq-env-eyebrow{font-size:11px;letter-spacing:.14em;font-weight:800;color:var(--coq-accent);display:block;margin-bottom:7px}
.coq-env-head h3{margin:0;font-size:clamp(22px,3vw,30px);line-height:1.08;color:#141014}
.coq-env-head p{margin:9px 0 0;color:#6d656b;font-size:14px}
.coq-env-close{border:0;background:#f8f4f6;border-radius:50%;width:34px;height:34px;font-size:22px;line-height:1;cursor:pointer;color:#4a4047;display:none}

.coq-env-progress{margin:18px 0 20px;padding:14px 16px;background:linear-gradient(135deg,#fff7fb,#fff);border:1px solid rgba(214,0,111,.12);border-radius:16px}
.coq-env-progress__text{font-size:14px;margin-bottom:9px}
.coq-env-progress__bar{height:7px;background:#f0e8ed;border-radius:99px;overflow:hidden}
.coq-env-progress__bar span{display:block;height:100%;background:linear-gradient(90deg,var(--coq-accent),var(--coq-accent-dark));border-radius:99px;transition:width .35s ease}
.coq-env-progress small{display:block;margin-top:8px;color:#81777e;font-size:11px}

.coq-env-section{margin-top:18px}
.coq-env-label{font-size:13px;font-weight:800;display:block;margin-bottom:10px}
.coq-env-cities{display:flex;gap:8px;overflow:auto;padding-bottom:4px;scrollbar-width:none}
.coq-env-cities::-webkit-scrollbar{display:none}
.coq-env-city{white-space:nowrap;border:1px solid #e9e1e6;background:#fff;border-radius:999px;padding:10px 14px;font-size:13px;font-weight:700;cursor:pointer;color:#3a3338;transition:.2s}
.coq-env-city:hover{border-color:rgba(214,0,111,.35)}
.coq-env-city.is-active{background:#171217;color:#fff;border-color:#171217}

.coq-env-notice{display:none;margin:16px 0 0;padding:13px 15px;border-radius:14px;background:#171217;color:#fff}
.coq-env-notice strong{display:block;font-size:13px}
.coq-env-notice span{display:block;font-size:12px;opacity:.8;margin-top:3px}
.coq-env-notice.is-visible{display:block}

.coq-env-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:16px}
.coq-env-card{
  appearance:none;text-align:left;position:relative;border:1px solid #eee6eb;background:#fff;border-radius:18px;padding:16px;cursor:pointer;
  min-height:145px;color:#171217;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease
}
.coq-env-card:hover{transform:translateY(-2px);border-color:rgba(214,0,111,.33);box-shadow:0 10px 30px rgba(37,20,30,.07)}
.coq-env-card.is-selected{border:1.5px solid var(--coq-accent);background:linear-gradient(145deg,#fff8fc,#fff);box-shadow:0 12px 32px rgba(214,0,111,.09)}
.coq-env-card__check{display:none;position:absolute;right:12px;bottom:12px;width:25px;height:25px;border-radius:50%;background:var(--coq-accent);color:#fff;align-items:center;justify-content:center;font-weight:900;font-size:12px}
.coq-env-card.is-selected .coq-env-card__check{display:flex}
.coq-env-card__top{display:flex;justify-content:space-between;gap:10px;align-items:center}
.coq-env-badge{display:inline-flex;align-items:center;background:#fff0f7;color:var(--coq-accent-dark);border-radius:999px;padding:6px 8px;font-size:9px;font-weight:900;letter-spacing:.04em}
.coq-env-card__price{font-size:20px;font-weight:900;letter-spacing:-.02em}
.coq-env-card__title{display:block;font-size:16px;font-weight:900;margin-top:16px}
.coq-env-card__subtitle{display:block;color:#71676e;font-size:12px;line-height:1.4;margin-top:4px}
.coq-env-card__extra{display:block;color:#9a8f96;font-size:10px;margin-top:9px}
.coq-method{display:none}
.coq-method.is-visible{display:block}

.coq-env-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:18px;padding-top:16px;border-top:1px solid #f1eaee}
.coq-env-selected-text{font-size:12px;color:#6f656c}
.coq-env-save{border:0;background:#171217;color:#fff;border-radius:999px;padding:12px 18px;font-weight:800;cursor:pointer;transition:.2s}
.coq-env-save:hover{background:var(--coq-accent)}

.coq-env-product-mini{
  margin:18px 0 6px;
  border:1px solid #eee4ea;
  background:linear-gradient(135deg,#fff,#fff8fc);
  border-radius:16px;
  padding:14px 15px;
  display:flex;
  gap:12px;
  align-items:flex-start;
  box-shadow:0 8px 24px rgba(26,12,20,.04)
}
.coq-env-product-mini__icon{width:36px;height:36px;border-radius:12px;background:#171217;color:#fff;display:flex;align-items:center;justify-content:center;font-size:16px;flex:0 0 36px}
.coq-env-product-mini__body strong{display:block;font-size:14px;color:#181218;margin-bottom:3px}
.coq-env-product-mini__body span{display:block;font-size:11.5px;line-height:1.45;color:#746a71}
.coq-env-open{border:0;background:transparent;padding:0;margin-top:6px;color:var(--coq-accent);font-size:11.5px;font-weight:900;cursor:pointer}
.coq-env-mini-choice .coq-env-open{display:inline;margin:0 0 0 5px}

.coq-env-modal{position:fixed;inset:0;z-index:999999;display:none}
.coq-env-modal.is-open{display:block}
.coq-env-backdrop{position:absolute;inset:0;background:rgba(17,10,14,.55);backdrop-filter:blur(3px)}
.coq-env-sheet{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(92vw,760px);max-height:88vh;overflow:auto;border-radius:26px}
.coq-env-modal .coq-env-wrap{box-shadow:none;border:0;margin:0;max-width:none}
.coq-env-modal .coq-env-close{display:block}

.coq-env-cart-block{margin:0 0 24px}
.coq-env-checkout-hint td{font-size:12px;color:#6f656c}

@media(max-width:680px){
  .coq-env-wrap{border-radius:20px;padding:18px}
  .coq-env-cards{grid-template-columns:1fr}
  .coq-env-card{min-height:0;padding:15px}
  .coq-env-card__title{margin-top:12px}
  .coq-env-footer{align-items:stretch;flex-direction:column}
  .coq-env-save{width:100%;padding:14px 18px}
  .coq-env-modal .coq-env-sheet{
    left:0;right:0;bottom:0;top:auto;transform:none;width:100%;max-height:92vh;border-radius:24px 24px 0 0
  }
  .coq-env-modal .coq-env-wrap{border-radius:24px 24px 0 0;padding-bottom:calc(18px + env(safe-area-inset-bottom))}
}


/* =========================================================
   1.0.2 — Selector de ciudad intuitivo + carrito compacto
   ========================================================= */

.coq-env-section .coq-env-label{display:none}

.coq-env-location-picker{
  position:relative;
  width:100%;
}

.coq-env-location-current{
  width:100%;
  appearance:none;
  border:1px solid #ece4e9;
  background:#fff;
  border-radius:16px;
  padding:13px 14px;
  display:flex;
  align-items:center;
  gap:11px;
  text-align:left;
  cursor:pointer;
  transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease;
  color:#171217;
}
.coq-env-location-current:hover{
  border-color:rgba(214,0,111,.28);
  box-shadow:0 9px 24px rgba(37,20,30,.06);
}
.coq-env-location-current__icon{
  width:36px;height:36px;border-radius:12px;
  display:flex;align-items:center;justify-content:center;
  background:#fff1f7;
  flex:0 0 36px;
  font-size:15px;
}
.coq-env-location-current__text{
  min-width:0;
  display:flex;
  flex-direction:column;
  flex:1;
}
.coq-env-location-current__text small{
  font-size:9px;
  letter-spacing:.08em;
  color:#8c8087;
  text-transform:uppercase;
  font-weight:800;
  line-height:1.2;
}
.coq-env-location-current__text strong{
  font-size:14px;
  color:#171217;
  margin-top:2px;
}
.coq-env-location-current__change{
  color:var(--coq-accent);
  font-size:11px;
  font-weight:900;
  white-space:nowrap;
}

.coq-env-city-panel{
  display:none;
  position:absolute;
  z-index:50;
  left:0;right:0;
  top:calc(100% + 8px);
  padding:16px;
  border-radius:18px;
  background:#fff;
  border:1px solid #eee6eb;
  box-shadow:0 20px 55px rgba(27,14,22,.16);
}
.coq-env-city-panel.is-open{display:block}
.coq-env-city-panel__head{
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:flex-start;
  margin-bottom:12px;
}
.coq-env-city-panel__head small{
  display:block;
  color:var(--coq-accent);
  font-size:9px;
  font-weight:900;
  letter-spacing:.09em;
  margin-bottom:4px;
}
.coq-env-city-panel__head strong{
  display:block;
  font-size:15px;
  color:#171217;
}
.coq-env-city-panel__close{
  width:30px;height:30px;
  border:0;
  background:#f8f4f6;
  border-radius:50%;
  cursor:pointer;
  font-size:19px;
  color:#4b4147;
}
.coq-env-city-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
.coq-env-city-grid .coq-env-city{
  border:1px solid #eee6eb;
  background:#fff;
  border-radius:13px;
  padding:12px 13px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  color:#2d272b;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
  text-align:left;
}
.coq-env-city-grid .coq-env-city:hover{
  border-color:rgba(214,0,111,.32);
}
.coq-env-city-grid .coq-env-city.is-active{
  background:#171217;
  color:#fff;
  border-color:#171217;
}
.coq-env-city__check{opacity:0}
.coq-env-city.is-active .coq-env-city__check{opacity:1}
.coq-env-city-panel__note{
  margin:11px 0 0;
  color:#81777e;
  font-size:10.5px;
  line-height:1.45;
}

/* El selector antiguo horizontal deja de intervenir */
.coq-env-cities{display:none!important}

/* Carrito: resumen compacto, nunca el cotizador apretado dentro de la columna */
.coq-env-cart-block{
  width:100%;
  margin:0 0 22px;
}
.coq-env-cart-launcher{
  width:100%;
  border:1px solid #eee5ea;
  border-radius:18px;
  background:linear-gradient(135deg,#fff,#fff9fc);
  padding:14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  box-shadow:0 9px 28px rgba(28,15,23,.05);
}
.coq-env-cart-launcher__main{
  display:flex;
  align-items:center;
  gap:11px;
  min-width:0;
}
.coq-env-cart-launcher__icon{
  width:40px;height:40px;
  border-radius:13px;
  background:#171217;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 40px;
  font-size:16px;
}
.coq-env-cart-launcher__copy{
  min-width:0;
}
.coq-env-cart-launcher__copy .coq-env-eyebrow{
  margin-bottom:3px;
  font-size:9px;
}
.coq-env-cart-launcher__copy strong{
  display:block;
  color:#171217;
  font-size:13px;
  line-height:1.3;
}
.coq-env-cart-launcher__copy span:not(.coq-env-eyebrow){
  display:block;
  margin-top:3px;
  color:#81777e;
  font-size:10.5px;
}
.coq-env-cart-launcher__button{
  flex:0 0 auto;
  margin:0;
  padding:10px 13px;
  border-radius:999px;
  border:0;
  background:#171217;
  color:#fff!important;
  font-size:10.5px;
  font-weight:900;
  line-height:1;
}
.coq-env-cart-launcher__button:hover{
  background:var(--coq-accent);
}

/* En modal las tarjetas aprovechan el ancho real */
.coq-env-modal .coq-env-cards{
  grid-template-columns:repeat(2,minmax(0,1fr));
}

/* Si el contenedor queda estrecho, no depender del ancho total de la ventana */
@container (max-width: 520px){
  .coq-env-cards{grid-template-columns:1fr}
}
.coq-env-wrap{container-type:inline-size}

@media(max-width:680px){
  .coq-env-city-panel{
    position:fixed;
    z-index:1000001;
    left:12px;
    right:12px;
    top:auto;
    bottom:12px;
    border-radius:22px;
    padding:17px;
  }
  .coq-env-city-grid{
    grid-template-columns:1fr 1fr;
  }
  .coq-env-city-grid .coq-env-city{
    padding:14px 13px;
    min-height:48px;
  }
  .coq-env-city-panel__note{font-size:11px}

  .coq-env-cart-launcher{
    align-items:stretch;
    flex-direction:column;
  }
  .coq-env-cart-launcher__button{
    width:100%;
    padding:13px 14px;
  }

  .coq-env-modal .coq-env-cards{
    grid-template-columns:1fr;
  }
}

@media(max-width:380px){
  .coq-env-city-grid{grid-template-columns:1fr}
}
