* {
	margin: 0;
	padding: 0;
}

:root {
	--background: #ececec;
	--foreground: #000;
	--divider: #dcdcdc;
	--overlay: #888;
}

:root.dark {
	--background: #343434;
	--foreground: #fff;
	--divider: #676767;
}

.bottom-sheet-open {
	overflow: hidden !important;
}

.bottom-sheet {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: var(--sdk-index-popover);
	visibility: visible;
	transition: opacity 0.5s, visibility 0.5s;
	display: flex;
	justify-content: flex-end;
	flex-direction: column;
	align-items: center;
}

.bottom-sheet[aria-hidden="true"] {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.bottom-sheet .overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: -1;
}

.bottom-sheet .indicator {
	z-index: 1;
	top: -6px;
	width: 100%;
	left: 0;
	height: 16px;
	background: initial;
}

.bottom-sheet .contents {
	--default-transitions: transform 0.5s, border-radius 0.5s;

	transition: var(--default-transitions);
	border-radius: 1rem 1rem 0 0;
	background: var(--background);
	position: relative;
	overflow-y: hidden;
	/*transform: translateY(0);*/
	max-height: 100vh;
	height: 30vh;
	box-sizing: border-box;
	flex-direction: column;
	padding: 3rem 1rem 3.5rem;
	min-width: 500px;
	max-width: 50vw;
}

@media (max-width: 500px) {
	.bottom-sheet .contents {
		min-width: 95vw;
		max-width: 95vw;
	}
}

.bottom-sheet .contents:not(.not-selectable) {
	transition: var(--default-transitions), height 0.5s;
}

.bottom-sheet .contents.fullscreen {
	/*border-radius: 0;*/
}

.bottom-sheet[aria-hidden="true"] .contents {
	transform: translateY(100%);
}

.bottom-sheet .draggable-area {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	width: 3rem;
	margin: auto;
	padding: 1rem 0;
	cursor: grab;
}

.bottom-sheet .draggable-thumb {
	width: inherit;
	height: 0.25rem;
	background: var(--divider);
	border-radius: 0.125rem;
}

.bottom-sheet .contents .header {
	display: flex;
	flex-flow: column;
	align-items: center;
	padding-bottom: 8px;
}

.bottom-sheet .close-sheet {
	position: absolute;
	right: 0;
	top: 4px;
	border: none;
	padding: 5px 5px;
	background: transparent;
}

.bottom-sheet .body::-webkit-scrollbar {
	width: 3px;
	height: 3px;
}

.bottom-sheet .body {
	height: calc(100% - 140px);
	overflow-y: auto;
	gap: 1rem;
}

.bottom-sheet main header {
	text-align: center;
}

.bottom-sheet main content {
	margin-top: 1rem;
	display: flex;
	flex-direction: column;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.bottom-sheet main pre {
	width: 100%;
}


.bottom-sheet footer {
	display: flex;
	justify-content: center;
	gap: 0.25em;
	margin: 16px 0;
}

.bottom-sheet footer button {
	min-width: 22.5%;
}
