img {
	display: inline-block;
}

body {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

body.custom-background {
	background-repeat: no-repeat !important;
	background-size: cover !important;
}

.lns_bg_img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
}

#ecard-footer {
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}

#ecard-header,
#ecard-wrapper,
#ecard-footer {
	position: relative;
	z-index: 1;
}

#ecard-wrapper,
#ecard-footer {
	width: 500px;
	max-width: 100%;
	margin: 0 auto;
	background-color: white;
}

#ecard-footer .copyright {
	margin-top: 0;
	padding-top: 10px;
}

#ecard-wrapper .topbar {
	display: flex;
	flex-direction: row;
	justify-content: flex-end;
	padding: 4px;
}

#ecard-wrapper .topbar .gtranslate_wrapper a.glink:not(.gt-current-lang) {
	display: none;
}

#ecard-wrapper .topbar .gtranslate_wrapper a.glink img {
	width: 24px;
	height: 24px;
	object-fit: cover;
	border: solid 2px #3333;
	border-radius: 100%;
	-webkit-border-radius: 100%;
	-moz-border-radius: 100%;
	-ms-border-radius: 100%;
	-o-border-radius: 100%;
}

#ecard-wrapper .ecard_cover {
	width: 100%;
	height: 165px;
	object-fit: cover;
	z-index: 0;
}


#ecard-wrapper .info_label_wrap {
	padding: 0 16px;
	margin-top: -20px;
	z-index: 1;
}

#ecard-wrapper .info_label {
	padding: 10px;
	background: white;
	display: flex;
	flex-direction: row;
	gap: 16px;
	align-items: flex-start;
	border-radius: 16px;
	-webkit-border-radius: 16px;
	-moz-border-radius: 16px;
	-ms-border-radius: 16px;
	-o-border-radius: 16px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.10);
	border: 1px solid rgba(0, 0, 0, 0.06);
}

#ecard-wrapper .info_label p {
	margin-bottom: 4px;
	font-size: 15px;
	line-height: 1.45;
	color: black;
}

#ecard-wrapper .icon_wrapper {
	line-height: 0;
}

#ecard-wrapper .avatar_container {
	display: flex;
	margin-bottom: 20px;
}

#ecard-wrapper .avatar.padding_ratio:before {
	padding-bottom: 100%;
}

#ecard-wrapper .avatar {
	width: 110px;
	flex-shrink: 0;
	overflow: hidden;
	border-radius: 12px;
	border: 2.5px solid black;
	object-fit: cover;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
	background: #ddd;
	transition: opacity 0.15s, transform 0.15s;
}

#ecard-wrapper .cover_img {
	overflow: hidden;
}

#ecard-wrapper .avatar img,
#ecard-wrapper .cover_img img {
	min-width: 100%;
	width: 100%;
	max-width: 100%;
	height: auto;
	object-fit: unset;
}

#ecard-wrapper .avatar_container .qr_code,
#ecard-wrapper .avatar_container .logo {
	bottom: -10px;
	right: -10px;
	padding: 4px;
	background-color: white;
	overflow: hidden;
	box-shadow: 0 0 15px #0000001c;
	border-radius: 4px;
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	-ms-border-radius: 4px;
	-o-border-radius: 4px;
}

#ecard-wrapper .avatar_container .logo {
	right: -100px;
	border-radius: 100%;
	-webkit-border-radius: 100%;
	-moz-border-radius: 100%;
	-ms-border-radius: 100%;
	-o-border-radius: 100%;
	border: solid 2px #2c2d2f;
	padding: 2px;
}

#ecard-wrapper .avatar_container .logo .padding_ratio {
	width: 90px;
	overflow: hidden;
	border-radius: 100%;
	-webkit-border-radius: 100%;
	-moz-border-radius: 100%;
	-ms-border-radius: 100%;
	-o-border-radius: 100%;
}

#ecard-wrapper .avatar_container .logo .padding_ratio::before {
	padding-bottom: 100%;
}

#ecard-wrapper .avatar_container .logo img {
	object-fit: unset;
}

#ecard-wrapper .avatar_container .qr_code a {
	width: 90px;
	height: 90px;
}

#ecard-wrapper .user_name {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	text-transform: uppercase;
	color: black;
}

