/* AboutFishing B2B — frontend design tokens, matched to the live storefront's own palette
   (primary blue #1e73be, 12px rounded controls, Krub typeface, near-black body text). */
.afb2b-scope,
.afb2b-scope *,
.afb2b-scope *::before,
.afb2b-scope *::after {
	box-sizing: border-box;
}
.afb2b-scope {
	--afb2b-primary: #1e73be;
	--afb2b-primary-dark: #14548c;
	--afb2b-accent: #ff0000;
	--afb2b-text: #141414;
	--afb2b-muted: #6b7280;
	--afb2b-border: #e3e6ea;
	--afb2b-bg: #ffffff;
	--afb2b-bg-soft: #f6f8fb;
	--afb2b-success-bg: #e9f7ef;
	--afb2b-success-text: #146c3f;
	--afb2b-error-bg: #fdecec;
	--afb2b-error-text: #b32d2e;
	--afb2b-radius: 12px;
	--afb2b-radius-sm: 8px;
	--afb2b-shadow: 0 2px 10px rgba(20, 20, 20, 0.06);
	--afb2b-shadow-hover: 0 8px 24px rgba(20, 20, 20, 0.10);
	font-family: "Krub", -apple-system, system-ui, "Segoe UI", Helvetica, Arial, sans-serif;
	color: var(--afb2b-text);
}

/* ---------- Landing page ---------- */
.afb2b-landing {
	max-width: 1040px;
	margin: 0 auto;
	padding: 8px 0 48px;
}
.afb2b-landing__intro {
	text-align: center;
	max-width: 640px;
	margin: 0 auto 40px;
}
.afb2b-landing__eyebrow {
	display: inline-block;
	background: var(--afb2b-bg-soft);
	color: var(--afb2b-primary);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 6px 14px;
	border-radius: 999px;
	margin-bottom: 14px;
}
.afb2b-landing__intro h1 {
	font-size: 32px;
	font-weight: 700;
	margin: 0 0 10px;
	color: var(--afb2b-text);
}
.afb2b-landing__intro p {
	color: var(--afb2b-muted);
	font-size: 16px;
	line-height: 1.6;
	margin: 0;
}

.afb2b-landing__columns {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	align-items: stretch;
}
@media (max-width: 800px) {
	.afb2b-landing__columns { grid-template-columns: 1fr; }
}

.afb2b-panel {
	background: var(--afb2b-bg);
	border: 1px solid var(--afb2b-border);
	border-radius: var(--afb2b-radius);
	box-shadow: var(--afb2b-shadow);
	padding: 32px 30px;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.afb2b-panel:hover { box-shadow: var(--afb2b-shadow-hover); }
.afb2b-panel--accent {
	background: linear-gradient(180deg, var(--afb2b-bg-soft) 0%, var(--afb2b-bg) 60%);
	border-color: var(--afb2b-primary);
}
.afb2b-panel__icon {
	width: 52px;
	height: 52px;
	border-radius: var(--afb2b-radius-sm);
	background: var(--afb2b-bg-soft);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 18px;
	color: var(--afb2b-primary);
	flex-shrink: 0;
}
.afb2b-panel__icon svg { width: 26px; height: 26px; }
.afb2b-panel h2 {
	font-size: 21px;
	font-weight: 700;
	margin: 0 0 8px;
	color: var(--afb2b-text);
}
.afb2b-panel__desc {
	color: var(--afb2b-muted);
	font-size: 14.5px;
	line-height: 1.6;
	margin: 0 0 22px;
}
.afb2b-panel__body { flex: 1; display: flex; flex-direction: column; }

/* Clickable chooser cards on the landing page (no embedded form, just a way in). */
.afb2b-panel--choice {
	text-decoration: none;
	color: inherit;
	cursor: pointer;
}
.afb2b-panel--choice:hover {
	box-shadow: var(--afb2b-shadow-hover);
	transform: translateY(-2px);
	border-color: var(--afb2b-primary);
}
.afb2b-panel--choice .afb2b-panel__desc { flex: 1; }
.afb2b-panel--choice .afb2b-btn { pointer-events: none; margin-top: auto; }

/* Single-form view (after choosing login or register), centered and narrower. */
.afb2b-panel--single {
	max-width: 520px;
	margin: 0 auto;
	position: relative;
}
.afb2b-back-link {
	display: inline-block;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--afb2b-muted);
	text-decoration: none;
	margin-bottom: 16px;
}
.afb2b-back-link:hover { color: var(--afb2b-primary); }
.afb2b-switch-link {
	text-align: center;
	font-size: 13.5px;
	color: var(--afb2b-muted);
	margin: 18px 0 0;
}
.afb2b-switch-link a { color: var(--afb2b-primary); font-weight: 600; text-decoration: none; }
.afb2b-switch-link a:hover { text-decoration: underline; }

