@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;600;700;800;900&display=swap');

:root {
	--b2b-primary: #0f172a;
	/* Dark Navy for Premium look */
	--b2b-primary-hover: #1e293b;
	--b2b-secondary: #64748b;
	--b2b-accent: #d63638;
	--b2b-bg: #f8fafc;
	--b2b-card-bg: #ffffff;
	--b2b-text: #1e293b;
	--b2b-text-muted: #64748b;
	--b2b-border: #e2e8f0;
	--b2b-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
	--b2b-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
	--b2b-radius: 12px;
	--b2b-font-main: 'Rubik', sans-serif;
}

body, button, input, select, textarea {
	font-family: var(--b2b-font-main) !important;
}

/* Dashicons override for buttons to ensure they show up */
.b2b-btn-icon .dashicons {
	font-family: dashicons !important;
	font-size: 20px;
	width: 20px;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Main Layout */
.b2b-dashboard-main-container {
	display: flex;
	min-height: 80vh;
	background: #f8fafc;
	border-radius: var(--b2b-radius);
	overflow: hidden;
	box-shadow: var(--b2b-shadow-lg);
	direction: rtl;
	font-family: var(--b2b-font-main);
	/* Ensure Hebrew RTL support */
}

/* Sidebar */
.b2b-dashboard-sidebar {
	width: 280px;
	background: var(--b2b-primary);
	color: #fff;
	display: flex;
	flex-direction: column;
	padding: 2rem 0;
	flex-shrink: 0;
}

.b2b-sidebar-header {
	padding: 0 2rem 2rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	display: flex;
	align-items: center;
	gap: 1rem;
}

.b2b-sidebar-header h3 {
	margin: 0;
	color: #fff;
	font-size: 1.25rem;
}

.b2b-sidebar-menu {
	list-style: none;
	padding: 1.5rem 0;
	margin: 0;
	flex-grow: 1;
}

.b2b-sidebar-menu li {
	margin: 0.25rem 1rem;
}

.b2b-sidebar-menu a {
	display: flex;
	align-items: center;
	padding: 0.75rem 1rem;
	color: rgba(255, 255, 255, 0.7) !important;
	text-decoration: none !important;
	border-radius: 8px;
	transition: all 0.2s;
	gap: 0.75rem;
	position: relative;
}

.b2b-menu-badge {
	background: #ef4444;
	color: #fff;
	font-size: 0.7rem;
	padding: 2px 6px;
	border-radius: 10px;
	font-weight: 700;
	margin-right: auto;
	box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

/* Toggle Switch Styles */
.b2b-price-toggle-wrap {
	display: flex;
	align-items: center;
	gap: 10px;
	background: #f1f5f9;
	padding: 5px 12px;
	border-radius: 20px;
}

.b2b-toggle-label {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--b2b-text);
}

.b2b-switch {
	position: relative;
	display: inline-block;
	width: 40px;
	height: 22px;
}

.b2b-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.b2b-slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #ccc;
	transition: .4s;
}

.b2b-slider:before {
	position: absolute;
	content: "";
	height: 16px;
	width: 16px;
	left: 3px;
	bottom: 3px;
	background-color: white;
	transition: .4s;
}

input:checked+.b2b-slider {
	background-color: var(--b2b-primary);
}

input:focus+.b2b-slider {
	box-shadow: 0 0 1px var(--b2b-primary);
}

input:checked+.b2b-slider:before {
	transform: translateX(18px);
}

.b2b-slider.round {
	border-radius: 34px;
}

.b2b-slider.round:before {
	border-radius: 50%;
}

.b2b-sidebar-menu li.active a,
.b2b-sidebar-menu a:hover {
	background: rgba(255, 255, 255, 0.1);
	color: #fff !important;
}

.b2b-sidebar-footer {
	padding: 1rem 2rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.b2b-logout-link {
	color: #f87171 !important;
	text-decoration: none !important;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-weight: 600;
}

/* Content Area */
.b2b-dashboard-content-area {
	flex-grow: 1;
	padding: 2.5rem 2.5rem 0 2.5rem;
	max-height: 80vh;
	overflow-y: auto;
}

.b2b-view-header {
	margin-bottom: 2.5rem;
}

.b2b-view-header h2 {
	margin: 0 0 0.5rem;
	font-size: 1.875rem;
}

.b2b-view-header p {
	color: var(--b2b-text-muted);
	margin: 0;
}

/* Stats Grid */
.b2b-stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1.5rem;
	margin-bottom: 2.5rem;
}