#ecard-wrapper .user_name img {
	width: 20px;
	height: 20px;
	fill: #0da123;
}

#ecard-wrapper .before_action_buttons>* {
	font-size: 15px;
	line-height: 1.6;
	display: flex;
	align-items: center;
	gap: 12px;
	background: #fff;
	color: black;
	padding: 11px 14px;
	border: 1px solid #e5e5e5;
	transition: border-color 0.15s;
	min-height: 50px;
	width: 100%;
	text-align: left;
	box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.15);
	border-radius: 10px;
	-webkit-border-radius: 10px;
	-moz-border-radius: 10px;
	-ms-border-radius: 10px;
	-o-border-radius: 10px;
}

#ecard-wrapper .header_action img,
#ecard-wrapper .header_action .after img {
	height: 1em;
	width: auto;
	padding-bottom: .1em;
}

#ecard-wrapper .header_action .customer_phone svg {
	height: 1em;
	margin: 0;
}

#ecard-wrapper .before_action_buttons .icon_wrapper img,
#ecard-wrapper .before_action_buttons .svg_wrapper {
	width: 40px;
	height: 40px;
	border-radius: 8px;
	-webkit-border-radius: 8px;
	-moz-border-radius: 8px;
	-ms-border-radius: 8px;
	-o-border-radius: 8px;
}

#ecard-wrapper .before_action_buttons .svg_wrapper {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 8px;
}

#ecard-wrapper .before_action_buttons .translate .svg_wrapper {
	padding: 0;
}

#ecard-wrapper .customer_phone .svg_wrapper {
	background-color: #33cc33;
}

#ecard-wrapper .customer_email .svg_wrapper {
	background-color: #1d9aee;
}

#ecard-wrapper .before_action_buttons svg {
	fill: white;
}

#ecard-wrapper .header_action .after {
	margin: 12px 0 16px;
	width: 100%;
	padding: 0 16px;
	gap: 16px;
}

#ecard-wrapper .header_action .after>a {
	background: black;
	color: white;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 3px;
	padding: 11px 9px;
	font-size: 15px;
	font-weight: 700;
	text-transform: uppercase;
	border-radius: 10px;
	-webkit-border-radius: 10px;
	-moz-border-radius: 10px;
	-ms-border-radius: 10px;
	-o-border-radius: 10px;
}

#ecard-wrapper .header_action .after>a.action_save {
	flex-grow: 1;
}

#ecard-wrapper .before_action_buttons {
	display: flex;
	flex-direction: column;
	padding: 0 16px;
	gap: 8px;
}

#ecard-wrapper .action_buttons {
	padding: 0 20px 20px;
	margin-top: 14px;
	border-top: solid 1px #dddd;
}

#ecard-wrapper .action_buttons .wrapper {
	flex-wrap: wrap;
	border-top: solid 1px #dddd;
	padding-top: 20px;
}

.lenamsite_qr_code {
	display: block;
}

.lenamsite_qr_code canvas {
	width: 100%;
}

.popup .lenamsite_qr_code,
.popup .lenamsite_zalo_qr_code {
	height: 200px;
	width: 200px;
}

#ecard-wrapper .popup_action .popup_content p {
	margin-bottom: 8px;
}

#ecard-wrapper .popup_action .popup_content {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 768px;
	max-width: calc(100% - 60px);
	max-height: calc(100vh - 200px);
	overflow-y: auto;
	background-color: white;
	padding: 20px;
	border-radius: 8px;
	-webkit-border-radius: 8px;
	-moz-border-radius: 8px;
	-ms-border-radius: 8px;
	-o-border-radius: 8px;
}

#ecard-wrapper .qr_label {
	font-size: 1.1rem;
	text-transform: uppercase;
}

#ecard-wrapper .popup_content .bank_account {
	color: #0084ff;
}

#ecard-wrapper .popup_content .bank_number,
#ecard-wrapper .qr_label {
	color: #ff3929;
}

#ecard-wrapper .popup_action .qr_wrapper img {
	width: 200px;
	height: 200px;
}

#ecard-wrapper .popup_action .qr_wrapper {
	margin-bottom: 1em;
}

