﻿.cloud-picker-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(32, 33, 36, 0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 100000;
}

.cloud-picker-dialog {
	background: #fff;
	width: 720px;
	height: 520px;
	max-height: 520px;
	display: flex;
	flex-direction: column;
	border-radius: 8px;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
	overflow: hidden;
	font-family: Roboto, Arial, sans-serif;
}

.cloud-picker-body {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 16px;
}

.cloud-picker-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	border-bottom: 1px solid #e0e0e0;
}

.cloud-picker-header-left {
	display: flex;
	align-items: center;
	gap: 8px;
}

.cloud-picker-header-right {
	display: flex;
	align-items: center;
	gap: 8px;
}

.cloud-picker-back {
	border: none;
	background: transparent;
	padding: 6px;
	border-radius: 50%;
	cursor: pointer;
	color: #444;
}

.cloud-picker-back:disabled {
	opacity: 0.3;
	cursor: default;
}

.cloud-picker-back:hover:not(:disabled) {
	background: #f1f3f4;
}

.cloud-picker-title {
	font-size: 18px;
	font-weight: 500;
	color: #202124;
}

.cloud-picker-sort {
	font-size: 13px;
	padding: 4px 8px;
}

.cloud-picker-close {
	background: transparent;
	border: none;
	cursor: pointer;
	font-size: 20px;
	line-height: 1;
	color: #5f6368;
}

.cloud-picker-close:hover {
	color: #202124;
}

.cloud-picker-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	gap: 16px;
}

.cloud-picker-tile {
	height: 120px;
	border: 1px solid #dadce0;
	border-radius: 8px;
	background: #fff;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: box-shadow 0.15s ease, background 0.15s ease;
}

.cloud-picker-tile:hover {
	background: #f1f3f4;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.cloud-picker-tile.selected {
	background: #e8f0fe;
	border-color: #1a73e8;
}

.cloud-picker-icon {
	font-size: 40px;
	color: #5f6368;
}

.cloud-picker-tile.folder .cloud-picker-icon {
	color: #fbbc04;
}

.cloud-picker-label {
	margin-top: 8px;
	font-size: 13px;
	color: #202124;
	text-align: center;
	line-height: 1.25;
	max-height: 2.5em;
	overflow: hidden;
	text-overflow: ellipsis;
	word-break: break-word;
	width: 100%;
	padding: 0 6px;
}

.cloud-picker-empty {
	text-align: center;
	padding: 40px;
	color: #5f6368;
	font-size: 14px;
}

.cloud-picker-skeleton {
	height: 120px;
	border-radius: 8px;
	background: linear-gradient( 90deg, #f1f3f4 25%, #e0e0e0 37%, #f1f3f4 63% );
	background-size: 400% 100%;
	animation: shimmer 1.4s ease infinite;
}

@keyframes shimmer {
	0% {
		background-position: 100% 0;
	}

	100% {
		background-position: -100% 0;
	}
}

.cloud-picker-footer {
	display: flex;
	justify-content: flex-end;
	padding: 12px 16px;
	border-top: 1px solid #e0e0e0;
	gap: 8px;
}

.cloud-picker-cancel,
.cloud-picker-select {
	font-size: 14px;
	padding: 6px 16px;
	border-radius: 4px;
	cursor: pointer;
}

.cloud-picker-cancel {
	background: transparent;
	border: 1px solid #dadce0;
	color: #202124;
}

.cloud-picker-cancel:hover {
	background: #f1f3f4;
}

.cloud-picker-select {
	background: #1a73e8;
	border: none;
	color: white;
}

.cloud-picker-select:disabled {
	background: #dadce0;
	cursor: not-allowed;
}