@layer components {
    .dialog {
        box-sizing: border-box;
        width: calc(100% - 1rem);
        max-width: none;
        margin: 0.5rem auto auto;
        padding: 0;
        color: inherit;
        background-color: #fff;
        background-clip: padding-box;
        border: 1px solid rgba(0, 0, 0, 0.2);
        border-radius: 0.3rem;
    }

    @media (min-width: 576px) {
        .dialog {
            max-width: 500px;
            margin-top: 1.75rem;
        }
    }

    @media (min-width: 992px) {
        .dialog {
            max-width: 800px;
        }
    }

    .dialog::backdrop {
        background-color: rgba(0, 0, 0, 0.5);
    }

    .dialog__header {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        padding: 1rem;
        border-bottom: 1px solid #dee2e6;
    }

    .dialog__title {
        margin-bottom: 0;
        line-height: 1.5;
    }

    .dialog__body {
        display: flow-root;
        padding: 1rem;
    }

    .dialog__close {
        padding: 1rem;
        margin: -1rem -1rem -1rem auto;
        float: right;
        font-size: 1.5rem;
        font-weight: 700;
        line-height: 1;
        color: #000;
        text-shadow: 0 1px 0 #fff;
        background-color: transparent;
        border: 0;
        opacity: 0.5;
    }
}
