.browhaus-form { max-width: 420px; margin: 2em auto; }
.browhaus-form p { margin-bottom: 1em; }
.browhaus-form label { display: block; margin-bottom: 0.35em; font-weight: 600; }
.browhaus-form input[type=text],
.browhaus-form input[type=email],
.browhaus-form input[type=tel],
.browhaus-form input[type=password],
.browhaus-form input[type=date],
.browhaus-form select {
	width: 100%;
	padding: 0.6em 0.8em;
	border: 1px solid #ddd;
	border-radius: 3px;
	box-sizing: border-box;
}
.browhaus-form button {
	padding: 0.7em 1.6em;
	border: none;
	border-radius: 3px;
	background: #b08d57;
	color: #fff;
	cursor: pointer;
	font-weight: 600;
}
.browhaus-form button:hover { background: #96774a; }
.browhaus-form-errors { color: #b00020; margin-bottom: 1em; padding-left: 1.2em; }

.browhaus-account { max-width: 980px; margin: 2em auto; }

/* ---- Account header ---- */
.browhaus-account-header {
	display: flex; align-items: center; gap: 1.25em; margin-bottom: 1.5em;
}
.browhaus-avatar {
	display: inline-block; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.browhaus-avatar-initials {
	background: #b08d57; color: #fff; text-align: center;
	font-weight: 700; font-size: 1.5em; letter-spacing: 0.05em;
}
.browhaus-account-header .browhaus-avatar { width: 72px; height: 72px; }
.browhaus-account-welcome {
	margin: 0 0 0.15em; font-size: 1.6em; letter-spacing: 0.04em;
}
.browhaus-account-sub { margin: 0; color: #777; font-size: 0.95em; }
.browhaus-account-sub .browhaus-logout-link { color: #b08d57; }

.browhaus-notice {
	padding: 0.8em 1em; border-radius: 4px; margin-bottom: 1.25em; font-weight: 600;
}
.browhaus-notice-success { background: #e6f4ea; color: #1e7e34; }

/* ---- Next appointment hero ---- */
.browhaus-next-appt {
	background: #111; color: #fff; border-radius: 6px;
	padding: 1.4em 1.6em; margin-bottom: 1.75em;
	display: flex; flex-direction: column; gap: 0.3em;
}
.browhaus-next-appt-label {
	color: #b08d57; text-transform: uppercase; letter-spacing: 0.15em;
	font-size: 0.75em; font-weight: 700;
}
.browhaus-next-appt-service { font-size: 1.35em; letter-spacing: 0.03em; }
.browhaus-next-appt-when { color: #ccc; }
.browhaus-next-appt-ics { align-self: flex-start; margin-top: 0.6em; }
.browhaus-next-appt .browhaus-ics-link { color: #b08d57; }

/* ---- Two-column layout ---- */
.browhaus-account-grid {
	display: grid; grid-template-columns: 300px 1fr; gap: 2em; align-items: start;
}
@media (max-width: 768px) {
	.browhaus-account-grid { grid-template-columns: 1fr; }
}
.browhaus-account h3 {
	text-transform: uppercase; letter-spacing: 0.12em; font-size: 1em;
	margin: 0 0 1em; padding-bottom: 0.6em; border-bottom: 2px solid #b08d57;
}
.browhaus-appts h3 + h3, .browhaus-appts .browhaus-appointment-list + h3,
.browhaus-appts .browhaus-empty-state + h3, .browhaus-appts .browhaus-empty-note + h3 {
	margin-top: 2em;
}

/* ---- Profile card ---- */
.browhaus-profile-card {
	border: 1px solid #eee; border-radius: 6px; padding: 1.4em;
}
.browhaus-profile-facts { margin: 0 0 1.25em; }
.browhaus-profile-facts dt {
	font-size: 0.75em; text-transform: uppercase; letter-spacing: 0.1em;
	color: #999; margin-top: 0.9em;
}
.browhaus-profile-facts dt:first-child { margin-top: 0; }
.browhaus-profile-facts dd { margin: 0.1em 0 0; font-weight: 600; word-break: break-word; }
.browhaus-edit-profile-btn {
	width: 100%; padding: 0.7em 1em; border: 1px solid #b08d57; border-radius: 3px;
	background: #fff; color: #b08d57; font-weight: 600; cursor: pointer;
}
.browhaus-edit-profile-btn:hover { background: #b08d57; color: #fff; }
.browhaus-profile-card .browhaus-profile-form { margin: 1.25em 0 0; max-width: none; }
.browhaus-profile-form input[type=file] { width: 100%; font-size: 0.9em; }
.browhaus-password-fieldset {
	border: 1px solid #eee; border-radius: 4px; padding: 0.9em 1em 0.1em; margin: 1.2em 0;
}
.browhaus-password-fieldset legend {
	font-size: 0.8em; text-transform: uppercase; letter-spacing: 0.08em;
	color: #999; padding: 0 0.4em;
}

/* ---- Appointment lists ---- */
.browhaus-appointment-list { list-style: none; margin: 0; padding: 0; }
.browhaus-appointment-list li {
	display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
	gap: 0.5em; padding: 1em 1.2em; border: 1px solid #eee; border-left: 3px solid #b08d57;
	border-radius: 4px; margin-bottom: 0.75em;
}
.browhaus-history-list li { border-left-color: #ddd; }
.browhaus-appointment-list .browhaus-appt-meta { flex: 1; min-width: 220px; }
.browhaus-appt-meta strong { font-size: 1.05em; }
.browhaus-appt-when { display: block; margin-top: 0.25em; color: #444; }
.browhaus-appt-detail { display: block; margin-top: 0.1em; color: #999; font-size: 0.9em; }
.browhaus-appointment-list .browhaus-appt-actions {
	display: flex; align-items: center; gap: 0.5em; flex-wrap: wrap;
}
.browhaus-appointment-list .browhaus-appt-actions button {
	padding: 0.4em 0.9em; border-radius: 3px; border: 1px solid #ccc;
	background: #fff; cursor: pointer;
}
.browhaus-ics-link, .browhaus-rebook-link {
	font-size: 0.9em; color: #b08d57; text-decoration: underline;
}
.browhaus-rebook-link {
	text-decoration: none; border: 1px solid #b08d57; border-radius: 3px;
	padding: 0.4em 0.9em; color: #b08d57;
}
.browhaus-rebook-link:hover { background: #b08d57; color: #fff; }

.browhaus-empty-state {
	border: 1px dashed #ddd; border-radius: 6px; padding: 1.75em; text-align: center;
}
.browhaus-empty-state p { margin: 0 0 1em; color: #777; }
.browhaus-cta-btn {
	display: inline-block; padding: 0.7em 1.6em; border-radius: 3px;
	background: #b08d57; color: #fff; font-weight: 700; text-decoration: none;
}
.browhaus-cta-btn:hover { background: #96774a; color: #fff; }
.browhaus-empty-note { color: #999; }
.browhaus-badge { display: inline-block; padding: 0.15em 0.6em; border-radius: 12px; font-size: 0.8em; }
.browhaus-badge-confirmed { background: #e6f4ea; color: #1e7e34; }
.browhaus-badge-cancelled { background: #fbe9e7; color: #b00020; }
.browhaus-badge-past { background: #eee; color: #666; }

.browhaus-slots { display: flex; flex-wrap: wrap; gap: 0.5em; margin-top: 0.5em; }
.browhaus-slot-btn {
	padding: 0.5em 1em; border: 1px solid #b08d57; border-radius: 3px;
	background: #fff; color: #b08d57; cursor: pointer;
}
.browhaus-slot-btn:hover:not(:disabled) { background: #b08d57; color: #fff; }
.browhaus-slot-btn:disabled { opacity: 0.5; cursor: not-allowed; }
#browhaus-booking-message { margin-top: 1em; font-weight: 600; }

/* ---- Account deletion (Contul Meu → Șterge contul; Google Play web deletion link) ---- */
.browhaus-delete-account { margin-top: 2em; padding-top: 1em; border-top: 1px solid #e5e0d8; }
.browhaus-delete-account summary { cursor: pointer; color: #b00020; font-weight: 600; }
.browhaus-delete-account p { color: #555; }
.browhaus-delete-account input[type="password"] { width: 100%; padding: 0.7em 1em; border: 1px solid #ccc; border-radius: 3px; }
.browhaus-danger-btn {
	padding: 0.7em 1.4em; border: 1px solid #b00020; border-radius: 3px;
	background: #fff; color: #b00020; font-weight: 700; cursor: pointer;
}
.browhaus-danger-btn:hover { background: #b00020; color: #fff; }
.browhaus-form-error { color: #b00020; font-weight: 600; }
.browhaus-delete-info { border: 1px solid #e5e0d8; border-radius: 6px; padding: 1.25em 1.5em; margin-bottom: 1.5em; }
.browhaus-delete-info h3 { margin-top: 0; }

/* ---- Header responsive repairs (theme's own CSS mis-sizes these) ---- */
/* Mobile header: the theme keeps a fixed 1170px grid inside it, pushing the
   centered logo off-screen on phones. Make it track the viewport. */
@media (max-width: 1024px) {
	.mkdf-mobile-header .mkdf-grid,
	.mkdf-mobile-header .mkdf-vertical-align-containers,
	.mkdf-mobile-header .mkdf-position-center { width: 100% !important; left: 0 !important; }
}
/* Tablet/small-laptop band: the centered desktop menu (wider since Programare
   + Contul Meu were added) collides with the logo between ~1025-1500px.
   Use the mobile header there instead — verified the burger menu works. */
@media (min-width: 1025px) and (max-width: 1500px) {
	.mkdf-page-header { display: none !important; }
	.mkdf-mobile-header { display: block !important; }
	.mkdf-mobile-header .mkdf-grid,
	.mkdf-mobile-header .mkdf-vertical-align-containers,
	.mkdf-mobile-header .mkdf-position-center { width: 100% !important; left: 0 !important; }
}
/* Full-width containers above remove the theme grid's own gutters, which
   would leave the burger icon and menu labels glued to the screen edge. */
@media (max-width: 1500px) {
	.mkdf-mobile-header .mkdf-mobile-header-inner,
	.mkdf-mobile-header .mkdf-mobile-header-holder,
	.mkdf-mobile-nav .mkdf-grid {
		padding-left: 20px !important;
		padding-right: 20px !important;
		box-sizing: border-box !important;
	}
	.mkdf-mobile-nav .mkdf-grid { width: 100% !important; }
}

.browhaus-visually-hidden-h1 {
	position: absolute !important; width: 1px; height: 1px;
	padding: 0; margin: -1px; overflow: hidden;
	clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.browhaus-floating-actions {
	position: fixed; right: 20px; bottom: 20px; z-index: 9999;
	display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}
.browhaus-fab {
	display: flex; align-items: center; justify-content: center;
	text-decoration: none; box-shadow: 0 2px 10px rgba(0,0,0,0.25);
	transition: transform 0.15s ease;
}
.browhaus-fab:hover { transform: translateY(-2px); }
.browhaus-fab-whatsapp {
	width: 52px; height: 52px; border-radius: 50%;
	background: #25D366; color: #fff;
}
.browhaus-fab-book {
	padding: 0.8em 1.3em; border-radius: 30px;
	background: #b08d57; color: #fff; font-weight: 700; white-space: nowrap;
}
.browhaus-fab-book:hover { color: #fff; }
@media (max-width: 480px) {
	.browhaus-floating-actions { right: 12px; bottom: 12px; }
	.browhaus-fab-book { padding: 0.7em 1.1em; font-size: 0.9em; }
}

/* ---- WhatsApp chat popup ---- */
.browhaus-wa-widget {
	width: min(340px, calc(100vw - 24px));
	background: #fff; border-radius: 12px; overflow: hidden;
	box-shadow: 0 6px 30px rgba(0,0,0,0.28);
	display: flex; flex-direction: column;
	animation: browhaus-wa-in 0.18s ease-out;
}
/* display:flex above would override the hidden attribute's display:none —
   without this rule the card is stuck visible and minimize appears broken. */
.browhaus-wa-widget[hidden] { display: none; }
/* Never taller than the screen: on short viewports the header (and its
   minimize button) would otherwise sit above the visible area. The body
   shrinks and scrolls internally instead. */
.browhaus-wa-widget { max-height: min(480px, calc(100vh - 170px)); }
.browhaus-wa-header, .browhaus-wa-input, .browhaus-wa-note, .browhaus-wa-guest-actions { flex-shrink: 0; }
.browhaus-wa-body { flex: 1 1 auto; }
@keyframes browhaus-wa-in {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: none; }
}
.browhaus-wa-header {
	display: flex; align-items: center; gap: 0.7em;
	background: #111; color: #fff; padding: 0.8em 1em;
}
.browhaus-wa-avatar {
	width: 40px; height: 40px; line-height: 40px; border-radius: 50%;
	background: #b08d57; color: #fff; text-align: center;
	font-weight: 700; letter-spacing: 0.05em; flex-shrink: 0;
}
.browhaus-wa-title { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.browhaus-wa-title strong { letter-spacing: 0.04em; }
.browhaus-wa-title span { font-size: 0.75em; color: #bbb; }
.browhaus-wa-close {
	background: none; border: none; color: #bbb; font-size: 1.5em;
	line-height: 1; cursor: pointer; padding: 0 0.35em;
}
.browhaus-wa-close:hover { color: #fff; }
.browhaus-fab-unread { position: relative; }
.browhaus-fab-unread::after {
	content: ""; position: absolute; top: 2px; right: 2px;
	width: 12px; height: 12px; border-radius: 50%;
	background: #e53935; border: 2px solid #fff;
}
.browhaus-wa-body {
	background: #ece5dd; padding: 1em; max-height: 260px; overflow-y: auto;
	display: flex; flex-direction: column; gap: 0.5em;
}
.browhaus-wa-bubble {
	background: #fff; border-radius: 0 8px 8px 8px; padding: 0.6em 0.9em;
	max-width: 85%; align-self: flex-start; font-size: 0.95em;
	box-shadow: 0 1px 1px rgba(0,0,0,0.08);
}
.browhaus-wa-bubble-out {
	background: #dcf8c6; border-radius: 8px 0 8px 8px; align-self: flex-end;
}
.browhaus-wa-time {
	display: block; font-size: 0.72em; color: #999; margin-top: 0.25em; text-align: right;
}
.browhaus-wa-bubble-failed { opacity: 0.5; text-decoration: line-through; }
.browhaus-wa-guest-actions {
	padding: 0.9em; background: #f7f7f7; display: flex; flex-direction: column;
	gap: 0.6em; align-items: center; text-align: center;
}
.browhaus-wa-login-btn {
	display: block; width: 100%; box-sizing: border-box; padding: 0.7em 1em;
	border-radius: 4px; background: #b08d57; color: #fff !important;
	font-weight: 700; text-decoration: none;
}
.browhaus-wa-login-btn:hover { background: #96774a; }
.browhaus-wa-alt-link { font-size: 0.82em; color: #777; }
.browhaus-wa-note a { color: #999; text-decoration: underline; }
.browhaus-wa-input {
	display: flex; gap: 0.5em; padding: 0.7em; background: #f7f7f7; margin: 0;
}
.browhaus-wa-input input {
	flex: 1; border: 1px solid #ddd; border-radius: 20px;
	padding: 0.55em 1em; font-size: 0.95em; outline: none; min-width: 0;
}
.browhaus-wa-input input:focus { border-color: #b08d57; }
.browhaus-wa-input button {
	width: 40px; height: 40px; border-radius: 50%; border: none;
	background: #25D366; color: #fff; cursor: pointer; flex-shrink: 0;
	display: flex; align-items: center; justify-content: center;
}
.browhaus-wa-input button:hover { background: #1ebe5b; }
.browhaus-wa-note {
	text-align: center; font-size: 0.72em; color: #999;
	padding: 0 0 0.6em; background: #f7f7f7;
}
