/*
 * Dantrio Pharmacy components and block styles.
 *
 * Loaded on the front end, in the block editor (as an editor style) and in
 * the Elementor preview. Colours use the theme's custom properties with
 * fallbacks so the file also works where style.css is not loaded.
 */

/* -------------------------------------------------------------------------
   1. Page content layout
   ------------------------------------------------------------------------- */

/* Centre block content on full-width pages and on the homepage. */
.site-main--wide .entry-content > *,
.section--page-content .entry-content > * {
	margin-inline: auto;
}

.section--page-content { padding-block: var(--pc-space-7, 3rem) 0; }

.site-main--wide { padding-block: var(--pc-space-7, 3rem) var(--pc-space-8, 4rem); }

/* A band at the end of a page sits flush on the footer. */
.site-main--wide .entry-content > .alignfull:last-child { margin-bottom: calc(-1 * var(--pc-space-8, 4rem)); }

.section--page-content .entry-content > .alignwide,
.site-main--wide .entry-content > .alignwide {
	max-width: min(1160px, 100%);
}

.section--page-content .entry-content > .alignfull,
.site-main--wide .entry-content > .alignfull {
	max-width: none;
	width: auto;
	margin-inline: calc(50% - 50vw);
}

.entry-content > .dantrio-section.alignfull {
	max-width: none;
	width: auto;
	margin-inline: calc(50% - 50vw);
	padding-inline: 0;
}

.entry-content > * + .alignwide,
.entry-content > * + .alignfull,
.entry-content > .alignwide + *,
.entry-content > .alignfull + * {
	margin-top: var(--pc-space-8, 4rem);
}

/* Builder layouts: no theme padding, the builder owns the canvas. */
.site-main--builder,
.entry-content--builder,
.entry-content--builder > * {
	max-width: none;
}

.dantrio-builder-page .site-content { overflow-x: clip; }

/* Designed sections placed inside Elementor never break out. */
.elementor .dantrio-section.alignfull,
.elementor-widget-container .dantrio-section {
	margin-inline: 0;
	width: auto;
}

.elementor .dantrio-section .section { padding-block: var(--pc-space-7, 3rem); }

.elementor .dantrio-section .container,
.elementor-widget-dantrio-page-header .container {
	padding-inline: 0;
}

/* -------------------------------------------------------------------------
   2. Typography helpers for block content
   ------------------------------------------------------------------------- */

