/* Settings page */
.subin-settings-section {
	margin-top: 20px;
	padding: 20px 24px;
	background: #fff;
	border: 1px solid #d8e2ee;
	border-radius: 16px;
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

.subin-settings-section h2 {
	margin-top: 0;
}

.subin-integration-list {
	display: grid;
	gap: 16px;
	margin-top: 18px;
}

.subin-integration-card {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 18px;
	padding: 18px;
	border: 1px solid #d8e2ee;
	border-radius: 16px;
	background: #fff;
}

.subin-integration-card--planned {
	background: #f8fafc;
}

.subin-integration-card h3 {
	margin: 0 0 6px;
	color: #172033;
	font-size: 16px;
}

.subin-integration-card p {
	margin: 0;
	color: #64748b;
}

.subin-integration-card__controls {
	display: grid;
	justify-items: end;
	gap: 12px;
	min-width: 160px;
}

.subin-integration-card__controls .subin-settings-toggle {
	grid-template-columns: 46px auto;
}

.subin-integration-card__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
}

.subin-settings-section .form-table {
	margin-top: 0;
}

.subin-settings-page .form-table {
	margin: 0;
	border-collapse: separate;
	border-spacing: 0 12px;
}

.subin-settings-page .form-table th,
.subin-settings-page .form-table td {
	padding: 0;
	vertical-align: top;
}

.subin-settings-page .form-table th {
	width: 220px;
	padding-top: 9px;
	color: #172033;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.35;
}

.subin-settings-page .form-table label {
	color: #172033;
	font-size: 13px;
	font-weight: 650;
	line-height: 1.35;
}

.subin-settings-page input[type="text"],
.subin-settings-page input[type="email"],
.subin-settings-page input[type="number"],
.subin-settings-page input[type="password"],
.subin-settings-page input[type="url"],
.subin-settings-page select,
.subin-settings-page textarea {
	box-sizing: border-box;
	width: min(100%, 440px);
	min-height: 38px;
	margin: 0;
	padding: 7px 10px;
	color: #172033;
	background: #fff;
	border: 1px solid #c9d8e8;
	border-radius: 9px;
	box-shadow: none;
	font-size: 14px;
	line-height: 1.35;
}

.subin-settings-page input.small-text[type="number"] {
	width: 110px;
}

.subin-settings-page select {
	padding-right: 32px;
}

.subin-settings-page textarea {
	min-height: 96px;
	resize: vertical;
}

.subin-settings-page input[type="text"]:focus,
.subin-settings-page input[type="email"]:focus,
.subin-settings-page input[type="number"]:focus,
.subin-settings-page input[type="password"]:focus,
.subin-settings-page input[type="url"]:focus,
.subin-settings-page select:focus,
.subin-settings-page textarea:focus {
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
	outline: none;
}

.subin-settings-page .description {
	max-width: 680px;
	margin: 8px 0 0;
	color: #64748b;
	font-size: 13px;
	line-height: 1.45;
}

.subin-settings-page .submit {
	margin: 18px 0 0;
	padding: 0;
}

.subin-settings-page .submit .button,
.subin-settings-page .button-primary,
.subin-settings-page .button-secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	padding: 7px 14px;
	border-radius: 9px;
	font-weight: 650;
	line-height: 1.2;
	box-shadow: none;
}

.subin-settings-page .submit .button-primary,
.subin-settings-page .button-primary {
	color: #fff;
	background: #2563eb;
	border-color: #2563eb;
}

.subin-settings-page .submit .button-primary:hover,
.subin-settings-page .submit .button-primary:focus,
.subin-settings-page .button-primary:hover,
.subin-settings-page .button-primary:focus {
	color: #fff;
	background: #1d4ed8;
	border-color: #1d4ed8;
	box-shadow: none;
}

.subin-settings-page .button-secondary,
.subin-settings-page .submit .button:not(.button-primary) {
	color: #334155;
	background: #fff;
	border-color: #c9d8e8;
}

.subin-settings-page .button-secondary:hover,
.subin-settings-page .button-secondary:focus,
.subin-settings-page .submit .button:not(.button-primary):hover,
.subin-settings-page .submit .button:not(.button-primary):focus {
	color: #1d4ed8;
	background: #eff6ff;
	border-color: #bfdbfe;
	box-shadow: none;
}
@media (max-width: 640px) {
	.subin-settings-page .form-table,
	.subin-settings-page .form-table tbody,
	.subin-settings-page .form-table tr,
	.subin-settings-page .form-table th,
	.subin-settings-page .form-table td {
		display: block;
		width: 100%;
	}

	.subin-settings-page .form-table th {
		padding-top: 0;
		padding-bottom: 7px;
	}

	.subin-settings-page input[type="text"],
	.subin-settings-page input[type="email"],
	.subin-settings-page input[type="number"],
	.subin-settings-page input[type="password"],
	.subin-settings-page input[type="url"],
	.subin-settings-page select,
	.subin-settings-page textarea {
		width: 100%;
		max-width: none;
	}
}
