.agent-zappy-admin-wrap {
	max-width: 1180px;
	padding-bottom: 32px;
}

.agent-zappy-admin-wrap .notice {
	margin: 16px 0;
}

.agent-zappy-hero {
	align-items: center;
	background: linear-gradient(135deg, #075e54 0%, #128c7e 52%, #25d366 100%);
	border-radius: 18px;
	box-shadow: 0 16px 36px rgba(7, 94, 84, 0.18);
	color: #fff;
	display: flex;
	gap: 24px;
	justify-content: space-between;
	margin: 18px 0 22px;
	overflow: hidden;
	padding: 34px;
	position: relative;
}

.agent-zappy-hero::after {
	border: 42px solid rgba(255, 255, 255, 0.08);
	border-radius: 999px;
	content: "";
	height: 180px;
	position: absolute;
	right: -70px;
	top: -100px;
	width: 180px;
}

.agent-zappy-hero h1 {
	color: #fff;
	font-size: 36px;
	font-weight: 700;
	line-height: 1.2;
	margin: 2px 0 10px;
}

.agent-zappy-eyebrow {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	margin: 0;
	opacity: 0.86;
	text-transform: uppercase;
}

.agent-zappy-hero__text {
	font-size: 15px;
	margin: 0;
	max-width: 650px;
	opacity: 0.92;
}

.agent-zappy-status-card {
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.26);
	border-radius: 14px;
	min-width: 250px;
	padding: 16px 18px;
	position: relative;
	z-index: 1;
}

.agent-zappy-status-card__label {
	display: block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	margin-bottom: 10px;
	text-transform: uppercase;
}

.agent-zappy-status-card ul {
	margin: 0;
}

.agent-zappy-status-card li {
	align-items: center;
	display: flex;
	gap: 8px;
	margin: 8px 0 0;
}

.agent-zappy-status-card li::before {
	background: #d63638;
	border-radius: 999px;
	content: "";
	display: inline-block;
	height: 9px;
	width: 9px;
}

.agent-zappy-status-card li.is-complete::before {
	background: #25d366;
}

.agent-zappy-layout {
	display: grid;
	gap: 22px;
	grid-template-columns: minmax(0, 1fr) 360px;
}

