html,
body.public-page {
	height: 100%;
}

body.public-page {
	background-color: #f8faff;
	margin: 0;
}

.public-header {
	background-color: #ffffff;
	border-bottom: 1px solid #e6edf8;
	height: 96px;
}

.public-header-inner {
	align-items: center;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	height: 100%;
	padding: 0 32px;
}

.public-logo {
	display: inline-flex;
	height: 82px;
	width: 106px;
}

.public-logo img {
	height: 100%;
	object-fit: contain;
	width: 100%;
}

.public-header h1 {
	color: #172033;
	font-size: 24px;
	font-weight: 700;
	grid-column: 2;
	margin: 0;
	text-align: center;
}

.public-main {
	align-items: center;
	display: flex;
	justify-content: center;
	min-height: calc(100vh - 96px);
	padding: 24px;
}

.public-search-wrap {
	max-width: 620px;
	width: 100%;
}

.public-search-form {
	display: flex;
	gap: 12px;
	width: 100%;
}

.public-search-input {
	background-color: #ffffff;
	border: 1px solid #d7e3f5;
	border-radius: 10px;
	box-sizing: border-box;
	color: #172033;
	flex: 1;
	font-size: 16px;
	height: 56px;
	min-width: 0;
	outline: none;
	padding: 0 18px;
	transition: all ease .2s;
	width: 100%;
}

.public-search-input:focus {
	border-color: #1765fd;
	box-shadow: 0 0 0 4px rgba(23, 101, 253, .1);
}

.public-search-button {
	background-color: #1765fd;
	border-radius: 10px;
	color: #ffffff;
	font-size: 16px;
	font-weight: 600;
	height: 56px;
	padding: 0 30px;
	transition: all ease .2s;
}

.public-search-button:hover {
	background-color: #0d56dc;
}

.customer-main {
	align-items: center;
	background:
		radial-gradient(circle at 12% 18%, rgba(37, 99, 235, .08), transparent 28%),
		radial-gradient(circle at 88% 82%, rgba(15, 118, 110, .07), transparent 30%),
		#f5f7fb;
	padding-bottom: 48px;
	padding-top: 48px;
}

.customer-page {
	max-width: 1040px;
	width: 100%;
}

.customer-card {
	background-color: #ffffff;
	border: 1px solid rgba(220, 227, 239, .9);
	border-radius: 28px;
	box-shadow: 0 24px 70px rgba(30, 41, 59, .12);
	overflow: hidden;
	width: 100%;
}

