/**
 * Jewellink account styles
 * - keep MyListing's default UI
 * - just handle Terms modal + small tweaks
 */

/* Terms row spacing */
.jl-terms-wrap {
	margin-top: 1rem;
	margin-bottom: 0.75rem;
}

.jl-terms-wrap .md-checkbox label {
	font-size: 13px;
	line-height: 1.5;
}

.jl-terms-wrap__link {
	margin: 0.55rem 0 0;
	font-size: 13px;
	line-height: 1.5;
	color: #5c6b79;
}

.jl-terms-link {
	display: inline;
	margin-left: 3px;
	font-size: inherit !important;
	color: #1b263b !important;
	text-decoration: underline;
	cursor: pointer;
}

/* Make sure privacy text sits nicely under the checkbox */
.woocommerce-privacy-policy-text {
	font-size: 12px;
	margin-top: 0.5rem;
}

/* ---------- Modal base ---------- */

.jl-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: none;
	align-items: center;
	justify-content: center;
}

.jl-modal.is-open {
	display: flex;
}

.jl-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
}

.jl-modal__dialog {
	position: relative;
	z-index: 1;
	background: #fff;
	max-width: 780px;
	width: 100%;
	max-height: 80vh;
	border-radius: 4px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
	padding: 24px 28px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.jl-modal__close {
	position: absolute;
	top: 10px;
	right: 12px;
	background: none;
	border: 0;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}

.jl-modal__body {
	flex: 1 1 auto;
	overflow-y: auto;
	margin-top: 8px;
	padding-right: 8px;
}

.jl-modal__body h1,
.jl-modal__body h2,
.jl-modal__body h3 {
	margin-top: 1rem;
	margin-bottom: 0.5rem;
}

.jl-modal__body p {
	margin-bottom: 0.75rem;
	font-size: 14px;
	line-height: 1.5;
}

.jl-modal__actions {
	margin-top: 16px;
	display: flex;
	justify-content: flex-end;
	gap: 0.5rem;
}

/* Prevent background scroll when modal open */
body.jl-modal-open {
	overflow: hidden;
}

/* Optional small tweak: ensure form actions full width on mobile */
@media (max-width: 600px) {
	.sign-in-box .form-group.form-actions .buttons {
		width: 100%;
	}
}
