.epic-referral-account {
	--epic-referral-accent: #9a4218;
	--epic-referral-accent-2: #b56438;
	--epic-referral-border: #e3c7b9;
	--epic-referral-ink: #161616;
	--epic-referral-muted: #5f5f5f;
	--epic-referral-soft: #fff7f2;
	box-sizing: border-box;
	color: var(--epic-referral-ink);
	font-family: inherit;
	max-width: 100%;
}

.epic-referral-account *,
.epic-referral-account *::before,
.epic-referral-account *::after {
	box-sizing: border-box;
}

.epic-referral-header {
	align-items: flex-start;
	display: flex;
	gap: 16px;
	justify-content: space-between;
	margin: 0 0 24px;
}

.epic-referral-header h2 {
	font-size: clamp(28px, 4vw, 40px);
	font-weight: 800;
	letter-spacing: 0;
	line-height: 1.1;
	margin: 0;
}

.epic-referral-header p {
	color: var(--epic-referral-muted);
	font-size: 16px;
	line-height: 1.45;
	margin: 8px 0 0;
}

.epic-referral-period {
	border: 1px solid var(--epic-referral-border);
	border-radius: 999px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	padding: 12px 18px;
	white-space: nowrap;
}

.epic-referral-summary {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 0 0 24px;
}

.epic-referral-summary-card,
.epic-referral-panel {
	background: #ffffff;
	border: 1px solid var(--epic-referral-border);
	border-radius: 8px;
	box-shadow: 0 2px 7px rgb(22 22 22 / 5%);
}

.epic-referral-summary-card {
	min-height: 132px;
	overflow: hidden;
	padding: 18px;
	position: relative;
	transition: box-shadow .2s ease, transform .2s ease;
}

.epic-referral-summary-card::before {
	background: var(--epic-referral-accent);
	content: "";
	height: 3px;
	left: 0;
	position: absolute;
	right: 0;
	top: 0;
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform .24s ease;
}

.epic-referral-summary-card:hover {
	box-shadow: 0 8px 18px rgb(22 22 22 / 10%);
	transform: translateY(-4px);
}

.epic-referral-summary-card:hover::before {
	transform: scaleX(1);
}

.epic-referral-card-top {
	margin: 0 0 18px;
}

.epic-referral-card-top span {
	color: #3f3f3f;
	display: block;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .04em;
	line-height: 1.3;
	text-transform: uppercase;
}

.epic-referral-summary-card strong {
	display: block;
	font-size: clamp(28px, 4vw, 38px);
	font-weight: 800;
	letter-spacing: 0;
	line-height: 1.05;
	margin: 0 0 10px;
	overflow-wrap: anywhere;
}

.epic-referral-summary-card small {
	color: #167a34;
	display: block;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.45;
}

.epic-referral-summary-pending small {
	color: #c95b00;
}

.epic-referral-summary-failed small {
	color: #b42318;
}

.epic-referral-grid {
	display: grid;
	gap: 20px;
	grid-template-columns: 1fr;
	margin-bottom: 26px;
}

.epic-referral-panel > header {
	align-items: center;
	border-bottom: 1px solid var(--epic-referral-border);
	display: flex;
	gap: 14px;
	justify-content: space-between;
	padding: 20px 22px;
}

.epic-referral-panel h3 {
	font-size: 23px;
	font-weight: 800;
	line-height: 1.2;
	margin: 0;
}

.epic-referral-panel-body {
	display: block;
	padding: 24px 22px;
}

.epic-referral-share-copy p {
	color: var(--epic-referral-muted);
	font-size: 15px;
	line-height: 1.55;
	margin: 14px 0 22px;
	max-width: 620px;
}

.epic-referral-code-row {
	align-items: flex-end;
	display: flex;
	gap: 12px;
	max-width: 680px;
}

.epic-referral-code-row label {
	border: 1px solid var(--epic-referral-border);
	border-radius: 7px;
	display: block;
	flex: 1 1 auto;
	min-width: 0;
	padding: 12px 14px;
}

.epic-referral-code-row span {
	color: var(--epic-referral-muted);
	display: block;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .06em;
	margin-bottom: 7px;
	text-transform: uppercase;
}

.epic-referral-code-row input {
	background: transparent;
	border: 0;
	color: var(--epic-referral-accent);
	font-size: clamp(13px, 2vw, 16px);
	font-weight: 800;
	letter-spacing: 0;
	line-height: 1.2;
	min-width: 0;
	padding: 0;
	width: 100%;
}

.epic-referral-code-row input:focus {
	box-shadow: none;
	outline: 0;
}

.epic-referral-copy {
    align-items: center !important;
    background: var(--epic-referral-accent-2);
    border: 0;
    border-radius: 5px !important;
    color: #ffffff !important;
    cursor: pointer !important;
    display: inline-flex !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    justify-content: center !important;
    line-height: 1 !important;
    min-height: 48px !important;
    padding: 0 16px !important;
    text-transform: uppercase;
    white-space: nowrap !important;
}