.company-card-header {
	align-items: center;
	background: linear-gradient(120deg, #111b35 0%, #172d5a 58%, #1f4a75 100%);
	display: flex;
	gap: 20px;
	min-height: 142px;
	overflow: hidden;
	padding: 28px 36px;
	position: relative;
}

.customer-card-accent {
	background-color: rgba(255, 255, 255, .06);
	border: 1px solid rgba(255, 255, 255, .08);
	border-radius: 50%;
	height: 230px;
	position: absolute;
	right: -64px;
	top: -118px;
	width: 230px;
}

.company-logo-wrap {
	align-items: center;
	background-color: #ffffff;
	border: 5px solid rgba(255, 255, 255, .16);
	border-radius: 18px;
	display: flex;
	flex: 0 0 92px;
	height: 88px;
	justify-content: center;
	overflow: hidden;
	padding: 8px;
	position: relative;
	z-index: 1;
}

.company-logo-wrap img {
	height: 100%;
	object-fit: contain;
	width: 100%;
}

.company-title {
	flex: 1;
	min-width: 0;
	position: relative;
	z-index: 1;
}

.company-title > span,
.customer-heading > div > span {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.4px;
	margin-bottom: 7px;
	text-transform: uppercase;
}

.company-title > span {
	color: #9fb6dc;
}

.company-title h2 {
	color: #ffffff;
	font-size: 25px;
	font-weight: 650;
	margin: 0;
}

.company-deal {
	align-items: center;
	background-color: #ffffff;
	border-radius: 16px;
	color: #ffffff;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 74px;
	min-width: 94px;
	padding: 10px 16px;
	position: relative;
	z-index: 1;
}

.company-deal strong {
	color: #172d5a;
	font-size: 25px;
	line-height: 1;
}

.company-deal span {
	color: #64748b;
	font-size: 11px;
	font-weight: 700;
	margin-top: 5px;
	text-transform: uppercase;
	white-space: nowrap;
}

.customer-card-body {
	display: grid;
	gap: 42px;
	grid-template-columns: minmax(0, 1fr) 220px;
	padding: 38px 40px 34px;
}

.customer-heading {
	align-items: center;
	display: flex;
	gap: 18px;
	margin-bottom: 30px;
}

.customer-heading h1 {
	color: #162033;
	font-size: 29px;
	font-weight: 700;
	line-height: 1.2;
	margin: 0;
}

.customer-heading > div > span {
	color: #7b879b;
}

.customer-avatar {
	align-items: center;
	background: linear-gradient(145deg, #2563eb, #163c91);
	border-radius: 50%;
	box-shadow: 0 9px 22px rgba(37, 99, 235, .24);
	color: #ffffff;
	display: flex;
	flex: 0 0 68px;
	font-size: 20px;
	font-weight: 700;
	height: 68px;
	justify-content: center;
}

.customer-status {
	align-items: center;
	color: #16835d;
	display: flex;
	font-size: 12px;
	font-weight: 600;
	gap: 6px;
	margin-top: 7px;
}

.customer-status i {
	background-color: #22a776;
	border-radius: 50%;
	box-shadow: 0 0 0 3px rgba(34, 167, 118, .12);
	height: 7px;
	width: 7px;
}

.customer-info-grid {
	display: grid;
	column-gap: 26px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	row-gap: 0;
}

.customer-info-item {
	border-bottom: 1px solid #e9edf4;
	min-width: 0;
	padding: 13px 2px 14px;
}

.customer-info-item span {
	color: #8a95a7;
	display: block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .3px;
	margin-bottom: 6px;
	text-transform: uppercase;
}

.customer-info-item strong {
	color: #293449;
	display: block;
	font-size: 15px;
	font-weight: 600;
	overflow-wrap: anywhere;
}

.customer-qr {
	align-items: center;
	background: linear-gradient(155deg, #f7f9fd, #eef3fa);
	border: 1px solid #e2e8f2;
	border-radius: 20px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 20px;
	text-align: center;
}

.customer-qr-title {
	color: #5d6b82;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1px;
	margin-bottom: 14px;
	text-transform: uppercase;
}

.customer-qr-image {
	background-color: #ffffff;
	border-radius: 14px;
	box-shadow: 0 8px 24px rgba(30, 41, 59, .08);
	max-width: 150px;
	padding: 9px;
	width: 100%;
}

.customer-qr-image img {
	display: block;
	width: 100%;
}

.customer-qr > strong {
	color: #172033;
	font-size: 14px;
	letter-spacing: 1px;
	margin-top: 13px;
}

.customer-qr > span {
	color: #8a95a7;
	font-size: 11px;
	margin-top: 3px;
}

.customer-card-footer {
	align-items: center;
	background-color: #fafbfd;
	border-top: 1px solid #edf2fa;
	display: flex;
	justify-content: space-between;
	padding: 20px 40px;
}

.customer-card-footer p {
	color: #7b879b;
	font-size: 13px;
	margin: 0;
}

.customer-use-button {
	background: linear-gradient(135deg, #2563eb, #1748b5);
	border: 0;
	border-radius: 12px;
	box-shadow: 0 8px 20px rgba(37, 99, 235, .22);
	color: #ffffff;
	cursor: pointer;
	font-size: 15px;
	font-weight: 700;
	min-width: 190px;
	padding: 15px 28px;
	transition: transform ease .2s, box-shadow ease .2s;
}

.customer-use-button:hover {
	box-shadow: 0 11px 25px rgba(37, 99, 235, .3);
	transform: translateY(-1px);
}

.customer-use-button:disabled {
	cursor: not-allowed;
	opacity: .55;
	transform: none;
}

.customer-alert {
	border: 1px solid transparent;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 18px;
	padding: 14px 18px;
}

.customer-alert-success {
	background-color: #ecfdf5;
	border-color: #a7f3d0;
	color: #047857;
}

.customer-alert-error {
	background-color: #fef2f2;
	border-color: #fecaca;
	color: #b91c1c;
}

.discount-modal .modal-content {
	border: 0;
	border-radius: 22px;
	box-shadow: 0 25px 70px rgba(15, 23, 42, .2);
	overflow: hidden;
}

.discount-modal .modal-header {
	align-items: flex-start;
	border-bottom: 1px solid #edf2fa;
	padding: 24px 26px 20px;
}

.discount-modal-label {
	color: #2563eb;
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1px;
	margin-bottom: 5px;
	text-transform: uppercase;
}

.discount-modal .modal-title {
	color: #172033;
	font-size: 22px;
	font-weight: 700;
}

.discount-modal .modal-body {
	padding: 24px 26px 8px;
}

.discount-summary {
	align-items: center;
	background: linear-gradient(120deg, #edf3ff, #f5f8ff);
	border: 1px solid #dce7fb;
	border-radius: 14px;
	display: flex;
	justify-content: space-between;
	margin-bottom: 22px;
	padding: 14px 17px;
}

.discount-summary span {
	color: #64748b;
	font-size: 13px;
	font-weight: 600;
}

.discount-summary strong {
	color: #1748b5;
	font-size: 21px;
}

.discount-field {
	margin-bottom: 18px;
}

.discount-field label {
	color: #344054;
	display: block;
	font-size: 13px;
	font-weight: 650;
	margin-bottom: 8px;
}

.discount-field input {
	background-color: #ffffff;
	border: 1px solid #d7e3f5;
	border-radius: 11px;
	color: #172033;
	font-size: 15px;
	height: 52px;
	outline: none;
	padding: 0 15px;
	transition: border-color ease .2s, box-shadow ease .2s;
	width: 100%;
}

.discount-field input:focus {
	border-color: #2563eb;
	box-shadow: 0 0 0 4px rgba(37, 99, 235, .1);
}

.discount-input-wrap {
	position: relative;
}

.discount-input-wrap input {
	padding-right: 64px;
}

.discount-input-wrap span {
	color: #64748b;
	font-size: 12px;
	font-weight: 700;
	position: absolute;
	right: 16px;
	top: 17px;
}

.discount-modal .modal-footer {
	border-top: 0;
	gap: 10px;
	padding: 8px 26px 26px;
}

.discount-cancel-button,
.discount-submit-button {
	border: 0;
	border-radius: 11px;
	font-size: 14px;
	font-weight: 700;
	min-width: 120px;
	padding: 13px 20px;
}

.discount-cancel-button {
	background-color: #eef2f7;
	color: #526078;
}

.discount-submit-button {
	background: linear-gradient(135deg, #2563eb, #1748b5);
	color: #ffffff;
}

.customer-not-found {
	background-color: #ffffff;
	border: 1px solid #e2e8f2;
	border-radius: 24px;
	box-shadow: 0 20px 60px rgba(30, 41, 59, .1);
	margin: 0 auto;
	max-width: 480px;
	padding: 48px 38px;
	text-align: center;
}

.customer-not-found-icon {
	align-items: center;
	background-color: #edf3ff;
	border-radius: 50%;
	color: #2563eb;
	display: flex;
	font-size: 28px;
	font-weight: 700;
	height: 72px;
	justify-content: center;
	margin: 0 auto 22px;
	width: 72px;
}

.customer-not-found h2 {
	color: #172033;
	font-size: 26px;
	margin: 0 0 10px;
}

.customer-not-found p {
	color: #7b879b;
	font-size: 14px;
	margin: 0 0 28px;
}

.customer-search-again {
	background: linear-gradient(135deg, #2563eb, #1748b5);
	border-radius: 12px;
	box-shadow: 0 8px 20px rgba(37, 99, 235, .2);
	color: #ffffff;
	display: inline-block;
	font-size: 15px;
	font-weight: 700;
	min-width: 190px;
	padding: 15px 26px;
	text-decoration: none;
	transition: transform ease .2s, box-shadow ease .2s;
}

.customer-search-again:hover {
	box-shadow: 0 11px 25px rgba(37, 99, 235, .28);
	color: #ffffff;
	transform: translateY(-1px);
}

@media only screen and (max-width: 767px) {
	.public-header {
		height: 88px;
	}

	.public-header-inner {
		grid-template-columns: 76px 1fr 76px;
		padding: 0 16px;
	}

	.public-logo {
		height: 68px;
		width: 76px;
	}

	.public-header h1 {
		font-size: 17px;
	}

	.public-main {
		min-height: calc(100vh - 88px);
		padding: 20px;
	}

	.public-search-form {
		background-color: #ffffff;
		border: 1px solid #e2e8f2;
		border-radius: 18px;
		box-shadow: 0 18px 48px rgba(30, 41, 59, .1);
		flex-direction: column;
		gap: 14px;
		padding: 18px;
	}

	.public-search-input {
		flex: 0 0 auto;
		height: 58px;
		width: 100%;
	}

	.public-search-button {
		border: 0;
		height: 58px;
		width: 100%;
	}

	.company-card-header {
		align-items: center;
		gap: 14px;
		min-height: 118px;
		padding: 20px;
	}

	.company-logo-wrap {
		flex-basis: 72px;
		height: 70px;
	}

	.company-title {
		width: auto;
	}

	.company-title h2 {
		font-size: 18px;
	}

	.company-deal {
		border-radius: 12px;
		min-height: 62px;
		min-width: 70px;
		padding: 8px;
	}

	.company-deal strong {
		font-size: 20px;
	}

	.customer-card-body {
		grid-template-columns: 1fr;
		padding: 28px 20px 24px;
	}

	.customer-heading h1 {
		font-size: 22px;
	}

	.customer-info-grid {
		grid-template-columns: 1fr;
	}

	.customer-qr {
		margin-top: 2px;
	}

	.customer-card-footer {
		align-items: stretch;
		flex-direction: column;
		gap: 15px;
		padding: 20px;
		text-align: center;
	}

	.customer-use-button {
		width: 100%;
	}

	.discount-modal .modal-header,
	.discount-modal .modal-body {
		padding-left: 20px;
		padding-right: 20px;
	}

	.discount-modal .modal-footer {
		padding-left: 20px;
		padding-right: 20px;
	}

	.discount-cancel-button,
	.discount-submit-button {
		flex: 1;
	}

	.customer-not-found {
		padding: 38px 24px;
	}
}

@media only screen and (max-width: 480px) {
	.public-main {
		padding-left: 14px;
		padding-right: 14px;
	}

	.public-search-form {
		border-radius: 16px;
		padding: 14px;
	}

	.customer-main {
		padding: 20px 14px 28px;
	}

	.customer-card {
		border-radius: 20px;
	}

	.company-card-header {
		align-items: flex-start;
		flex-wrap: wrap;
	}

	.company-title {
		padding-top: 5px;
		width: calc(100% - 86px);
	}

	.company-deal {
		flex-direction: row;
		gap: 5px;
		margin-left: 86px;
		min-height: 0;
		padding: 9px 14px;
	}

	.company-deal span {
		margin-top: 0;
	}

	.customer-heading {
		align-items: flex-start;
	}

	.customer-avatar {
		flex-basis: 58px;
		height: 58px;
	}

	.customer-heading h1 {
		font-size: 21px;
	}

	.customer-info-grid {
		grid-template-columns: 1fr;
	}
}