/* ---------- Buttons ----------
   .afb2b-btn selectors are duplicated in two forms — ".afb2b-scope .afb2b-btn" (button nested
   inside a .afb2b-scope container, e.g. every panel/form) and ".afb2b-scope.afb2b-btn" (the
   header nav button, where both classes sit on the SAME <a> — see login-button.php — a plain
   descendant selector would never match that one). The theme-facing states carry !important on
   background/color/opacity: the live storefront theme's own generic button/link :hover rules
   (e.g. a broad opacity-fade-on-hover effect) otherwise win on specificity and wash these out to
   a faint, near-invisible color on hover. */
.afb2b-scope .afb2b-btn,
.afb2b-scope.afb2b-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 22px;
	background: var(--afb2b-primary);
	color: #fff !important;
	text-decoration: none;
	border-radius: var(--afb2b-radius);
	border: none;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	opacity: 1 !important;
	transition: background-color 0.15s ease, transform 0.05s ease;
}
.afb2b-scope .afb2b-btn:hover, .afb2b-scope.afb2b-btn:hover,
.afb2b-scope .afb2b-btn:focus, .afb2b-scope.afb2b-btn:focus {
	background: var(--afb2b-primary-dark) !important;
	color: #fff !important;
	opacity: 1 !important;
}
.afb2b-scope .afb2b-btn:active, .afb2b-scope.afb2b-btn:active { transform: translateY(1px); opacity: 1 !important; }
.afb2b-scope .afb2b-btn--outline,
.afb2b-scope.afb2b-btn--outline {
	background: transparent !important;
	color: var(--afb2b-primary) !important;
	border: 1.5px solid var(--afb2b-primary);
}
.afb2b-scope .afb2b-btn--outline:hover, .afb2b-scope.afb2b-btn--outline:hover,
.afb2b-scope .afb2b-btn--outline:focus, .afb2b-scope.afb2b-btn--outline:focus {
	background: var(--afb2b-primary) !important;
	color: #fff !important;
	opacity: 1 !important;
}
.afb2b-scope .afb2b-btn--danger, .afb2b-scope.afb2b-btn--danger { background: var(--afb2b-accent) !important; }
.afb2b-scope .afb2b-btn--danger:hover, .afb2b-scope.afb2b-btn--danger:hover,
.afb2b-scope .afb2b-btn--danger:focus, .afb2b-scope.afb2b-btn--danger:focus {
	background: #cc0000 !important;
	opacity: 1 !important;
}
.afb2b-scope .afb2b-btn--block, .afb2b-scope.afb2b-btn--block { width: 100%; }
.afb2b-scope .afb2b-header-button.afb2b-btn, .afb2b-scope.afb2b-header-button.afb2b-btn { padding: 9px 18px; font-size: 14px; }

