kiss-dialog {
    display: flex;
    align-items: flex-start;
    position: fixed;
    background: var(--kiss-dialog-background, rgba(0,0,0,.1));
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px;
    touch-action: none;
    opacity: 0;
    pointer-events: none;
    overflow-y: auto;
    z-index: 1000;
}

kiss-dialog > kiss-content {
    position: relative;
    display: flow-root;
    margin-top: auto;
    margin-bottom: auto;
    margin-left: auto;
    margin-right: auto;

    padding: var(--kiss-dialog-content-spacing, 10px);

    background: var(--kiss-dialog-content-background, #fff);
    color: var(--kiss-dialog-content-color, inherit);

    width: var(--kiss-dialog-width, 350px);
    max-width: calc(100% - 0.01px) !important;

    box-sizing: border-box;
}

kiss-dialog[size="medium"] > kiss-content {
    width: var(--kiss-dialog-medium-width, 500px);
}

kiss-dialog[size="large"] > kiss-content {
    width: var(--kiss-dialog-large-width, 600px);
}

kiss-dialog[size="xlarge"] > kiss-content {
    width: var(--kiss-dialog-xlarge-width, 1200px);
}

kiss-dialog[open] {
    opacity: 1;
    pointer-events: auto;
}
