/* Style real dialog/detail controls. Their layouts own display and visibility. */
body
    :is(
        [data-ca-close],
        [data-pa-close],
        .btn-close:not([data-bs-dismiss='alert']),
        .pw-close,
        .pw-detail-head > a[aria-label='Close details'],
        .bw-detail .bw-section-head > a[aria-label='Close booking details']
    ) {
    --dialog-close-accent: var(--pa-pink, var(--ca-pink, var(--aa-pink, var(--brand-pink, #fd2e89))));
    box-sizing: border-box;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border: 1px solid var(--dialog-close-accent);
    border-radius: 50%;
    background: #fff0f6
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6l12 12M18 6L6 18' fill='none' stroke='%23111' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E")
        center / 20px 20px no-repeat;
    font-size: 0;
    background-color: color-mix(in srgb, var(--dialog-close-accent) 8%, white);
    filter: none;
    opacity: 1;
    cursor: pointer;
}

body
    :is(
        [data-ca-close],
        [data-pa-close],
        .btn-close:not([data-bs-dismiss='alert']),
        .pw-close,
        .pw-detail-head > a[aria-label='Close details'],
        .bw-detail .bw-section-head > a[aria-label='Close booking details']
    )
    > .bi {
    display: none;
}

body
    :is(
        [data-ca-close],
        [data-pa-close],
        .btn-close:not([data-bs-dismiss='alert']),
        .pw-close,
        .pw-detail-head > a[aria-label='Close details'],
        .bw-detail .bw-section-head > a[aria-label='Close booking details']
    ):hover {
    background-color: color-mix(in srgb, var(--dialog-close-accent) 16%, white);
    opacity: 1;
}

body
    :is(
        [data-ca-close],
        [data-pa-close],
        .btn-close:not([data-bs-dismiss='alert']),
        .pw-close,
        .pw-detail-head > a[aria-label='Close details'],
        .bw-detail .bw-section-head > a[aria-label='Close booking details']
    ):focus-visible {
    border-color: transparent;
    outline: 2px solid var(--dialog-close-accent);
    outline-offset: -1px;
    box-shadow: none;
    opacity: 1;
}