.agent-zappy-main-column,
.agent-zappy-side-column {
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.agent-zappy-section-intro {
	align-items: center;
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 14px;
	box-shadow: 0 5px 16px rgba(0, 0, 0, 0.04);
	display: flex;
	gap: 14px;
	margin: 0;
	padding: 14px 16px;
}

.agent-zappy-section-number {
	align-items: center;
	background: #075e54;
	border-radius: 12px;
	color: #fff;
	display: inline-flex;
	flex: 0 0 42px;
	font-size: 18px;
	font-weight: 700;
	height: 42px;
	justify-content: center;
}

.agent-zappy-section-intro--sync .agent-zappy-section-number {
	background: #2271b1;
}

.agent-zappy-section-intro h2 {
	font-size: 21px;
	line-height: 1.25;
	margin: 0 0 3px;
}

.agent-zappy-section-intro p {
	color: #646970;
	margin: 0;
}

.agent-zappy-settings-panel > summary {
	cursor: pointer;
	list-style: none;
}

.agent-zappy-settings-panel > summary::-webkit-details-marker {
	display: none;
}

.agent-zappy-settings-panel[open] > summary {
	border-color: #128c7e;
	box-shadow: 0 0 0 1px #128c7e;
	margin-bottom: 16px;
}

.agent-zappy-section-copy {
	display: block;
	flex: 1 1 auto;
}

.agent-zappy-section-copy strong,
.agent-zappy-section-copy small {
	display: block;
}

.agent-zappy-section-copy strong {
	color: #1d2327;
	font-size: 18px;
	line-height: 1.3;
}

.agent-zappy-section-copy small {
	color: #646970;
	font-size: 13px;
	margin-top: 3px;
}

.agent-zappy-section-action {
	align-items: center;
	color: #087f6f;
	display: flex;
	font-weight: 700;
	gap: 5px;
}

.agent-zappy-settings-panel[open] .agent-zappy-section-action .dashicons {
	transform: rotate(180deg);
}

.agent-zappy-section-action .dashicons {
	transition: transform 160ms ease;
}

.agent-zappy-card {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 16px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
	padding: 24px;
}

.agent-zappy-card--primary {
	border-top: 4px solid #128c7e;
	padding-top: 21px;
}

.agent-zappy-section-intro--sync + .agent-zappy-card--primary {
	border-top-color: #2271b1;
}

.agent-zappy-card__header {
	align-items: flex-start;
	border-bottom: 1px solid #f0f0f1;
	display: flex;
	gap: 16px;
	justify-content: space-between;
	margin: -4px 0 22px;
	padding-bottom: 18px;
}

.agent-zappy-card__header--compact {
	margin-bottom: 18px;
}

.agent-zappy-card h2 {
	font-size: 20px;
	line-height: 1.3;
	margin: 0 0 6px;
}

.agent-zappy-card p.agent-zappy-card__eyebrow {
	color: #128c7e;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	margin: 0 0 5px;
	text-transform: uppercase;
}

.agent-zappy-feature-icon {
	align-items: center;
	background: #e7f7ef;
	border-radius: 12px;
	color: #075e54;
	display: inline-flex;
	font-size: 24px;
	height: 46px;
	justify-content: center;
	width: 46px;
}

.agent-zappy-feature-icon--sync {
	background: #eef5ff;
	color: #2271b1;
}

.agent-zappy-subsection-title {
	color: #1d2327;
	font-size: 13px;
	letter-spacing: 0.04em;
	margin: 0 0 14px;
	text-transform: uppercase;
}

.agent-zappy-subsection-title--automation {
	border-top: 1px solid #f0f0f1;
	margin-top: 6px;
	padding-top: 20px;
}

.agent-zappy-connection-state {
	align-items: flex-start;
	border: 1px solid;
	border-radius: 12px;
	display: flex;
	gap: 12px;
	margin: 0 0 22px;
	padding: 14px 16px;
}

.agent-zappy-connection-state > .dashicons {
	flex: 0 0 20px;
	margin-top: 1px;
}

.agent-zappy-connection-state strong {
	display: block;
	margin-bottom: 3px;
}

.agent-zappy-connection-state.is-connected {
	background: #edfaF2;
	border-color: #9ed8b3;
	color: #075e32;
}

.agent-zappy-connection-state.is-required {
	background: #fff8e5;
	border-color: #e5c876;
	color: #6b4f00;
}

.agent-zappy-card .agent-zappy-connection-state p {
	color: inherit;
}

.agent-zappy-key-badge {
	background: #fce8e8;
	border-radius: 999px;
	color: #a02222;
	font-size: 10px;
	font-weight: 700;
	margin-left: 5px;
	padding: 3px 7px;
	text-transform: uppercase;
}

.agent-zappy-key-badge.is-saved {
	background: #e7f7ed;
	color: #006b2d;
}

.agent-zappy-api-key-control {
	align-items: stretch;
	display: grid;
	gap: 10px;
	grid-template-columns: minmax(0, 1fr) auto;
}

.agent-zappy-api-key-control input[type="password"] {
	min-width: 0;
	width: 100%;
}

.agent-zappy-api-key-control input.button {
	border-radius: 8px;
	min-height: 42px;
	padding-left: 18px;
	padding-right: 18px;
	white-space: nowrap;
	width: auto;
}

.agent-zappy-advanced-settings {
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	border-radius: 10px;
	margin: 2px 0 20px;
}

.agent-zappy-advanced-settings summary {
	cursor: pointer;
	font-weight: 600;
	padding: 13px 15px;
}

.agent-zappy-advanced-settings__content {
	border-top: 1px solid #dcdcde;
	padding: 16px 15px 0;
}

.agent-zappy-card p {
	color: #646970;
	font-size: 14px;
	margin: 0;
}

.agent-zappy-pill {
	background: #e7f7ef;
	border-radius: 999px;
	color: #075e54;
	font-size: 12px;
	font-weight: 700;
	padding: 7px 11px;
	white-space: nowrap;
}

.agent-zappy-pill--api {
	background: #eef5ff;
	color: #1d4f8f;
}

.agent-zappy-field-grid {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.agent-zappy-field {
	margin-bottom: 20px;
}

.agent-zappy-field label {
	color: #1d2327;
	display: block;
	font-weight: 700;
	margin-bottom: 8px;
}

.agent-zappy-field input,
.agent-zappy-field select,
.agent-zappy-field textarea {
	border-color: #c3c4c7;
	border-radius: 8px;
	box-shadow: none;
	box-sizing: border-box;
	max-width: 100%;
	min-height: 42px;
	width: 100%;
}

.agent-zappy-field textarea {
	min-height: 118px;
}

.agent-zappy-field input:focus,
.agent-zappy-field select:focus,
.agent-zappy-field textarea:focus {
	border-color: #128c7e;
	box-shadow: 0 0 0 1px #128c7e;
}

.agent-zappy-field p {
	font-size: 13px;
	margin-top: 7px;
}

.agent-zappy-toggle-field label {
	align-items: flex-start;
	display: flex;
	gap: 10px;
}

.agent-zappy-toggle-field input[type="checkbox"] {
	margin-top: 2px;
	min-height: auto;
	width: auto;
}

.agent-zappy-card__footer {
	align-items: center;
	border-top: 1px solid #f0f0f1;
	display: flex;
	gap: 12px;
	justify-content: flex-end;
	margin-top: 8px;
	padding-top: 18px;
}

.agent-zappy-card__footer .button {
	border-radius: 8px;
	min-height: 38px;
	padding-left: 18px;
	padding-right: 18px;
}

.agent-zappy-card--guide {
	background: #f8fbff;
	border-color: #c8dcf0;
}

.agent-zappy-card--technical {
	background: #f6f7f7;
	box-shadow: none;
}

.agent-zappy-update-history {
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-height: 560px;
	overflow-y: auto;
	padding-right: 3px;
}

.agent-zappy-update-item {
	background: #f6f7f7;
	border: 1px solid #e2e4e7;
	border-radius: 10px;
	padding: 12px;
}

.agent-zappy-update-item__header {
	align-items: center;
	display: flex;
	gap: 10px;
	justify-content: space-between;
}

.agent-zappy-update-status {
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	padding: 6px 9px;
}

.agent-zappy-update-status.is-success {
	background: #e7f7ed;
	color: #006b2d;
}

.agent-zappy-update-status.is-failed {
	background: #fce8e8;
	color: #a02222;
}

.agent-zappy-card p.agent-zappy-update-time {
	font-size: 12px;
	margin-top: 3px;
}

.agent-zappy-card p.agent-zappy-update-details {
	color: #2c3338;
	display: flex;
	flex-wrap: wrap;
	font-size: 13px;
	gap: 5px 14px;
	margin-top: 10px;
}

.agent-zappy-update-details span + span::before {
	color: #a7aaad;
	content: "\2022";
	margin-right: 14px;
}

.agent-zappy-update-empty {
	align-items: center;
	background: #f6f7f7;
	border-radius: 10px;
	display: flex;
	gap: 10px;
	padding: 14px;
}

.agent-zappy-update-empty .dashicons {
	color: #2271b1;
}

.agent-zappy-update-clear {
	border-top: 1px solid #f0f0f1;
	margin-top: 16px;
	padding-top: 16px;
}

.agent-zappy-debug-entry {
	border-top: 1px solid #dcdcde;
	padding: 10px 0;
}

.agent-zappy-debug-entry summary {
	cursor: pointer;
	font-weight: 600;
}

.agent-zappy-debug-entry pre {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	max-height: 240px;
	overflow: auto;
	padding: 10px;
	white-space: pre-wrap;
	word-break: break-word;
}

.agent-zappy-steps {
	counter-reset: agent-zappy-step;
	margin: 18px 0 0;
}

.agent-zappy-steps li {
	align-items: flex-start;
	counter-increment: agent-zappy-step;
	display: flex;
	gap: 12px;
	margin-bottom: 14px;
}

.agent-zappy-steps li::before {
	align-items: center;
	background: #2271b1;
	border-radius: 999px;
	color: #fff;
	content: counter(agent-zappy-step);
	display: inline-flex;
	flex: 0 0 24px;
	font-size: 12px;
	font-weight: 700;
	height: 24px;
	justify-content: center;
	width: 24px;
}

#agent-zappy-product-availability .inside p {
	margin: 10px 0;
}

#agent-zappy-product-availability select.widefat {
	max-width: 100%;
}

