/**
 * Buyer account shell — saved pages, profile, and shared layout.
 */

/* Full-width content: hide empty Houzez page sidebar on buyer account pages only */
body.dl-buyer-account-page .bt-sidebar-wrap,
body.dl-buyer-account-page .houzez_sticky.bt-sidebar-wrap {
	display: none !important;
}

body.dl-buyer-account-page .bt-content-wrap {
	flex: 0 0 100% !important;
	margin-left: auto;
	margin-right: auto;
	max-width: 100% !important;
	width: 100% !important;
}

body.dl-buyer-account-page .houzez-page-content .row,
body.dl-buyer-account-page .page-content-wrap .row {
	justify-content: center;
}

body.dl-public-site .dl-buyer-account {
	margin: 0 auto;
	max-width: 1120px;
	padding: 2rem 1rem 3rem;
	width: 100%;
}

.dl-buyer-account__header {
	margin-bottom: 1.25rem;
	text-align: center;
}

.dl-buyer-account__title {
	color: #1f2933;
	font-size: clamp(1.6rem, 2.8vw, 2.15rem);
	font-weight: 700;
	margin: 0 0 0.35rem;
}

.dl-buyer-account__subtitle,
.dl-buyer-account__lead {
	color: #64748b;
	margin: 0;
}

.dl-buyer-account__nav {
	margin-bottom: 1.5rem;
}

.dl-buyer-account__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: center;
	list-style: none;
	margin: 0;
	padding: 0;
}

.dl-buyer-account__tab {
	background: #fff;
	border: 1px solid #e8ddd4;
	border-radius: 999px;
	color: #1f2933;
	display: inline-flex;
	font-size: 0.9rem;
	font-weight: 600;
	padding: 0.5rem 1rem;
	text-decoration: none;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.dl-buyer-account__tab:hover {
	background: #fff7f0;
	border-color: #f0c9a8;
	color: #1f2933;
}

.dl-buyer-account__tab.is-active {
	background: #fff7f0;
	border-color: rgba(255, 121, 0, 0.45);
	box-shadow: 0 4px 14px rgba(255, 121, 0, 0.12);
	color: #ff7900;
}

.dl-buyer-account__tab:focus-visible {
	box-shadow: 0 0 0 3px rgba(255, 121, 0, 0.28);
	outline: none;
}

.dl-buyer-account__content {
	background: #fff;
	border: 1px solid #e8ddd4;
	border-radius: 16px;
	box-shadow: 0 6px 24px rgba(31, 41, 51, 0.06);
	padding: 1.5rem;
}

.dl-buyer-account--prompt .dl-buyer-account__card {
	background: #fff;
	border: 1px solid #e8ddd4;
	border-radius: 16px;
	box-shadow: 0 6px 24px rgba(31, 41, 51, 0.07);
	margin: 0 auto;
	max-width: 560px;
	padding: 2rem;
	text-align: center;
}

.dl-buyer-account__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: center;
	margin-top: 1.25rem;
}

/* Saved pages inside shell — remove duplicate outer card feel */
.dl-buyer-account__content .dl-saved-page {
	margin: 0;
	max-width: none;
	padding: 0;
}

.dl-buyer-account__content .dl-saved-page__header {
	margin-bottom: 1.25rem;
}

.dl-buyer-account__content .dl-saved-page__title {
	font-size: 1.35rem;
}

/* Buyer profile form */
.dl-buyer-profile__card {
	padding: 0;
}

.dl-buyer-profile__header {
	margin-bottom: 1.25rem;
}

.dl-buyer-profile__title {
	color: #1f2933;
	font-size: 1.35rem;
	font-weight: 700;
	margin: 0 0 0.35rem;
}

.dl-buyer-profile__lead {
	color: #64748b;
	font-size: 0.9375rem;
	margin: 0;
}

.dl-buyer-profile__grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dl-buyer-profile__field {
	margin: 0;
}

.dl-buyer-profile__field--full {
	grid-column: 1 / -1;
}

.dl-buyer-profile__field label {
	color: #1f2933;
	display: block;
	font-size: 0.875rem;
	font-weight: 600;
	margin-bottom: 0.35rem;
}

.dl-buyer-profile__label {
	color: #1f2933;
	display: block;
	font-size: 0.875rem;
	font-weight: 600;
	margin-bottom: 0.35rem;
}

