/* Easy Site Widgets
 * Inherits your theme's font. Change the variables below to match your brand.
 */
:root {
	--esw-radius: 6px;
	--esw-gap: 0.6rem;
	--esw-accent: #2457c5;
}

/* ---------- Contact buttons ---------- */
.esw-contact {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: var(--esw-gap);
}
.esw-contact li { margin: 0; }
.esw-btn {
	display: inline-block;
	padding: 0.5em 0.95em;
	border-radius: var(--esw-radius);
	font-size: 0.92em;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none !important;
	color: #fff !important;
	background: #444;
	transition: filter 0.15s ease;
}
.esw-btn:hover { filter: brightness(1.12); }
.esw-btn:focus-visible { outline: 3px solid var(--esw-accent); outline-offset: 2px; }
.esw-btn--whatsapp  { background: #1c8a4c; }
.esw-btn--phone     { background: #2b4a6f; }
.esw-btn--email     { background: #5b4b8a; }
.esw-btn--facebook  { background: #1f5fc9; }
.esw-btn--instagram { background: #b5306b; }
.esw-btn--x         { background: #1a1a1a; }
.esw-btn--linkedin  { background: #0b5f96; }
.esw-btn--youtube   { background: #c4221c; }

/* ---------- Recent posts ---------- */
.esw-posts { list-style: none; margin: 0; padding: 0; }
.esw-post {
	display: flex;
	gap: 0.8rem;
	align-items: flex-start;
	padding: 0.7rem 0;
	margin: 0;
	border-bottom: 1px solid rgba(127, 127, 127, 0.22);
}
.esw-post:last-child { border-bottom: 0; }
.esw-post__thumb { flex: 0 0 64px; }
.esw-post__thumb img {
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: var(--esw-radius);
	display: block;
}
.esw-post__body { min-width: 0; }
.esw-post__title {
	display: block;
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none;
}
.esw-post__title:hover { text-decoration: underline; }
.esw-post__date { display: block; font-size: 0.82em; opacity: 0.7; margin-top: 0.2em; }

/* ---------- Notice box ---------- */
.esw-notice {
	padding: 1.1rem 1.2rem;
	border-radius: var(--esw-radius);
	border-left: 5px solid;
}
.esw-notice > :last-child { margin-bottom: 0; }
.esw-notice__title { font-weight: 700; font-size: 1.1em; margin: 0 0 0.35em; }
.esw-notice__text p { margin: 0 0 0.6em; }
.esw-notice--info    { background: #eaf1fd; border-color: #2457c5; color: #14213d; }
.esw-notice--success { background: #e8f6ee; border-color: #1c8a4c; color: #133524; }
.esw-notice--warning { background: #fff5dc; border-color: #c98a00; color: #3d2c00; }
.esw-notice--promo   { background: #1d2333; border-color: #ffb547; color: #f3f4f7; }

.esw-countdown {
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	font-size: 1.15em;
	margin: 0.2em 0 0.7em;
}
.esw-notice__btn {
	display: inline-block;
	padding: 0.55em 1.1em;
	border-radius: var(--esw-radius);
	font-weight: 600;
	text-decoration: none !important;
	background: currentColor;
}
/* Button text uses the box background colour for contrast */
.esw-notice--info    .esw-notice__btn { background: #2457c5; color: #fff !important; }
.esw-notice--success .esw-notice__btn { background: #1c8a4c; color: #fff !important; }
.esw-notice--warning .esw-notice__btn { background: #3d2c00; color: #fff5dc !important; }
.esw-notice--promo   .esw-notice__btn { background: #ffb547; color: #1d2333 !important; }
.esw-notice__btn:focus-visible { outline: 3px solid currentColor; outline-offset: 2px; }

/* ---------- Shortcode wrapper ---------- */
.esw-inline { margin: 1.5em 0; }

@media (prefers-reduced-motion: reduce) {
	.esw-btn { transition: none; }
}