.epic-referral-qr-button,
.epic-referral-qr-download {
	align-items: center !important;
    background: var(--epic-referral-accent-2);
    border: 0;
    border-radius: 5px !important;
    color: #ffffff !important;
    cursor: pointer !important;
    display: inline-flex !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    justify-content: center !important;
    line-height: 1 !important;
    min-height: 48px !important;
    padding: 0 16px !important;
    text-transform: uppercase;
    white-space: nowrap !important;
}

.epic-referral-qr-button:hover,
.epic-referral-qr-download:hover {
	background: var(--epic-referral-soft);
}

.epic-referral-copy.is-copied,
.epic-referral-other-link button.is-copied,
.epic-referral-share-actions button.is-copied {
	background: #166534;
	border-color: #166534;
	color: #ffffff;
}

.epic-referral-primary-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
}

.epic-referral-primary-meta span {
	background: #f5f5f5;
	border-radius: 999px;
	color: var(--epic-referral-muted);
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	padding: 8px 10px;
}

.epic-referral-share-actions {
	align-items: center;
	border-top: 1px solid var(--epic-referral-border);
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding: 14px 22px;
}

.epic-referral-share-actions > span {
	color: var(--epic-referral-muted);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .05em;
	margin-right: auto;
	text-transform: uppercase;
}

.epic-referral-share-actions a,
.epic-referral-share-actions button {
	background: #ffffff;
	border: 1px solid var(--epic-referral-border);
	border-radius: 999px;
	color: var(--epic-referral-accent);
	cursor: pointer;
	font-size: 15px;
	font-weight: 800;
	line-height: 1;
	padding: 0;
	text-decoration: none;
}

.epic-referral-share-icon {
	align-items: center;
	display: inline-flex;
	height: 38px;
	justify-content: center;
	width: 38px;
}

.epic-referral-share-icon i {
	line-height: 1;
}

.epic-referral-other-links {
	border-top: 1px solid var(--epic-referral-border);
	padding: 18px 22px;
}

.epic-referral-other-links h4 {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .06em;
	margin: 0 0 10px;
	text-transform: uppercase;
}

.epic-referral-other-link {
	align-items: center;
	display: flex;
	gap: 12px;
	justify-content: space-between;
	padding: 9px 0;
}

.epic-referral-other-link span {
	line-height: 1.35;
	min-width: 0;
}

.epic-referral-other-link button {
	background: transparent;
	border: 1px solid var(--epic-referral-accent);
	border-radius: 999px;
	color: var(--epic-referral-accent);
	cursor: pointer;
	font-size: 12px;
	font-weight: 800;
	padding: 7px 12px;
}

.epic-referral-activity-list {
	display: grid;
	gap: 14px;
	padding: 20px 22px;
}

.epic-referral-activity-item {
	align-items: start;
	display: grid;
	gap: 12px;
	grid-template-columns: 12px minmax(0, 1fr) auto;
}

.epic-referral-activity-icon {
	background: #d9d9d9;
	border-radius: 50%;
	display: block;
	height: 10px;
	margin-top: 7px;
	width: 10px;
}

.epic-referral-activity-completed {
	background: #167a34;
}

.epic-referral-activity-pending {
	background: #c95b00;
}

.epic-referral-activity-failed {
	background: #b42318;
}

.epic-referral-activity-open {
	background: var(--epic-referral-accent);
}

.epic-referral-activity-item strong {
	display: block;
	font-size: 14px;
	line-height: 1.35;
	margin-bottom: 5px;
}

.epic-referral-activity-item span {
	color: var(--epic-referral-muted);
	display: block;
	font-size: 12px;
	display: flex;
    align-items: center;
}

.epic-referral-activity-amount {
    align-self: start;
    background: #d8f8df;
    border-radius: 12px;
    color: #167a34;
    display: inline-block;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 0;
    padding: 10px 20px 7px;
    text-align: center;
    white-space: nowrap;
}

.epic-referral-empty {
	color: var(--epic-referral-muted);
	margin: 0;
	padding: 22px;
}

.epic-referral-modal-open {
	overflow: hidden;
}

.epic-referral-qr-modal {
	align-items: center;
	display: flex;
	inset: 0;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	position: fixed;
	transition: opacity .22s ease;
	z-index: 99999;
}

.epic-referral-qr-modal.is-open {
	opacity: 1;
	pointer-events: auto;
}

.epic-referral-qr-backdrop {
	background: rgb(22 22 22 / 58%);
	inset: 0;
	position: absolute;
}

