.xxs-account-page--profile,
.xxs-account-page--register {
	width: 100%;
}

@media (min-width: 992px) {
	.xxs-account-page--profile > .xxs-account-page__title--mobile,
	.xxs-account-page--register > .xxs-account-page__title--mobile {
		display: none !important;
	}
}

.xxs-profile-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.xxs-profile-alert {
	display: none;
	margin: 0 0 4px;
	padding: 10px 14px;
	border-radius: 8px;
	background: #fde8e8;
	color: #b42318;
	font-size: 14px;
	line-height: 1.4;
}

.xxs-profile-alert.is-visible {
	display: block;
}

.xxs-profile-section {
	background: #fff;
	border: 1px solid #e8ecf1;
	border-radius: 12px;
	padding: 18px 18px 6px;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.xxs-profile-section__title {
	margin: 0 0 14px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	color: #1a1f2c;
	letter-spacing: 0.01em;
}

.xxs-profile-section__hint {
	margin: -8px 0 14px;
	font-size: 13px;
	line-height: 1.45;
	color: #667085;
}

.xxs-profile-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 16px;
}

.xxs-profile-field {
	margin: 0 0 12px;
}

.xxs-profile-field--full {
	grid-column: 1 / -1;
}

.xxs-profile-field label {
	display: block;
	margin: 0 0 6px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	color: #344054;
}

.xxs-profile-field input {
	display: block;
	width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	border: 1px solid #d0d5dd;
	border-radius: 10px;
	background: #fff;
	color: #101828;
	font-size: 15px;
	line-height: 1.35;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.xxs-profile-field input::placeholder {
	color: #98a2b3;
}

.xxs-profile-field input:focus {
	outline: none;
	border-color: #6c98e1;
	box-shadow: 0 0 0 3px rgba(108, 152, 225, 0.18);
}

.xxs-profile-field input:disabled,
.xxs-profile-field input[readonly] {
	background: #f2f4f7;
	color: #667085;
	cursor: not-allowed;
}

.xxs-profile-section[data-xxs-profile-locked] .xxs-profile-field input {
	cursor: pointer;
}

.xxs-profile-field input.is-invalid {
	border-color: #dc3545 !important;
	box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15) !important;
}

.xxs-profile-actions {
	display: flex;
	justify-content: flex-end;
	padding: 4px 0 8px;
}

.xxs-profile-save {
	min-width: 140px;
	min-height: 44px;
	padding: 10px 22px;
	border: 0;
	border-radius: 10px;
	background: #1a9f53;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
	transition: background 0.15s ease, transform 0.1s ease;
}

.xxs-profile-save:hover {
	background: #168746;
}

.xxs-profile-save:active {
	transform: translateY(1px);
}

.xxs-profile-save:disabled {
	opacity: 0.7;
	cursor: wait;
}

.xxs-profile-field .select2-container {
	width: 100% !important;
}

.xxs-profile-field .select2-container--default .select2-selection--single {
	min-height: 44px;
	height: auto;
	border: 1px solid #d0d5dd;
	border-radius: 10px;
	padding: 8px 12px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.xxs-profile-field .select2-container--default .select2-selection--single .select2-selection__rendered {
	padding: 0;
	line-height: 26px;
	color: #101828;
}

.xxs-profile-field .select2-container--default .select2-selection--single .select2-selection__arrow {
	height: 42px;
	right: 8px;
}

@media (max-width: 991px) {
	body.xxs-account-profile-page .xxs-account-page--profile {
		padding-top: 0;
	}

	body.xxs-account-profile-page .xxs-profile-alert {
		margin-bottom: 8px;
	}
}

@media (max-width: 767px) {
	.xxs-profile-section {
		padding: 14px 14px 2px;
		border-radius: 10px;
	}

	.xxs-profile-grid {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.xxs-profile-grid--pairs {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px 10px;
	}

	.xxs-profile-grid--pairs .xxs-profile-field--full {
		grid-column: 1 / -1;
	}

	.xxs-profile-actions {
		position: sticky;
		bottom: 0;
		z-index: 2;
		margin-top: 4px;
		padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px));
		background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 24%);
	}

	.xxs-profile-save {
		width: 100%;
	}
}

/* Profile saved — bottom sheet / modal */
body.xxs-account-sheet-open {
	overflow: hidden;
	overscroll-behavior: none;
}

.xxs-account-sheet {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	align-items: flex-end;
	justify-content: center;
	padding: 0;
	font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	isolation: isolate;
}

.xxs-account-sheet.is-open {
	display: flex;
	animation: xxs-account-sheet-in 0.18s ease-out;
}

