/**
 * Frontend Styles
 */

.sds-sync-container {
	margin: 24px 0;
	display: flex;
	justify-content: center;
	align-items: stretch;
	padding: 0 16px;
	box-sizing: border-box;
}

.sds-sync-card {
	width: 100%;
	max-width: 640px;
	background: #ffffff;
	border-radius: 8px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
	border: 1px solid rgba(0, 0, 0, 0.04);
	padding: 20px 20px 18px;
	box-sizing: border-box;
}

.sds-sync-header {
	margin-bottom: 16px;
	text-align: left;
}

.sds-sync-title {
	margin: 0 0 4px;
	font-size: 1.1rem;
	font-weight: 600;
	color: #1d2327;
}

.sds-sync-subtitle {
	margin: 0;
	font-size: 0.9rem;
	color: #6c757d;
	line-height: 1.5;
}

.sds-sync-body {
	display: grid;
	grid-template-columns: 1fr;
	grid-gap: 16px;
	margin-bottom: 18px;
}

.sds-field-group {
	display: flex;
	flex-direction: column;
}

.sds-field-label {
	font-size: 0.85rem;
	font-weight: 600;
	color: #23282d;
	margin-bottom: 6px;
}

.sds-field-control {
	border-radius: 4px;
	border: 1px solid #d4d7dd;
	padding: 8px 10px;
	font-size: 0.9rem;
	color: #1d2327;
	background-color: #ffffff;
	box-sizing: border-box;
}

.sds-field-control:focus {
	outline: none;
	border-color: #0073aa;
	box-shadow: 0 0 0 1px rgba(0, 115, 170, 0.1);
}

.sds-select {
	min-height: 36px;
}

.sds-file-input {
	padding: 6px 8px;
}

.sds-field-help {
	margin: 6px 0 0;
	font-size: 0.8rem;
	color: #8a8f98;
}

.sds-sync-footer {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 10px;
}

.sds-sync-button {
	background-color: #0073aa;
	color: #fff;
	border: none;
	padding: 11px 22px;
	font-size: 0.95rem;
	font-weight: 600;
	border-radius: 4px;
	cursor: pointer;
	transition: background-color 0.18s ease, box-shadow 0.18s ease, transform 0.06s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	text-decoration: none;
	white-space: nowrap;
}

.sds-sync-primary {
	align-self: flex-start;
}

.sds-sync-button:hover {
	background-color: #005a87;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
	transform: translateY(-1px);
}

.sds-sync-button:focus-visible {
	outline: 2px solid #005a87;
	outline-offset: 2px;
}

.sds-sync-button:disabled {
	background-color: #e1e4ea;
	color: #777;
	cursor: not-allowed;
	opacity: 0.9;
	box-shadow: none;
	transform: none;
}

.sds-button-text {
	display: inline-flex;
	align-items: center;
}

.sds-button-loader {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.9rem;
}

.sds-button-loader::before {
	content: "";
	display: inline-block;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-top-color: #ffffff;
	animation: sds-spin 0.7s linear infinite;
}

.sds-sync-message {
	margin-top: 4px;
	padding: 12px;
	border-radius: 4px;
	font-weight: 500;
	font-size: 0.88rem;
	text-align: left;
}

.sds-sync-message.success {
	background-color: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.sds-sync-message.error {
	background-color: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

.sds-sync-message.info {
	background-color: #d1ecf1;
	color: #0c5460;
	border: 1px solid #bee5eb;
}

.sds-sync-image-container {
	width: 100%;
	max-width: 100%;
	margin: 24px 0;
	box-sizing: border-box;
}

.sds-sync-image-container img {
	width: 100%;
	height: auto;
	display: block;
	max-width: 100%;
	object-fit: cover;
}

@keyframes sds-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (min-width: 600px) {
	.sds-sync-body {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.sds-sync-footer {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}

	.sds-sync-message {
		flex: 1;
		margin-top: 0;
		margin-left: 8px;
	}
}