.epic-referral-qr-dialog {
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	max-width: min(740px, calc(100vw - 32px));
	opacity: 0;
	padding: 0;
	position: relative;
	transform: translateY(18px) scale(.96);
	transition: opacity .22s ease, transform .22s ease;
	width: 100%;
	z-index: 1;
}

.epic-referral-qr-dialog:focus {
	outline: 0;
}

.epic-referral-qr-modal.is-open .epic-referral-qr-dialog {
	opacity: 1;
	transform: translateY(0) scale(1);
}

.epic-referral-qr-modal.is-generated .epic-referral-qr-dialog {
	transform: none;
}

.epic-referral-qr-close {
    align-items: center;
    background: var(--epic-referral-accent-2) !important;
    border: 0 !important;
    border-radius: 20px !important;
    color: #ffffff !important;
    cursor: pointer !important;
    display: inline-flex !important;
    height: 35px;
    justify-content: center;
    position: absolute;
    right: 5px;
    top: 4px;
    width: 36px !important;
    z-index: 30;
    padding: 0px !important;
}

.epic-referral-qr-stage {
	min-height: 560px;
	overflow: visible;
	padding-top: 0;
	position: relative;
}

.epic-referral-printer {
	margin: 0 auto;
	position: relative;
	width: min(540px, 100%);
}

.epic-referral-printer-body {
	align-items: center;
	background: #f8f9fa;
	border: 1px solid #f0e2db;
	border-radius: 24px;
	box-shadow: 0 14px 34px rgb(22 22 22 / 16%);
	display: flex;
	flex-direction: column;
	min-height: 184px;
	padding: 24px;
	position: relative;
	z-index: 10;
}

.epic-referral-status-led {
	align-self: flex-start;
	background: #15d65d;
	border-radius: 50%;
	box-shadow: 0 0 0 4px rgb(21 214 93 / 12%);
	height: 8px;
	margin-bottom: 12px;
	width: 8px;
}

.epic-referral-printer-slot-wrapper {
	background: #dedede;
	border-radius: 999px;
	box-sizing: border-box;
	height: 17px;
	left: 24px;
	margin-bottom: 28px;
	padding: 3px;
	position: absolute;
	right: 24px;
	top: 48px;
	width: auto;
	z-index: 20;
}

.epic-referral-printer-slot-darkness {
	background: #1a1a1a;
	border-radius: 999px;
	height: 100%;
	overflow: hidden;
	position: relative;
	width: 100%;
}

.epic-referral-printer-slot-darkness::after {
	background: linear-gradient(90deg, transparent, rgb(255 255 255 / 42%), transparent);
	content: "";
	height: 100%;
	left: 0;
	position: absolute;
	top: 0;
	transform: translateX(-100%);
	width: 52%;
}

.epic-referral-qr-modal.is-generating .epic-referral-printer-slot-darkness::after {
	animation: epic-referral-slot-scan .8s ease-in-out .18s both;
}

.epic-referral-printer-mark {
	align-items: center;
	background: var(--epic-referral-accent-2);
	border-radius: 50%;
	box-shadow: 0 6px 20px rgb(181 100 56 / 28%);
	color: #ffffff;
	display: inline-flex;
	height: 70px;
	justify-content: center;
	margin: 62px 0 10px;
	width: 70px;
}

.epic-referral-printer-mark i {
	font-size: 26px;
}

