#hcaptcha-options.hcaptcha-advanced h3 {
	display: flex;
	justify-content: space-between;
	max-width: 760px;
	box-sizing: border-box;
	padding: 15px 20px;
	margin: 1.5em 0 0;
	background: #fff;
	color: #5c6f8a;
	cursor: pointer;
}

#hcaptcha-options.hcaptcha-advanced h3.disabled,
#hcaptcha-options.hcaptcha-advanced h3.disabled + table {
	opacity: 0.6;
}

#hcaptcha-options.hcaptcha-advanced h3 + table {
	max-width: 760px;
	margin-top: 0;
	position: relative;
}

#hcaptcha-options.hcaptcha-advanced h3 + table::before {
	content: '';
	position: absolute;
	top: 0;
	width: calc(100% - 40px);
	max-width: 720px;
	margin: 0 20px;
	border-bottom: 1px solid #c3c4c7;
}

#hcaptcha-options.hcaptcha-advanced h3 + table tbody {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	padding: 15px 20px;
	background: #fff;
}

#hcaptcha-options.hcaptcha-advanced h3 + table tbody tr {
	display: grid;
	align-self: start;
}

#hcaptcha-options.hcaptcha-advanced h3 + table tbody th {
	width: auto;
	padding: 0 0 10px;
	color: #5c6f8a;
}

#hcaptcha-options.hcaptcha-advanced h3 + table tbody th:empty {
	padding: 0;
}

#hcaptcha-options.hcaptcha-advanced h3 + table tbody td input[type="text"],
#hcaptcha-options.hcaptcha-advanced h3 + table tbody td input[type="number"],
#hcaptcha-options.hcaptcha-advanced h3 + table tbody td textarea {
	width: 100%;
	box-sizing: border-box;
}

#hcaptcha-options.hcaptcha-advanced .hcaptcha-section-header-toggle::after {
	content: "\f142";
	font: normal 20px dashicons;
	-webkit-font-smoothing: antialiased;
}

#hcaptcha-options.hcaptcha-advanced h3.closed .hcaptcha-section-header-toggle::after {
	content: "\f140";
}

/* Section Enterprise */
.hcaptcha-section-enterprise + table tbody {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px 20px;
	padding: 15px 20px;
}

.hcaptcha-section-enterprise + table tbody th {
	width: auto;
}

.hcaptcha-section-enterprise + table tbody tr th {
	padding: 0 0 10px 0;
}

.hcaptcha-section-enterprise + table tbody tr td input {
	width: 100%;
}

/* Section Protect Content */
.hcaptcha-section-content + table tbody {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-template-areas:
		"content protected-urls";
	gap: 0 20px;
	padding: 15px 20px;
}

.hcaptcha-section-content + table tbody tr.hcaptcha-advanced-content {
	grid-area: content;
}

.hcaptcha-section-content + table tbody tr.hcaptcha-advanced-protected-urls {
	grid-area: protected-urls;
}

.hcaptcha-section-content + table tbody tr th {
	padding: 0 0 10px 0;
	width: auto;
}

.hcaptcha-section-content + table tbody tr td {
	width: max-content;
}

.hcaptcha-section-content + table tbody tr.hcaptcha-advanced-protected-urls td {
	width: auto;
}

.hcaptcha-section-content + table tbody tr td textarea,
.hcaptcha-section-content + table tbody tr td input {
	width: 100%;
}


/* Section Other */
.hcaptcha-section-other + table tbody {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-template-areas:
		"logged delay"
		"recaptcha delay"
		"cleanup-on-uninstall ajax"
		". network";
	gap: 0 20px;
	padding: 15px 20px;
}

.hcaptcha-section-other + table tbody tr.hcaptcha-advanced-delay {
	grid-area: delay;
}

.hcaptcha-section-other + table tbody tr.hcaptcha-advanced-off-when-logged-in {
	grid-area: logged;
}

.hcaptcha-section-other + table tbody tr.hcaptcha-advanced-ajax-forms {
	grid-area: ajax;
}

.hcaptcha-section-other + table tbody tr.hcaptcha-advanced-recaptcha-compat-off {
	grid-area: recaptcha;
}

.hcaptcha-section-other + table tbody tr.hcaptcha-advanced-cleanup-on-uninstall {
	grid-area: cleanup-on-uninstall;
}

.hcaptcha-section-other + table tbody tr.hcaptcha-advanced--network-wide {
	grid-area: network;
}

.hcaptcha-section-other + table tbody tr th {
	padding: 0 0 10px 0;
	width: auto;
}

.hcaptcha-section-other + table tbody tr td {
	width: max-content;
}

.hcaptcha-section-other + table tbody tr.hcaptcha-advanced-delay td {
	width: auto;
}

.hcaptcha-section-other + table tbody tr td input {
	width: 100%;
}

/* Section Statistics */
.hcaptcha-section-statistics + table tbody {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-template-areas:
		"statistics collect-ip"
		"anonymous collect-ua";
	gap: 0 20px;
	padding: 15px 20px;
}

.hcaptcha-section-statistics + table tbody tr.hcaptcha-advanced-statistics {
	grid-area: statistics;
}

.hcaptcha-section-statistics + table tbody tr.hcaptcha-advanced-anonymous {
	grid-area: anonymous;
}

.hcaptcha-section-statistics + table tbody tr.hcaptcha-advanced-collect-ip {
	grid-area: collect-ip;
}

.hcaptcha-section-statistics + table tbody tr.hcaptcha-advanced-collect-ua {
	grid-area: collect-ua;
}

.hcaptcha-section-statistics + table tbody tr th {
	padding: 0 0 10px 0;
	width: auto;
}

.hcaptcha-section-statistics + table tbody tr td {
	width: max-content;
}

.hcaptcha-section-statistics + table tbody tr.hcaptcha-advanced-statistics td {
	width: max-content;
	min-width: 0;
}

.hcaptcha-section-statistics + table tbody tr.hcaptcha-advanced-statistics .helper-content {
	max-width: calc(100vw - 40px);
	white-space: normal;
	overflow-wrap: anywhere;
	line-height: 1.5;
}

@media (max-width: 600px) {
	#hcaptcha-options.hcaptcha-advanced h3 + table tbody {
		grid-template-columns: minmax(0, 1fr);
	}
	.hcaptcha-section-enterprise + table tbody {
		grid-template-columns: repeat(1, 1fr) !important;
	}

	.hcaptcha-section-enterprise + table tbody tr td {
		width: unset !important;
	}

	.hcaptcha-section-content + table tbody {
		grid-template-columns: repeat(1, 1fr);
		grid-template-areas:
		"content"
		"protected-urls";
	}

	.hcaptcha-section-content + table tbody tr td {
		width: unset !important;
	}

	.hcaptcha-section-other + table tbody {
		grid-template-columns: repeat(1, 1fr) !important;
		grid-template-areas:
		"delay"
		"logged"
		"recaptcha"
		"cleanup-on-uninstall"
		"ajax"
		"network";
	}

	.hcaptcha-section-other + table tbody tr td {
		width: unset !important;
	}

	.hcaptcha-section-statistics + table tbody {
		grid-template-columns: repeat(1, 1fr);
		grid-template-areas:
		"statistics"
		"anonymous"
		"collect-ip"
		"collect-ua";
	}

	.hcaptcha-section-statistics + table tbody tr td {
		width: unset !important;
	}

	.hcaptcha-section-statistics + table tbody tr.hcaptcha-advanced-statistics td {
		width: max-content !important;
	}
}
