/* DM_COUPON_UI_V1: capa final compacta cupón + moneda (/precios) */
html:root body:not(#dmA):not(#dmB) .dmxCouponCurrencyRowV4.dmxCouponCurrencyRowV4{
  width:auto!important;
  max-width:calc(100vw - 28px)!important;
  margin:10px auto 0!important;
  display:flex!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
}
html:root body:not(#dmA):not(#dmB) .dmxCouponCurrencyRowV4.dmxCouponCurrencyRowV4 .dmxCouponCurrencyCouponColV4.dmxCouponCurrencyCouponColV4{
  flex:0 1 auto!important;
  width:auto!important;
  min-width:0!important;
  justify-self:auto!important;
}
html:root body:not(#dmA):not(#dmB) .dmxCouponCurrencyRowV4.dmxCouponCurrencyRowV4 .dmxCouponCurrencyCurrencyColV4.dmxCouponCurrencyCurrencyColV4{
  flex:0 0 auto!important;
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  justify-self:auto!important;
}
html:root body:not(#dmA):not(#dmB) .dmxCouponCurrencyRowV4.dmxCouponCurrencyRowV4 #dmxAffiliateDiscountStandaloneWrapV3#dmxAffiliateDiscountStandaloneWrapV3.dmxCouponInlineV4{
  width:auto!important;
  max-width:none!important;
}
html:root body:not(#dmA):not(#dmB) .dmxCouponCurrencyRowV4.dmxCouponCurrencyRowV4 #dmxAffiliateDiscountPlainV2#dmxAffiliateDiscountPlainV2.dmxCouponPillV4{
  width:auto!important;
  min-width:132px!important;
  max-width:min(240px,calc(100vw - 150px))!important;
  height:38px!important;
  min-height:38px!important;
  padding:0 16px!important;
  font-size:.84rem!important;
  font-weight:700!important;
  line-height:1!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  box-shadow:0 6px 18px rgba(15,23,42,.06)!important;
}
html:root body:not(#dmA):not(#dmB) .dmxCouponCurrencyRowV4.dmxCouponCurrencyRowV4 .dmxCouponCurrencyCurrencyColV4.dmxCouponCurrencyCurrencyColV4 .dmxCurrencySwitch.dmxCurrencySwitch{
  width:96px!important;
  min-width:96px!important;
  max-width:96px!important;
  height:38px!important;
  min-height:38px!important;
  flex:0 0 96px!important;
  margin:0!important;
  box-shadow:0 6px 18px rgba(15,23,42,.06)!important;
}
html:root body:not(#dmA):not(#dmB) .dmxCouponCurrencyRowV4.dmxCouponCurrencyRowV4 .dmxCouponCurrencyCurrencyColV4.dmxCouponCurrencyCurrencyColV4 .dmxCurrencySwitch.dmxCurrencySwitch select,
html:root body:not(#dmA):not(#dmB) .dmxCouponCurrencyRowV4.dmxCouponCurrencyRowV4 .dmxCouponCurrencyCurrencyColV4.dmxCouponCurrencyCurrencyColV4 .dmxCurrencySelected.dmxCurrencySelected{
  width:96px!important;
  min-width:96px!important;
  max-width:96px!important;
  height:38px!important;
  min-height:38px!important;
  max-height:38px!important;
  font-size:.84rem!important;
}
/* Sin selector de moneda: el cupón queda centrado, sin estirarse */
html:root body:not(#dmA):not(#dmB) .dmxCouponCurrencyRowV4.dmxCouponCurrencyRowV4.dmxCouponCurrencyNoCurrencyV4{
  width:auto!important;
  display:flex!important;
  justify-content:center!important;
}
html:root body:not(#dmA):not(#dmB) .dmxCouponCurrencyRowV4.dmxCouponCurrencyRowV4.dmxCouponCurrencyNoCurrencyV4 #dmxAffiliateDiscountPlainV2#dmxAffiliateDiscountPlainV2.dmxCouponPillV4{
  width:auto!important;
  max-width:min(260px,calc(100vw - 40px))!important;
}
@media(max-width:560px){
  html:root body:not(#dmA):not(#dmB) .dmxCouponCurrencyRowV4.dmxCouponCurrencyRowV4{gap:6px!important;margin-top:8px!important}
  html:root body:not(#dmA):not(#dmB) .dmxCouponCurrencyRowV4.dmxCouponCurrencyRowV4 #dmxAffiliateDiscountPlainV2#dmxAffiliateDiscountPlainV2.dmxCouponPillV4{
    min-width:112px!important;
    height:36px!important;
    min-height:36px!important;
    padding:0 12px!important;
    font-size:.8rem!important;
  }
  html:root body:not(#dmA):not(#dmB) .dmxCouponCurrencyRowV4.dmxCouponCurrencyRowV4 .dmxCouponCurrencyCurrencyColV4.dmxCouponCurrencyCurrencyColV4 .dmxCurrencySwitch.dmxCurrencySwitch,
  html:root body:not(#dmA):not(#dmB) .dmxCouponCurrencyRowV4.dmxCouponCurrencyRowV4 .dmxCouponCurrencyCurrencyColV4.dmxCouponCurrencyCurrencyColV4 .dmxCurrencySwitch.dmxCurrencySwitch select,
  html:root body:not(#dmA):not(#dmB) .dmxCouponCurrencyRowV4.dmxCouponCurrencyRowV4 .dmxCouponCurrencyCurrencyColV4.dmxCouponCurrencyCurrencyColV4 .dmxCurrencySelected.dmxCurrencySelected{
    width:88px!important;min-width:88px!important;max-width:88px!important;
    height:36px!important;min-height:36px!important;max-height:36px!important;
    flex-basis:88px!important;
  }
}
/* Plan de pago vigente: sin cupón ni selector. Vuelve a aparecer al ser FREE/none */
html[data-dm-plan="pro"]:root body:not(#dmA):not(#dmB):not(#dmC) .dmxCouponCurrencyRowV4.dmxCouponCurrencyRowV4,
html[data-dm-plan="pro"]:root body:not(#dmA):not(#dmB):not(#dmC) #dmxAffiliateDiscountStandaloneWrapV3#dmxAffiliateDiscountStandaloneWrapV3,
html[data-dm-plan="pro"]:root body:not(#dmA):not(#dmB):not(#dmC) #dmxAffiliateDiscountPlainV2#dmxAffiliateDiscountPlainV2,
html[data-dm-plan="premium"]:root body:not(#dmA):not(#dmB):not(#dmC) .dmxCouponCurrencyRowV4.dmxCouponCurrencyRowV4,
html[data-dm-plan="premium"]:root body:not(#dmA):not(#dmB):not(#dmC) #dmxAffiliateDiscountStandaloneWrapV3#dmxAffiliateDiscountStandaloneWrapV3,
html[data-dm-plan="premium"]:root body:not(#dmA):not(#dmB):not(#dmC) #dmxAffiliateDiscountPlainV2#dmxAffiliateDiscountPlainV2{
  display:none!important;
}
