/* Keep close-control overrides above legacy unlayered !important rules. */
@layer cmg-close-controls {
/* Individual rotation stays independent of legacy transform:none overrides. */
html:root body :is(button[data-close],.dialog-close,.cmg-assistant-close,.cmg-consent-close,.shortlist-item button.icon-button,.cmg-promo-close){
 rotate:0deg!important;
 transform:none!important;
 transform-origin:center;
 transition:rotate .2s ease,background-color .2s ease!important;
}
html:root body :is(button[data-close],.dialog-close,.cmg-assistant-close,.cmg-consent-close,.shortlist-item button.icon-button,.cmg-promo-close):hover{rotate:90deg!important}
/* The contact launcher shares a button with a chat icon: only its X turns. */
html:root body .cmg-contact-close-icon{rotate:0deg!important;transform-origin:center;transition:rotate .2s ease!important}
html:root body .cmg-contact-toggle[aria-expanded="true"]:hover .cmg-contact-close-icon{rotate:90deg!important}
@media(prefers-reduced-motion:reduce){
 html:root body :is(button[data-close],.dialog-close,.cmg-assistant-close,.cmg-consent-close,.shortlist-item button.icon-button,.cmg-promo-close),html:root body .cmg-contact-close-icon{transition:none!important;rotate:none!important}
}
/* One shared close-button appearance across all CMG surfaces. */
html:root body button:is([data-close],.dialog-close,.cmg-assistant-close,.cmg-consent-close,.shortlist-item .icon-button,.cmg-promo-close,.cmg-contact-toggle[aria-expanded="true"]):is(button,:hover,:focus,:active){
 box-sizing:border-box!important;
 display:grid!important;
 place-items:center!important;
 width:44px!important;height:44px!important;
 min-width:44px!important;min-height:44px!important;
 max-width:44px!important;max-height:44px!important;
 padding:1px 6px!important;
 border:0!important;
 border-radius:8px!important;
 background:transparent!important;
 color:var(--ink,#111)!important;
 box-shadow:none!important;
 font-size:24px!important;line-height:1!important;
 flex-shrink:0;
 cursor:pointer;
}
html:root body button:is([data-close],.dialog-close,.cmg-assistant-close,.cmg-consent-close,.shortlist-item .icon-button,.cmg-promo-close,.cmg-contact-toggle[aria-expanded="true"]) svg{
 width:20px!important;height:20px!important;
 fill:none!important;stroke:currentColor!important;stroke-width:1.65px!important;stroke-linecap:round!important;stroke-linejoin:round!important;
}

html:root body button:is([data-close],.dialog-close,.cmg-assistant-close,.cmg-consent-close,.shortlist-item .icon-button,.cmg-promo-close,.cmg-contact-toggle[aria-expanded="true"]):hover{
 background:#111!important;color:#fff!important;border-color:#111!important;
}

}
