/* .dialog {
    position: fixed;
    top: 50%;
    transform: translate(-50%, -50%);
    left: 50%;
    width: 100%;
} */
 .dialog{
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 9999;
 }
 .dialog[open] {
    opacity: 1;
 }
 .dialog button {
    background-color: #000;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
 }

.dialog__overlay {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 100;
}

.dialog__content {
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    padding: 20px;
    z-index: 101;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 500px;
    /* height: 80%; */
    max-height: 500px;
    overflow: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
}

.dialog__content div.dialog__header {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
}

.dialog__header h2.dialog__title {
    margin: 0;
    flex: 1;
    font-weight: bold;
    font-size: 16px;
}

.dialog__header button.dialog__close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--color-text);
    padding: 0;
    width: auto;
}

.dialog__footer {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.dialog__footer button.dialog__button{
    margin-left: 10px;
}