.dantrio-eyebrow {
	margin-bottom: var(--pc-space-2, 0.5rem) !important;
	color: var(--pc-primary, #0b7268);
	font-size: var(--pc-text-xs, 0.8125rem);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.dantrio-lead {
	max-width: 62ch;
	margin-inline: auto;
	font-size: var(--pc-text-lg, 1.1875rem);
}

.dantrio-tag {
	display: inline-block;
	margin-bottom: var(--pc-space-3, 0.75rem) !important;
	padding: 0.2em 0.8em;
	border-radius: 999px;
	background: var(--pc-mint, #d9f0ec);
	color: var(--pc-primary-dark, #095049);
	font-size: var(--pc-text-xs, 0.8125rem);
	font-weight: 600;
}

.entry-content h2.has-text-align-center,
.editor-styles-wrapper h2.has-text-align-center {
	margin-top: 0;
	font-size: clamp(1.7rem, 3.4vw, 2.125rem);
}

/* -------------------------------------------------------------------------
   3. Split (image + text), bands and banners
   ------------------------------------------------------------------------- */

.wp-block-columns.dantrio-split {
	gap: clamp(1.5rem, 5vw, 4rem);
	align-items: center;
}

.dantrio-split h2 {
	margin-top: 0;
	font-size: clamp(1.7rem, 3.4vw, 2.4rem);
	line-height: 1.12;
}

.dantrio-split .wp-block-image img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	box-shadow: 0 4px 8px rgba(18, 32, 30, 0.05), 0 20px 48px rgba(18, 32, 30, 0.1);
}

.wp-block-group.dantrio-band {
	padding: var(--pc-space-8, 4rem) var(--pc-gutter, 1.25rem);
	background: var(--pc-surface, #f4faf8);
	border-block: 1px solid var(--pc-border, #dde9e7);
	border-radius: 0;
}

.wp-block-group.dantrio-band > .has-text-align-center:first-child { margin-top: 0; }

.wp-block-group.dantrio-cta {
	padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 4vw, 3rem);
	background:
		radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.12) 0 180px, transparent 181px),
		linear-gradient(135deg, var(--pc-primary, #0b7268) 0%, var(--pc-primary-dark, #095049) 100%);
	border-radius: var(--pc-radius-lg, 22px);
	color: rgba(255, 255, 255, 0.92);
}

.wp-block-group.dantrio-cta h2 {
	margin-top: 0;
	color: #ffffff;
}

.wp-block-group.dantrio-cta p { font-size: var(--pc-text-lg, 1.1875rem); }

.wp-block-group.dantrio-cta .wp-block-button__link {
	background: #ffffff;
	color: var(--pc-primary-dark, #095049);
}

.wp-block-group.dantrio-cta .wp-block-button__link:hover { background: var(--pc-mint, #d9f0ec); }

.wp-block-group.dantrio-cta .is-style-outline .wp-block-button__link {
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.7);
	color: #ffffff;
}

.wp-block-group.dantrio-cta .is-style-outline .wp-block-button__link:hover {
	background: rgba(255, 255, 255, 0.12);
}

/* Elementor call-to-action widget. */
.dantrio-cta--widget {
	padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 4vw, 3rem);
	background: linear-gradient(135deg, var(--pc-primary, #0b7268) 0%, var(--pc-primary-dark, #095049) 100%);
	border-radius: var(--pc-radius-lg, 22px);
	color: rgba(255, 255, 255, 0.92);
	text-align: center;
}

.dantrio-cta__title { color: #ffffff; }

.dantrio-cta__text {
	max-width: 60ch;
	margin-inline: auto;
	font-size: var(--pc-text-lg, 1.1875rem);
}

.dantrio-cta--widget .button-group { justify-content: center; }

.btn--outline-light {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.7);
	color: #ffffff;
}

.btn--outline-light:hover,
.btn--outline-light:focus {
	background: rgba(255, 255, 255, 0.12);
	color: #ffffff;
}

.btn--whatsapp {
	margin-bottom: var(--pc-space-4, 1rem);
	background: #1faa55;
	color: #ffffff;
}

.btn--whatsapp:hover,
.btn--whatsapp:focus {
	background: #178a44;
	color: #ffffff;
}

/* Outline buttons in page content. */
.entry-content .wp-block-button.is-style-outline .wp-block-button__link,
.editor-styles-wrapper .wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	border: 1px solid var(--pc-border-strong, #c3d8d4);
	color: var(--pc-primary-dark, #095049);
}

.entry-content .wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--pc-mint, #d9f0ec);
	border-color: var(--pc-primary, #0b7268);
}

/* -------------------------------------------------------------------------
   4. Cards grid (values, family planning methods)
   ------------------------------------------------------------------------- */

.wp-block-group.dantrio-cards {
	display: grid;
	gap: var(--pc-space-5, 1.5rem);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}

.wp-block-group.dantrio-card {
	height: 100%;
	margin: 0;
	padding: var(--pc-space-5, 1.5rem);
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.wp-block-group.dantrio-card:hover {
	transform: translateY(-3px);
	border-color: var(--pc-border-strong, #c3d8d4);
	box-shadow: 0 2px 4px rgba(18, 32, 30, 0.04), 0 8px 24px rgba(18, 32, 30, 0.07);
}

.dantrio-card h3 {
	margin: 0 0 var(--pc-space-2, 0.5rem);
	font-size: var(--pc-text-lg, 1.1875rem);
}

.dantrio-card p:last-child { margin-bottom: 0; }

.dantrio-values .dantrio-card {
	border-top: 4px solid var(--pc-primary, #0b7268);
}

/* -------------------------------------------------------------------------
   5. FAQ (details block)
   ------------------------------------------------------------------------- */

.wp-block-group.dantrio-faqs { max-width: 820px; }

.wp-block-details {
	margin: 0 0 var(--pc-space-3, 0.75rem);
	padding: 0;
	background: #ffffff;
	border: 1px solid var(--pc-border, #dde9e7);
	border-radius: var(--pc-radius, 14px);
}

.wp-block-details summary {
	position: relative;
	padding: var(--pc-space-4, 1rem) 3.25rem var(--pc-space-4, 1rem) var(--pc-space-5, 1.5rem);
	color: var(--pc-ink, #12201e);
	font-weight: 600;
	list-style: none;
	cursor: pointer;
}

.wp-block-details summary::-webkit-details-marker { display: none; }

.wp-block-details summary::after {
	content: "+";
	position: absolute;
	top: 50%;
	right: var(--pc-space-5, 1.5rem);
	width: 1.6rem;
	height: 1.6rem;
	margin-top: -0.8rem;
	border-radius: 50%;
	background: var(--pc-mint, #d9f0ec);
	color: var(--pc-primary-dark, #095049);
	font-size: 1.1rem;
	line-height: 1.6rem;
	text-align: center;
	transition: transform 0.2s ease;
}

.wp-block-details[open] summary::after { transform: rotate(45deg); }

.wp-block-details > *:not(summary) {
	margin: 0;
	padding: 0 var(--pc-space-5, 1.5rem) var(--pc-space-4, 1rem);
}

/* -------------------------------------------------------------------------
   6. Gallery and lightbox
   ------------------------------------------------------------------------- */

.wp-block-gallery.dantrio-gallery {
	gap: var(--pc-space-4, 1rem);
}

.wp-block-gallery.dantrio-gallery .wp-block-image {
	overflow: hidden;
	border-radius: var(--pc-radius, 14px);
}

.wp-block-gallery.dantrio-gallery .wp-block-image img {
	border-radius: 0;
	transition: transform 0.4s ease;
}

.wp-block-gallery.dantrio-gallery .wp-block-image:hover img { transform: scale(1.04); }

.wp-block-gallery.dantrio-gallery.has-nested-images figure.wp-block-image figcaption {
	padding: 2.5rem 1rem 0.85rem;
	background: linear-gradient(0deg, rgba(9, 80, 73, 0.85), transparent);
	font-size: var(--pc-text-sm, 0.9375rem);
	font-weight: 600;
	text-align: left;
}

.gallery-page .entry-content > h2 + p,
.gallery-page .entry-content > p.dantrio-lead { margin-bottom: var(--pc-space-6, 2rem); }

.dantrio-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 3.5rem 1rem;
	background: rgba(8, 20, 18, 0.92);
}

.dantrio-lightbox figure {
	margin: 0;
	max-width: min(1100px, 100%);
	text-align: center;
}

.dantrio-lightbox img {
	max-width: 100%;
	max-height: calc(100vh - 9rem);
	margin: 0 auto;
	border-radius: 10px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.dantrio-lightbox figcaption {
	margin-top: 0.75rem;
	color: rgba(255, 255, 255, 0.85);
	font-size: var(--pc-text-sm, 0.9375rem);
}

.dantrio-lightbox button {
	position: absolute;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
	color: #ffffff;
	transform: none;
}

.dantrio-lightbox button:hover,
.dantrio-lightbox button:focus { background: rgba(255, 255, 255, 0.28); transform: none; }

.dantrio-lightbox__close { top: 1rem; right: 1rem; }
.dantrio-lightbox__prev { left: 1rem; top: 50%; margin-top: -24px; }
.dantrio-lightbox__next { right: 1rem; top: 50%; margin-top: -24px; }

/* -------------------------------------------------------------------------
   7. Shop by category
   ------------------------------------------------------------------------- */

.cat-grid {
	display: grid;
	gap: var(--pc-space-4, 1rem);
	margin: 0;
	padding: 0;
	list-style: none;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
}

.cat-card {
	position: relative;
	display: flex;
	align-items: center;
	gap: var(--pc-space-4, 1rem);
	height: 100%;
	padding: var(--pc-space-3, 0.75rem);
	background: #ffffff;
	border: 1px solid var(--pc-border, #dde9e7);
	border-radius: var(--pc-radius, 14px);
	color: var(--pc-ink, #12201e);
	text-decoration: none;
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.cat-card:hover,
.cat-card:focus {
	transform: translateY(-2px);
	border-color: var(--pc-primary, #0b7268);
	box-shadow: 0 2px 4px rgba(18, 32, 30, 0.04), 0 8px 24px rgba(18, 32, 30, 0.07);
	color: var(--pc-ink, #12201e);
}

.cat-card__media {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 72px;
	height: 72px;
	overflow: hidden;
	border-radius: calc(var(--pc-radius, 14px) - 4px);
	background: var(--pc-mint, #d9f0ec);
	color: var(--pc-primary, #0b7268);
}

.cat-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cat-card__body {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.cat-card__name {
	font-weight: 600;
	line-height: 1.3;
}

.cat-card__count {
	color: var(--pc-muted, #6b7b80);
	font-size: var(--pc-text-xs, 0.8125rem);
}

.cat-card__arrow {
	margin-left: auto;
	color: var(--pc-primary, #0b7268);
	opacity: 0;
	transform: translateX(-4px);
	transition: opacity 0.18s ease, transform 0.18s ease;
}

.cat-card:hover .cat-card__arrow,
.cat-card:focus .cat-card__arrow { opacity: 1; transform: none; }

/* -------------------------------------------------------------------------
   8. Contact
   ------------------------------------------------------------------------- */

.contact-page__cards { padding-top: var(--pc-space-7, 3rem); }

.contact-cards {
	display: grid;
	gap: var(--pc-space-4, 1rem);
	margin: 0;
	padding: 0;
	list-style: none;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
}

.contact-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.35rem;
	padding: var(--pc-space-5, 1.5rem);
	background: #ffffff;
	border: 1px solid var(--pc-border, #dde9e7);
	border-radius: var(--pc-radius, 14px);
	box-shadow: 0 1px 2px rgba(18, 32, 30, 0.05), 0 1px 3px rgba(18, 32, 30, 0.04);
}

.contact-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin-bottom: 0.4rem;
	border-radius: 12px;
	background: var(--pc-mint, #d9f0ec);
	color: var(--pc-primary-dark, #095049);
}

.contact-card__label {
	color: var(--pc-muted, #6b7b80);
	font-size: var(--pc-text-xs, 0.8125rem);
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.contact-card__value {
	color: var(--pc-ink, #12201e);
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
	overflow-wrap: anywhere;
}

.contact-card__value:hover { color: var(--pc-primary, #0b7268); text-decoration: underline; }

.contact-map {
	height: 420px;
	border-top: 1px solid var(--pc-border, #dde9e7);
}

.contact-map iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.info-card__text { margin-bottom: var(--pc-space-4, 1rem); }

.info-card .social-links { margin-top: var(--pc-space-4, 1rem); }

/* -------------------------------------------------------------------------
   9. Prescription upload
   ------------------------------------------------------------------------- */

.upload-drop {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.35rem;
	padding: var(--pc-space-6, 2rem) var(--pc-space-4, 1rem);
	background: var(--pc-surface, #f4faf8);
	border: 2px dashed var(--pc-border-strong, #c3d8d4);
	border-radius: var(--pc-radius, 14px);
	text-align: center;
	cursor: pointer;
	transition: border-color 0.18s ease, background-color 0.18s ease;
}

.upload-drop:hover,
.upload-drop.is-dragover,
.upload-drop:focus-within {
	background: var(--pc-mint, #d9f0ec);
	border-color: var(--pc-primary, #0b7268);
}

.upload-drop input[type="file"] {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
}

.upload-drop__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	margin-bottom: 0.25rem;
	border-radius: 50%;
	background: #ffffff;
	color: var(--pc-primary, #0b7268);
	box-shadow: 0 1px 3px rgba(18, 32, 30, 0.08);
}

.upload-drop__title {
	color: var(--pc-ink, #12201e);
	font-weight: 600;
}

.upload-drop__hint {
	color: var(--pc-muted, #6b7b80);
	font-size: var(--pc-text-xs, 0.8125rem);
}

.has-error .upload-drop { border-color: var(--pc-danger, #b91c1c); }

.upload-drop__list {
	display: grid;
	gap: 0.5rem;
	margin: var(--pc-space-3, 0.75rem) 0 0;
	padding: 0;
	list-style: none;
}

.upload-drop__list li {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.55rem 0.8rem;
	background: #ffffff;
	border: 1px solid var(--pc-border, #dde9e7);
	border-radius: var(--pc-radius-sm, 7px);
	font-size: var(--pc-text-sm, 0.9375rem);
}

.upload-drop__list li.is-invalid {
	border-color: var(--pc-danger, #b91c1c);
	color: var(--pc-danger, #b91c1c);
}

.upload-drop__list img {
	width: 40px;
	height: 40px;
	object-fit: cover;
	border-radius: 6px;
}

.upload-drop__list .upload-drop__size {
	margin-left: auto;
	color: var(--pc-muted, #6b7b80);
	font-size: var(--pc-text-xs, 0.8125rem);
	white-space: nowrap;
}

.step-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.step-list li {
	display: flex;
	gap: 0.75rem;
	margin-bottom: 0.85rem;
	font-size: var(--pc-text-sm, 0.9375rem);
}

.step-list li:last-child { margin-bottom: 0; }

.step-list__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--pc-primary, #0b7268);
	color: #ffffff;
	font-size: var(--pc-text-xs, 0.8125rem);
	font-weight: 700;
}

.step-list strong { color: var(--pc-ink, #12201e); }

/* -------------------------------------------------------------------------
   10. Blog categories, menu, hours
   ------------------------------------------------------------------------- */

.blog-cats { margin-bottom: var(--pc-space-6, 2rem); }

@media (min-width: 1024px) {
	.main-navigation .menu-item--mobile-only { display: none; }
}

.dantrio-hours .hours-table { margin-bottom: 0; }

/* -------------------------------------------------------------------------
   11. Block editor tweaks
   ------------------------------------------------------------------------- */

.editor-styles-wrapper .wp-block-group.dantrio-band { padding-inline: 2rem; }

.editor-styles-wrapper .wp-block-shortcode {
	border: 1px dashed var(--pc-border-strong, #c3d8d4);
	border-radius: 10px;
}

.entry-content > .wp-block-group.is-style-pharmacare-notice { margin-top: var(--pc-space-6, 2rem); }

.shop-cats { margin-bottom: var(--pc-space-7, 3rem); }
.shop-cats .cat-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }

/* Shop without a sidebar: one full-width column. */
.content-area.content-area--shop.content-area--no-sidebar { grid-template-columns: minmax(0, 1fr); }

/* -------------------------------------------------------------------------
   12. WhatsApp ordering and support
   ------------------------------------------------------------------------- */

.btn--whatsapp,
.wa-order__btn {
	gap: 0.55rem;
	background: #25d366;
	border-color: #25d366;
	color: #ffffff;
	font-weight: 700;
}

.btn--whatsapp:hover,
.btn--whatsapp:focus,
.wa-order__btn:hover,
.wa-order__btn:focus {
	background: #1da851;
	border-color: #1da851;
	color: #ffffff;
}

.wa-icon { flex: none; }

/* Single product */
.wa-order {
	max-width: 420px;
	margin: var(--pc-space-4, 1rem) 0 var(--pc-space-5, 1.5rem);
}

.wa-order__btn { padding-block: 0.85rem; font-size: var(--pc-text-base, 1.0625rem); }

.wa-order__note {
	margin: 0.5rem 0 0;
	color: var(--pc-muted, #6b7b80);
	font-size: var(--pc-text-xs, 0.8125rem);
}

/* Shop cards */
.wa-loop-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin-top: 0.6rem;
	color: #1da851;
	font-size: var(--pc-text-sm, 0.9375rem);
	font-weight: 600;
	text-decoration: none;
}

.wa-loop-btn:hover { color: #178a44; text-decoration: underline; }

/* Cart */
.wa-cart--classic { margin-top: var(--pc-space-3, 0.75rem); }

.wa-cart__or {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0 0 var(--pc-space-3, 0.75rem);
	color: var(--pc-muted, #6b7b80);
	font-size: var(--pc-text-xs, 0.8125rem);
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.wa-cart__or::before,
.wa-cart__or::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--pc-border, #dde9e7);
}

.wa-cart--block {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--pc-space-4, 1rem);
	margin: var(--pc-space-6, 2rem) 0;
	padding: var(--pc-space-5, 1.5rem);
	background: #effbf3;
	border: 1px solid #bfeccf;
	border-radius: var(--pc-radius, 14px);
}

.wa-cart--block .wa-cart__text {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	max-width: 60ch;
}

.wa-cart--block .wa-cart__text strong { color: var(--pc-ink, #12201e); }

.wa-cart--block .wa-order__btn {
	width: auto;
	display: inline-flex;
}

/* Floating support widget */
.wa-float {
	position: fixed;
	right: 1.25rem;
	bottom: 1.25rem;
	z-index: 9990;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.75rem;
}

.has-wa-float .back-to-top { bottom: 5.5rem; }

.wa-float__btn {
	display: inline-flex;
	align-items: center;
	gap: 0;
	height: 60px;
	min-width: 60px;
	padding: 0 16px;
	border: 0;
	border-radius: 999px;
	background: #25d366;
	color: #ffffff;
	box-shadow: 0 6px 20px rgba(18, 32, 30, 0.22);
	font-weight: 700;
	transition: gap 0.25s ease, background-color 0.18s ease, transform 0.18s ease;
}

.wa-float__btn:hover,
.wa-float__btn:focus {
	background: #1da851;
	color: #ffffff;
}

.wa-float__label {
	max-width: 0;
	overflow: hidden;
	white-space: nowrap;
	transition: max-width 0.3s ease;
}

.wa-float__btn:hover .wa-float__label,
.wa-float__btn:focus-visible .wa-float__label,
.wa-float.is-intro .wa-float__label,
.wa-float.is-open .wa-float__label {
	max-width: 12rem;
}

.wa-float__btn:hover,
.wa-float__btn:focus-visible,
.wa-float.is-intro .wa-float__btn,
.wa-float.is-open .wa-float__btn {
	gap: 0.6rem;
	padding-right: 22px;
}

.wa-float:not(.is-open) .wa-float__btn::after {
	content: "";
	position: absolute;
	top: 6px;
	right: 6px;
	width: 12px;
	height: 12px;
	border: 2px solid #ffffff;
	border-radius: 50%;
	background: #ef4444;
}

.wa-float__btn { position: relative; }

.wa-panel {
	width: min(360px, calc(100vw - 2.5rem));
	overflow: hidden;
	background: #ffffff;
	border-radius: 18px;
	box-shadow: 0 12px 40px rgba(18, 32, 30, 0.25);
	animation: wa-pop 0.18s ease-out;
}

@keyframes wa-pop {
	from { opacity: 0; transform: translateY(8px) scale(0.98); }
	to { opacity: 1; transform: none; }
}

.wa-panel__head {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 1rem 1rem 1rem 1.1rem;
	background: #075e54;
	color: #ffffff;
}

.wa-panel__avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #ffffff;
	color: var(--pc-primary, #0b7268);
}

.wa-panel__avatar svg { fill: currentColor; stroke: none; }

.wa-panel__title {
	margin: 0;
	color: #ffffff;
	font-weight: 700;
	line-height: 1.3;
}

.wa-panel__status {
	margin: 0;
	font-size: var(--pc-text-xs, 0.8125rem);
	opacity: 0.85;
}

.wa-panel__close {
	margin-left: auto;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	color: #ffffff;
}

.wa-panel__close:hover,
.wa-panel__close:focus { background: rgba(255, 255, 255, 0.25); transform: none; box-shadow: none; }

.wa-panel__body {
	padding: 1rem;
	background: #efeae2;
}

.wa-panel__bubble {
	position: relative;
	display: inline-block;
	margin: 0 0 0.9rem;
	padding: 0.6rem 0.85rem;
	background: #ffffff;
	border-radius: 0 10px 10px 10px;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
	color: var(--pc-ink, #12201e);
	font-size: var(--pc-text-sm, 0.9375rem);
}

.wa-options {
	display: grid;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wa-option {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.75rem 0.85rem;
	background: #ffffff;
	border: 1px solid transparent;
	border-radius: 12px;
	color: var(--pc-ink, #12201e);
	text-decoration: none;
	transition: border-color 0.15s ease, transform 0.15s ease;
}

.wa-option:hover,
.wa-option:focus {
	border-color: #25d366;
	color: var(--pc-ink, #12201e);
	transform: translateX(2px);
}

.wa-option__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: #dcf8c6;
	color: #075e54;
}

.wa-option--doctor .wa-option__icon { background: #e0f2fe; color: #0369a1; }
.wa-option--prescription .wa-option__icon { background: var(--pc-mint, #d9f0ec); color: var(--pc-primary-dark, #095049); }

.wa-option__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.3;
}

.wa-option__text small {
	color: var(--pc-muted, #6b7b80);
	font-size: var(--pc-text-xs, 0.8125rem);
}

.wa-option__arrow {
	margin-left: auto;
	color: #25d366;
}

.wa-panel__alt {
	margin: 0.9rem 0 0;
	font-size: var(--pc-text-xs, 0.8125rem);
	text-align: center;
}

@media (max-width: 480px) {
	.wa-float { right: 0.9rem; bottom: 0.9rem; }
	.wa-float__btn { height: 56px; min-width: 56px; }
}

@media print {
	.wa-float { display: none !important; }
}
