/**
 * SIL Fields admin / front form styles — v1.0.0 (King 9.5.7)
 */
.sil-options-wrap { max-width: 1100px; }
.sil-options-wrap .sil-group-title {
	margin: 24px 0 12px;
	padding: 10px 14px;
	background: #1d2327;
	color: #fff;
	border-radius: 6px;
	font-size: 14px;
}
.sil-fields .sil-field,
.acf-fields .sil-field {
	padding: 12px 0;
	border-bottom: 1px solid #e8ebed;
}
.sil-fields .sil-label,
.acf-fields .sil-label {
	font-weight: 600;
	margin-bottom: 6px;
}
.sil-fields .sil-input input[type="text"],
.sil-fields .sil-input input[type="url"],
.sil-fields .sil-input input[type="email"],
.sil-fields .sil-input input[type="number"],
.sil-fields .sil-input select,
.sil-fields .sil-input textarea {
	max-width: 100%;
	width: 420px;
}
.sil-fields .sil-input textarea.large-text { width: 100%; max-width: 640px; }
.sil-tab {
	margin: 20px 0 8px;
	padding-bottom: 6px;
	border-bottom: 2px solid #e60023;
	font-size: 15px;
}
.sil-radio { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.sil-radio-item {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	max-width: 160px;
	text-align: center;
	padding: 8px;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	background: #fff;
}
.sil-radio-item img { max-width: 100%; height: auto; display: block; }
.sil-media-preview img {
	max-width: 150px;
	height: auto;
	display: block;
	margin-bottom: 8px;
	border-radius: 6px;
	border: 1px solid #dcdcde;
}
.sil-gallery-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.sil-gallery-preview img { width: 72px; height: 72px; object-fit: cover; }
.sil-repeater-row {
	border: 1px solid #dcdcde;
	border-radius: 8px;
	padding: 12px;
	margin-bottom: 10px;
	background: #f6f7f7;
}
.sil-repeater-row-handle { margin-bottom: 8px; }
.sil-group {
	border-left: 3px solid #e60023;
	padding-left: 12px;
	margin-top: 8px;
}
.sil-color { max-width: 120px !important; }
.sil-message { background: #f0f6fc; padding: 10px 12px; border-radius: 6px; }
.sil-flex-add { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }

/* Front-end forms (edit post / profile) */
.sil-form .sil-field { margin-bottom: 14px; }
body:not(.wp-admin) .sil-fields .sil-input input[type="text"],
body:not(.wp-admin) .sil-fields .sil-input select,
body:not(.wp-admin) .sil-fields .sil-input textarea {
	width: 100%;
}

/* King SMTP settings — SIL 1.0.1 */
.king-smtp-card {
	margin-top: 30px;
	border: 1px solid #d9e2ec;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 12px 34px rgba(15, 23, 42, .08);
	overflow: hidden;
}
.king-smtp-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: 20px 24px;
	background: #111827;
	color: #fff;
}
.king-smtp-head > div {
	display: flex;
	align-items: center;
	gap: 14px;
}
.king-smtp-head .dashicons-email-alt {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 11px;
	background: #2563eb;
	font-size: 24px;
}
.king-smtp-head h2 {
	margin: 0 0 3px;
	color: #fff;
	font-size: 18px;
	line-height: 1.3;
}
.king-smtp-head p {
	margin: 0;
	color: #bac7d8;
}
.king-smtp-status {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 6px 11px;
	border: 1px solid rgba(255,255,255,.2);
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
}
.king-smtp-status::before {
	content: '';
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #94a3b8;
}
.king-smtp-status.is-enabled::before {
	background: #22c55e;
	box-shadow: 0 0 0 4px rgba(34,197,94,.15);
}
.king-smtp-body {
	padding: 22px 24px 24px;
}
.king-smtp-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 22px;
	margin-top: 20px;
}
.king-smtp-field label,
.king-smtp-test label {
	display: block;
	margin-bottom: 6px;
	color: #1e293b;
	font-weight: 700;
}
.king-smtp-field input,
.king-smtp-field select,
.king-smtp-test input {
	width: 100%;
	max-width: none;
	min-height: 40px;
	border-color: #cbd5e1;
	border-radius: 7px;
}
.king-smtp-field input:focus,
.king-smtp-field select:focus,
.king-smtp-test input:focus {
	border-color: #2563eb;
	box-shadow: 0 0 0 1px #2563eb;
}
.king-smtp-field .description,
.king-smtp-check .description,
.king-smtp-test .description {
	margin: 6px 0 0;
	color: #64748b;
}
.king-smtp-options {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 22px;
	margin-top: 22px;
	padding: 16px;
	border: 1px solid #e2e8f0;
	border-radius: 9px;
	background: #f8fafc;
}
.king-smtp-check label {
	color: #1e293b;
	font-weight: 700;
}
.king-smtp-test {
	display: grid;
	grid-template-columns: minmax(220px, 1fr) auto;
	align-items: end;
	gap: 12px 16px;
	margin-top: 22px;
	padding-top: 20px;
	border-top: 1px solid #e2e8f0;
}
.king-smtp-test .button {
	min-height: 40px;
	padding: 3px 18px;
}
.king-smtp-test .description {
	grid-column: 1 / -1;
}
.king-smtp-foot {
	display: flex;
	align-items: flex-start;
	gap: 7px;
	margin: 20px 0 0;
	padding: 11px 13px;
	border-radius: 8px;
	background: #eff6ff;
	color: #334155;
}
.king-smtp-foot .dashicons {
	color: #2563eb;
}
.king-smtp-notice {
	margin: 20px 0 0 !important;
}
@media (max-width: 782px) {
	.king-smtp-head,
	.king-smtp-head > div {
		align-items: flex-start;
	}
	.king-smtp-head {
		flex-direction: column;
	}
	.king-smtp-grid,
	.king-smtp-options,
	.king-smtp-test {
		grid-template-columns: 1fr;
	}
	.king-smtp-test .button {
		width: 100%;
	}
}

