/* ช่องแก้ไขรูปภาพของแอดมิน และหน้านโยบาย */

/* ---- ข้อความแจ้งผลการบันทึก และสถานะการอัปโหลด (page-admin-edit-config.php) ---- */
.admin-notice {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin-bottom: 16px;
	padding: 14px 18px;
	border-radius: 12px;
	font-size: 15px;
	line-height: 1.6;
}

.admin-notice i {
	margin-top: 3px;
	font-size: 18px;
}

.admin-notice--success {
	background: #e7f8ee;
	color: #166534;
}

.admin-notice--error {
	background: #fdecec;
	color: #991b1b;
}

.admin-upload-status {
	margin-bottom: 18px;
	padding: 12px 16px;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	background: #f8fafc;
	font-size: 14.5px;
}

.admin-upload-status summary {
	color: #334155;
	font-weight: 600;
	cursor: pointer;
}

.admin-upload-status ul {
	margin: 10px 0 0;
	padding-left: 20px;
	line-height: 1.8;
}

.admin-upload-status small {
	color: #64748b;
}

/* ---- ช่องแก้ไขรูปภาพ (widget-admin-image-field.php) ---- */
.admin-img-field {
	display: flex;
	gap: 16px;
	align-items: flex-start;
}

.admin-img-field__preview {
	flex-shrink: 0;
	width: 160px;
	max-height: 280px;
	object-fit: contain;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	background: #f3f4f6;
}

.admin-img-field__preview--wide {
	width: 260px;
}

.admin-img-field__inputs {
	flex: 1;
	min-width: 0;
}

@media (max-width: 767px) {
	.admin-img-field {
		flex-direction: column;
	}

	.admin-img-field__preview,
	.admin-img-field__preview--wide {
		width: 100%;
	}
}

/* ---- หน้านโยบาย (page-privacy-policy.php, page-cookie-policy.php) ---- */
.policy-content {
	max-width: 900px;
	margin: 0 auto;
	color: #374151;
	font-size: 16px;
}

.policy-content p {
	margin-bottom: 12px !important;
	line-height: 1.8 !important;
	color: #374151;
}

.policy-content [id] {
	scroll-margin-top: 100px;
}

.policy-content h2 {
	margin: 32px 0 12px;
	padding-bottom: 8px;
	border-bottom: 2px solid #eef2f7;
	color: #174EBD;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.4;
}

.policy-content h3 {
	margin: 18px 0 8px;
	color: #1f2937;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.4;
}

.policy-content ul,
.policy-content ol {
	margin: 0 0 14px;
	padding-left: 22px;
	line-height: 1.8;
}

.policy-content li {
	margin-bottom: 4px;
}

.policy-content a {
	color: #174EBD;
	text-decoration: underline;
}

.policy-content code {
	padding: 1px 6px;
	border-radius: 4px;
	background: #f1f5f9;
	color: #0f172a;
	font-size: 14px;
}

.policy-updated {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 999px;
	background: #eef3fd;
	color: #174EBD !important;
	font-size: 14px;
}

.policy-note {
	padding: 12px 16px;
	border-left: 4px solid #F1AE2D;
	border-radius: 6px;
	background: #fff8e8;
	font-size: 15px;
}

.policy-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin: 18px 0 8px;
	padding: 14px 18px;
	border-radius: 12px;
	background: #eef3fd;
	font-weight: 600;
}

.policy-cta .btn {
	border-radius: 999px;
}

.policy-table-wrap {
	margin-bottom: 14px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.policy-table {
	width: 100%;
	min-width: 560px;
	border-collapse: collapse;
	font-size: 15px;
	line-height: 1.6;
}

.policy-table th,
.policy-table td {
	padding: 10px 12px;
	border: 1px solid #e5e7eb;
	vertical-align: top;
	text-align: left;
}

.policy-table th {
	background: #174EBD;
	color: #FFF;
	font-weight: 600;
}

.policy-table tbody tr:nth-child(even) td {
	background: #fafbfc;
}

.policy-table .policy-table-group td {
	background: #eef3fd !important;
	color: #174EBD;
	font-weight: 700;
}

.policy-contact {
	padding: 16px 20px;
	border-radius: 12px;
	background: #f8fafc;
}

.policy-contact p {
	margin-bottom: 4px !important;
}

.policy-contact i {
	width: 20px;
	color: #6591EA;
}
