/**
 * Settings Page Styles
 *
 * Keeps the Instant Popup Builder settings screen aligned with the native
 * WordPress admin settings pattern.
 *
 * @package    Instant_Popup_Builder
 * @subpackage Instant_Popup_Builder/admin/css
 */

.ipb-settings-wrap {
	max-width: 1120px;
}

.ipb-settings-layout {
	margin-top: 12px;
}

.ipb-settings-nav {
	margin-bottom: 0;
}

.ipb-settings-nav-list {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	margin: 0;
	padding: 9px 0 0;
	border-bottom: 1px solid #c3c4c7;
}

.ipb-settings-nav-list .ipb-nav-item,
.ipb-settings-nav-list .nav-item {
	margin: 0 4px 0 0;
	padding: 0;
	list-style: none;
}

.ipb-settings-nav-list .nav-tab {
	float: none;
	display: inline-block;
	margin-left: 0;
	margin-right: 0;
}

.ipb-settings-main {
	margin-top: 0;
}

.ipb-settings-panel {
	background: #fff;
	border: 1px solid #c3c4c7;
	border-top: 0;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
	padding: 0 24px 24px;
}

.ipb-tab-panel {
	display: none;
}

.ipb-tab-panel.active {
	display: block;
}

.ipb-tab-panel-header {
	padding: 24px 0 12px;
	border-bottom: 1px solid #dcdcde;
}

.ipb-tab-panel-title {
	margin: 0 0 6px;
	font-size: 1.3em;
	line-height: 1.3;
	font-weight: 600;
	color: #1d2327;
}

.ipb-tab-panel-header .description {
	margin: 0;
	max-width: 720px;
	color: #646970;
}

.ipb-settings-section {
	margin: 0;
	padding: 8px 0 0;
}

.ipb-settings-section-divider {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid #dcdcde;
}

.ipb-settings-section-title {
	margin: 8px 0 0;
	font-size: 1.1em;
	line-height: 1.4;
	font-weight: 600;
	color: #1d2327;
}

.ipb-settings-panel .form-table {
	margin-top: 0;
}

.ipb-settings-panel .form-table th {
	width: 220px;
	padding: 20px 10px 20px 0;
	font-weight: 600;
	color: #1d2327;
}

.ipb-settings-panel .form-table td {
	padding: 15px 10px;
}

.ipb-settings-panel fieldset label,
.ipb-checkbox-label {
	line-height: 1.5;
}

.ipb-settings-panel fieldset label + br {
	display: block;
	margin-bottom: 4px;
	content: "";
}

.ipb-settings-panel .description {
	max-width: 680px;
	color: #646970;
}

.ipb-settings-panel .submit,
.ipb-tab-panel > .submit {
	margin: 18px -24px -24px;
	padding: 16px 24px;
	border-top: 1px solid #dcdcde;
	background: #f6f7f7;
}

.ipb-settings-section .submit {
	margin-top: 18px;
}

.ipb-settings-maintenance.notice {
	margin: 20px 0 0;
	padding: 1px 12px;
	background: #fff;
}

.ipb-settings-maintenance .form-table {
	margin-bottom: 10px;
}

.ipb-button-row {
	margin: 10px 0 0;
}

.ipb-inline-result {
	margin-top: 12px;
	padding: 8px 12px;
	border-left: 4px solid #00a32a;
	background: #edfaef;
}

.ipb-inline-result.error {
	border-left-color: #d63638;
	background: #fcf0f1;
}

.ipb-stats-table {
	max-width: 520px;
	margin-top: 12px;
}

.ipb-stats-table .ipb-stats-label {
	width: 55%;
	font-weight: 600;
}

.ipb-stats-table .ipb-stats-value {
	color: #1d2327;
}

.ipb-system-info-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 12px 0;
}

.ipb-system-info-header .ipb-settings-section-title {
	margin: 0;
}

.ipb-system-info-box {
	max-width: 920px;
}

.ipb-system-info-box #system-info-textarea {
	display: block;
	width: 100%;
	min-height: 320px;
	margin: 0;
	font-family: Consolas, Monaco, monospace;
	font-size: 12px;
	line-height: 1.5;
	resize: vertical;
}

.ipb-log-viewer {
	max-width: 920px;
	max-height: 300px;
	overflow: auto;
	margin-top: 8px;
	padding: 12px;
	border: 1px solid #c3c4c7;
	background: #f6f7f7;
}

.ipb-log-viewer .code {
	margin: 0;
	white-space: pre-wrap;
	word-break: break-word;
}

@media screen and (max-width: 782px) {
	.ipb-settings-wrap {
		max-width: none;
	}

	.ipb-settings-nav-list {
		padding-top: 0;
	}

	.ipb-settings-nav-list .ipb-nav-item,
	.ipb-settings-nav-list .nav-item {
		width: 100%;
		margin-right: 0;
	}

	.ipb-settings-nav-list .nav-tab {
		display: block;
		margin: 0;
		border-bottom: 0;
	}

	.ipb-settings-panel {
		padding: 0 16px 20px;
	}

	.ipb-settings-panel .form-table th,
	.ipb-settings-panel .form-table td {
		display: block;
		width: auto;
		padding-right: 0;
	}

	.ipb-settings-panel .form-table th {
		padding-bottom: 0;
	}

	.ipb-settings-panel .submit,
	.ipb-tab-panel > .submit {
		margin-right: -16px;
		margin-bottom: -20px;
		margin-left: -16px;
		padding-right: 16px;
		padding-left: 16px;
	}

	.ipb-system-info-header {
		align-items: flex-start;
		flex-direction: column;
	}
}
