/**
 * Newsletter manage dialog + social icons.
 *
 * Loaded as a stylesheet (not inline) so a later WPCode / theme CSS snippet can override.
 */

.trigger-newsletter {
	cursor: pointer;
	color: #337ab7;
}

.trigger-newsletter:hover {
	color: #23527c;
}

/* jQuery UI dialog shell — beat WP ui-widget-header defaults */
.ui-dialog.custom-newsletter-dialog .ui-dialog-titlebar,
.ui-dialog.custom-newsletter-dialog .ui-widget-header {
	display: flex;
	align-items: center;
	box-sizing: border-box;
	min-height: 2.75em;
	padding: 0 2.5em 0 1em;
	margin: 0;
	background: #337ab7;
	background-image: none;
	border: none;
	border-bottom: 1px solid #2a6496;
	border-radius: 0;
	color: #fff;
}

.ui-dialog.custom-newsletter-dialog .ui-dialog-title {
	display: block;
	float: none;
	position: static;
	width: auto;
	margin: 0;
	padding: 0;
	line-height: 1.3;
	color: #fff;
	font-weight: 600;
}

.ui-dialog.custom-newsletter-dialog .ui-dialog-titlebar-close {
	top: 50%;
	right: 0.5em;
	margin-top: -10px;
	transform: none;
}

.custom-newsletter-dialog .ui-dialog-buttonpane {
	margin-top: 0.4em;
	padding: 0.5em 1em;
}

.custom-newsletter-dialog .ui-dialog-buttonset button {
	min-width: 5.5em;
}

#newsletter-ajax-result {
	line-height: 1.35;
}

#newsletter-ajax-result .newsletter-success-icon {
	font-weight: 700;
	margin-right: 0.2em;
}

/* Processing spinner (inline next to “Processing…”) */
.newsletter-spinner {
	display: inline-block;
	width: 14px;
	height: 14px;
	margin-right: 8px;
	vertical-align: -2px;
	border: 2px solid #9bbad4;
	border-top-color: #337ab7;
	border-radius: 50%;
	animation: pnb-newsletter-spin 0.7s linear infinite;
}

@keyframes pnb-newsletter-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Content layout wrapper around [newsletter_social] */
.social_icons {
	text-align: left;
}

/* Social icons ([newsletter_social]) — margin only in sidebar/widget */
.social-share-buttons {
	display: flex;
	gap: 15px;
	margin: 0;
}

.sidebar .social-share-buttons,
#sidebar .social-share-buttons,
.widget-area .social-share-buttons,
.widget .social-share-buttons {
	margin: 15px;
}

.social-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding-top: 2px;
	background-color: #f1f1f1;
	border-radius: 5px;
	text-decoration: none;
}

.social-button svg {
	fill: #555;
}

.social-button:hover svg {
	fill: #000;
}
