/* Shared icon and touch target. Reuse the member layer above legacy important rules. */
@layer nova-member-ui {
  :root body [data-nova-close-icon][aria-label] {
    --nova-close-size:40px;
    box-sizing:border-box!important;display:inline-grid!important;place-items:center!important;align-content:center!important;justify-content:center!important;grid-template-columns:24px!important;grid-template-rows:24px!important;grid-auto-rows:0!important;
    flex:0 0 var(--nova-close-size)!important;width:var(--nova-close-size)!important;height:var(--nova-close-size)!important;
    min-width:var(--nova-close-size)!important;max-width:var(--nova-close-size)!important;min-height:var(--nova-close-size)!important;max-height:var(--nova-close-size)!important;
    padding:0!important;border:1px solid #d5dfe8!important;border-radius:50%!important;
    background:#fff!important;color:#17334f!important;font-size:0!important;line-height:0!important;
    outline:0!important;outline-offset:2px!important;box-shadow:none!important;
    text-decoration:none!important;cursor:pointer;-webkit-tap-highlight-color:transparent;
    transition:background-color .18s ease,color .18s ease,box-shadow .18s ease,scale .18s ease!important;
  }
  :root body [data-nova-close-icon][aria-label]>:is(svg,img,span) {display:none!important}
  :root body [data-nova-close-icon][aria-label]::before {
    content:""!important;display:block!important;position:static!important;inset:auto!important;
    width:24px!important;height:24px!important;margin:0!important;border:0!important;border-radius:0!important;
    background:currentColor!important;transform:none!important;pointer-events:none;
    -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 6 12 12M18 6 6 18' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
    mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 6 12 12M18 6 6 18' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
  }
  :root body [data-nova-close-icon][aria-label]::after {content:none!important;display:none!important}
  @media(pointer:coarse) {
    :root body [data-nova-close-icon][aria-label] {--nova-close-size:44px}
  }
  :root body [data-nova-close-icon]:is(:disabled,[aria-disabled="true"]) {opacity:.5;cursor:default}
  @media(hover:hover) and (pointer:fine) {
    :root body [data-nova-close-icon][aria-label]:not(:disabled,[aria-disabled="true"]):hover {
      background:#fff1c9!important;color:#092b48!important;border-color:#d9ad41!important;box-shadow:0 3px 10px #092b4826!important;scale:1.06;
    }
  }
  /* Focus changes the single existing border, never adds an outside circle. */
  :root[data-nova-close-focus="keyboard"] body [data-nova-close-icon][aria-label]:not(:disabled,[aria-disabled="true"]):focus-visible {border:2px solid #b88413!important;background:#fff1c9!important}
  :root body [data-nova-close-icon][aria-label]:not(:disabled,[aria-disabled="true"]):active {background:#fff1c9!important;border-color:#d9ad41!important;scale:.97}
  @media(prefers-reduced-motion:reduce) {
    :root body [data-nova-close-icon][aria-label] {transition:none!important;scale:none!important}
  }
}
/* Text closing actions retain their original geometry and shared desktop hover. */
@media(hover:hover) and (pointer:fine) {
  :root body :is(button,a,[role="button"]):is([data-close],[data-edit-close],[data-booking-close],[data-dismiss]):not([data-nova-close-icon],:disabled,[aria-disabled="true"]):hover {
    background-color:#fff1c9!important;color:#092b48!important;border-color:#d9ad41!important;box-shadow:0 3px 10px #092b4826!important;
  }
}
