.dw-centre-details-trigger,
#dw-centre-details button {
    min-height: 44px;
    padding: .6rem 1rem;
    border: 1px solid currentColor;
    border-radius: .6rem;
    background: var(--dw-card, #fff);
    color: var(--dw-ink, #203a34);
    font: inherit;
    font-weight: 700;
    line-height: 1.35;
    cursor: pointer;
}

.dw-centre-details-trigger:hover,
#dw-centre-details button:hover {
    text-decoration: underline;
}

.dw-centre-details-trigger:focus-visible,
#dw-centre-details :is(button, input):focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}

.dw-centre-details-trigger[hidden],
#dw-centre-details [hidden] {
    display: none !important;
}

.dw-centre-details-entry {
    margin-block: 1rem;
}

#dw-centre-details {
    box-sizing: border-box;
    width: min(28rem, calc(100% - 2rem));
    max-height: calc(100% - 2rem);
    padding: 1.5rem;
    border: 1px solid currentColor;
    border-radius: .9rem;
    background: var(--dw-card, #fff);
    color: var(--dw-ink, #203a34);
    font: inherit;
}

#dw-centre-details::backdrop {
    background: rgb(16 27 24 / 60%);
}

#dw-centre-details h2 {
    margin: 0 2.5rem .3rem 0;
    color: inherit;
    font-size: 1.45rem;
    line-height: 1.25;
}

#dw-centre-details p {
    margin: .65rem 0;
}

#dw-centre-details .dw-centre-details-place {
    font-weight: 700;
}

#dw-centre-details form {
    display: grid;
    gap: .6rem;
}

#dw-centre-details label {
    font-weight: 700;
}

#dw-centre-details input {
    box-sizing: border-box;
    min-height: 44px;
    width: 100%;
    padding: .5rem .65rem;
    border: 1px solid currentColor;
    border-radius: .45rem;
    background: var(--dw-card, #fff);
    color: inherit;
    font: inherit;
    font-size: max(1rem, 16px);
}

#dw-centre-details button[type="submit"] {
    background: #176459;
    color: #fff;
}

#dw-centre-details button:disabled {
    opacity: .65;
    cursor: wait;
}

#dw-centre-details .dw-centre-details-close {
    position: absolute;
    inset: .6rem .6rem auto auto;
    width: 44px;
    padding: 0;
    font-size: 1.4rem;
}

#dw-centre-details [role="alert"] {
    font-weight: 700;
}
