/* Shared popup dismiss button. Preserve handlers, accessible names and busy state. */
:is(button.kc-lead-detail-close,button.kc-dtp-close,button.crm-popup-close,button.crm-profile-close,button.kc-quote-close,button.crm-quotation-detail-close,button.crm-workspace-close,button[aria-label^="Close"]:not([data-filter]),button[aria-label^="ปิด"]:not([data-filter]):not([aria-label^="ปิดใช้งาน"]):not([aria-label^="ปิดงาน"])){
 display:inline-grid!important;place-items:center!important;position:relative;flex:0 0 28px!important;width:28px!important;min-width:28px!important;height:28px!important;min-height:28px!important;padding:0!important;border:0 solid transparent!important;border-radius:6.3px!important;background:transparent!important;color:#fff!important;box-shadow:none!important;font-size:0!important;line-height:1!important;cursor:pointer;vertical-align:middle;
}
:is(button.kc-lead-detail-close,button.kc-dtp-close,button.crm-popup-close,button.crm-profile-close,button.kc-quote-close,button.crm-quotation-detail-close,button.crm-workspace-close,button[aria-label^="Close"]:not([data-filter]),button[aria-label^="ปิด"]:not([data-filter]):not([aria-label^="ปิดใช้งาน"]):not([aria-label^="ปิดงาน"]))::after{content:'';position:absolute;inset:0;background:url('./close-cross.svg') center/contain no-repeat}
:is(button.kc-lead-detail-close,button.kc-dtp-close,button.crm-popup-close,button.crm-profile-close,button.kc-quote-close,button.crm-quotation-detail-close,button.crm-workspace-close,button[aria-label^="Close"]:not([data-filter]),button[aria-label^="ปิด"]:not([data-filter]):not([aria-label^="ปิดใช้งาน"]):not([aria-label^="ปิดงาน"]))>*{display:none!important}
:is(button.kc-lead-detail-close,button.kc-dtp-close,button.crm-popup-close,button.crm-profile-close,button.kc-quote-close,button.crm-quotation-detail-close,button.crm-workspace-close,button[aria-label^="Close"]:not([data-filter]),button[aria-label^="ปิด"]:not([data-filter]):not([aria-label^="ปิดใช้งาน"]):not([aria-label^="ปิดงาน"])):hover{background:transparent!important;filter:brightness(.94)}
:is(button.kc-lead-detail-close,button.kc-dtp-close,button.crm-popup-close,button.crm-profile-close,button.kc-quote-close,button.crm-quotation-detail-close,button.crm-workspace-close,button[aria-label^="Close"]:not([data-filter]),button[aria-label^="ปิด"]:not([data-filter]):not([aria-label^="ปิดใช้งาน"]):not([aria-label^="ปิดงาน"])):focus-visible{outline:2px solid #5d82ad!important;outline-offset:3px!important}
:is(button.kc-lead-detail-close,button.kc-dtp-close,button.crm-popup-close,button.crm-profile-close,button.kc-quote-close,button.crm-quotation-detail-close,button.crm-workspace-close,button[aria-label^="Close"]:not([data-filter]),button[aria-label^="ปิด"]:not([data-filter]):not([aria-label^="ปิดใช้งาน"]):not([aria-label^="ปิดงาน"])):disabled{opacity:.45;cursor:not-allowed}
@media(max-width:600px){:is(button.kc-lead-detail-close,button.kc-dtp-close,button.crm-popup-close,button.crm-profile-close,button.kc-quote-close,button.crm-quotation-detail-close,button.crm-workspace-close,button[aria-label^="Close"]:not([data-filter]),button[aria-label^="ปิด"]:not([data-filter]):not([aria-label^="ปิดใช้งาน"]):not([aria-label^="ปิดงาน"])){width:28px!important;min-width:28px!important;height:28px!important;min-height:28px!important;flex-basis:28px!important;border-radius:6.3px!important}}

/* Other X actions keep their existing icon and button dimensions and labels. */
button svg.lucide-x{background:url('./close-cross.svg') center/contain no-repeat!important;border-radius:22%;color:transparent!important;stroke:transparent!important}
button svg.lucide-x>*{visibility:hidden}
button.kc-quote-remove{background:#f00712 url('./close-cross.svg') center/contain no-repeat!important;color:transparent!important;border-color:transparent!important;border-radius:9px!important}
button.kc-quote-remove:hover:not(:disabled){filter:brightness(.9)}
button:has(svg.lucide-x):focus-visible,button.kc-quote-remove:focus-visible{outline:2px solid #5d82ad;outline-offset:3px}

/* Shared dimensional dismiss treatment; retain the latest gold-outline asset. */
:is(button.kc-lead-detail-close,button.kc-dtp-close,button.crm-popup-close,button.crm-profile-close,button.kc-quote-close,button.crm-quotation-detail-close,button.crm-workspace-close,button[aria-label^="Close"]:not([data-filter]),button[aria-label^="ปิด"]:not([data-filter]):not([aria-label^="ปิดใช้งาน"]):not([aria-label^="ปิดงาน"]))::after{filter:drop-shadow(0 4px 4.5px #9905142e);transition:transform .12s ease,filter .12s ease}
:is(button.kc-lead-detail-close,button.kc-dtp-close,button.crm-popup-close,button.crm-profile-close,button.kc-quote-close,button.crm-quotation-detail-close,button.crm-workspace-close,button[aria-label^="Close"]:not([data-filter]),button[aria-label^="ปิด"]:not([data-filter]):not([aria-label^="ปิดใช้งาน"]):not([aria-label^="ปิดงาน"])):hover:not(:disabled)::after{transform:translateY(-1px);filter:drop-shadow(0 5px 5px #99051440)}
:is(button.kc-lead-detail-close,button.kc-dtp-close,button.crm-popup-close,button.crm-profile-close,button.kc-quote-close,button.crm-quotation-detail-close,button.crm-workspace-close,button[aria-label^="Close"]:not([data-filter]),button[aria-label^="ปิด"]:not([data-filter]):not([aria-label^="ปิดใช้งาน"]):not([aria-label^="ปิดงาน"])):active:not(:disabled)::after{transform:translateY(1px);filter:drop-shadow(0 1px 2px #99051426)}
@media(prefers-reduced-motion:reduce){:is(button.crm-popup-close,button.crm-profile-close,button.crm-quotation-detail-close,button[aria-label^="Close"]:not([data-filter]),button[aria-label^="ปิด"]:not([data-filter]))::after{transition:none}}