.epic-referral-printer-label {
	color: var(--epic-referral-muted);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.epic-referral-ticket-output-window {
	height: 470px;
	left: 28px;
	overflow: hidden;
	position: absolute;
	right: 28px;
	top: 57px;
	z-index: 9999;
	border-radius: 0px 0px 15px 15px;
}

.epic-referral-qr-ticket {
	background: #af643f;
	border-radius: 0px 0px 15px 15px;
	box-shadow: 0 10px 30px rgb(22 22 22 / 20%);
	color: #ffffff;
	margin: 0 auto;
	opacity: 1;
	padding: 22px 18px;
	pointer-events: auto;
	position: relative;
	text-align: center;
	transform: translateY(-100%);
	will-change: transform;
	width: 100%;
	-webkit-font-smoothing: antialiased;
	text-rendering: geometricPrecision;
}

.epic-referral-qr-modal.is-generated .epic-referral-qr-ticket {
	transform: none;
	will-change: auto;
}

.epic-referral-ticket-brand {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .16em;
	margin-bottom: 10px;
	opacity: .75;
	text-transform: uppercase;
}

.epic-referral-qr-dialog h3 {
	color: #ffffff;
	font-size: 21px;
	font-weight: 800;
	line-height: 1.15;
	margin: 0;
}

.epic-referral-qr-dialog p {
	color: rgb(255 255 255 / 82%);
	font-size: 13px;
	line-height: 1.4;
	margin: 5px 0 0;
}

.epic-referral-qr-preview {
	align-items: center;
	background: #ffffff;
	border: 0;
	border-radius: 12px;
	display: flex;
	justify-content: center;
	margin: 16px auto 14px;
	min-height: 178px;
	padding: 10px;
	width: 178px;
}

.epic-referral-qr-preview img,
.epic-referral-qr-preview canvas {
	display: block;
	height: 158px;
	width: 158px;
}

.epic-referral-ticket-help {
	font-weight: 700;
	margin: 0 0 12px !important;
}

.epic-referral-qr-dialog input {
	background: rgb(255 255 255 / 92%);
	border: 0;
	border-radius: 10px;
	color: var(--epic-referral-accent);
	font-size: 13px;
	font-weight: 700;
	margin: 0 0 14px;
	min-height: 42px;
	width: 100%;
}

.epic-referral-qr-actions {
	display: grid;
	gap: 10px;
	grid-template-columns: 1fr 1fr;
}

.epic-referral-qr-ticket .epic-referral-copy,
.epic-referral-qr-ticket .epic-referral-qr-download {
	background: rgb(255 255 255 / 18%);
	border: 1px solid rgb(255 255 255 / 42%);
	color: #ffffff;
	min-height: 42px;
	padding: 0 12px !important;
}

.epic-referral-qr-ticket .epic-referral-qr-action-icon {
	align-items: center;
	display: inline-flex !important;
	font-size: 18px !important;
	justify-content: center;
	line-height: 1 !important;
	text-indent: 0;
}

.epic-referral-qr-ticket .epic-referral-qr-action-icon i {
	line-height: 1;
}

.epic-referral-qr-ticket .epic-referral-copy:hover,
.epic-referral-qr-ticket .epic-referral-qr-download:hover {
	background: rgb(255 255 255 / 28%);
}

@keyframes epic-referral-slot-scan {
	0% {
		transform: translateX(-110%);
	}

	100% {
		transform: translateX(220%);
	}
}

.flexing {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

input[type=date], input[type=email], input[type=number], input[type=password], input[type=search], input[type=tel], input[type=text], input[type=url], select, textarea { padding: 0 1rem !important;
}
button.epic-referral-copy {
    padding: 0 30px !important;
    display: block !important;
    font-size: 16px !important;
    line-height: 10px !important;
}
a.epic-referral-share-icon { text-decoration: none !important; }
a.epic-referral-share-icon:hover { background-color: var(--epic-referral-accent); color: #ffffff; }
@media (max-width: 900px) {
	.epic-referral-summary {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.epic-referral-header,
	.epic-referral-panel > header {
		align-items: stretch;
		flex-direction: column;
	}

	.epic-referral-summary,
	.epic-referral-code-row {
		display: grid;
		grid-template-columns: 1fr;
	}

	.epic-referral-copy {
		width: 100%;
	}

	.epic-referral-qr-button {
		width: 100%;
	}

	.epic-referral-qr-actions {
		grid-template-columns: 1fr;
	}

	.epic-referral-share-actions > span {
		flex-basis: 100%;
		margin-right: 0;
	}
	.epic-referral-ticket-output-window { height: 533px; }
}

.epic-referral-redemptions {
	margin-top: 28px;
}

.epic-referral-redemption-list {
	display: grid;
	gap: 12px;
}

.epic-referral-redemption {
	align-items: center;
	border-bottom: 1px solid var(--epic-referral-border);
	display: flex;
	gap: 18px;
	justify-content: space-between;
	padding: 18px 24px;
}

.epic-referral-redemption:last-child {
	border-bottom: 0;
}

.epic-referral-redemption strong,
.epic-referral-redemption span,
.epic-referral-redemption small {
	display: block;
}

.epic-referral-redemption strong {
	font-size: 16px;
	margin-bottom: 6px;
}

.epic-referral-redemption span {
	color: var(--epic-referral-accent);
	font-weight: 700;
	margin-bottom: 4px;
}

.epic-referral-redemption .epic-referral-redemption-converted {
	color: var(--epic-referral-muted);
	font-size: 13px;
	font-weight: 600;
}

.epic-referral-redemption .epic-referral-redemption-amount {
	color: var(--epic-referral-accent);
	font-size: 15px;
}

.epic-referral-redemption small {
	color: var(--epic-referral-muted);
}

.epic-referral-redemption-form {
	flex: 0 0 auto;
}

.epic-referral-redemption-request {
	background: var(--epic-referral-accent);
	border: 1px solid var(--epic-referral-accent);
	border-radius: 999px;
	color: #ffffff;
	cursor: pointer;
	font-weight: 700;
	min-height: 42px;
	padding: 0 22px;
}

.epic-referral-redemption-request:hover {
	background: #7d3513;
}

@media (max-width: 640px) {
	.epic-referral-redemption {
		align-items: stretch;
		flex-direction: column;
	}
}