#agent-zappy-product-availability .agent-zappy-last-sync {
	background: #f6f7f7;
	border-left: 4px solid #72aee6;
	padding: 8px 10px;
}

#agent-zappy-product-availability .agent-zappy-last-sync--success {
	border-left-color: #00a32a;
}

#agent-zappy-product-availability .agent-zappy-last-sync--error {
	border-left-color: #d63638;
}

@media (max-width: 1100px) {
	.agent-zappy-layout {
		grid-template-columns: 1fr;
	}

	.agent-zappy-side-column {
		order: -1;
	}
}

@media (max-width: 782px) {
	.agent-zappy-hero,
	.agent-zappy-card__header {
		align-items: stretch;
		flex-direction: column;
	}

	.agent-zappy-status-card {
		min-width: 0;
	}

	.agent-zappy-field-grid {
		grid-template-columns: 1fr;
	}

	.agent-zappy-section-intro {
		align-items: flex-start;
	}

	.agent-zappy-section-action {
		font-size: 0;
		margin-left: auto;
	}

	.agent-zappy-section-action .dashicons {
		font-size: 20px;
	}

	.agent-zappy-api-key-control {
		grid-template-columns: 1fr;
	}

	.agent-zappy-api-key-control input.button {
		width: 100%;
	}
}