#ecard-wrapper .action_buttons .action>.icon_wrapper,
#ecard-wrapper .popup .icon_wrapper {
	width: 80%;
	max-width: 50px;
	padding: 10px;
	border: solid 1px #ddd;
	background-color: white;
	border-radius: 100%;
	-webkit-border-radius: 100%;
	-moz-border-radius: 100%;
	-ms-border-radius: 100%;
	-o-border-radius: 100%;
}

#ecard-wrapper .action_buttons .icon_wrapper img {
	object-fit: scale-down;
}

#ecard-wrapper .action_buttons .action {
	font-size: 14px;
	color: inherit;
}

#ecard-wrapper .action_buttons .action_btn,
#ecard-wrapper .action_buttons .popup_action {
	flex: 0 0 calc(16.666% - 24px);
	width: calc(16.666% - 24px);
	margin: 12px 12px 0;
	text-align: center;
}

#ecard-wrapper .map_iframe {
	margin-bottom: 1rem;
	width: 100%;
}

#ecard-wrapper .map_iframe iframe {
	width: 100%;
}

#ecard-wrapper .customer_info {
	padding-top: 20px;
	max-width: 100%;
}

#ecard-wrapper .customer_info iframe {
	max-width: 100%;
}

#ecard-wrapper .customer_info h2 {
	font-size: 1.3rem;
}

#ecard-wrapper .customer_info h3 {
	font-size: 1.2rem;
}

#ecard-wrapper .customer_info h4 {
	font-size: 1.1rem;
}

#ecard-wrapper .customer_info h5 {
	font-size: 1.05rem;
}

#ecard-wrapper .customer_info h6 {
	font-size: 1rem;
}

.popup.footer_popup {
	display: flex;
	justify-content: center;
	align-items: center;
}

.popup.footer_popup .close_popup {
	right: 20px;
	top: 20px;
	z-index: 1;
	width: 30px;
	height: 30px;
	display: flex;
	justify-content: center;
	align-items: center;
	background-color: rgba(0, 0, 0, 0.881);
	padding: 8px;
	border-radius: 100%;
	-webkit-border-radius: 100%;
	-moz-border-radius: 100%;
	-ms-border-radius: 100%;
	-o-border-radius: 100%;
}

.popup.footer_popup .close_popup svg,
.popup.footer_popup .close_popup img {
	fill: white;
	width: 20px;
	height: auto;
}

.popup.footer_popup .popup_content {
	padding: 20px 20px 36px 20px;
	flex-direction: column;
	background: white;
	border-radius: 18px;
	-webkit-border-radius: 18px;
	-moz-border-radius: 18px;
	-ms-border-radius: 18px;
	-o-border-radius: 18px;
}

