/* ProfitPixel settings design system */

body.giawc-analytics-admin #wpcontent,
body.giawc-analytics-admin #wpbody-content {
	background: #F2F0EA;
}

.giawc-settings-wrap {
	--ink: #1c1a17;
	--ink-soft: #6b6660;
	--card: #ffffff;
	--surface: oklch(0.96 0.008 80);
	--surface-strong: oklch(0.93 0.01 80);
	--accent: oklch(0.55 0.14 250);
	--accent-soft: oklch(0.94 0.04 250);
	--good: oklch(0.62 0.16 152);
	--good-soft: oklch(0.95 0.05 152);
	--bad: oklch(0.58 0.18 25);
	--bad-soft: oklch(0.95 0.04 25);
	--warn: oklch(0.72 0.14 75);
	--warn-soft: oklch(0.96 0.05 85);
	--gap: 18px;
	--radius-lg: 28px;
	--radius-xl: 34px;
	--shadow-card: 0 1px 0 rgba(0, 0, 0, 0.03), 0 26px 50px -28px rgba(40, 30, 15, 0.34);
	--shadow-soft: 0 1px 0 rgba(0, 0, 0, 0.025), 0 18px 36px -26px rgba(40, 30, 15, 0.30);
	max-width: 920px;
	margin: 4px auto;
	color: var(--ink);
	font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
	-webkit-font-smoothing: antialiased;
}

.giawc-settings-header {
	display: flex;
	align-items: flex-start;
	gap: 18px;
	margin-bottom: 22px;
}

.giawc-settings-header-icon {
	flex: none;
	width: clamp(58px, 8vw, 72px);
	height: clamp(58px, 8vw, 72px);
	display: grid;
	place-items: center;
	border-radius: 22px;
	background: oklch(0.93 0.07 152);
	color: oklch(0.48 0.14 152);
	font-size: clamp(1.6rem, 3vw, 2rem);
	line-height: 1;
}

.giawc-settings-header-main {
	min-width: 0;
}

.giawc-settings-wrap .giawc-settings-eyebrow {
	margin: 0 0 6px;
	color: var(--ink-soft);
	font-size: 0.74rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1.4;
}

.giawc-settings-wrap .giawc-settings-heading {
	margin: 0;
	padding: 0;
	color: var(--ink);
	font-size: clamp(1.75rem, 4vw, 2.2rem);
	font-weight: 900;
	line-height: 1.1;
	letter-spacing: -0.03em;
}

.giawc-settings-subtitle {
	margin: 10px 0 0;
	max-width: 560px;
	color: var(--ink-soft);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.5;
}

.giawc-settings-wrap .notice {
	border: none;
	border-radius: 18px;
	box-shadow: none;
	padding: 14px 18px;
	margin: 0 0 var(--gap);
	font-weight: 700;
}

.giawc-settings-wrap .notice-info {
	background: var(--accent-soft);
}

.giawc-settings-wrap .notice-info p {
	color: oklch(0.42 0.12 250);
}

.giawc-settings-wrap .notice-success {
	background: var(--good-soft);
}

.giawc-settings-wrap .notice-success p {
	color: oklch(0.42 0.12 152);
}

.giawc-settings-panel {
	background: var(--card);
	border: none;
	border-radius: var(--radius-xl);
	padding: clamp(22px, 3vw, 32px);
	box-shadow: var(--shadow-card);
}

.giawc-settings-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 24px;
	padding: 0 0 16px;
	border-bottom: 1.5px solid var(--surface-strong);
}