/* ---------- Forms ---------- */
.afb2b-scope form { margin: 0; }
.afb2b-scope .afb2b-field { margin-bottom: 16px; }
.afb2b-scope .afb2b-field label,
.afb2b-scope p.form-row label {
	display: block;
	font-weight: 600;
	font-size: 13.5px;
	margin-bottom: 6px;
	color: var(--afb2b-text);
}
.afb2b-scope input[type="text"],
.afb2b-scope input[type="email"],
.afb2b-scope input[type="password"],
.afb2b-scope input[type="url"],
.afb2b-scope input[type="search"] {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--afb2b-border);
	border-radius: var(--afb2b-radius-sm);
	font-size: 14.5px;
	font-family: inherit;
	background: #fff;
	color: var(--afb2b-text);
	box-sizing: border-box;
}
.afb2b-scope input:focus {
	outline: none;
	border-color: var(--afb2b-primary);
	box-shadow: 0 0 0 3px rgba(30, 115, 190, 0.15);
}
.afb2b-field--checkbox label { display: flex; align-items: flex-start; gap: 8px; font-weight: 400; }
.afb2b-field--submit { margin-top: 22px; }
.afb2b-error { color: var(--afb2b-error-text); display: block; font-size: 12.5px; margin-top: 5px; }

/* ---------- Notices ---------- */
.afb2b-notice {
	padding: 14px 18px;
	border-radius: var(--afb2b-radius-sm);
	background: var(--afb2b-bg-soft);
	border: 1px solid var(--afb2b-border);
	margin-bottom: 20px;
	font-size: 14.5px;
}
.afb2b-notice--error { border-color: #f3c8c8; background: var(--afb2b-error-bg); color: var(--afb2b-error-text); }
.afb2b-notice--success { border-color: #b9e4c9; background: var(--afb2b-success-bg); color: var(--afb2b-success-text); }
.afb2b-notice--info { border-color: #bcd9f0; background: #eaf3fb; color: #1b4a6b; }
.afb2b-notice a { color: inherit; font-weight: 700; text-decoration: underline; }

/* wp_login_form()'s own markup (#loginform / p.login-*) — WordPress core classes, NOT
   WooCommerce ones, since we call the core helper directly — restyled to sit inside a panel. */
#loginform { width: 100%; box-sizing: border-box; }
#loginform p { margin: 0 0 16px; max-width: 100%; }
#loginform label { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 6px; }
#loginform input.input,
#loginform input#user_login,
#loginform input#user_pass {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid var(--afb2b-border);
	border-radius: var(--afb2b-radius-sm);
	font-family: inherit;
	font-size: 14.5px;
}
#loginform input.input:focus { outline: none; border-color: var(--afb2b-primary); box-shadow: 0 0 0 3px rgba(30, 115, 190, 0.15); }
#loginform p.login-remember { display: flex; align-items: center; }
#loginform p.login-remember label { display: flex; align-items: center; gap: 6px; font-weight: 400; margin: 0; }
#loginform p.login-submit { margin-top: 4px; }
#loginform p.login-submit input[type="submit"] {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 12px 22px;
	background: var(--afb2b-primary);
	color: #fff;
	border: none;
	border-radius: var(--afb2b-radius);
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}
#loginform p.login-submit input[type="submit"]:hover { background: var(--afb2b-primary-dark); }
.afb2b-panel .lost_password { margin-top: 12px; font-size: 13px; text-align: center; }
.afb2b-panel .lost_password a { color: var(--afb2b-muted); }

/* ---------- Account pages (B2B Στοιχεία / B2B XML Feed) ---------- */
.afb2b-account-page {
	display: flex;
	flex-direction: column;
	gap: 24px;
	max-width: 720px;
}
.afb2b-account-page .afb2b-panel { max-width: none; }
.afb2b-account-page h2 { margin: 0 0 6px; font-size: 19px; }
.afb2b-account-page .afb2b-panel__desc { margin-bottom: 20px; }
.afb2b-field-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 16px;
}
@media (max-width: 560px) {
	.afb2b-field-grid { grid-template-columns: 1fr; }
}

