.bottom-sheet {
    position: fixed;
    right: 20px;
    bottom: 20px;

    min-width: 320px;
    width: fit-content;

    max-width: calc(80vw - 40px);
    max-height: calc(80vh - 40px);

    display: flex;
    flex-direction: column;

    box-sizing: border-box;

    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);

    overflow: hidden;

    z-index: 1050;
}

.bottom-sheet-header {
    flex: 0 0 auto;
    min-width: 0;
    padding: 16px 20px;
    border-bottom: 1px solid #ddd;
}

.bottom-sheet-content {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;

    padding: 16px 20px;

    overflow: auto;
    overflow-wrap: anywhere;
}

.bottom-sheet-footer {
    flex: 0 0 auto;
    min-width: 0;

    padding: 12px 20px;

    border-top: 1px solid #ddd;
    background: #fff;
}

.bottomsheet-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}

.bottomsheet-buttons button {
    flex: 0 1 auto;
    max-width: 100%;
}