.dl-buyer-profile__field input:not([type="checkbox"]):not([type="radio"]),
.dl-buyer-profile__field select,
.dl-buyer-profile__field textarea {
	background: #fff;
	border: 1px solid #e8ddd4;
	border-radius: 10px;
	color: #1f2933;
	font-size: 0.9375rem;
	line-height: 1.35;
	min-height: 46px;
	padding: 0.6rem 0.85rem;
	width: 100%;
}

.dl-buyer-profile__field 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='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2364748b' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-position: right 0.75rem center;
	background-repeat: no-repeat;
	background-size: 0.75rem;
	cursor: pointer;
	padding-right: 2.25rem;
}

.dl-buyer-profile__field input:not([type="checkbox"]):not([type="radio"]):hover,
.dl-buyer-profile__field select:hover,
.dl-buyer-profile__field textarea:hover {
	border-color: rgba(15, 23, 42, 0.18);
}

.dl-buyer-profile__field input:not([type="checkbox"]):not([type="radio"]):focus,
.dl-buyer-profile__field select:focus,
.dl-buyer-profile__field textarea:focus {
	border-color: rgba(255, 121, 0, 0.55);
	box-shadow: 0 0 0 3px rgba(255, 121, 0, 0.18);
	outline: none;
}

.dl-buyer-profile__section {
	border: 0;
	margin: 1.5rem 0 0;
	padding: 0;
}

.dl-buyer-profile__section:first-of-type {
	margin-top: 0;
}

.dl-buyer-profile__section-title {
	color: #1f2933;
	font-size: 1.05rem;
	font-weight: 700;
	margin: 0 0 1rem;
	padding: 0;
}

.dl-buyer-profile__subtitle {
	color: #1f2933;
	font-size: 0.95rem;
	font-weight: 600;
	margin: 0 0 0.75rem;
}

.dl-buyer-form-choices {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	margin-bottom: 0.5rem;
}

.dl-buyer-form-choice {
	align-items: flex-start;
	color: #334155;
	cursor: pointer;
	display: flex;
	font-size: 0.9375rem;
	font-weight: 500;
	gap: 0.65rem;
	line-height: 1.45;
	margin: 0;
}

.dl-buyer-form-choice__text {
	flex: 1;
	padding-top: 0.05rem;
}

.dl-buyer-form-choice input[type="checkbox"],
.dl-buyer-form-choice input[type="radio"] {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background: #fff;
	border: 1px solid #e8ddd4;
	border-radius: 4px;
	cursor: pointer;
	flex-shrink: 0;
	height: 1.125rem;
	margin: 0.15rem 0 0;
	position: relative;
	width: 1.125rem;
}

.dl-buyer-form-choice input[type="radio"] {
	border-radius: 50%;
}

.dl-buyer-form-choice input[type="checkbox"]:hover,
.dl-buyer-form-choice input[type="radio"]:hover {
	border-color: rgba(255, 121, 0, 0.45);
}

.dl-buyer-form-choice input[type="checkbox"]:focus-visible,
.dl-buyer-form-choice input[type="radio"]:focus-visible {
	border-color: rgba(255, 121, 0, 0.55);
	box-shadow: 0 0 0 3px rgba(255, 121, 0, 0.18);
	outline: none;
}

.dl-buyer-form-choice input[type="checkbox"]:checked,
.dl-buyer-form-choice input[type="radio"]:checked {
	background: #fff7f0;
	border-color: rgba(255, 121, 0, 0.65);
}

.dl-buyer-form-choice input[type="checkbox"]:checked::after {
	border: solid #ff7900;
	border-width: 0 0 2px 2px;
	content: "";
	height: 0.35rem;
	left: 50%;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -60%) rotate(-45deg);
	width: 0.65rem;
}

.dl-buyer-form-choice input[type="radio"]:checked::after {
	background: #ff7900;
	border-radius: 50%;
	content: "";
	height: 0.45rem;
	left: 50%;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 0.45rem;
}

.dl-buyer-form-choice--compact {
	font-size: 0.875rem;
	font-weight: 400;
	gap: 0.55rem;
}

.dl-buyer-form-choice--compact input[type="checkbox"],
.dl-buyer-form-choice--compact input[type="radio"] {
	height: 1rem;
	margin-top: 0.1rem;
	width: 1rem;
}