/* ---------- Category tree (My Account) ---------- */
.afb2b-tree-actions { margin-bottom: 12px; }
.afb2b-tree-actions .afb2b-btn { padding: 8px 16px; font-size: 13.5px; margin-right: 8px; }
.afb2b-category-tree { list-style: none; margin: 0; padding: 0; }
.afb2b-category-tree[hidden] { display: none; }
.afb2b-category-tree .afb2b-category-tree {
	margin: 2px 0 6px 13px;
	padding-left: 16px;
	border-left: 2px solid var(--afb2b-border);
}
.afb2b-category-tree > li { margin: 0; border-top: 1px solid var(--afb2b-border); }
.afb2b-category-tree > li:first-child { border-top: none; }
.afb2b-category-tree .afb2b-category-tree > li { border-top: none; }
.afb2b-cat-row {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 7px 4px;
}
.afb2b-category-tree label {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 1 1 auto;
	min-width: 0;
	font-weight: 500;
	line-height: 1.3;
	cursor: pointer;
}
.afb2b-category-tree input[type="checkbox"] {
	flex: 0 0 auto;
	width: 17px;
	height: 17px;
	margin: 0;
	accent-color: var(--afb2b-primary);
	cursor: pointer;
}
.afb2b-category-tree label > span:not(.afb2b-category-count) { flex: 1 1 auto; }
.afb2b-category-count {
	flex: 0 0 auto;
	color: var(--afb2b-muted);
	font-weight: 600;
	font-size: 12px;
	background: var(--afb2b-bg-soft);
	border-radius: 999px;
	padding: 2px 9px;
}
.afb2b-cat-toggle,
.afb2b-cat-toggle-spacer {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
}
.afb2b-cat-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	padding: 0;
	margin: 0;
	border-radius: 4px;
	color: var(--afb2b-muted);
	cursor: pointer;
}
.afb2b-cat-toggle:hover { background: var(--afb2b-bg-soft); color: var(--afb2b-text); }
.afb2b-cat-toggle-icon {
	display: block;
	width: 0;
	height: 0;
	border-top: 5px solid transparent;
	border-bottom: 5px solid transparent;
	border-left: 5px solid currentColor;
	transition: transform 0.15s ease;
}
.afb2b-cat-toggle[aria-expanded="true"] .afb2b-cat-toggle-icon { transform: rotate(90deg); }
.afb2b-price-label { font-weight: 600; }
.afb2b-no-price { color: var(--afb2b-error-text); font-weight: 600; }

/* ---------- Feed URL row (was overflowing its container) ---------- */
.afb2b-feed-url-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin: 0 0 20px;
}
.afb2b-feed-url {
	flex: 1 1 260px;
	min-width: 0;
	padding: 10px 12px;
	border: 1px solid var(--afb2b-border);
	border-radius: var(--afb2b-radius-sm);
	background: var(--afb2b-bg-soft);
	color: var(--afb2b-text);
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 12.5px;
}
.afb2b-feed-url-row .afb2b-btn { flex: 0 0 auto; padding: 10px 16px; font-size: 13.5px; white-space: nowrap; }

/* ---------- Feed stats ---------- */
.afb2b-feed-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 16px;
	margin: 0 0 20px;
	padding: 16px;
	background: var(--afb2b-bg-soft);
	border-radius: var(--afb2b-radius-sm);
}
.afb2b-feed-stats dt { font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--afb2b-muted); margin-bottom: 4px; }
.afb2b-feed-stats dd { margin: 0; font-size: 15px; font-weight: 600; }

/* ---------- Store-staff-only B2B price preview (shop/product price HTML — outside .afb2b-scope,
   since it's injected into WooCommerce/theme templates anywhere a price is shown) ---------- */
.afb2b-admin-price-preview {
	display: inline-block;
	margin-left: 6px;
	padding: 1px 8px;
	border: 1px dashed #1e73be;
	border-radius: 999px;
	color: #14548c;
	font-size: 0.7em;
	font-weight: 700;
	white-space: nowrap;
	vertical-align: middle;
}
.afb2b-regenerate-form { margin-top: 4px; }
