/**
 * Foldsquare - Catalog Maker for WooCommerce - Admin Styles
 *
 * @package Foldsquare_WooCommerce
 */

/* Card layout */
.foldsquare-wrap {
	max-width: 680px;
	margin: 20px auto;
}

.foldsquare-card {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
	overflow: hidden;
}

/* Header */
.foldsquare-header {
	padding: 32px 32px 24px;
	background: linear-gradient(135deg, #E9562B 0%, #d4441c 100%);
	color: #fff;
	text-align: center;
}

.foldsquare-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-bottom: 12px;
}

.foldsquare-logo-img {
	height: 72px;
	width: auto;
}

.foldsquare-description {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	opacity: 0.92;
}

/* Body */
.foldsquare-body {
	padding: 32px;
	text-align: center;
}

/* Status section */
.foldsquare-status {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
}

.foldsquare-status--connected {
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
}

.foldsquare-status-info {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.foldsquare-store-url {
	font-size: 14px;
	color: #50575e;
}

.foldsquare-store-url strong {
	color: #1d2327;
}

/* Badges */
.foldsquare-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
}

.foldsquare-badge--connected {
	background: #edfcf2;
	color: #0d7a3e;
	border: 1px solid #b8eac9;
}

.foldsquare-badge--connected::before {
	content: "";
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #0d7a3e;
}

/* Buttons */
.foldsquare-form {
	margin: 0;
}

.foldsquare-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 8px 24px !important;
	border-radius: 6px !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	cursor: pointer;
	transition: all 0.15s ease;
	text-decoration: none !important;
	line-height: 1.4 !important;
}

.foldsquare-btn--connect {
	background: linear-gradient(135deg, #E9562B 0%, #d4441c 100%) !important;
	color: #fff !important;
	border: none !important;
	box-shadow: 0 2px 4px rgba(233, 86, 43, 0.3) !important;
}

.foldsquare-btn--connect:hover {
	background: linear-gradient(135deg, #d4441c 0%, #bf3a15 100%) !important;
	box-shadow: 0 4px 8px rgba(233, 86, 43, 0.4) !important;
	transform: translateY(-1px);
}

.foldsquare-btn--connect:active {
	transform: translateY(0);
	box-shadow: 0 1px 2px rgba(233, 86, 43, 0.3) !important;
}

.foldsquare-btn--disconnect {
	background: #fff !important;
	color: #d63638 !important;
	border: 1px solid #d63638 !important;
}

.foldsquare-btn--disconnect:hover {
	background: #d63638 !important;
	color: #fff !important;
}

/* Requirement boxes */
.foldsquare-requirement {
	padding: 16px 20px;
	border-radius: 6px;
	font-size: 13px;
	line-height: 1.6;
	text-align: left;
	margin-bottom: 16px;
}

.foldsquare-requirement strong {
	display: block;
	margin-bottom: 4px;
	font-size: 14px;
}

.foldsquare-requirement p {
	margin: 0;
}

.foldsquare-requirement a {
	color: inherit;
	font-weight: 600;
}

.foldsquare-requirement--error {
	background: #fef2f1;
	border: 1px solid #f0b8b8;
	color: #8a1c1c;
}

.foldsquare-requirement--info {
	background: #f0f6fc;
	border: 1px solid #b8d4f0;
	color: #1a4a7a;
}

/* Connect text */
.foldsquare-connect-text {
	margin: 0 0 8px;
	font-size: 14px;
	line-height: 1.6;
	color: #50575e;
}

/* Notices */
.foldsquare-notice {
	margin: 0;
	padding: 12px 32px;
	border-top: 1px solid #dcdcde;
}

.foldsquare-notice p {
	margin: 0;
	font-size: 13px;
}

.foldsquare-notice--success {
	background: #edfcf2;
}

.foldsquare-notice--success p {
	color: #0d7a3e;
}

.foldsquare-notice--error {
	background: #fef2f1;
}

.foldsquare-notice--error p {
	color: #d63638;
}

/* Responsive */
@media screen and (max-width: 600px) {
	.foldsquare-header,
	.foldsquare-body {
		padding: 20px;
	}

	.foldsquare-status--connected {
		flex-direction: column;
		align-items: flex-start;
	}
}