@keyframes xxs-account-sheet-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

.xxs-account-sheet__backdrop {
	position: absolute;
	inset: 0;
	z-index: 0;
	background: rgba(15, 23, 42, 0.5);
	cursor: pointer;
}

.xxs-account-sheet__panel {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 420px;
	margin: 0;
	background: #fff;
	border-radius: 16px 16px 0 0;
	border: 1px solid rgba(15, 23, 42, 0.08);
	box-shadow: 0 -12px 48px rgba(15, 23, 42, 0.15);
	overflow: hidden;
	animation: xxs-account-sheet-panel-in 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes xxs-account-sheet-panel-in {
	from { transform: translateY(12px); opacity: 0; }
	to { transform: translateY(0); opacity: 1; }
}

@media (min-width: 480px) {
	.xxs-account-sheet {
		align-items: center;
		padding: 16px;
	}

	.xxs-account-sheet__panel {
		border-radius: 18px;
		box-shadow: 0 24px 64px rgba(15, 23, 42, 0.18);
	}
}

.xxs-account-sheet__close {
	position: absolute !important;
	top: 10px !important;
	right: 10px !important;
	left: auto !important;
	bottom: auto !important;
	float: none !important;
	margin: 0 !important;
	z-index: 2;
	width: 44px;
	height: 44px;
	min-width: 44px;
	min-height: 44px;
	border: none !important;
	border-radius: 0 !important;
	background: transparent !important;
	color: #374151 !important;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	display: flex !important;
	align-items: center;
	justify-content: center;
	padding: 0 !important;
	box-shadow: none !important;
}

.xxs-account-sheet__close:hover {
	background: transparent !important;
	color: #111827 !important;
}

.xxs-account-sheet__close span {
	pointer-events: none;
	font-size: 24px;
	line-height: 1;
	font-weight: 400;
}

.xxs-account-sheet__body {
	padding: 28px 24px calc(24px + env(safe-area-inset-bottom, 0px));
	text-align: center;
}

.xxs-account-sheet__glyph {
	width: 56px;
	height: 56px;
	margin: 0 auto 16px;
	border-radius: 50%;
	background: #ecfdf3;
	border: 2px solid #86efac;
	color: #16a34a;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	line-height: 1;
}

.xxs-account-sheet__glyph--locked {
	background: #eff6ff;
	border-color: #93c5fd;
	color: #2563eb;
	font-size: 24px;
}

.xxs-account-sheet__title {
	margin: 0 0 8px;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.25;
	color: #111827;
	letter-spacing: -0.02em;
}

.xxs-account-sheet__message {
	margin: 0 0 20px;
	font-size: 15px;
	line-height: 1.5;
	color: #667085;
}

.xxs-account-sheet__btn {
	display: block !important;
	width: 100% !important;
	box-sizing: border-box !important;
	padding: 14px 16px !important;
	min-height: 50px !important;
	border: none !important;
	border-radius: 10px !important;
	background: #2563eb !important;
	color: #fff !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	cursor: pointer !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	box-shadow: none !important;
}

.xxs-account-sheet__btn:hover {
	background: #1d4ed8 !important;
	color: #fff !important;
}

.xxs-profile-field.reg-address-wrap {
	position: relative;
}

.smarty-suggestions {
	display: none;
	position: absolute;
	left: 0;
	right: 0;
	top: calc(100% + 4px);
	z-index: 2147482000;
	background: #fff;
	border: 1px solid #d0d5dd;
	border-radius: 10px;
	box-shadow: 0 8px 24px rgba(16, 24, 40, 0.12);
	max-height: 220px;
	overflow-y: auto;
}

.smarty-suggestions.is-open {
	display: block;
}

.smarty-suggestions.is-fixed {
	position: fixed !important;
	right: auto !important;
}

.smarty-suggestion {
	display: block !important;
	width: 100% !important;
	text-align: left !important;
	padding: 10px 14px !important;
	border: none !important;
	background: #fff !important;
	cursor: pointer;
	font-size: 14px !important;
	color: #101828 !important;
	border-bottom: 1px solid #f2f4f7 !important;
	float: none !important;
	margin: 0 !important;
	box-shadow: none !important;
	transform: none !important;
	text-transform: none !important;
	min-height: 0 !important;
	line-height: 1.35 !important;
}

.smarty-suggestion:last-child {
	border-bottom: none;
}

.smarty-suggestion:hover,
.smarty-suggestion:focus {
	background: #f9fafb;
	outline: none;
}

.smarty-suggestion small {
	display: block;
	color: #667085;
	font-size: 12px;
	margin-top: 2px;
}