.dl-buyer-form-choice--compact input[type="checkbox"]:checked::after {
	height: 0.3rem;
	width: 0.55rem;
}

.dl-buyer-form-choice--compact .dl-buyer-form-choice__text {
	font-size: 0.875rem;
	line-height: 1.4;
	padding-top: 0;
}

/* Compact checkbox rows — native visible input + grid alignment */
.dl-buyer-profile__field label.dl-buyer-check {
	align-items: start;
	color: inherit;
	column-gap: 10px;
	cursor: pointer;
	display: grid;
	font-weight: 400;
	grid-template-columns: 18px minmax(0, 1fr);
	margin: 0;
}

.dl-buyer-check {
	align-items: start;
	column-gap: 10px;
	cursor: pointer;
	display: grid;
	grid-template-columns: 18px minmax(0, 1fr);
	margin: 0;
}

.dl-buyer-profile__field label.dl-buyer-check--newsletter,
.dl-buyer-check--newsletter {
	grid-template-columns: 18px minmax(0, 1fr);
}

.dl-buyer-profile__field label.dl-buyer-check--terms,
.dl-buyer-check--terms {
	grid-template-columns: 17px minmax(0, 1fr);
}

.dl-buyer-profile__field .dl-buyer-check__input[type="checkbox"],
.dl-buyer-profile__field .dl-buyer-check__input[type="radio"] {
	accent-color: #ff7900;
	appearance: auto;
	-webkit-appearance: checkbox;
	align-self: start;
	background: #fff;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	cursor: pointer;
	display: block;
	flex: 0 0 auto;
	grid-column: 1;
	grid-row: 1;
	height: 18px !important;
	margin: 3px 0 0 !important;
	min-height: 18px !important;
	min-width: 18px !important;
	padding: 0 !important;
	width: 18px !important;
}

.dl-buyer-check--terms .dl-buyer-check__input[type="checkbox"] {
	height: 17px !important;
	margin-top: 1px !important;
	min-height: 17px !important;
	min-width: 17px !important;
	width: 17px !important;
}

.dl-buyer-check__input:focus-visible {
	outline: 2px solid rgba(255, 121, 0, 0.55);
	outline-offset: 2px;
}

.dl-buyer-check__content {
	grid-column: 2;
	grid-row: 1;
	min-width: 0;
}

.dl-buyer-check__label {
	color: #334155;
	display: inline;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.45;
}

.dl-buyer-check__help {
	color: #64748b;
	display: block;
	font-size: 0.75rem;
	font-weight: 400;
	line-height: 1.45;
	margin-top: 0.2rem;
}

.dl-buyer-check--terms .dl-buyer-check__label {
	color: #64748b;
	font-size: 0.8125rem;
	font-weight: 400;
	line-height: 1.4;
}

.dl-buyer-profile__hint {
	color: #64748b;
	display: block;
	font-size: 0.8125rem;
	margin-top: 0.25rem;
}

.dl-buyer-profile__actions {
	margin-top: 1.25rem;
}

.dl-buyer-profile__notice {
	border-radius: 10px;
	font-size: 0.9375rem;
	margin-bottom: 1rem;
	padding: 0.75rem 1rem;
}

.dl-buyer-profile__notice.is-success {
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	color: #166534;
}

.dl-buyer-profile__notice.is-error {
	background: #fff5f5;
	border: 1px solid #fecaca;
	color: #991b1b;
}

.dl-buyer-profile__feedback {
	border-radius: 10px;
	font-size: 0.9375rem;
	margin-bottom: 1rem;
	padding: 0.75rem 1rem;
}

.dl-buyer-profile__feedback.is-success {
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	color: #166534;
}

.dl-buyer-profile__feedback.is-error {
	background: #fff5f5;
	border: 1px solid #fecaca;
	color: #991b1b;
}

.dl-buyer-profile__feedback.is-info,
.dl-buyer-profile__feedback.is-warning {
	background: #fffbeb;
	border: 1px solid #fde68a;
	color: #92400e;
}

.dl-buyer-profile__form .dl-vc-btn.is-loading {
	opacity: 0.75;
	pointer-events: none;
}

.dl-buyer-profile__error-list {
	margin: 0;
	padding-inline-start: 1.1rem;
}

