/* GF Direct Drive Upload — field styles */

.gfdd-upload-container {
	font-family: inherit;
}

/* ── Drop zone ─────────────────────────────────────────────────── */

.gfdd-drop-zone {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 32px 24px;
	border: 2px dashed #c5c5c5;
	border-radius: 8px;
	background: #fafafa;
	cursor: pointer;
	transition: border-color 0.15s, background 0.15s;
	text-align: center;
}

.gfdd-drop-zone:hover,
.gfdd-drop-zone.gfdd-drag-over {
	border-color: #4285f4;
	background: #f0f6ff;
}

.gfdd-drop-icon {
	color: #888;
	transition: color 0.15s;
}

.gfdd-drop-zone:hover .gfdd-drop-icon,
.gfdd-drop-zone.gfdd-drag-over .gfdd-drop-icon {
	color: #4285f4;
}

.gfdd-drop-text {
	margin: 0;
	font-size: 15px;
	color: #444;
}

.gfdd-drop-hint {
	margin: 0;
	font-size: 12px;
	color: #888;
}

.gfdd-browse-btn {
	background: none !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin: 0 !important;
	font: inherit !important;
	font-size: 15px !important;
	line-height: inherit !important;
	color: #4285f4 !important;
	cursor: pointer !important;
	text-decoration: underline !important;
	text-underline-offset: 2px !important;
	display: inline !important;
	vertical-align: baseline !important;
	width: auto !important;
	height: auto !important;
}

.gfdd-browse-btn:hover {
	color: #1a73e8 !important;
	background: none !important;
}

.gfdd-file-input {
	display: none !important;
}

/* ── Progress state ─────────────────────────────────────────────── */

.gfdd-file-info {
	padding: 16px;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	background: #fff;
}

.gfdd-file-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
}

.gfdd-file-name {
	font-size: 14px;
	color: #333;
	font-weight: 500;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 80%;
}

.gfdd-cancel-btn {
	background: none;
	border: none;
	cursor: pointer;
	color: #888;
	font-size: 16px;
	padding: 2px 6px;
	border-radius: 4px;
	line-height: 1;
	transition: color 0.15s, background 0.15s;
}

.gfdd-cancel-btn:hover {
	color: #c00;
	background: #fff0f0;
}

.gfdd-progress-track {
	height: 6px;
	background: #e8e8e8;
	border-radius: 99px;
	overflow: hidden;
	margin-bottom: 8px;
}

.gfdd-progress-fill {
	height: 100%;
	width: 0%;
	background: linear-gradient(90deg, #4285f4, #34a853);
	border-radius: 99px;
	transition: width 0.2s ease;
}

.gfdd-status-text {
	margin: 0;
	font-size: 12px;
	color: #666;
}

/* ── Success state ───────────────────────────────────────────────── */

.gfdd-success {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 16px;
	border: 1px solid #c8e6c9;
	border-radius: 8px;
	background: #f1f8f1;
	flex-wrap: wrap;
}

.gfdd-success-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	background: #34a853;
	color: #fff;
	border-radius: 50%;
	font-size: 13px;
	font-weight: bold;
	flex-shrink: 0;
}

.gfdd-success-name {
	font-size: 14px;
	color: #333;
	font-weight: 500;
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.gfdd-view-link {
	font-size: 13px;
	color: #1a73e8;
	text-decoration: none;
	white-space: nowrap;
}

.gfdd-view-link:hover {
	text-decoration: underline;
}

.gfdd-remove-btn {
	background: none;
	border: none;
	padding: 0;
	font-size: 12px;
	color: #888;
	cursor: pointer;
	white-space: nowrap;
	transition: color 0.15s;
}

.gfdd-remove-btn:hover {
	color: #c00;
}

/* ── Error ───────────────────────────────────────────────────────── */

.gfdd-error-msg {
	margin-top: 8px;
	padding: 8px 12px;
	border-radius: 6px;
	background: #fdecea;
	border: 1px solid #f5c6c6;
	color: #b71c1c;
	font-size: 13px;
}