.b2b-stat-card {
	background: #fff;
	padding: 1.5rem;
	border-radius: var(--b2b-radius);
	border: 1px solid var(--b2b-border);
	display: flex;
	align-items: center;
	gap: 1.25rem;
	box-shadow: var(--b2b-shadow);
}

.b2b-stat-icon {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.b2b-stat-icon span {
	font-size: 24px;
}

.b2b-stat-icon.red {
	background: #fee2e2;
	color: #dc2626;
}

.b2b-stat-icon.blue {
	background: #dbeafe;
	color: #2563eb;
}

.b2b-stat-label {
	display: block;
	font-size: 0.875rem;
	color: var(--b2b-text-muted);
	margin-bottom: 0.25rem;
}

.b2b-stat-value {
	display: block;
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--b2b-text);
}

/* Common Boxes */
.b2b-content-box {
	background: #fff;
	padding: 2rem;
	border-radius: var(--b2b-radius);
	border: 1px solid var(--b2b-border);
	box-shadow: var(--b2b-shadow);
}

.b2b-action-box {
	background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
	color: #fff;
	padding: 2.5rem;
	border-radius: var(--b2b-radius);
	text-align: center;
}

.b2b-action-box h3 {
	color: #fff;
	margin-top: 0;
}

/* Tables */
.b2b-dashboard-table {
	width: 100%;
	border-collapse: collapse;
}

.b2b-dashboard-table th {
	text-align: right;
	padding: 1rem;
	border-bottom: 2px solid var(--b2b-border);
	color: var(--b2b-text-muted);
	font-weight: 600;
}

.b2b-dashboard-table td {
	padding: 1rem;
	border-bottom: 1px solid var(--b2b-border);
}

.b2b-status-tag {
	padding: 0.25rem 0.75rem;
	border-radius: 99px;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
}

.b2b-status-tag.processing {
	background: #fef9c3;
	color: #854d0e;
}

.b2b-status-tag.completed {
	background: #dcfce7;
	color: #166534;
}

.b2b-status-tag.cancelled {
	background: #fee2e2;
	color: #991b1b;
}

/* Profile Form */
.b2b-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
}

.b2b-profile-form input[readonly] {
	background: #f1f5f9;
	cursor: not-allowed;
}

/* Customer Grid (Supplier View) */
.b2b-customer-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.5rem;
}

.b2b-card-actions {
	display: flex;
	gap: 0.5rem;
	margin-top: 1rem;
}

.b2b-outline-button {
	background: transparent;
	border: 1px solid var(--b2b-primary);
	color: var(--b2b-primary) !important;
}

.b2b-outline-button:hover {
	background: var(--b2b-primary);
	color: #fff !important;
}

/* Responsiveness */
@media (max-width: 900px) {
	.b2b-dashboard-main-container {
		flex-direction: column;
	}

	.b2b-dashboard-sidebar {
		width: 100%;
		padding: 1rem 0;
	}

	.b2b-sidebar-menu {
		display: flex;
		overflow-x: auto;
		padding: 0.5rem 1rem;
	}

	.b2b-sidebar-menu li {
		flex-shrink: 0;
	}

	.b2b-sidebar-header,
	.b2b-sidebar-footer {
		display: none;
	}
}

/* Order Interface Header Fix */
.b2b-order-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1.5rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--b2b-border);
}

/* Price-less mode */
.b2b-hide-prices .b2b-product-price,
.b2b-hide-prices #b2b-cart-total-price {
	display: none !important;
}

/* Order Filters */
.b2b-order-filters {
	margin-bottom: 1.5rem;
	background: #fff;
	padding: 1.25rem;
	border-radius: var(--b2b-radius);
	border: 1px solid var(--b2b-border);
	box-shadow: var(--b2b-shadow);
}

.b2b-filter-group {
	display: flex;
	gap: 1rem;
	align-items: center;
}

.b2b-filter-group input,
.b2b-filter-group select {
	padding: 0.6rem 1rem;
	border: 1px solid var(--b2b-border);
	border-radius: 8px;
	font-size: 0.9rem;
	background: #fff;
}

/* Modern Table */
.b2b-table-responsive {
	overflow-x: auto;
}

.b2b-modern-table {
	background: #fff;
	border-radius: var(--b2b-radius);
	overflow: hidden;
	border: 1px solid var(--b2b-border);
	box-shadow: var(--b2b-shadow);
}

