.wpps-acc-wrap {
	max-width: 1400px;
}

.wpps-acc-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 16px 0 20px;
}

.wpps-acc-nav__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	background: #fff;
	text-decoration: none;
	color: #1d2327;
	font-weight: 500;
}

.wpps-acc-nav__link.is-active {
	border-color: #2271b1;
	box-shadow: inset 0 0 0 1px #2271b1;
	background: #f6f7f7;
}

.wpps-acc-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: 20px;
	align-items: start;
}

.wpps-acc-panel {
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	padding: 20px 24px;
}

.wpps-acc-panel h3 {
	margin-top: 0;
}

.wpps-acc-divider {
	margin: 24px 0;
	border: none;
	border-top: 1px solid #dcdcde;
}

.wpps-acc-preset-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 10px;
	margin-bottom: 8px;
	max-height: 420px;
	overflow: auto;
	padding-right: 4px;
}

.wpps-acc-preset-card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 12px;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	cursor: pointer;
	transition: border-color 0.15s ease;
}

.wpps-acc-preset-card:has(input:checked) {
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
}

.wpps-acc-preset-card__swatches {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 4px;
	height: 24px;
}

.wpps-acc-preset-card__swatches span {
	border-radius: 2px;
}

.wpps-acc-color-group {
	margin: 20px 0;
	padding-top: 8px;
	border-top: 1px solid #f0f0f1;
}

.wpps-acc-color-group h4 {
	margin: 0 0 12px;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: #646970;
}

.wpps-acc-color-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 12px;
}

.wpps-acc-color-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-size: 13px;
}

.wpps-acc-color-field__label {
	font-weight: 500;
}

.wpps-acc-advanced-section {
	margin-bottom: 28px;
	padding-bottom: 20px;
	border-bottom: 1px solid #f0f0f1;
}

.wpps-acc-advanced-section:last-of-type {
	border-bottom: none;
}

.wpps-acc-role-table select {
	min-width: 220px;
}

.wpps-acc-preview-panel {
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	padding: 16px;
	position: sticky;
	top: 32px;
}

.wpps-acc-preview {
	border: 1px solid #dcdcde;
	border-radius: 4px;
	overflow: hidden;
}

.wpps-acc-preview__toolbar {
	padding: 10px 12px;
	font-weight: 600;
}

.wpps-acc-preview__body {
	display: grid;
	grid-template-columns: 120px 1fr;
	min-height: 220px;
}

.wpps-acc-preview__menu {
	padding: 8px 0;
}

.wpps-acc-preview__menu-item,
.wpps-acc-preview__submenu-item {
	padding: 8px 12px;
	font-size: 12px;
}

.wpps-acc-preview__menu-item.is-current,
.wpps-acc-preview__menu-item.is-hover,
.wpps-acc-preview__submenu-item.is-hover {
	font-weight: 600;
}

.wpps-acc-preview__content {
	padding: 16px;
	background: #f0f0f1;
}

.wpps-acc-preview__buttons {
	display: flex;
	gap: 8px;
	margin-bottom: 12px;
}

.wpps-acc-preview__btn-primary,
.wpps-acc-preview__btn-secondary {
	border: 1px solid transparent;
	border-radius: 3px;
	padding: 6px 12px;
	font-size: 12px;
	cursor: default;
}

.wpps-acc-preview__notice {
	border-left: 4px solid #72aee6;
	padding: 8px 10px;
	background: #fff;
	font-size: 12px;
}

.wpps-acc-a11y-warnings {
	margin-top: 12px;
}

.wpps-acc-a11y-warnings .notice {
	margin: 0 0 8px;
}

.wpps-acc-settings-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
	margin-top: 16px;
	padding: 16px;
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
}

.wpps-acc-settings-footer .button-large {
	min-height: 38px;
	padding-left: 18px;
	padding-right: 18px;
}

.wpps-acc-customize-section--locked .wpps-acc-color-field {
	opacity: 0.72;
}

.wpps-acc-custom-css-section {
	margin-top: 8px;
}

.wpps-acc-custom-css-editor-wrap {
	margin-top: 20px;
}

.wpps-acc-custom-css-panel.wpps-cs-code-panel {
	margin-top: 0;
}

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

	.wpps-acc-preview-panel {
		position: static;
	}
}