/* Unified regional publication pricing — v9.9.90 */
.king-pricing-card {
	margin: 24px 0;
	padding: 0;
	overflow: hidden;
	border: 1px solid #d7dfec;
	border-radius: 16px;
	background: #f6f8fc;
	box-shadow: 0 12px 34px rgba(15, 23, 42, .08);
}
.king-pricing-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	padding: 22px 24px;
	background: #14213d;
	color: #fff;
}
.king-pricing-head > div { display: flex; align-items: center; gap: 14px; }
.king-pricing-head > div > .dashicons {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 12px;
	background: #fca311;
	color: #14213d;
	font-size: 25px;
}
.king-pricing-head h2 { margin: 0 0 4px; color: #fff; font-size: 21px; }
.king-pricing-head p { margin: 0; color: #c9d4e7; }
.king-pricing-head > span {
	padding: 7px 12px;
	border: 1px solid rgba(255,255,255,.2);
	border-radius: 999px;
	background: rgba(255,255,255,.08);
	font-weight: 700;
}
.king-pricing-alert {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 18px 20px;
	padding: 13px 15px;
	border: 1px solid #b9d4ff;
	border-radius: 11px;
	background: #eef5ff;
	color: #29466f;
}
.king-pricing-alert p { margin: 0; }
.king-pricing-alert .dashicons { color: #2563eb; }
.king-pricing-service {
	margin: 12px 20px;
	border: 1px solid #dbe2ee;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 3px 12px rgba(15, 23, 42, .04);
}
.king-pricing-service > summary {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 15px 17px;
	cursor: pointer;
	list-style: none;
}
.king-pricing-service > summary::-webkit-details-marker { display: none; }
.king-pricing-service > summary > .dashicons:first-child {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 9px;
	background: #edf2ff;
	color: #3157d5;
}
.king-pricing-service--boost > summary > .dashicons:first-child { background: #fff3dc; color: #c36a00; }
.king-pricing-service > summary > div { flex: 1; }
.king-pricing-service > summary strong { display: block; color: #172033; font-size: 15px; }
.king-pricing-service > summary small { display: block; margin-top: 2px; color: #667085; font-size: 12px; }
.king-pricing-service > summary > .dashicons:last-child { color: #778399; transition: transform .2s ease; }
.king-pricing-service[open] > summary > .dashicons:last-child { transform: rotate(180deg); }
.king-pricing-service__body { padding: 0 17px 17px; }
.king-pricing-market {
	margin-top: 12px;
	padding: 14px;
	border: 1px solid #dfe5ef;
	border-radius: 12px;
	background: #f9fbfe;
}
.king-pricing-market:first-child { margin-top: 0; }
.king-pricing-market--india { border-color: #b8e1cc; background: #f3fbf7; }
.king-pricing-market h4 {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 11px;
	color: #172033;
	font-size: 14px;
}
.king-pricing-market h4 .dashicons { color: #3157d5; }
.king-pricing-market--india h4 .dashicons { color: #0b8f55; }
.king-pricing-market h4 small {
	margin-left: auto;
	padding: 4px 8px;
	border-radius: 999px;
	background: #e9eef8;
	color: #526177;
	font-size: 10px;
}
.king-pricing-market--india h4 small { background: #dff4e9; color: #176b45; }
.king-pricing-table-wrap { overflow-x: auto; border: 1px solid #e2e7f0; border-radius: 10px; }
.king-pricing-table { width: 100%; min-width: 680px; border-collapse: collapse; background: #fff; }
.king-pricing-table th,
.king-pricing-table td { padding: 11px 12px; border-bottom: 1px solid #e9edf4; text-align: left; }
.king-pricing-table thead th { background: #f3f6fb; color: #344054; font-size: 12px; text-transform: none; }
.king-pricing-table thead small { display: block; margin-top: 1px; color: #8490a4; font-size: 9px; letter-spacing: .08em; }
.king-pricing-table tbody tr:last-child th,
.king-pricing-table tbody tr:last-child td { border-bottom: 0; }
.king-pricing-table tbody th { min-width: 150px; color: #1f2937; font-weight: 700; }
.king-pricing-table td label { position: relative; display: block; min-width: 92px; }
.king-pricing-table input,
.king-pricing-boost input {
	width: 100%;
	min-height: 38px;
	padding-left: 24px;
	border: 1px solid #cfd7e5;
	border-radius: 8px;
	background: #fff;
	color: #14213d;
	font-weight: 700;
}
.king-pricing-table input:focus,
.king-pricing-boost input:focus { border-color: #3157d5; box-shadow: 0 0 0 2px rgba(49,87,213,.13); }
.king-price-prefix { position: absolute; z-index: 1; top: 9px; left: 10px; color: #667085; font-weight: 700; }
.king-pricing-boost-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.king-pricing-boost {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 13px;
	border: 1px solid #e4e8f0;
	border-radius: 10px;
	background: #fbfcfe;
}
.king-pricing-boost > div { min-width: 0; }
.king-pricing-boost strong { display: block; color: #202939; }
.king-pricing-boost > div span { display: block; margin-top: 3px; color: #7b8799; font-size: 11px; }
.king-pricing-boost label { position: relative; width: 105px; flex: 0 0 105px; }
.king-pricing-boost label > span { position: absolute; z-index: 1; top: 9px; left: 10px; color: #667085; font-weight: 700; }
.king-pricing-foot {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 18px 20px 21px;
	padding-top: 15px;
	border-top: 1px solid #dde3ed;
	color: #667085;
	font-size: 12px;
}
.king-pricing-foot .dashicons { color: #16a36a; }
@media (max-width: 760px) {
	.king-pricing-head { align-items: flex-start; padding: 18px; }
	.king-pricing-head > span { display: none; }
	.king-pricing-alert,
	.king-pricing-service,
	.king-pricing-foot { margin-left: 12px; margin-right: 12px; }
	.king-pricing-boost-grid { grid-template-columns: 1fr; }
}

/* Registration protection switches — King 9.9.91. */
.king-registration-card {
	margin: 22px 0;
	padding: 0 !important;
	overflow: hidden;
	border: 1px solid #d8deea !important;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 10px 30px rgba(23, 32, 51, .08);
}
.king-registration-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 20px 22px;
	background: #172033;
}
.king-registration-head > div { display: flex; align-items: center; gap: 14px; }
.king-registration-head .dashicons-admin-users {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 11px;
	background: #2e62d5;
	color: #fff;
	font-size: 22px;
}
.king-registration-head h2 { margin: 0 0 3px; color: #fff; font-size: 20px; }
.king-registration-head p { margin: 0; color: #c9d4e7; }
.king-registration-head > span {
	padding: 5px 10px;
	border: 1px solid rgba(255,255,255,.2);
	border-radius: 999px;
	color: #dce5f5;
	font-size: 11px;
	font-weight: 700;
}
.king-registration-body { padding: 18px 20px 20px; }
.king-registration-control {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 12px;
	padding: 16px;
	border: 1px solid #e0e5ed;
	border-radius: 11px;
	background: #f9fafc;
}
.king-registration-control strong { display: block; margin-bottom: 4px; color: #202939; font-size: 14px; }
.king-registration-control p { max-width: 690px; margin: 0; color: #687386; font-size: 12px; line-height: 1.5; }
.king-registration-switch { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; cursor: pointer; }
.king-registration-switch input { position: absolute; opacity: 0; pointer-events: none; }
.king-registration-switch__track {
	position: relative;
	display: inline-block;
	width: 48px;
	height: 26px;
	border-radius: 999px;
	background: #a9b1bf;
	box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
	transition: background .18s ease;
}
.king-registration-switch__track span {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 5px rgba(0,0,0,.25);
	transition: transform .18s ease;
}
.king-registration-switch input:checked + .king-registration-switch__track { background: #16a36a; }
.king-registration-switch input:checked + .king-registration-switch__track span { transform: translateX(22px); }
.king-registration-switch input:focus-visible + .king-registration-switch__track { outline: 3px solid rgba(46,98,213,.25); outline-offset: 2px; }
.king-registration-switch__state { min-width: 24px; color: #6b7280; font-size: 12px; font-weight: 800; }
.king-registration-switch__state .is-on { display: none; color: #087a4c; }
.king-registration-switch input:checked ~ .king-registration-switch__state .is-off { display: none; }
.king-registration-switch input:checked ~ .king-registration-switch__state .is-on { display: inline; }
.king-registration-note {
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 16px 2px 0;
	color: #667085;
	font-size: 12px;
}
.king-registration-note .dashicons { color: #2e62d5; }
@media (max-width: 700px) {
	.king-registration-head { align-items: flex-start; }
	.king-registration-head > span { display: none; }
	.king-registration-control { align-items: flex-start; flex-direction: column; gap: 14px; }
}
