#hcaptcha-message,
#setting-error-settings_updated {
	max-width: 760px;
	box-sizing: border-box;
}

#hcaptcha-options table tbody {
	background: #fff;
}

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

#hcaptcha-options table tbody tr th {
	color: #5c6f8a;
}

#hcaptcha-options table tbody tr td {
	padding: 0;
	margin: 0;
	position: relative;
}

#hcaptcha-options .h-captcha {
	margin-bottom: 0;
}

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

.hcaptcha-section-header-toggle:after {
	content: "\f142";
	font: normal 20px dashicons;
	speak: never;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

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

#hcaptcha-options.hcaptcha-general h3.closed + table {
	display: none;
}

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

/* Section Keys */
.hcaptcha-section-keys + table tbody {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-template-areas:
		"site-key site-key secret-key secret-key"
		"sample-hcaptcha sample-hcaptcha check-config reset-notifications";
	gap: 10px 20px;
	padding: 15px 20px;
}

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

.hcaptcha-section-keys + table tbody tr.hcaptcha-general-site-key {
	grid-area: site-key;
}

.hcaptcha-section-keys + table tbody tr.hcaptcha-general-secret-key {
	grid-area: secret-key;
}

.hcaptcha-section-keys + table tbody tr.hcaptcha-general-sample-hcaptcha {
	grid-area: sample-hcaptcha;
}

.hcaptcha-section-keys + table tbody tr.hcaptcha-general-check-config {
	grid-area: check-config;
}

.hcaptcha-section-keys + table tbody tr.hcaptcha-reset-notifications {
	grid-area: reset-notifications;
}

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

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

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

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

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

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

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

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

.hcaptcha-section-custom + table tbody tr.hcaptcha-general-config-params td {
	width: auto;
}

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

/* 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 Other */
.hcaptcha-section-other + table tbody {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-template-areas:
		"logged whitelisted"
		"recaptcha whitelisted"
		"network whitelisted"
		"login-limit login-interval"
		"delay .";
	gap: 0 20px;
	padding: 15px 20px;
}

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

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

.hcaptcha-section-other + table tbody tr.hcaptcha-general-login-limit {
	grid-area: login-limit;
	padding-top: 15px;
}

.hcaptcha-section-other + table tbody tr.hcaptcha-general-login-interval {
	grid-area: login-interval;
	padding-top: 15px;
}

.hcaptcha-section-other + table tbody tr.hcaptcha-general-whitelisted-ips {
	grid-area: whitelisted;
}

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

.hcaptcha-section-other + table tbody tr.hcaptcha-general-delay {
	grid-area: delay;
	padding-top: 15px;
}

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

.hcaptcha-section-other + table tbody tr.hcaptcha-general-recaptcha-compat-off th,
.hcaptcha-section-other + table tbody tr.hcaptcha-general--network-wide th {
	padding: 0;
}

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

.hcaptcha-section-other + table tbody tr.hcaptcha-general-whitelisted-ips td,
.hcaptcha-section-other + table tbody tr.hcaptcha-general-login-limit td,
.hcaptcha-section-other + table tbody tr.hcaptcha-general-login-interval td,
.hcaptcha-section-other + table tbody tr.hcaptcha-general-delay td {
	width: auto;
}

.hcaptcha-section-other + table tbody tr td textarea,
.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"
		"statistics collect-ua";
	gap: 0 20px;
	padding: 15px 20px;
}

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

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

.hcaptcha-section-statistics + table tbody tr.hcaptcha-general-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.hcaptcha-general-collect-ua th {
	padding: 0;
}

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

@media (max-width: 600px) {
	.hcaptcha-general table tbody tr td {
		width: auto;
	}

	.hcaptcha-section-keys + table tbody {
		grid-template-areas: unset;
	}

	.hcaptcha-section-keys + table tbody tr {
		grid-area: unset !important;
	}

	.hcaptcha-section-other + table tbody {
		grid-template-areas: unset;
	}

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

	.hcaptcha-section-other + table tbody tr.hcaptcha-general-whitelisted-ips td {
		width: auto;
	}

	.hcaptcha-section-statistics + table tbody {
		grid-template-areas: unset;
	}

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