/*
 * Spotmart WooCommerce styling.
 * Keeps WooCommerce markup intact while aligning visuals with the design system.
 */

/* Ensure login page fits within 100vh excluding header */
/* Only apply to login page, not seller registration */
body.woocommerce-account:has(.spotmart-woocommerce-login):not(:has(.spotmart-seller-registration)) {
	height: 100vh;
	overflow: hidden;
}

/* Only apply height constraints to login page, not seller registration */
body.woocommerce-account:has(.spotmart-woocommerce-login):not(:has(.spotmart-seller-registration)) .site-content,
body.woocommerce-account:has(.spotmart-woocommerce-login):not(:has(.spotmart-seller-registration)) #content {
	min-height: calc(100vh - var(--header-height, 69px));
	max-height: calc(100vh - var(--header-height, 69px));
	overflow: hidden;
}

.woocommerce-cart .woocommerce table.shop_table {
	border-radius: var(--spotmart-radius-lg, 26px);
	border: 1px solid rgba(12, 165, 60, 0.12);
	overflow: hidden;
}

.woocommerce table.shop_table th {
	background: rgba(12, 165, 60, 0.08);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-size: 0.78rem;
}

.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error {
	border-radius: var(--spotmart-radius-md, 18px);
	border: 1px solid rgba(12, 165, 60, 0.18);
	background: rgba(12, 165, 60, 0.1);
	color: var(--spotmart-color-heading, #142914);
}


.woocommerce-account .woocommerce-MyAccount-navigation {
	border-radius: var(--spotmart-radius-md, 18px);
	background: #ffffff;
	box-shadow: var(--spotmart-shadow-sm, 0 10px 24px rgba(12, 102, 42, 0.08));
	border: 1px solid rgba(12, 165, 60, 0.12);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
	border-radius: 10px;
	padding: 10px 14px;
	font-weight: 600;
	color: #6c7077; /* Grey color for default state */
	transition: color 0.2s ease, background 0.2s ease;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
	color: var(--spotmart-color-primary, #009900); /* Green on hover */
	background: rgba(12, 165, 60, 0.08);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
	background: rgba(12, 165, 60, 0.12);
	color: var(--spotmart-color-primary, #009900) !important; /* Green color for active state */
}

.woocommerce-account .woocommerce-MyAccount-content {
	border-radius: var(--spotmart-radius-lg, 26px);
	background: #ffffff;
	padding: 28px 32px;
	border: 1px solid rgba(12, 165, 60, 0.12);
	box-shadow: var(--spotmart-shadow-sm, 0 10px 24px rgba(12, 102, 42, 0.08));
}

/* WooCommerce Login Form Customization */
.spotmart-woocommerce-login {
	--login-hero-bg: #f8f5e6;
	--login-primary: #0ca53c;
	--login-primary-dark: #06772a;
	--login-heading: #142914;
	--login-text: #6c7077;
	--login-padding: clamp(2rem, 4vw, 3.5rem);

	display: grid;
	grid-template-columns: 50% 50%;
	height: calc(100vh - var(--header-height, 69px));
	max-height: calc(100vh - var(--header-height, 69px));
	min-height: calc(100vh - var(--header-height, 69px));
	overflow: hidden;
	background-color: #ffffff;
	position: relative;
	margin: 0;
	padding: 0;
}

/* Hero Section (Left Panel) */
.spotmart-woocommerce-login__hero {
	position: relative;
	color: var(--login-heading);
	background: var(--login-hero-bg);
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 90vh;
}

.spotmart-woocommerce-login__hero-inner {
	position: relative;
	z-index: 1;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Hero Image */
.spotmart-woocommerce-login__hero-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* Login Panel (Right Panel) */
.spotmart-woocommerce-login__panel {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--login-padding);
	background: #ffffff;
}

.spotmart-woocommerce-login__panel-inner {
	width: 100%;
	max-width: 500px;
	display: flex;
	flex-direction: column;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}
form.woocommerce-form.woocommerce-form-login.login{
	margin: 0px;
}

.spotmart-woocommerce-login__title {
	margin: 0;
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--login-heading);
	text-align: center;
}

.spotmart-woocommerce-login__description {
	margin: 0;
	font-size: 0.95rem;
	color: var(--login-text);
	line-height: 1.5;
	text-align: center;
}

/* Login Form */
.spotmart-woocommerce-login .woocommerce-form-login,
.spotmart-woocommerce-login .woocommerce-ResetPassword {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.spotmart-woocommerce-login .woocommerce-form-row {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.spotmart-woocommerce-login .woocommerce-form-row label {
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--login-heading);
	margin-bottom: 0.25rem;
}

.spotmart-woocommerce-login .woocommerce-form-row .required {
	color: #dc2626;
}

.spotmart-woocommerce-login .woocommerce-form-row .input-text {
	width: 100%;
	padding: 0.9rem 1rem;
	font-size: 0.95rem;
	border-radius: 0.65rem;
	border: 1px solid #d4d7dc;
	background: #f5f5f5;
	color: var(--login-heading);
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.spotmart-woocommerce-login .woocommerce-form-row .input-text::placeholder {
	color: #9ca3af;
}

.spotmart-woocommerce-login .woocommerce-form-row .input-text:focus {
	outline: none;
	border-color: var(--login-primary);
	background: #ffffff;
	box-shadow: 0 0 0 3px rgba(12, 165, 60, 0.1);
}

.spotmart-woocommerce-login .woocommerce-form-login__submit,
.spotmart-woocommerce-login .woocommerce-ResetPassword button[type="submit"] {
	width: 100%;
	padding: 0.95rem 1.5rem;
	font-size: 1rem;
	font-weight: 600;
	border-radius: 0.75rem;
	background: var(--login-primary);
	color: #ffffff;
	border: none;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.16s ease, box-shadow 0.16s ease;
	margin-top: 0.5rem;
}

.spotmart-woocommerce-login .woocommerce-form-login__submit:hover,
.spotmart-woocommerce-login .woocommerce-form-login__submit:focus,
.spotmart-woocommerce-login .woocommerce-ResetPassword button[type="submit"]:hover,
.spotmart-woocommerce-login .woocommerce-ResetPassword button[type="submit"]:focus {
	background: var(--login-primary-dark);
	transform: translateY(-1px);
	box-shadow: 0 12px 20px rgba(12, 165, 60, 0.35);
}

.spotmart-woocommerce-login .woocommerce-LostPassword {
	margin: 0;
	text-align: right;
}

.spotmart-woocommerce-login .woocommerce-LostPassword a {
	font-size: 0.9rem;
	color: #1b54d3;
	text-decoration: none;
}

.spotmart-woocommerce-login .woocommerce-LostPassword a:hover,
.spotmart-woocommerce-login .woocommerce-LostPassword a:focus {
	text-decoration: underline;
}

/* Divider */
.spotmart-woocommerce-login__divider {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	color: var(--login-text);
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
}

.spotmart-woocommerce-login__divider::before,
.spotmart-woocommerce-login__divider::after {
	content: "";
	flex: 1 1 auto;
	height: 1px;
	background: #e2e5ea;
}

.spotmart-woocommerce-login__divider span {
	display: inline-flex;
	padding: 0.1rem 0.25rem;
}

/* Register Link */
.spotmart-woocommerce-login__register {
	margin: 0;
	font-size: 0.95rem;
	color: var(--login-text);
	text-align: center;
}

.spotmart-woocommerce-login__register a {
	margin-left: 0.4rem;
	color: var(--login-primary, #0ca53c);
	font-weight: 600;
	text-decoration: none;
}

.spotmart-woocommerce-login__register a:hover,
.spotmart-woocommerce-login__register a:focus {
	text-decoration: underline;
}

.spotmart-woocommerce-login__register-link {
	cursor: pointer;
}

/* Registration Modal */
.spotmart-registration-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.spotmart-registration-modal__overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(4px);
}

.spotmart-registration-modal__content {
	position: relative;
	z-index: 10000;
	background: #ffffff;
	border-radius: 1rem;
	border: 2px solid var(--login-primary-dark, #06772a);
	padding: 1.75rem;
	max-width: 360px;
	width: 85%;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	animation: spotmartModalSlideIn 0.3s ease-out;
}

@keyframes spotmartModalSlideIn {
	from {
		opacity: 0;
		transform: translateY(-20px) scale(0.95);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.spotmart-registration-modal__close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	background: none;
	border: none;
	font-size: 1.5rem;
	color: var(--login-heading, #142914);
	cursor: pointer;
	line-height: 1;
	padding: 0;
	width: 1.5rem;
	height: 1.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.2s ease;
	font-weight: 300;
}

.spotmart-registration-modal__close:hover,
.spotmart-registration-modal__close:focus {
	color: var(--login-primary-dark);
}

.spotmart-registration-modal__title {
	margin: 0 0 1.5rem;
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--login-heading, #142914);
	text-align: center;
	line-height: 1.4;
	padding-right: 2rem;
}

.spotmart-registration-modal__buttons {
	display: flex;
	flex-direction: column;
	gap: 0.875rem;
	margin-top: 0.5rem;
}

.spotmart-registration-modal__button {
	display: block;
	width: 100%;
	padding: 0.75rem 1.25rem;
	font-size: 1rem;
	font-weight: 600;
	border-radius: 0.625rem;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.2s ease;
	border: 2px solid var(--login-primary-dark, #06772a);
	box-sizing: border-box;
}

.spotmart-registration-modal__button--buyer {
	background: var(--login-primary, #0ca53c);
	color: #ffffff;
	border-color: var(--login-primary, #0ca53c);
}

.spotmart-registration-modal__button--buyer:hover,
.spotmart-registration-modal__button--buyer:focus {
	background: var(--login-primary-dark, #06772a);
	border-color: var(--login-primary-dark, #06772a);
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(12, 165, 60, 0.3);
	color: #ffffff;
	text-decoration: none;
}

.spotmart-registration-modal__button--seller {
	background: #ffffff;
	color: var(--login-primary-dark, #06772a);
	border-color: var(--login-primary-dark, #06772a);
}

.spotmart-registration-modal__button--seller:hover,
.spotmart-registration-modal__button--seller:focus {
	background: var(--login-primary, #0ca53c);
	border-color: var(--login-primary, #0ca53c);
	color: #ffffff;
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(12, 165, 60, 0.2);
	text-decoration: none;
}

@media (max-width: 640px) {
	.spotmart-registration-modal__content {
		padding: 1.5rem 1.25rem;
		max-width: 90%;
		border-radius: 0.875rem;
	}

	.spotmart-registration-modal__title {
		font-size: 1.1rem;
		margin-bottom: 1.25rem;
		padding-right: 1.75rem;
	}

	.spotmart-registration-modal__close {
		top: 0.5rem;
		right: 0.5rem;
		font-size: 1.25rem;
		width: 1.25rem;
		height: 1.25rem;
	}

	.spotmart-registration-modal__buttons {
		gap: 0.75rem;
	}

	.spotmart-registration-modal__button {
		padding: 0.65rem 1rem;
		font-size: 0.95rem;
	}
}

/* OTP Section Styles */
.spotmart-otp-section {
	margin: 1rem 0;
}

.spotmart-otp-field-group {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-bottom: 0.5rem;
}

.spotmart-send-otp-btn {
	padding: 0.75rem 1.25rem;
	font-size: 0.95rem;
	font-weight: 600;
	border-radius: 0.625rem;
	background: var(--login-primary, #0ca53c);
	color: #ffffff;
	border: none;
	cursor: pointer;
	transition: all 0.2s ease;
}

.spotmart-send-otp-btn:hover,
.spotmart-send-otp-btn:focus {
	background: var(--login-primary-dark, #06772a);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(12, 165, 60, 0.3);
}

.spotmart-send-otp-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

.spotmart-otp-input-group {
	display: flex;
	gap: 0.75rem;
	align-items: center;
}

.spotmart-otp-input {
	flex: 1;
	padding: 0.75rem 1rem;
	font-size: 1rem;
	border-radius: 0.625rem;
	border: 2px solid #d4d7dc;
	background: #f5f5f5;
	text-align: center;
	letter-spacing: 0.5rem;
	font-weight: 600;
}

.spotmart-otp-input:focus {
	outline: none;
	border-color: var(--login-primary, #0ca53c);
	background: #ffffff;
	box-shadow: 0 0 0 3px rgba(12, 165, 60, 0.1);
}

.spotmart-verify-otp-btn {
	padding: 0.75rem 1.25rem;
	font-size: 0.95rem;
	font-weight: 600;
	border-radius: 0.625rem;
	background: #ffffff;
	color: var(--login-primary, #0ca53c);
	border: 2px solid var(--login-primary, #0ca53c);
	cursor: pointer;
	transition: all 0.2s ease;
	white-space: nowrap;
}

.spotmart-verify-otp-btn:hover,
.spotmart-verify-otp-btn:focus {
	background: var(--login-primary, #0ca53c);
	color: #ffffff;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(12, 165, 60, 0.2);
}

.spotmart-verify-otp-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

.spotmart-otp-status {
	font-size: 0.875rem;
	margin-top: 0.5rem;
	min-height: 1.25rem;
}

.spotmart-otp-status--success {
	color: #06772a;
	font-weight: 600;
}

.spotmart-otp-status--error {
	color: #dc2626;
	font-weight: 600;
}

/* Login Link Button */
.spotmart-woocommerce-login__login-link {
	margin: 0;
	margin-top: 1rem;
	text-align: center;
}

.spotmart-woocommerce-login__login-button {
	display: inline-block;
	width: 50%;
	padding: 0.5rem 0.5rem;
	font-size: 1rem;
	font-weight: 600;
	border-radius: 0.75rem;
	background: var(--login-primary);
	color: #ffffff;
	border: none;
	text-decoration: none;
	text-align: center;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.spotmart-woocommerce-login__login-button:hover,
.spotmart-woocommerce-login__login-button:focus {
	background: var(--login-primary-dark);
	transform: translateY(-1px);
	box-shadow: 0 12px 20px rgba(12, 165, 60, 0.35);
	color: #ffffff;
	text-decoration: none;
}

/* Registration Form Styles */
.spotmart-woocommerce-login .woocommerce-form-register {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.spotmart-woocommerce-login .woocommerce-form-register__submit {
	width: 100%;
	padding: 0.95rem 1.5rem;
	font-size: 1rem;
	font-weight: 600;
	border-radius: 0.75rem;
	background: var(--login-primary);
	color: #ffffff;
	border: none;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.spotmart-woocommerce-login .woocommerce-form-register__submit:hover,
.spotmart-woocommerce-login .woocommerce-form-register__submit:focus {
	background: var(--login-primary-dark);
	transform: translateY(-1px);
	box-shadow: 0 12px 20px rgba(12, 165, 60, 0.35);
}

/* Buyer Registration Page - Left Image, Right Form Full Width */
/* Remove padding from content containers only (not header) for full width */
body:has(.spotmart-buyer-registration) .site-content > .ast-container,
body:has(.spotmart-buyer-registration) #content > .ast-container,
body:has(.spotmart-buyer-registration) .site-content,
body:has(.spotmart-buyer-registration) #content {
	padding-left: 0 !important;
	padding-right: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	max-width: 100% !important;
}

.spotmart-buyer-registration {
	grid-template-columns: 50% 50%;
	position: relative;
	height: calc(100vh - var(--header-height, 69px));
	max-height: calc(100vh - var(--header-height, 69px));
	min-height: calc(100vh - var(--header-height, 69px));
	overflow: hidden;
	align-items: stretch;
	width: 100%;
	margin: 0;
	padding: 0;
}

.spotmart-buyer-registration .spotmart-woocommerce-login__hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: auto;
	min-height: 100%;
	align-self: stretch;
}

.spotmart-buyer-registration .spotmart-woocommerce-login__hero-inner {
	height: 100%;
	width: 100%;
	min-height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.spotmart-buyer-registration .spotmart-woocommerce-login__hero-image {
	height: 100%;
	width: 100%;
	min-height: 100%;
	object-fit: cover;
}

.spotmart-buyer-registration .spotmart-woocommerce-login__panel {
	position: relative;
	justify-content: center;
	align-items: center;
	padding: 0;
	margin: 0;
	max-width: 100%;
	align-self: stretch;
	overflow-y: auto;
	overflow-x: hidden;
	display: flex;
}

.spotmart-buyer-registration .spotmart-woocommerce-login__panel-inner {
	max-width: 100%;
	width: 60%;
	padding: clamp(0.5rem, 1.5vw, 0.75rem) clamp(0.75rem, 2vw, 1rem);
	background: #ffffff;
	border-radius: var(--spotmart-radius-lg, 18px);
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
	gap: 0.25rem;
	margin: 0;
	min-height: fit-content;
}

.spotmart-buyer-registration .spotmart-woocommerce-login__title {
	font-size: clamp(1.125rem, 2vw, 1.375rem);
	margin: 0 0 0.375rem 0;
	padding: 0;
}

.spotmart-buyer-registration .woocommerce-form-row {
	margin-bottom: 0.25rem;
	gap: 0.25rem;
	padding-bottom: 0;
}

/* Remove margin when OTP section is active (will add its own margin) */
.spotmart-buyer-registration .woocommerce-form-row--wide:has(+ .spotmart-otp-section.otp-active) {
	margin-bottom: 0;
}

.spotmart-buyer-registration .woocommerce-form-register {
	gap: 0.25rem;
	margin: 0;
	display: flex;
	flex-direction: column;
}

/* Remove bottom margin from all p tags in registration form */
.spotmart-buyer-registration .woocommerce-form.woocommerce-form-register.register p {
	margin-bottom: 3px;
}

.spotmart-buyer-registration .woocommerce-form-row label {
	font-size: 0.875rem;
	margin-bottom: 0.1rem;
	line-height: 1.3;
}

.spotmart-buyer-registration .woocommerce-form-row .input-text {
	padding: 0.5rem 0.75rem;
	font-size: 0.875rem;
	line-height: 1.4;
}

.spotmart-buyer-registration .spotmart-otp-section {
	margin: 0;
	padding: 0;
	display: block;
	width: 100%;
	min-height: 0;
}

/* Hide OTP section when there's no content (no input group and no status) */
.spotmart-buyer-registration .spotmart-otp-section:not(.otp-active):not(:has(.spotmart-otp-status:not(:empty))) {
	display: none;
}

/* Show OTP section when input group is visible or has status */
.spotmart-buyer-registration .spotmart-otp-section.otp-active {
	margin-top: 0.375rem;
	margin-bottom: 0.2rem;
}

/* Show status messages always */
.spotmart-buyer-registration .spotmart-otp-section .spotmart-otp-status {
	display: block;
	margin-top: 0.25rem;
}

/* Make input and Send OTP button inline */
.spotmart-buyer-registration .woocommerce-form-row--wide {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.spotmart-buyer-registration .woocommerce-form-row--wide > label {
	margin-bottom: 0.1rem;
}

/* Input with button container - inline layout */
.spotmart-buyer-registration .spotmart-input-with-button {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	width: 100%;
}

.spotmart-buyer-registration .spotmart-input-with-button .input-text {
	flex: 1;
	margin: 0;
	min-width: 0;
}

/* All OTP buttons same width */
.spotmart-buyer-registration .spotmart-input-with-button .spotmart-send-otp-btn,
.spotmart-buyer-registration .spotmart-otp-input-group .spotmart-verify-otp-btn,
.spotmart-buyer-registration .spotmart-send-otp-btn {
	flex-shrink: 0;
	white-space: nowrap;
	margin: 0;
	width: 130px;
	min-width: 130px;
	max-width: 130px;
	text-align: center;
}

/* OTP input group - inline OTP input and verify button - match input-with-button width */
.spotmart-buyer-registration .spotmart-otp-section {
	width: 100%;
}

.spotmart-buyer-registration .spotmart-otp-input-group {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 0.375rem;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

/* Ensure OTP input group matches the width of input-with-button container */
.spotmart-buyer-registration .woocommerce-form-row--wide + .spotmart-otp-section .spotmart-otp-input-group {
	width: 100%;
}

.spotmart-buyer-registration .spotmart-otp-input-group .spotmart-otp-input {
	flex: 1;
	margin: 0;
	min-width: 0;
	max-width: 100%;
	padding: 0.45rem 0.625rem;
	font-size: 0.8rem;
	box-sizing: border-box;
}

.spotmart-buyer-registration .spotmart-send-otp-btn,
.spotmart-buyer-registration .spotmart-verify-otp-btn {
	padding: 0.45rem 0.75rem;
	font-size: 0.8rem;
	line-height: 1.3;
}

.spotmart-buyer-registration .woocommerce-form-register__submit {
	padding: 0.5rem 1rem;
	font-size: 0.875rem;
	margin-top: 0.25rem;
	margin-bottom: 0;
	width: 40%;
	align-self: center;
}

.spotmart-buyer-registration__login-link {
	margin: 0.375rem 0 0 0;
	text-align: center;
	font-size: 0.875rem;
	color: var(--login-text, #6c7077);
}

/* Reduce spacing for privacy policy text */
.spotmart-buyer-registration .woocommerce-privacy-policy-text {
	margin-top: 0.25rem !important;
	margin-bottom: 0.25rem !important;
	padding: 0 !important;
	font-size: 0.8rem;
	line-height: 1.4;
}

/* Reduce spacing for form row with submit button */
.spotmart-buyer-registration .woocommerce-form-row.form-row {
	margin-top: 0.25rem;
	margin-bottom: 0.25rem;
}

.spotmart-buyer-registration__login-link-text {
	color: var(--login-primary, #0ca53c);
	text-decoration: none;
	font-weight: 600;
	transition: color 0.2s ease;
}

.spotmart-buyer-registration__login-link-text:hover,
.spotmart-buyer-registration__login-link-text:focus {
	color: var(--login-primary-dark, #06772a);
	text-decoration: underline;
}

/* Seller Registration Page - Full Width Form (No Left Image) */
.spotmart-seller-registration {
	grid-template-columns: 1fr;
	position: relative;
	min-height: 100vh;
	height: auto;
	max-height: none;
	justify-items: center;
	align-items: flex-start;
	width: 100%;
	overflow: visible;
	padding: 2rem 0;
}

.spotmart-seller-registration .spotmart-woocommerce-login__panel {
	position: relative;
	justify-content: flex-start;
	align-items: flex-start;
	padding: clamp(2rem, 4vw, 3rem);
	max-width: 100%;
	width: 100%;
	min-height: auto;
}

.spotmart-seller-registration .spotmart-woocommerce-login__panel-inner {
	max-width: 800px;
	width: 100%;
	padding: clamp(1.5rem, 3vw, 2.5rem);
	background: #ffffff;
	border-radius: var(--spotmart-radius-lg, 18px);
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
	gap: 0.75rem;
	margin: 0 auto;
}

.spotmart-seller-registration .spotmart-woocommerce-login__title {
	font-size: clamp(1.125rem, 2vw, 1.375rem);
	margin: 0 0 0.5rem 0;
	padding: 0;
}

.spotmart-seller-registration__login-link {
	margin: 0.75rem 0 0 0;
	text-align: center;
	font-size: 0.875rem;
	color: var(--login-text, #6c7077);
}

.spotmart-seller-registration__login-link-text {
	color: var(--login-primary, #0ca53c);
	text-decoration: none;
	font-weight: 600;
	transition: color 0.2s ease;
}

.spotmart-seller-registration__login-link-text:hover,
.spotmart-seller-registration__login-link-text:focus {
	color: var(--login-primary-dark, #06772a);
	text-decoration: underline;
}

/* Dokan vendor registration form styling */
.spotmart-seller-registration .dokan-vendor-register,
.spotmart-seller-registration #dokan-vendor-register {
	display: flex;
	flex-direction: column;
	margin: 0;
}

/* Two-column layout for name fields */
.spotmart-seller-registration .split-row.name-field {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	margin-bottom: 1rem;
}

.spotmart-seller-registration .split-row.name-field .form-row {
	margin-bottom: 0;
}

/* Form rows styling */
.spotmart-seller-registration .dokan-vendor-register .form-row,
.spotmart-seller-registration #dokan-vendor-register .form-row {
	margin-bottom: 1rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.spotmart-seller-registration .dokan-vendor-register .form-row label,
.spotmart-seller-registration #dokan-vendor-register .form-row label,
.spotmart-seller-registration .dokan-form-group label.control-label {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--login-heading, #142914);
	margin-bottom: 0.375rem;
	line-height: 1.4;
}

.spotmart-seller-registration .dokan-vendor-register .form-row label .required,
.spotmart-seller-registration #dokan-vendor-register .form-row label .required,
.spotmart-seller-registration .dokan-form-group label .required {
	color: #dc3545;
}

/* Input fields styling */
.spotmart-seller-registration .dokan-vendor-register .form-row .input-text,
.spotmart-seller-registration .dokan-vendor-register .form-row .form-control,
.spotmart-seller-registration #dokan-vendor-register .form-row .input-text,
.spotmart-seller-registration #dokan-vendor-register .form-row .form-control,
.spotmart-seller-registration .dokan-form-group .dokan-form-control,
.spotmart-seller-registration .dokan-form-group input[type="text"] {
	padding: 0.625rem 0.875rem;
	font-size: 0.875rem;
	line-height: 1.5;
	border: 1px solid #d4d7dc;
	border-radius: 0.5rem;
	background: #ffffff;
	color: var(--login-heading, #142914);
	width: 100%;
	min-height: 2.75rem;
	box-sizing: border-box;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Select dropdown styling - separate to ensure proper display */
.spotmart-seller-registration .dokan-form-group select {
	padding: 0.625rem 2.5rem 0.625rem 0.875rem;
	font-size: 0.875rem;
	line-height: 1.5;
	border: 1px solid #d4d7dc;
	border-radius: 0.5rem;
	background: #ffffff;
	color: var(--login-heading, #142914);
	width: 100%;
	min-height: 2.75rem;
	height: 2.75rem;
	box-sizing: border-box;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	overflow: visible;
}

.spotmart-seller-registration .dokan-vendor-register .form-row .input-text:focus,
.spotmart-seller-registration .dokan-vendor-register .form-row .form-control:focus,
.spotmart-seller-registration #dokan-vendor-register .form-row .input-text:focus,
.spotmart-seller-registration #dokan-vendor-register .form-row .form-control:focus,
.spotmart-seller-registration .dokan-form-group .dokan-form-control:focus,
.spotmart-seller-registration .dokan-form-group input[type="text"]:focus {
	outline: none;
	border-color: var(--login-primary, #0ca53c);
	box-shadow: 0 0 0 3px rgba(12, 165, 60, 0.1);
}

.spotmart-seller-registration .dokan-form-group select:focus {
	outline: none;
	border-color: var(--login-primary, #0ca53c);
	box-shadow: 0 0 0 3px rgba(12, 165, 60, 0.1);
}

.spotmart-seller-registration .dokan-vendor-register .form-row .input-text::placeholder,
.spotmart-seller-registration .dokan-vendor-register .form-row .form-control::placeholder {
	color: #9ca3af;
}

/* Address fields wrapper */
.spotmart-seller-registration .dokan-address-fields {
	display: flex;
	flex-direction: column;
}

/* City and Post/ZIP Code in two columns */
.spotmart-seller-registration .dokan-from-group {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	margin-bottom: 0;
}

.spotmart-seller-registration .dokan-from-group .dokan-form-group {
	margin-bottom: 0;
}

.spotmart-seller-registration .dokan-from-group .dokan-w6 {
	width: 100%;
}

.spotmart-seller-registration .dokan-from-group .dokan-w5 {
	width: 100%;
}

.spotmart-seller-registration .dokan-clearfix {
	display: none;
}

/* Country and State fields */
.spotmart-seller-registration .dokan-form-group {
	margin-bottom: 1rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

/* Street 2 field - add extra margin bottom */
.spotmart-seller-registration .dokan-form-group:has(input[name="dokan_address[street_2]"]) {
	margin-bottom: 1.5rem;
}

/* Alternative selector if :has() is not supported */
.spotmart-seller-registration .dokan-address-fields .dokan-form-group:nth-of-type(2) {
	margin-bottom: 1.5rem;
}

.spotmart-seller-registration .dokan-form-group select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23142914' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.875rem center;
	background-size: 12px;
	padding: 0.625rem 2.5rem 0.625rem 0.875rem;
	min-height: 2.75rem;
	height: 2.75rem;
	line-height: 1.5;
	overflow: visible;
	text-overflow: clip;
	white-space: normal;
	word-wrap: break-word;
}

.spotmart-seller-registration .dokan-form-group select option {
	padding: 0.5rem 0.875rem;
	line-height: 1.5;
}

/* Shop URL small text */
.spotmart-seller-registration .form-row small {
	display: block;
	margin-top: 0.375rem;
	font-size: 0.75rem;
	color: var(--login-text, #6c7077);
}

.spotmart-seller-registration .form-row small strong {
	color: var(--login-heading, #142914);
	font-weight: 600;
}

/* Register button */
.spotmart-seller-registration .dokan-vendor-register .form-row:last-child,
.spotmart-seller-registration #dokan-vendor-register .form-row:last-child {
	display: flex;
	margin-bottom: 0;
}

.spotmart-seller-registration .dokan-vendor-register .dokan-btn,
.spotmart-seller-registration .dokan-vendor-register .dokan-btn-theme,
.spotmart-seller-registration #dokan-vendor-register .dokan-btn {
	padding: 0.75rem 2rem;
	font-size: 0.875rem;
	font-weight: 600;
	border-radius: 0.5rem;
	background: var(--login-primary, #0ca53c);
	color: #ffffff;
	border: none;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.1s ease;
	width: auto;
	align-self: flex-end;
}

.spotmart-seller-registration .dokan-vendor-register .dokan-btn:hover,
.spotmart-seller-registration .dokan-vendor-register .dokan-btn-theme:hover,
.spotmart-seller-registration #dokan-vendor-register .dokan-btn:hover {
	background: var(--login-primary-dark, #06772a);
	transform: translateY(-1px);
}

.spotmart-seller-registration .dokan-vendor-register .dokan-btn:active,
.spotmart-seller-registration .dokan-vendor-register .dokan-btn-theme:active,
.spotmart-seller-registration #dokan-vendor-register .dokan-btn:active {
	transform: translateY(0);
}

/* Error labels */
.spotmart-seller-registration .reg_email_error {
	display: block;
	margin-top: 0.25rem;
	font-size: 0.75rem;
	color: #dc3545;
}

/* URL alert message */
.spotmart-seller-registration #url-alart-mgs {
	font-size: 0.75rem;
	font-weight: 600;
}

/* Hide spam trap */
.spotmart-seller-registration input[name="email_2"] {
	display: none;
}

.spotmart-buyer-registration .woocommerce-privacy-policy-text {
	margin: 0.375rem 0 0 0;
	font-size: 0.75rem;
	line-height: 1.4;
}

.spotmart-buyer-registration .woocommerce-privacy-policy-text p {
	margin-bottom: 2px;
}

.spotmart-buyer-registration .spotmart-otp-status {
	margin-top: 0.25rem;
	font-size: 0.75rem;
	min-height: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
	/* Login, Lost Password, and Buyer Registration - Single Column Layout */
	.spotmart-woocommerce-login,
	.spotmart-buyer-registration {
		grid-template-columns: 1fr !important;
		height: auto !important;
		min-height: auto !important;
		max-height: none !important;
		overflow: visible !important;
	}

	/* Remove height constraints on mobile */
	body.woocommerce-account:has(.spotmart-woocommerce-login):not(:has(.spotmart-seller-registration)) {
		height: auto !important;
		overflow: visible !important;
	}

	body.woocommerce-account:has(.spotmart-woocommerce-login):not(:has(.spotmart-seller-registration)) .site-content,
	body.woocommerce-account:has(.spotmart-woocommerce-login):not(:has(.spotmart-seller-registration)) #content {
		min-height: auto !important;
		max-height: none !important;
		overflow: visible !important;
	}

	.spotmart-woocommerce-login__panel {
		order: -1;
		padding: clamp(2rem, 10vw, 4rem) clamp(1.5rem, 5vw, 2rem);
		overflow: visible;
	}

	.spotmart-woocommerce-login__hero {
		order: 1;
		padding: clamp(2.5rem, 12vw, 5rem) clamp(1.5rem, 5vw, 2rem);
		min-height: 300px;
		height: auto !important;
		max-height: none !important;
	}

	/* Buyer Registration Mobile */
	.spotmart-buyer-registration {
		height: auto !important;
		min-height: auto !important;
		max-height: none !important;
		overflow: visible !important;
	}

	.spotmart-buyer-registration .spotmart-woocommerce-login__panel {
		order: -1;
		justify-content: center;
		padding: clamp(1rem, 4vw, 1.5rem);
		overflow: visible;
	}

	.spotmart-buyer-registration .spotmart-woocommerce-login__panel-inner {
		width: 100% !important;
		padding: clamp(1rem, 4vw, 1.5rem);
	}

	.spotmart-buyer-registration .spotmart-woocommerce-login__hero {
		order: 1;
		height: auto !important;
		min-height: 300px;
		padding: clamp(2rem, 8vw, 3rem) clamp(1.5rem, 5vw, 2rem);
	}

	/* Seller Registration Mobile */
	.spotmart-seller-registration .spotmart-woocommerce-login__panel {
		justify-content: center;
		padding: clamp(0.25rem, 0vw, 0.5rem);
	}

	.spotmart-seller-registration .spotmart-woocommerce-login__panel-inner {
		width: 100%;
		padding: clamp(0.25rem, 0vw, 0.5rem);
	}

	/* Two-column to single column on mobile */
	.spotmart-seller-registration .split-row.name-field {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	.spotmart-seller-registration .dokan-from-group {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	.spotmart-seller-registration .dokan-vendor-register .dokan-btn,
	.spotmart-seller-registration .dokan-vendor-register .dokan-btn-theme {
		width: 100%;
		align-self: stretch;
	}
}

@media (max-width: 640px) {
	.spotmart-woocommerce-login,
	.spotmart-buyer-registration {
		--login-padding: clamp(1.5rem, 6vw, 2.5rem);
		background: var(--login-hero-bg);
	}

	.spotmart-woocommerce-login__hero,
	.spotmart-buyer-registration .spotmart-woocommerce-login__hero {
		background: transparent;
		padding-top: clamp(1.75rem, 10vw, 3rem);
		padding-bottom: clamp(1.5rem, 8vw, 2.5rem);
		min-height: 250px;
		height: auto !important;
	}

	.spotmart-woocommerce-login__panel,
	.spotmart-buyer-registration .spotmart-woocommerce-login__panel {
		order: 0;
		background: #ffffff;
		border-top-left-radius: 1.75rem;
		border-top-right-radius: 1.75rem;
		box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.1);
		padding: clamp(1.5rem, 6vw, 2.5rem) clamp(1.25rem, 5vw, 2rem);
	}

	.spotmart-buyer-registration .spotmart-woocommerce-login__panel-inner {
		width: 100% !important;
		padding: clamp(1rem, 4vw, 1.5rem);
	}

	/* Adjust button and input sizes for mobile */
	.spotmart-buyer-registration .spotmart-input-with-button .spotmart-send-otp-btn,
	.spotmart-buyer-registration .spotmart-otp-input-group .spotmart-verify-otp-btn {
		width: 110px;
		min-width: 110px;
		max-width: 110px;
		font-size: 0.75rem;
		padding: 0.4rem 0.6rem;
	}

	.spotmart-buyer-registration .woocommerce-form-register__submit {
		width: 100%;
	}
}