.giawc-settings-tab {
	appearance: none;
	border: 1.5px solid transparent;
	border-radius: 999px;
	background: var(--surface);
	color: var(--ink-soft);
	cursor: pointer;
	font-family: inherit;
	font-size: 0.88rem;
	font-weight: 800;
	line-height: 1.2;
	padding: 10px 16px;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.giawc-settings-tab:hover,
.giawc-settings-tab:focus {
	background: var(--accent-soft);
	border-color: var(--accent-soft);
	color: var(--ink);
	outline: none;
}

.giawc-settings-tab.is-active {
	background: var(--accent-soft);
	border-color: oklch(0.82 0.05 250);
	color: var(--ink);
}

.giawc-settings-tab-panel[hidden] {
	display: none !important;
}

.giawc-settings-tab-intro {
	margin: 0 0 18px;
	color: var(--ink-soft);
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.5;
}

.giawc-settings-tab-panel .form-table th.titledesc label:empty {
	display: none;
}

.giawc-settings-tab-panel .form-table tr:has(th label:empty) th.titledesc {
	width: 0;
	min-width: 0;
	padding: 0;
}

.giawc-settings-tab-panel h3.wc-settings-sub-title:first-of-type {
	margin-top: 0;
}

.giawc-settings-tab-panel h3.wc-settings-sub-title:first-of-type::before {
	display: none;
}

.giawc-settings-panel .form-table {
	margin-top: 0;
	border-collapse: separate;
	border-spacing: 0;
}

.giawc-settings-panel > form > h2,
.giawc-settings-panel > form > div:first-child + h2,
.giawc-settings-panel > form > .form-table:first-of-type:empty {
	display: none;
}

.giawc-settings-panel h3.wc-settings-sub-title {
	margin: 28px 0 8px;
	padding: 0;
	border: none;
	background: none;
	border-radius: 0;
	color: var(--ink);
	font-size: 1.05rem;
	font-weight: 900;
	line-height: 1.3;
	letter-spacing: -0.02em;
}

.giawc-settings-panel h3.wc-settings-sub-title:first-of-type {
	margin-top: 0;
}

.giawc-settings-panel h3.wc-settings-sub-title::before {
	content: "";
	display: block;
	width: 100%;
	height: 0;
	border-top: 1.5px dashed oklch(0.9 0.01 80);
	margin-bottom: 22px;
}

.giawc-settings-panel h3.wc-settings-sub-title:first-of-type::before {
	display: none;
}

.giawc-settings-panel h3.wc-settings-sub-title + p {
	margin: 0 0 18px;
	color: var(--ink-soft);
	font-size: 0.95rem;
	font-style: normal;
	font-weight: 600;
	line-height: 1.5;
}

.giawc-settings-panel .form-table th.titledesc {
	padding: 14px 24px 14px 0;
	width: 220px;
	color: var(--ink);
	font-size: 0.88rem;
	font-weight: 800;
	line-height: 1.4;
	vertical-align: top;
}

.giawc-settings-panel .form-table th.titledesc label::after {
	content: "";
}

.giawc-settings-panel .form-table td.forminp {
	padding: 10px 0 18px;
	font-size: 0.92rem;
	line-height: 1.5;
	vertical-align: top;
}

.giawc-settings-panel .form-table fieldset {
	margin: 0;
	padding: 0;
	border: 0;
}

.giawc-settings-panel .form-table fieldset label {
	font-weight: 700;
	color: var(--ink);
}

.giawc-settings-panel p.description {
	margin: 8px 0 0;
	color: var(--ink-soft);
	font-size: 0.88rem;
	font-style: normal;
	font-weight: 600;
	line-height: 1.5;
}

.giawc-settings-panel p.description code {
	background: var(--surface);
	padding: 2px 8px;
	border-radius: 8px;
	font-size: 0.85em;
	font-weight: 800;
}

.giawc-settings-panel .submit {
	margin: 8px 0 0;
	padding-top: 22px;
	border-top: 1.5px dashed oklch(0.9 0.01 80);
}

/* Controls */
.giawc-settings-wrap .button,
.giawc-settings-wrap .button-secondary {
	border-radius: 14px;
	border-color: var(--surface-strong);
	background: var(--surface);
	color: var(--ink);
	font-family: inherit;
	font-weight: 800;
	font-size: 0.88rem;
	padding: 8px 16px;
	min-height: 40px;
	box-shadow: none;
}

.giawc-settings-wrap .button:hover,
.giawc-settings-wrap .button-secondary:hover {
	background: var(--card);
	border-color: var(--surface-strong);
	color: var(--ink);
	transform: translateY(-1px);
	box-shadow: 0 8px 20px -12px rgba(40, 30, 15, 0.35);
}

.giawc-settings-wrap .button-primary {
	background: var(--good);
	border-color: transparent;
	color: #fff;
	text-shadow: none;
	box-shadow: 0 10px 24px -12px oklch(0.45 0.14 152);
}

.giawc-settings-wrap .button-primary:hover,
.giawc-settings-wrap .button-primary:focus {
	background: oklch(0.56 0.16 152);
	border-color: transparent;
	color: #fff;
}

.giawc-settings-panel .input-text.regular-input,
.giawc-settings-panel select.select {
	max-width: 420px;
	width: 100%;
	font-family: inherit;
	font-weight: 700;
	color: var(--ink);
	border-radius: 14px;
	border: 1.5px solid var(--surface-strong);
	background: var(--card);
	padding: 10px 14px;
	min-height: 42px;
	box-sizing: border-box;
}

.giawc-settings-panel .input-text.regular-input:focus,
.giawc-settings-panel select.select:focus {
	border-color: oklch(0.62 0.12 250);
	box-shadow: 0 0 0 3px oklch(0.94 0.04 250);
	outline: none;
}

.giawc-settings-panel input[type="checkbox"] {
	border-radius: 4px;
	border-color: var(--surface-strong);
}

.giawc-settings-panel input[type="checkbox"]:checked {
	background: var(--good);
	border-color: var(--good);
}

.giawc-settings-panel .woocommerce-help-tip {
	color: var(--ink-soft) !important;
}

#giawc-mp-test-result {
	font-size: 0.88rem;
	font-weight: 800;
}

@media (max-width: 782px) {
	.giawc-settings-header {
		flex-direction: column;
	}

	.giawc-settings-panel .form-table th.titledesc,
	.giawc-settings-panel .form-table td.forminp {
		display: block;
		width: 100%;
		padding-right: 0;
	}

	.giawc-settings-panel .input-text.regular-input,
	.giawc-settings-panel select.select {
		max-width: none;
	}
}