.b2b-modern-table thead th {
	background: #f8fafc;
	color: var(--b2b-text);
	font-weight: 700;
	padding: 1rem;
	border-bottom: 2px solid var(--b2b-border);
}

.b2b-modern-table tbody tr {
	transition: background 0.2s;
}

.b2b-modern-table tbody tr:hover {
	background: #f8fafc;
}

.b2b-order-num {
	font-weight: 700;
	color: var(--b2b-primary);
}

/* Action Buttons */
.b2b-actions-cell {
	text-align: left !important;
}

.b2b-action-buttons {
	display: flex;
	gap: 0.5rem;
	justify-content: flex-end;
}

.b2b-btn-icon {
	background: #f1f5f9;
	border: none;
	color: var(--b2b-primary);
	width: 36px;
	height: 36px;
	border-radius: 8px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s;
}

.b2b-btn-icon:hover {
	background: var(--b2b-primary);
	color: #fff;
	transform: translateY(-2px);
}

.b2b-btn-small-approve {
	background: #dcfce7;
	color: #166534;
	width: 36px;
	height: 36px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none !important;
	transition: all 0.2s;
}

.b2b-btn-small-approve:hover {
	background: #22c55e;
	color: #fff;
}

/* Modal */
.b2b-modal {
	display: none;
	position: fixed;
	z-index: 10000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(15, 23, 42, 0.6);
	backdrop-filter: blur(8px);
}

.b2b-modal-content {
	background-color: #fff;
	margin: 5vh auto;
	padding: 2.5rem;
	border-radius: 20px;
	width: 90%;
	max-width: 850px;
	position: relative;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	max-height: 90vh;
	overflow-y: auto;
	direction: rtl;
}

.b2b-modal-close {
	position: absolute;
	top: 1.5rem;
	left: 1.5rem;
	font-size: 2rem;
	color: var(--b2b-text-muted);
	cursor: pointer;
	line-height: 1;
}

.b2b-modal-close:hover {
	color: var(--b2b-accent);
}

/* Order Details Layout */
.b2b-modal-header {
	margin-bottom: 2rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--b2b-border);
}

.b2b-modal-header h3 {
	margin: 0 0 0.5rem;
	font-size: 1.5rem;
}

.b2b-order-items-list {
	width: 100%;
	border-collapse: collapse;
}

.b2b-order-items-list tr {
	border-bottom: 1px solid var(--b2b-border);
}

.b2b-order-items-list td {
	padding: 1rem 0;
}

.b2b-item-thumb {
	width: 60px;
	height: 60px;
	object-fit: cover;
	border-radius: 10px;
	background: #f1f5f9;
}

.b2b-item-details {
	padding-right: 1.5rem !important;
}

.b2b-item-name {
	font-weight: 600;
	display: block;
	margin-bottom: 0.25rem;
}

.b2b-item-sku {
	font-size: 0.8rem;
	color: var(--b2b-text-muted);
}

.b2b-agent-info {
	background: #eff6ff;
	color: #1e40af;
	display: inline-flex;
	align-items: center;
	padding: 0.75rem 1.25rem;
	border-radius: 12px;
	margin-bottom: 1.5rem;
	font-size: 0.95rem;
	gap: 0.6rem;
	border: 1px solid #dbeafe;
}

.b2b-agent-info strong {
	color: #1e3a8a;
}

/* Sidebar Badge */
.b2b-menu-badge {
	background: #ef4444;
	color: #fff !important;
	padding: 2px 8px;
	border-radius: 12px;
	font-size: 0.7rem;
	font-weight: 700;
	margin-right: auto;
	line-height: normal;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.b2b-sidebar-menu li a {
	display: flex;
	align-items: center;
	padding: 12px 15px;
}

/* Product Grid & Cards */
.b2b-product-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 1.5rem;
	padding: 1rem 0;
}

.b2b-product-card {
	background: #fff;
	border-radius: 16px;
	border: 1px solid var(--b2b-border);
	overflow: hidden;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	display: flex;
	flex-direction: column;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.b2b-product-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
	border-color: var(--b2b-primary);
}

.b2b-product-image {
	width: 100%;
	height: 180px;
	overflow: hidden;
	background: #f8fafc;
	position: relative;
}

.b2b-product-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 1rem;
	transition: transform 0.5s ease;
}

.b2b-product-card:hover .b2b-product-image img {
	transform: scale(1.1);
}