.popup.footer_popup .lns_popup_title {
	width: 100%;
	font-weight: bold;
	text-align: center;
	font-size: 19px;
	color: black;
	margin: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.popup.footer_popup .lns_popup_title:before {
	content: '';
	display: block;
	width: 36px;
	height: 4px;
	background: #ddd;
	margin-bottom: 16px;
	border-radius: 2px;
	-webkit-border-radius: 100px;
	-moz-border-radius: 100px;
	-ms-border-radius: 100px;
	-o-border-radius: 100px;
}

.popup.translate_popup .lang_list {
	display: flex;
	gap: 16px;
	margin-top: 16px;
	margin-bottom: 20px;
}

.popup.translate_popup .lang_list label {
	font-size: 15px;
	font-weight: 500;
}

.popup.translate_popup .lang_list input {
	width: 18px;
	height: 18px;
	accent-color: #2563EB;
	cursor: pointer;
	margin: 0;
	margin-right: 6px;
	vertical-align: sub;
}

.popup.translate_popup .lns_submit {
	display: block;
	width: 100%;
	padding: 19px;
	background: #E63028;
	color: #fff;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-align: center;
}

.popup.qr_popup .popup_content,
.popup.zalo_popup .popup_content,
.popup.translate_popup .popup_content {
	max-height: 100%;
	width: 500px;
	align-items: center;
}

.popup.qr_popup .qr_wrapper,
.popup.zalo_popup .zalo_qr_wrapper {
	padding: 8px;
	position: relative;
}

.popup.qr_popup .action,
.popup.zalo_popup .action {
	display: block;
	text-align: center;
	color: black;
	width: 100%;
	padding: 14px 16px;
	border: 1.5px solid #000;
	font-size: 19px;
	font-weight: 700;
	letter-spacing: 0.04em;
	background: #f5f5f5;
	margin-top: 10px;
	text-transform: uppercase;
	border-radius: 30px;
	-webkit-border-radius: 30px;
	-moz-border-radius: 30px;
	-ms-border-radius: 30px;
	-o-border-radius: 30px;
}

.popup.zalo_popup .action {
	text-align: left;
	border-radius: 10px;
	-webkit-border-radius: 10px;
	-moz-border-radius: 10px;
	-ms-border-radius: 10px;
	-o-border-radius: 10px;
}

.popup.zalo_popup .action.mess_zalo {
	background: #0068FF;
	color: #fff;
	border-color: #0068FF;
}

.popup.zalo_popup .action.copy_zalo {
	background: transparent;
	color: #0068FF;
	border-color: #0068FF;
}

.popup.qr_popup .action svg,
.popup.zalo_popup .action svg,
.popup.qr_popup .action img,
.popup.zalo_popup .action img {
	width: 20px;
	height: 20px;
	margin-right: 6px;
	vertical-align: text-top;
	object-fit: contain;
}

.footer_popup.qr_popup .copy_link.copied,
.footer_popup.zalo_popup .copy_zalo.copied {
	background-color: rgb(45, 200, 75);
	color: white;
}

.footer_popup.zalo_popup .copy_zalo.copied {
	border-color: rgb(45, 200, 75);
}

.footer_popup.qr_popup .copy_link:not(.copied) .after_copy,
.footer_popup.zalo_popup .copy_zalo:not(.copied) .after_copy {
	display: none;
}

.footer_popup.qr_popup .copy_link.copied .before_copy,
.footer_popup.zalo_popup .copy_zalo.copied .before_copy {
	display: none;
}

@media (max-width: 769px) {
	#ecard-wrapper {
		width: 100%;
		max-width: 500px;
	}
}

@media (max-width: 640px) {

	#ecard-wrapper .avatar_container .qr_code,
	#ecard-wrapper .avatar_container .logo {
		right: -2vw;
		bottom: -3vw;
	}

	#ecard-wrapper .avatar_container .logo {
		right: -18vw;
		padding: 1px;
	}

	#ecard-wrapper .avatar_container .qr_code a,
	#ecard-wrapper .avatar_container .logo .padding_ratio {
		width: 16vw;
		height: 16vw;
	}

	#ecard-wrapper .customer_office {
		font-size: 1.4rem;
	}

	#ecard-wrapper .header_action .after {
		font-size: 1rem;
	}

	#ecard-wrapper .action_buttons {
		padding: 0 16px 20px 16px;
	}

	#ecard-wrapper .action_buttons .action_btn,
	#ecard-wrapper .action_buttons .popup_action {
		flex: 0 0 calc(20% - 16px);
		margin: 12px 8px 0;
	}

	.popup.footer_popup {
		align-items: flex-end;
	}

	.popup.footer_popup .popup_content {
		border-bottom-left-radius: 0;
		border-bottom-right-radius: 0;
		transition: .6s;
		transform: translateY(100%);
		-webkit-transform: translateY(100%);
		-moz-transform: translateY(100%);
		-ms-transform: translateY(100%);
		-o-transform: translateY(100%);
	}

	.popup.footer_popup.show .popup_content {
		transform: translateY(0%);
		-webkit-transform: translateY(0%);
		-moz-transform: translateY(0%);
		-ms-transform: translateY(0%);
		-o-transform: translateY(0%);
		-webkit-transition: .6s;
		-moz-transition: .6s;
		-ms-transition: .6s;
		-o-transition: .6s;
	}
}

@media (max-width: 410px) {

	#ecard-wrapper .action_buttons .action_btn,
	#ecard-wrapper .action_buttons .popup_action {
		flex: 0 0 calc(25% - 16px);
		margin: 12px 8px 0;
	}

	.popup.translate_popup .lang_list {
		flex-direction: column;
	}

	.popup.qr_popup .action,
	.popup.zalo_popup .action,
	.popup.translate_popup .lns_submit {
		padding: 10px 16px;
		font-size: 16px;
	}

	.popup.qr_popup .action svg,
	.popup.zalo_popup .action svg {
		width: 16px;
		height: 16px;
	}
}