/* Admin: gallery meta + global settings — unified card system */

/* ----- Global settings page (same card system as gallery Add/Edit) ----- */
.nzp-igl-admin-wrap--settings {
	max-width: 880px;
}

body.gallerylist_page_nzp-igl-defaults #wpbody-content .wrap {
	margin-top: 12px;
}

.nzp-igl-admin-card--settings .nzp-igl-admin-card__section--settings-hero {
	padding-bottom: 4px;
}

.nzp-igl-settings-page-title {
	margin: 0 0 8px;
	font-size: 1.25rem;
	font-weight: 600;
	color: #1d2327;
	line-height: 1.35;
	letter-spacing: -0.02em;
}

.nzp-igl-admin__hint--settings-lead {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: #50575e;
	max-width: 52em;
}

.nzp-igl-admin-card__section > .nzp-igl-pro-notice {
	margin-top: 0;
	margin-bottom: 16px;
	max-width: none;
}

.nzp-igl-admin-settings-form {
	margin: 0;
}

/* ----- Shared card ----- */
.nzp-igl-admin-card {
	background: #fff;
	border: 1px solid #d0d4e4;
	border-radius: 12px;
	box-shadow:
		0 1px 2px rgba(15, 23, 42, 0.04),
		0 4px 16px rgba(15, 23, 42, 0.06);
	padding: 0;
	margin: 0 0 20px;
	max-width: 880px;
	box-sizing: border-box;
	overflow: hidden;
}

.nzp-igl-admin-card--unified {
	padding: 0;
}

.postbox .inside > .nzp-igl-admin-card {
	margin-top: 4px;
}

/* Side column compact card */
.nzp-igl-admin-card--compact {
	padding: 14px 16px 16px;
	margin: 0;
	max-width: none;
	border-radius: 10px;
}