.b2b-product-details {
	padding: 1.25rem;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

.b2b-product-title {
	margin: 0 0 0.5rem;
	font-size: 1rem;
	font-weight: 700;
	color: var(--b2b-text);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	height: 2.8rem;
}

.b2b-product-sku {
	font-size: 0.75rem;
	color: var(--b2b-text-muted);
	margin-bottom: 0.75rem;
}

.b2b-product-price {
	font-size: 1.25rem;
	font-weight: 800;
	color: var(--b2b-primary);
	margin-top: auto;
}

.b2b-product-actions {
	padding: 1rem;
	background: #f8fafc;
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-top: 1px solid var(--b2b-border);
}

.b2b-qty-input {
	width: 50px !important;
	text-align: center;
	border: 1px solid var(--b2b-border) !important;
	background: #fff !important;
	border-radius: 6px;
	padding: 4px 0 !important;
	font-weight: 700;
	height: 32px !important;
}

/* Hide spin arrows */
.b2b-qty-input::-webkit-inner-spin-button,
.b2b-qty-input::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.b2b-qty-btn {
	width: 32px;
	height: 32px;
	border-radius: 6px;
	border: 1px solid var(--b2b-border);
	background: #fff;
	color: var(--b2b-text);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	transition: all 0.2s;
}

.b2b-qty-btn:hover {
	background: var(--b2b-primary);
	color: #fff;
	border-color: var(--b2b-primary);
}

/* Cart Summary Bar */
.b2b-cart-summary-bar {
	position: sticky;
	bottom: -2.5rem; /* Offset the 2.5rem padding of content area if needed, but sticky usually works better with bottom: 0 */
	bottom: 0;
	background: rgba(255, 255, 255, 0.98);
	backdrop-filter: blur(12px);
	padding: 1.25rem 2rem;
	border-top: 1px solid var(--b2b-border);
	display: flex;
	justify-content: space-between;
	align-items: center;
	box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.08);
	z-index: 9999;
	margin: 2rem -2.5rem -2.5rem -2.5rem; /* Negate the parent padding to make it full width */
	width: calc(100% + 5rem);
}

.b2b-cart-info {
	display: flex;
	gap: 2rem;
	font-size: 1.1rem;
}

.b2b-cart-actions {
	display: flex;
	gap: 1rem;
}

.b2b-secondary-button {
	background: #f1f5f9;
	color: #475569;
	border: 1px solid var(--b2b-border);
}

.b2b-secondary-button:hover {
	background: #e2e8f0;
	color: #1e293b;
}

#b2b-submit-order {
	background-color: var(--b2b-primary);
	color: #fff;
	font-weight: 600;
}

/* Base Button Styles */
.b2b-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 1.5rem;
	border-radius: 8px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s;
	border: 1px solid transparent;
	font-size: 0.95rem;
	gap: 0.5rem;
	text-decoration: none !important;
}

.b2b-primary-button {
	background: var(--b2b-primary);
	color: #fff !important;
}

.b2b-primary-button:hover {
	background: var(--b2b-primary-hover);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

.b2b-secondary-button {
	background: #f1f5f9;
	color: #475569 !important;
	border: 1px solid var(--b2b-border);
}

.b2b-secondary-button:hover {
	background: #e2e8f0;
	color: #1e293b !important;
}

.b2b-outline-button {
	background: transparent;
	border: 1px solid var(--b2b-border);
	color: var(--b2b-text);
}

.b2b-outline-button:hover {
	background: #f8fafc;
	border-color: var(--b2b-primary);
}

.b2b-cart-info span {
	margin-left: 1.5rem;
	font-size: 0.95rem;
	color: var(--b2b-text-muted);
}

.b2b-cart-info strong {
	color: var(--b2b-primary);
	font-size: 1.1rem;
}

.b2b-button.Large {
	padding: 1rem 2rem;
	font-size: 1.1rem;
	border-radius: 12px;
}

/* Admin Table Meta */
.wp-list-table input[type="text"] {
	border: 1px solid #ddd;
	padding: 4px 8px;
	border-radius: 4px;
}

.wp-list-table select {
	border: 1px solid #ddd;
	padding: 4px 8px;
	border-radius: 4px;
	max-width: 150px;
}
/* Product List Filters Refined */
.b2b-filters {
	display: flex;
	gap: 1.5rem;
	margin-bottom: 2rem;
	background: #fff;
	padding: 1.25rem;
	border-radius: var(--b2b-radius);
	border: 1px solid var(--b2b-border);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
	align-items: center;
	direction: rtl;
}

.b2b-search-wrapper {
	position: relative;
	flex-grow: 1;
}

.b2b-search-wrapper .dashicons {
	position: absolute;
	right: 1.25rem;
	top: 50%;
	transform: translateY(-50%);
	color: var(--b2b-text-muted);
	pointer-events: none;
	font-size: 20px;
}

#b2b-search {
	width: 100% !important;
	padding: 0.85rem 3.5rem 0.85rem 1rem !important;
	border-radius: 12px !important;
	border: 1px solid var(--b2b-border) !important;
	background: #f8fafc !important;
	font-size: 1rem !important;
	transition: all 0.3s ease;
	height: auto !important;
}

