.user_info {
    text-align: left;
}

.user_name {
    font-size: 1rem; /* Equivalent to <h6> */
}

#user-role {
    font-size: 0.9rem;
    color: #555;
}

/* Default state before login */
#verification-indicator {
  color: var(--techwave-heading-color); /* Grey default */
}

/* After login */
.logged-in #verification-indicator,
.verification-active {
  color: #1ed760 !important;  /* Green check after login */
}

/* =========================================================
   AGE VERIFICATION OVERLAY
   ========================================================= */
.silverbranch-age-bg {
    background: rgba(0, 0, 0, 0.92);
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    animation: sbFadeIn 0.35s ease-out;
}

/* =========================================================
   AGE VERIFICATION MODAL (BASE)
   ========================================================= */
.silverbranch-age-checker {
    width: 420px;
    max-width: calc(100% - 40px);
    position: fixed;
    z-index: 10001;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 32px 28px;
    text-align: center;
    border-radius: 12px;
    animation: sbSlideUp 0.4s ease-out;
    font-family: var(--techwave-body-font-family, "Segoe UI", Roboto, sans-serif);
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

/* =========================================================
   DARK MODE STYLES
   ========================================================= */
.dark-mode .silverbranch-age-checker {
    background: linear-gradient(180deg, #1c1c1c, #151515);
    color: #c0bcca;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.65),
        inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.dark-mode .silverbranch-age-checker h4 {
    color: #1ed760;
}

.dark-mode .silverbranch-age-checker p:last-of-type {
    color: #9a96a8;
}

.dark-mode .silverbranch-age-checker a {
    color: #1ed760;
}

/* =========================================================
   LIGHT MODE STYLES
   ========================================================= */
.light-mode .silverbranch-age-checker {
    background: #ffffff !important;
    color: #222222;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.15),
        inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.light-mode .silverbranch-age-checker h4 {
    color: #16a34a;
}

.light-mode .silverbranch-age-checker p:last-of-type {
    color: #666666;
}

.light-mode .silverbranch-age-checker a {
    color: #1a7f37;
}

/* =========================================================
   LOGO
   ========================================================= */
.silverbranch-age-checker img {
    max-width: 180px;
    height: auto;
    margin-bottom: 18px;
}

/* =========================================================
   HEADINGS & TEXT
   ========================================================= */
.silverbranch-age-checker h4 {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 8px;
    letter-spacing: 0.3px;
}

.silverbranch-age-checker p {
    font-size: 16px;
    margin: 0 0 22px;
    line-height: 1.5;
}

/* =========================================================
   BUTTON CONTAINER
   ========================================================= */
.silverbranch-age-checker .button-container {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 26px;
}

/* =========================================================
   BUTTONS (YES / NO)
   ========================================================= */
.yes-button,
.no-button {
    display: inline-flex;
}

.yes-button .close-age-popup,
.no-button a {
    min-width: 110px;
    padding: 12px 26px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
    text-align: center;
}

/* YES BUTTON */
.yes-button .close-age-popup {
    background: #1ed760;
    color: #0f1a12;
    box-shadow: 0 4px 12px rgba(30, 215, 96, 0.35);
}

.yes-button .close-age-popup:hover {
    background: #19c853;
    box-shadow: 0 6px 18px rgba(30, 215, 96, 0.45);
    transform: translateY(-1px);
}

/* NO BUTTON */
.no-button a {
    background: #2a2a2a;
    color: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.no-button a:hover {
    background: #333;
    transform: translateY(-1px);
}

/* LIGHT MODE NO BUTTON OVERRIDE */
.light-mode .no-button a {
    background: #e0e0e0;
    color: #222;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.light-mode .no-button a:hover {
    background: #cccccc;
}

/* =========================================================
   TERMS / LEGAL TEXT
   ========================================================= */
.silverbranch-age-checker p:last-of-type {
    font-size: 13px;
    font-style: italic;
    line-height: 1.45;
}

.silverbranch-age-checker a:hover {
    text-decoration: underline;
}

/* =========================================================
   ACCESSIBILITY & FOCUS
   ========================================================= */
.silverbranch-age-checker a:focus,
.silverbranch-age-checker .close-age-popup:focus {
    outline: 2px solid #1ed760;
    outline-offset: 3px;
}

/* =========================================================
   ANIMATIONS
   ========================================================= */
@keyframes sbFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes sbSlideUp {
    from {
        opacity: 0;
        transform: translate(-50%, -44%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* === ENHANCEMENTS: Age Verification Typography & Layout === */

/* 1. Increase size and spacing of the main question */
.silverbranch-age-checker p.age-question {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 32px; /* slightly larger buffer */
}

/* 2. Increase Yes/No button size (padding + font) */
.yes-button .close-age-popup,
.no-button a {
    padding: 14px 32px;
    font-size: 17px;
    font-weight: 600;
    border-radius: 10px;
}

/* =========================================================
   CHAT ARCHIVE - EDIT/DELETE
   ========================================================= */

/* =========================================================
   CHAT ARCHIVE - OPTIONS DROPDOWN (FINAL FIXED VERSION)
   ========================================================= */

/* Ensure parent allows popup to render */
.fn__chat_link{
	position: relative;
	overflow: visible;
}

/* Keep active item above others */
.fn__chat_link.opened{
	z-index: 100;
}

/* Trigger button (3 dots) */
.fn__chat_link .trigger{
	background-color: transparent;
	padding: 0;
	margin: 0;
	outline: none;
	border: none;
	width: 38px;
	height: 38px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	border-radius: 0 4px 4px 0;
}

.fn__chat_link .trigger:hover{
	background-color: var(--techwave-some-a-bg-color);
}

/* 3-dot icon */
.fn__chat_link .trigger span{
	display: block;
	position: relative;
	width: 15px;
	height: 3px;
	border-left: 3px solid var(--techwave-body-color);
	border-right: 3px solid var(--techwave-body-color);
}

.fn__chat_link .trigger span:after{
	width: 3px;
	top: 0;
	bottom: 0;
	left: 3px;
	content: '';
	position: absolute;
	background-color: var(--techwave-body-color);
}

/* Hover/active trigger styling */
.fn__chat_link.opened .trigger{
	background-color: var(--techwave-some-a-bg-color);
}

.fn__chat_link.opened .trigger span{
	border-left-color: var(--techwave-heading-color);
	border-right-color: var(--techwave-heading-color);
}

.fn__chat_link.opened .trigger span:after{
	background-color: var(--techwave-heading-color);
}

/* =========================
   POPUP MENU (FIXED)
   ========================= */

.fn__chat_link .options{
	position: absolute;
	right: 0;
	top: 0;
	bottom: 0;
	display: block;
}

/* Popup container */
.fn__chat_link .options__popup{
	position: absolute;
	top: 100%;
	right: -1px;
	width: 140px;
	padding-top: 6px;

	/* Hidden by default */
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);

	transition: all .2s ease;
	z-index: 999;
}

/* SHOW popup when opened */
.fn__chat_link.opened .options__popup{
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

/* Popup list */
.fn__chat_link .options__list{
	list-style-type: none;
	background-color: var(--techwave-some-a-bg-color);
	border-radius: 5px;
	margin: 0;
	padding: 15px 20px;

	display: flex;
	flex-direction: column;
}

/* Buttons inside popup */
.fn__chat_link .options__list button{
	background-color: transparent;
	outline: none;
	border: none;
	padding: 0;
	margin: 0;
	text-align: left;
	cursor: pointer;

	font-size: 16px;
	font-weight: 400;
	color: var(--techwave-heading-color);
	font-family: var(--techwave-heading-font-family);

	margin-bottom: 3px;
	transition: all .2s ease;
}

.fn__chat_link .options__list button:last-child{
	margin-bottom: 0;
}

.fn__chat_link .options__list button:hover{
	color: var(--techwave-main-color);
}

/* =========================
   SAFETY FIXES
   ========================= */

/* Prevent sidebar clipping the popup */
.techwave_fn_leftpanel,
.chat__sidebar,
.sidebar_content{
	overflow: visible !important;
}


/* =========================================================
   DELETE ENTIRE USER ARCHIVE
   ========================================================= */

.chat__sidebar_footer{
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid var(--techwave-border-color);
}

.wf-sidebar-actions .row{
	display: flex;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wf-sidebar-actions .col-6{
	flex: 1 1 0;
}

.wf-sidebar-actions .btn{
	display: flex;
	width: 100%;
	min-height: 74px;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	text-decoration: none;
	border: 1px solid var(--techwave-border-color);
	border-radius: 8px;
	background-color: var(--techwave-some-a-bg-color);
	color: var(--techwave-heading-color);
	padding: 12px 10px;
	cursor: pointer;
	transition: all .2s ease;
}

.wf-sidebar-actions .btn:hover{
	border-color: var(--techwave-main-color);
	color: var(--techwave-heading-color);
}

.wf-sidebar-actions .btn svg{
	width: 18px;
	height: 18px;
	margin-bottom: 6px;
}

.wf-sidebar-actions .small{
	font-size: 12px;
	line-height: 1.2;
	font-family: var(--techwave-heading-font-family);
	text-transform: uppercase;
	letter-spacing: .4px;
}

/* =========================================================
   USER ARCHIVE BUTTON TITLES
   ========================================================= */
   
.fn__chat_link .text,
.fn__chat_link.active .text{
	display: block;
	width: calc(100% - 10px);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* =========================================================
   FIX: Claude code block readability
   ========================================================= */

.fn__chatbot pre,
.fn__chatbot code {
    line-height: 1.6 !important;
    white-space: pre-wrap !important;
    word-break: break-word;
    overflow-x: auto;
}

/* Prevent vertical overlap */
.fn__chatbot pre code {
    display: block;
}

/* Optional: nicer spacing */
.fn__chatbot pre {
    padding: 12px 14px;
    border-radius: 8px;
}
   


/* =========================================================
   NEW: Culinary recipe cards CSS 
   ========================================================= */


.wf-recipe-card {
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 22px;
    padding: 22px;
    margin: 10px 0 18px;
    overflow: hidden;
}

.wf-recipe-images {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
    margin-bottom: 14px;
    scrollbar-width: none;
}

.wf-recipe-images::-webkit-scrollbar { display: none; }

.wf-recipe-image-card {
    flex: 0 0 340px;
    height: 255px;
    border: 0;
    border-radius: 16px;
    text-decoration: none;
    overflow: hidden;
    position: relative;
    padding: 0;
    background: rgba(255,255,255,0.08);
}

.wf-recipe-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wf-recipe-image-credit {
    position: absolute;
    right: 8px;
    bottom: 8px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(0,0,0,0.45);
    color: #fff;
    font-size: 11px;
}

.wf-recipe-web-note {
    text-align: right;
    opacity: 0.55;
    font-size: 12px;
    margin-bottom: 20px;
}

.wf-recipe-header h4 {
    font-size: 26px;
    line-height: 1.2;
    margin: 0 0 8px;
}

.wf-recipe-header p {
    opacity: 0.82;
    margin-bottom: 18px;
}

.wf-recipe-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 18px 0 24px;
    flex-wrap: wrap;
}

.wf-recipe-servings,
.wf-recipe-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wf-recipe-serving-pill {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 999px;
    overflow: hidden;
}

.wf-recipe-serving-pill button,
.wf-recipe-actions button,
.wf-recipe-step-toggle {
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.055);
    color: inherit;
    cursor: pointer;
}

.wf-recipe-serving-pill button {
    width: 30px;
    height: 30px;
    border: 0;
}

.wf-recipe-serving-count {
    min-width: 28px;
    text-align: center;
}

.wf-recipe-actions button {
    min-height: 34px;
    border-radius: 10px;
    padding: 0 12px;
}

.wf-recipe-cook {
    background: #fff !important;
    color: #111 !important;
    font-weight: 700;
}

.wf-recipe-section {
    margin-top: 26px;
}

.wf-recipe-section h5,
.wf-recipe-notes h5 {
    text-transform: uppercase;
    opacity: 0.65;
    letter-spacing: 0.04em;
    font-size: 13px;
    margin-bottom: 14px;
}

.wf-recipe-ingredients {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wf-recipe-ingredients li {
    margin: 7px 0;
    line-height: 1.45;
    font-weight: 600;
}

.wf-recipe-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wf-recipe-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.wf-recipe-step-toggle {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    flex: 0 0 30px;
    opacity: 0.7;
}

.wf-recipe-step-body {
    line-height: 1.55;
}

.wf-recipe-step.is-complete .wf-recipe-step-body {
    text-decoration: line-through;
    opacity: 0.48;
}

.wf-recipe-step.is-complete .wf-recipe-step-toggle {
    background: rgba(255,255,255,0.18);
    opacity: 1;
}

.wf-recipe-notes {
    margin-top: 30px;
    padding: 18px;
    border-radius: 16px;
    background: rgba(0,0,0,0.28);
}

.wf-recipe-notes p,
.wf-recipe-notes li {
    opacity: 0.82;
    line-height: 1.5;
}

.wf-recipe-cooking-mode {
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 20px 80px rgba(0,0,0,0.35);
}

html[data-techwave-skin="light"] .wf-recipe-card {
    background: #fff;
    border-color: rgba(0,0,0,0.1);
}

html[data-techwave-skin="light"] .wf-recipe-notes {
    background: #f3f3f3;
}

html[data-techwave-skin="light"] .wf-recipe-serving-pill button,
html[data-techwave-skin="light"] .wf-recipe-actions button,
html[data-techwave-skin="light"] .wf-recipe-step-toggle {
    border-color: rgba(0,0,0,0.14);
    background: rgba(0,0,0,0.035);
}

/* =========================================================
   PATCH: Culinary Card Enhancements (SAFE APPEND ONLY)
   ========================================================= */

/* 1. Fix overly bold ingredients (main complaint) */
.wf-recipe-ingredients li {
    font-weight: 400 !important;
}

/* Keep quantity visually emphasized (clean hierarchy) */
.wf-recipe-qty,
.wf-recipe-unit {
    font-weight: 700;
    margin-right: 4px;
}

/* Slight spacing polish */
.wf-recipe-name {
    margin-left: 2px;
}


/* 2. Improve action buttons (copy / print icons) */
.wf-recipe-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 10px;
    transition: all 0.15s ease;
}

/* SVG icons clean alignment */
.wf-recipe-actions button svg {
    display: block;
    width: 18px;
    height: 18px;
}

/* subtle hover polish */
.wf-recipe-actions button:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-1px);
}


/* 3. Improve servings control feel */
.wf-recipe-serving-pill button {
    font-size: 16px;
    font-weight: 600;
    transition: background 0.15s ease;
}

.wf-recipe-serving-pill button:hover {
    background: rgba(255,255,255,0.15);
}


/* 4. Slightly enhance image cards (size + polish) */
.wf-recipe-image-card {
    flex: 0 0 360px;   /* slightly larger */
    height: 270px;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.wf-recipe-image-card:hover {
    transform: translateY(-2px) scale(1.015);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}


/* 5. Improve header spacing hierarchy */
.wf-recipe-header h4 {
    margin-bottom: 10px;
}

.wf-recipe-header p {
    margin-bottom: 16px;
    line-height: 1.5;
}


/* 6. Improve steps readability */
.wf-recipe-step-body {
    line-height: 1.6;
}

/* subtle animation when marking complete */
.wf-recipe-step {
    transition: opacity 0.15s ease;
}


/* 7. Notes section polish (more "card-like") */
.wf-recipe-notes {
    border: 1px solid rgba(255,255,255,0.08);
}

/* slightly tighter notes typography */
.wf-recipe-notes p,
.wf-recipe-notes li {
    font-size: 14px;
}


/* 8. Mobile optimization (important) */
@media (max-width: 768px) {

    .wf-recipe-image-card {
        flex: 0 0 280px;
        height: 210px;
    }

    .wf-recipe-toolbar {
        gap: 10px;
    }

    .wf-recipe-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* =========================================================
   CHAT PRODUCT / BUSINESS IMAGE SIZE CAP
   Keeps images elastic, but prevents oversized full-screen display
   ========================================================= */

.fn__chatbot .chat .product-item img {
    max-height: 450px !important;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    display: block;
    margin: 5px auto;
}

/* =========================================================
   PRODUCT / BUSINESS RESPONSE CARD ALIGNMENT FIX
   Safe append-only override for RAG product/business output
   ========================================================= */

.fn__chatbot .chat .product-item,
.fn__chatbot .chat .business-item {
    width: min(760px, 100%) !important;
    max-width: 100% !important;
    margin: 0 auto 20px !important;
    padding: 18px 22px !important;
    box-sizing: border-box !important;
    border-color: rgba(255,255,255,0.35) !important;
    border-radius: 8px !important;
}

/* Keep product/business images centered and visually proportional */
.fn__chatbot .chat .product-item > img,
.fn__chatbot .chat .business-item > img {
    display: block !important;
    width: auto !important;
    max-width: min(520px, 100%) !important;
    max-height: 360px !important;
    height: auto !important;
    object-fit: contain !important;
    margin: 5px auto 12px !important;
}

/* Center title under image */
.fn__chatbot .chat .product-item > p,
.fn__chatbot .chat .business-item > p {
    max-width: 560px !important;
    margin: 0 auto 10px !important;
    text-align: center !important;
}

/* Align bullet list with image/title instead of browser default offset */
.fn__chatbot .chat .product-item ul,
.fn__chatbot .chat .business-item ul {
    max-width: 560px !important;
    margin: 8px auto 0 !important;
    padding-left: 36px !important;
    list-style-position: outside !important;
}

/* Tighten list rows without affecting recipe/cultivation cards */
.fn__chatbot .chat .product-item li,
.fn__chatbot .chat .business-item li {
    margin: 3px 0 !important;
    line-height: 1.45 !important;
}


/* =========================================================
   CONVERSATIONAL RESPONSE COPY / PRINT ACTIONS
   Safe: does not affect culinary/cultivation cards
   ========================================================= */

.fn__chatbot .chat .wf-conversation-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 10px;
}

.fn__chatbot .chat .wf-conversation-actions button {
    border: 1px solid var(--techwave-border-color);
    background: var(--techwave-some-a-bg-color);
    color: var(--techwave-heading-color);
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 12px;
    cursor: pointer;
}

.fn__chatbot .chat .wf-conversation-actions button:hover {
    border-color: var(--techwave-main-color);
}

/* =========================================================
   IMAGE UPLOAD BUTTON — MATCH SEND BUTTON
   ========================================================= */

/* Upload button only; does not alter .fn__chat_comment button */
.fn__chat_comment .wf-upload-btn {
    position: absolute;
    width: 60px;
    height: 44px;
    bottom: 8px;
    left: 8px;
    z-index: 3;

    padding: 0;
    margin: 0;
    border-radius: 5px;
    outline: none;
    cursor: pointer;
    border: none;

    background-color: var(--techwave-some-a-bg-color);
    color: var(--techwave-heading-color);

    display: flex;
    align-items: center;
    justify-content: center;

    transition: all .3s ease;
}

/* Match submit button hover behavior */
.fn__chat_comment .wf-upload-btn:hover {
    opacity: .8;
}

/* Icon wrapper */
.fn__chat_comment .wf-upload-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Match submit button icon sizing */
.fn__chat_comment .wf-upload-btn svg {
    width: 21px;
    height: 21px;
    color: var(--techwave-heading-color);
}

/* Override inline stroke="white" so icon works in light mode */
.fn__chat_comment .wf-upload-btn svg path,
.fn__chat_comment .wf-upload-btn svg polyline,
.fn__chat_comment .wf-upload-btn svg line {
    stroke: currentColor !important;
}

/* Prevent textarea text from sitting under upload button */
#fn__chat_textarea {
    padding-left: 82px;
}

/* =========================================================
   IMAGE PREVIEW
   ========================================================= */

.wf-upload-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    margin-bottom: 8px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.08);
}

.wf-upload-preview img {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 6px;
}

.wf-remove-preview {
    background: rgba(255,255,255,0.08);
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wf-remove-preview:hover {
    background: rgba(255,255,255,0.2);
}

/* =========================================================
   ICON HOVER COLOR (UPLOAD + SUBMIT)
   ========================================================= */

.fn__chat_comment button:hover .fn__svg,
.fn__chat_comment .wf-upload-btn:hover svg {
    color: var(--techwave-main-color);
}

/* Ensure SVG stroke follows color (important for your upload icon) */
.fn__chat_comment .wf-upload-btn:hover svg path,
.fn__chat_comment .wf-upload-btn:hover svg polyline,
.fn__chat_comment .wf-upload-btn:hover svg line {
    stroke: var(--techwave-main-color) !important;
}