@media (max-width: 767px) {
	.dl-buyer-profile__grid {
		grid-template-columns: 1fr;
	}

	.dl-buyer-account__content {
		padding: 1rem;
	}
}

/* Buyer registration page — uses buyer account shell + profile form styles */
body.dl-buyer-account-page.dl-public-site {
	background: #faf8f6;
}

.dl-buyer-account--register {
	margin-left: auto;
	margin-right: auto;
	max-width: 920px;
	padding-top: 0.5rem;
	padding-bottom: 2.5rem;
}

.dl-buyer-account--register .dl-buyer-account__content {
	border: 1px solid #e5e7eb;
	border-radius: 20px;
	box-shadow: 0 8px 32px rgba(31, 41, 51, 0.06);
	padding: 2rem 2.25rem;
}

.dl-buyer-registration {
	margin: 0;
}

.dl-buyer-registration .dl-buyer-profile__header {
	margin-bottom: 1.75rem;
	text-align: center;
}

.dl-buyer-registration .dl-buyer-profile__title {
	font-size: clamp(1.45rem, 2.4vw, 1.85rem);
}

.dl-buyer-registration .dl-buyer-profile__lead {
	font-size: 0.9375rem;
	line-height: 1.55;
	margin: 0 auto;
	max-width: 38rem;
}

.dl-buyer-registration .dl-buyer-profile__section {
	margin-top: 1.75rem;
	padding-top: 1.75rem;
	border-top: 1px solid #f0ebe6;
}

.dl-buyer-registration .dl-buyer-profile__section:first-of-type {
	border-top: 0;
	margin-top: 0;
	padding-top: 0;
}

.dl-buyer-registration .dl-buyer-profile__section-title {
	font-size: 1.0625rem;
	margin-bottom: 1.1rem;
}

.dl-buyer-registration .dl-buyer-profile__grid {
	gap: 1.1rem;
}

.dl-buyer-registration__footer {
	border-top: 1px solid #f0ebe6;
	margin-top: 1.75rem;
	padding-top: 1.5rem;
}

.dl-buyer-registration__submit {
	font-size: 0.9375rem;
	min-height: 48px;
	min-width: min(100%, 280px);
	padding: 0.65rem 1.5rem;
	width: 100%;
}

body.dl-public-site .dl-buyer-registration__submit.dl-vc-btn--primary {
	color: #fff;
	font-weight: 700;
}

body.dl-public-site .dl-buyer-registration__submit.dl-vc-btn--primary:hover,
body.dl-public-site .dl-buyer-registration__submit.dl-vc-btn--primary:focus-visible {
	color: #fff;
}

.dl-buyer-registration .dl-buyer-profile__actions {
	margin-top: 0;
}

.dl-buyer-registration__alert-frequency[hidden] {
	display: none !important;
}

.dl-buyer-registration__honeypot {
	height: 0;
	left: -9999px;
	opacity: 0;
	overflow: hidden;
	position: absolute;
	width: 0;
}

.dl-buyer-registration__login-link {
	color: #64748b;
	font-size: 0.875rem;
	margin: 0.85rem 0 0;
	text-align: center;
}

.dl-buyer-registration__login-link a {
	color: #ff7900;
	font-weight: 600;
	text-decoration: none;
}

.dl-buyer-registration__login-link a:hover,
.dl-buyer-registration__login-link a:focus-visible {
	text-decoration: underline;
}

.dl-buyer-registration--signed-in {
	text-align: center;
}

.dl-buyer-registration--signed-in .dl-buyer-profile__header {
	margin-bottom: 1rem;
}

.dl-buyer-registration--signed-in .dl-buyer-profile__actions {
	justify-content: center;
}

.dl-buyer-profile__subsection {
	margin-top: 1.25rem;
}

.dl-buyer-profile__subsection-title {
	font-size: 0.95rem;
	font-weight: 600;
	margin: 0 0 0.75rem;
}

@media (max-width: 767px) {
	.dl-buyer-account--register .dl-buyer-account__content {
		border-radius: 16px;
		padding: 1.125rem 1.25rem;
	}

	.dl-buyer-account--register {
		padding-bottom: 1.5rem;
	}

	.dl-buyer-registration .dl-buyer-profile__section {
		margin-top: 1.35rem;
		padding-top: 1.35rem;
	}
}