#b2b-search:focus {
	background: #fff !important;
	border-color: var(--b2b-primary) !important;
	box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.1) !important;
}

.b2b-filter-wrapper {
	min-width: 240px;
}

#b2b-category-filter {
	width: 100% !important;
	padding: 0.85rem 1rem !important;
	border-radius: 12px !important;
	border: 1px solid var(--b2b-border) !important;
	background: #f8fafc !important;
	font-size: 1rem !important;
	cursor: pointer;
	transition: all 0.3s ease;
	height: auto !important;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: left 1rem center !important;
	background-size: 1.25rem !important;
}

#b2b-category-filter:focus {
	background-color: #fff !important;
	border-color: var(--b2b-primary) !important;
}

/* Profile Form Refined */
.b2b-profile-form .b2b-form-section {
	margin-bottom: 2.5rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--b2b-border);
}

.b2b-profile-form .b2b-form-section:last-child {
	border-bottom: none;
}

.b2b-profile-form h3 {
	margin: 0 0 1.5rem;
	font-size: 1.25rem;
	color: var(--b2b-primary);
}

.b2b-form-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 1.5rem;
}

.b2b-form-group.wide {
	grid-column: 1 / -1;
}

.b2b-form-group label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--b2b-text);
}

.b2b-form-group input {
	width: 100% !important;
	padding: 0.75rem 1rem !important;
	border-radius: 8px !important;
	border: 1px solid var(--b2b-border) !important;
	background: #f8fafc;
	font-size: 1rem;
	transition: all 0.2s;
}

.b2b-form-group input:disabled {
	background: #f1f5f9;
	cursor: not-allowed;
	color: var(--b2b-text-muted);
}

.b2b-form-group input:focus {
	background: #fff;
	border-color: var(--b2b-primary);
	box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.1);
}

.b2b-form-actions {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	margin-top: 2rem;
}

#b2b-profile-msg {
	font-weight: 600;
	font-size: 0.95rem;
}

#b2b-profile-msg.success {
	color: #10b981;
}

#b2b-profile-msg.error {
	color: #ef4444;
}

/* Premium Login Styles */
.b2b-login-container {
    max-width: 450px;
    margin: 4rem auto;
    padding: 2.5rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    direction: rtl;
    border: 1px solid var(--b2b-border);
}

.b2b-login-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--b2b-primary);
    text-align: center;
    margin-bottom: 2rem;
}

.b2b-login-form .b2b-form-group {
    margin-bottom: 1.5rem;
}

.b2b-login-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--b2b-text);
}

.b2b-login-form input[type="email"],
.b2b-login-form input[type="password"] {
    width: 100% !important;
    padding: 0.85rem 1rem !important;
    border-radius: 10px !important;
    border: 1px solid var(--b2b-border) !important;
    background: #f8fafc !important;
    font-size: 1rem !important;
    transition: all 0.2s !important;
}

.b2b-login-form input:focus {
    background: #fff !important;
    border-color: var(--b2b-primary) !important;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.1) !important;
    outline: none !important;
}

.b2b-form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    font-size: 0.85rem;
}

.b2b-remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--b2b-text-muted);
}

.b2b-forgot-password {
    color: var(--b2b-accent) !important;
    text-decoration: none !important;
    font-weight: 600;
}

.b2b-login-submit {
    width: 100% !important;
    padding: 1rem !important;
    background: var(--b2b-primary) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
}

.b2b-login-submit:hover {
    background: var(--b2b-primary-hover) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.b2b-error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c !important;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Lost Password Specific Styles */
.b2b-success-message {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d !important;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.b2b-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--b2b-secondary) !important;
    text-decoration: none !important;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.b2b-back-link:hover {
    color: var(--b2b-primary) !important;
}

.b2b-back-link .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}