/* Shortcode panel below form */
.nzp-igl-admin-card--shortcode-panel {
	padding: 20px 22px 22px;
	margin-top: 8px;
	background: linear-gradient(180deg, #fafbff 0%, #fff 40%);
}

.nzp-igl-admin-card__section {
	padding: 18px 22px 22px;
}

.nzp-igl-admin-card__section + .nzp-igl-admin-card__section {
	padding-top: 0;
}

.nzp-igl-admin-card__title {
	margin: 0 0 10px;
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #1d2327;
}

.nzp-igl-admin-card__title--form {
	margin-top: 4px;
}

.nzp-igl-admin-card__divider {
	height: 1px;
	margin: 0 22px;
	background: linear-gradient(90deg, transparent, #d8dee9 15%, #d8dee9 85%, transparent);
	border: 0;
}

.nzp-igl-admin-card__actions {
	margin: 0 0 8px;
}

.nzp-igl-admin-card__actions--tight {
	margin-bottom: 0;
}

.nzp-igl-admin__hint {
	color: #646970;
	margin: 0 0 12px;
	font-size: 13px;
	line-height: 1.55;
}

.nzp-igl-admin-card .nzp-igl-admin__hint:first-child {
	margin-top: 0;
}

.nzp-igl-admin__thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	list-style: none;
	margin: 14px 0 4px;
	padding: 0;
	min-height: 48px;
}

.nzp-igl-admin__thumb {
	cursor: grab;
	margin: 0;
}

.nzp-igl-admin__thumb-inner {
	position: relative;
	display: block;
	border: 1px solid #c3c4c7;
	border-radius: 8px;
	overflow: hidden;
	background: linear-gradient(180deg, #fff 0%, #f0f0f1 100%);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
	transition: border-color 0.15s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.nzp-igl-admin__thumb-inner:hover {
	border-color: #2271b1;
	box-shadow: 0 4px 14px rgba(34, 113, 177, 0.18);
	transform: translateY(-1px);
}

.nzp-igl-admin__thumb img {
	display: block;
	vertical-align: top;
}

.nzp-igl-admin__remove {
	position: absolute;
	top: 4px;
	right: 4px;
	width: 24px;
	height: 24px;
	line-height: 20px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.58);
	color: #fff;
	cursor: pointer;
	font-size: 15px;
}

.nzp-igl-admin__remove:hover {
	background: #b32d2e;
	color: #fff;
}

.nzp-igl-admin__code {
	display: inline-block;
	padding: 10px 14px;
	background: #f6f7f7;
	border: 1px solid #c3c4c7;
	border-radius: 8px;
	font-size: 13px;
	line-height: 1.45;
	word-break: break-all;
}

.nzp-igl-admin__code--lg {
	font-size: 14px;
	padding: 12px 16px;
}

/* Form tables */
.nzp-igl-admin-form th {
	width: 200px;
	vertical-align: top;
	padding-top: 12px;
	font-weight: 500;
}

.nzp-igl-admin-form td {
	padding-top: 10px;
	padding-bottom: 10px;
}

.nzp-igl-admin-form select,
.nzp-igl-admin-form input[type="number"].small-text {
	min-height: 32px;
	border-radius: 4px;
}

.nzp-igl-admin-form .wp-picker-container {
	margin-top: 4px;
}

.nzp-igl-admin-card .form-table {
	margin: 8px 0 0;
}

.nzp-igl-admin-card .form-table th {
	padding-left: 0;
}

.nzp-igl-admin-card .form-table td {
	padding-right: 0;
}

.nzp-igl-admin-card__footer {
	margin: 16px 0 0;
	padding-top: 16px;
	border-top: 1px solid #eef0f4;
	font-size: 13px;
	color: #50575e;
}

.nzp-igl-admin-card p.submit {
	margin: 0;
	padding: 18px 22px 20px;
	border: 0;
	border-top: 1px solid #eef0f4;
	background: #fafbfd;
	text-align: left;
}

.nzp-igl-admin-save-btn.button-large {
	min-height: 40px;
	line-height: 38px;
	padding: 0 22px;
	font-size: 14px;
	border-radius: 6px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

/* Legacy wrap (unused on settings if --settings) */
.nzp-igl-admin-wrap:not(.nzp-igl-admin-wrap--settings) {
	max-width: 920px;
}

.nzp-igl-admin-wrap:not(.nzp-igl-admin-wrap--settings) h1 {
	margin-bottom: 0.35em;
}

/* Free vs Pro notice */
.nzp-igl-pro-notice {
	padding: 14px 16px 16px;
	margin: 0 0 16px;
	max-width: 880px;
	box-sizing: border-box;
}

.nzp-igl-pro-notice__title {
	margin: 0 0 12px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	color: #1d2327;
}

.nzp-igl-pro-notice__cols {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px 20px;
	margin-bottom: 14px;
}

@media (max-width: 782px) {
	.nzp-igl-pro-notice__cols {
		grid-template-columns: 1fr;
	}
}

.nzp-igl-pro-notice__label {
	margin: 0 0 6px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #646970;
}

.nzp-igl-pro-notice__list {
	margin: 0 0 0 1.1em;
	padding: 0;
	font-size: 13px;
	line-height: 1.5;
	color: #2c3338;
}

.nzp-igl-pro-notice__list li {
	margin-bottom: 4px;
}

.nzp-igl-pro-notice__upgrade {
	margin-top: 4px;
	padding-top: 12px;
	border-top: 1px solid #c3c4c7;
}

.nzp-igl-pro-notice__upgrade-title {
	margin: 0 0 8px;
	font-size: 13px;
	font-weight: 600;
	color: #1d2327;
}

.nzp-igl-pro-notice__steps {
	margin: 0 0 12px 1.1em;
	padding: 0;
	font-size: 13px;
	line-height: 1.55;
	color: #2c3338;
}

.nzp-igl-pro-notice__steps li {
	margin-bottom: 6px;
}

.nzp-igl-pro-notice__cta {
	margin: 0;
}

.nzp-igl-pro-notice__cta .button {
	margin: 0 8px 8px 0;
}

.nzp-igl-pro-notice__donate {
	margin: 12px 0 0;
	padding-top: 10px;
	border-top: 1px solid #c3c4c7;
}

.nzp-igl-pro-notice__donate .button {
	margin-right: 8px;
	vertical-align: middle;
}

.nzp-igl-pro-notice__donate .description {
	display: inline-block;
	margin: 0;
	vertical-align: middle;
	max-width: 100%;
}

.nzp-igl-pro-notice__no-url {
	margin: 0 0 10px;
	font-size: 13px;
	line-height: 1.55;
	color: #2c3338;
}

.nzp-igl-pro-notice__dev-hint {
	margin: 0;
	font-size: 12px;
	line-height: 1.5;
}

.nzp-igl-pro-notice__code {
	display: inline-block;
	margin: 4px 4px 4px 0;
	padding: 2px 6px;
	font-size: 11px;
	word-break: break-all;
	vertical-align: baseline;
}

.nzp-igl-pro-notice__inline-link {
	margin-top: 6px;
}

/* Pro active (success) */
.nzp-igl-pro-notice--active {
	border-left-color: #00a32a;
}

.nzp-igl-pro-notice__lead {
	margin: 0 0 10px;
	font-size: 13px;
	line-height: 1.5;
	color: #1d2327;
}

.nzp-igl-pro-notice__steps--pro-use {
	margin-top: 0;
}

.nzp-igl-pro-notice__keep {
	margin: 12px 0 0;
	padding-top: 10px;
	border-top: 1px solid #c3c4c7;
}

/* Pro add-on purchase (sidebar + Galleries → Settings) */
.nzp-igl-admin-settings-support-wrap {
	margin-top: 20px;
	max-width: 880px;
}

.nzp-igl-support-settings-title {
	margin: 0 0 12px;
	font-size: 1.15rem;
	font-weight: 600;
	color: #1d2327;
}

.postbox .inside > .nzp-igl-admin-card--support {
	margin: -6px -12px -12px;
	border: 0;
	box-shadow: none;
	background: transparent;
	max-width: none;
	padding: 0 4px 4px;
}

.nzp-igl-admin-card--support {
	padding: 18px 20px 20px;
}

.nzp-igl-admin-settings-support-wrap .nzp-igl-admin-card--support {
	margin-top: 0;
}

.nzp-igl-support-card__intro {
	margin: 0 0 14px;
}

.nzp-igl-support-card__pro-block {
	margin: 0;
}

.nzp-igl-support-card__actions {
	margin: 0;
}

.nzp-igl-support-card__actions .button-hero {
	text-align: center;
	width: 100%;
	box-sizing: border-box;
}

.nzp-igl-support-card__setup {
	margin: 0;
	font-size: 12px;
	line-height: 1.45;
}

.nzp-igl-support-card__pro-active {
	margin: 0;
}

.nzp-igl-support-card__donate {
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid #dcdcde;
}

.nzp-igl-support-card__donate-lead {
	margin: 0 0 10px;
	font-size: 12px;
	line-height: 1.45;
	color: #646970;
}

.nzp-igl-support-card__actions--donate {
	margin: 0;
}

.nzp-igl-support-card__actions--donate .button {
	width: 100%;
	box-sizing: border-box;
	text-align: center;
}
