:root {
	--epd-order-accent: #ff5b35;
	--epd-order-accent-dark: #ed4520;
	--epd-order-ink: #17212b;
	--epd-order-muted: #697580;
	--epd-order-line: #e8ecef;
	--epd-order-soft: #f6f8f9;
}

html.epd-order-lookup-open,
html.epd-order-lookup-open body {
	overflow: hidden;
}

.epd-order-entry {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	min-height: 54px;
	margin: 10px 0 0;
	padding: 9px 12px;
	border: 1px solid #e4e8eb;
	border-radius: 5px;
	background: #fff;
	color: var(--epd-order-ink);
	box-shadow: 0 5px 18px rgba(24, 34, 44, .055);
	cursor: pointer;
	font: inherit;
	line-height: 1.2;
	text-align: left;
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.epd-order-entry:hover,
.epd-order-entry:focus-visible {
	border-color: rgba(255, 91, 53, .58);
	box-shadow: 0 8px 22px rgba(255, 91, 53, .12);
	outline: none;
	transform: translateY(-1px);
}

.epd-order-entry__icon {
	display: inline-grid;
	place-items: center;
	width: 34px;
	height: 34px;
	flex: 0 0 34px;
	border-radius: 50%;
	background: #fff0eb;
	color: var(--epd-order-accent);
}

.epd-order-entry__icon svg,
.epd-order-entry__chevron,
.epd-order-dialog svg {
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.epd-order-entry__icon svg {
	width: 19px;
	height: 19px;
}

.epd-order-entry__copy {
	display: grid;
	gap: 3px;
	min-width: 0;
	flex: 1;
}

.epd-order-entry__copy strong {
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .02em;
}

.epd-order-entry__copy small {
	color: #89939b;
	font-size: 11px;
}

.epd-order-entry__chevron {
	width: 17px;
	height: 17px;
	color: #b2bac0;
	transition: color .2s ease, transform .2s ease;
}

.epd-order-entry:hover .epd-order-entry__chevron {
	color: var(--epd-order-accent);
	transform: translateX(2px);
}

.epd-order-dialog[hidden] {
	display: none !important;
}

.epd-order-dialog {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: grid;
	place-items: center;
	padding: 24px;
}

.epd-order-dialog__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(16, 23, 30, .58);
	backdrop-filter: blur(4px);
	animation: epd-order-fade .18s ease-out both;
}

.epd-order-dialog__panel {
	position: relative;
	z-index: 1;
	width: min(100%, 560px);
	max-height: min(760px, calc(100vh - 48px));
	overflow: auto;
	padding: 31px;
	border: 1px solid rgba(255, 255, 255, .7);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 28px 80px rgba(10, 18, 25, .28);
	color: var(--epd-order-ink);
	font-family: inherit;
	outline: none;
	animation: epd-order-rise .22s cubic-bezier(.2, .8, .2, 1) both;
}

.epd-order-dialog__close {
	position: absolute;
	top: 16px;
	right: 16px;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--epd-order-soft);
	color: #7b858d;
	cursor: pointer;
}

.epd-order-dialog__close:hover,
.epd-order-dialog__close:focus-visible {
	background: #feeae4;
	color: var(--epd-order-accent-dark);
	outline: none;
}

.epd-order-dialog__close svg {
	width: 19px;
	height: 19px;
}

.epd-order-dialog__header {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding-right: 35px;
	margin-bottom: 20px;
}

.epd-order-dialog__mark {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	flex: 0 0 46px;
	border-radius: 12px;
	background: var(--epd-order-accent);
	color: #fff;
	box-shadow: 0 8px 20px rgba(255, 91, 53, .22);
}

.epd-order-dialog__mark svg {
	width: 23px;
	height: 23px;
}

.epd-order-dialog__eyebrow {
	margin: 0 0 3px !important;
	color: var(--epd-order-accent);
	font-size: 10px !important;
	font-weight: 700;
	letter-spacing: .16em;
}

.epd-order-dialog__header h2 {
	margin: 0 !important;
	color: var(--epd-order-ink);
	font-size: 23px;
	font-weight: 650;
	line-height: 1.3;
}

.epd-order-dialog__header p:last-child {
	margin: 5px 0 0 !important;
	color: var(--epd-order-muted);
	font-size: 13px;
	line-height: 1.65;
}

.epd-order-tabs {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-bottom: 22px;
	border-bottom: 1px solid var(--epd-order-line);
}

.epd-order-tab {
	position: relative;
	min-width: 0;
	padding: 12px 6px 13px;
	border: 0;
	background: transparent;
	color: #78838c;
	cursor: pointer;
	font: inherit;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.3;
	transition: color .18s ease, background .18s ease;
}

.epd-order-tab::after {
	position: absolute;
	right: 18%;
	bottom: -1px;
	left: 18%;
	height: 2px;
	border-radius: 2px 2px 0 0;
	background: var(--epd-order-accent);
	content: '';
	opacity: 0;
	transform: scaleX(.4);
	transition: opacity .18s ease, transform .18s ease;
}

.epd-order-tab:hover,
.epd-order-tab:focus-visible {
	background: #fff8f5;
	color: var(--epd-order-accent-dark);
	outline: none;
}

.epd-order-tab.is-active {
	color: var(--epd-order-accent-dark);
	font-weight: 650;
}

.epd-order-tab.is-active::after {
	opacity: 1;
	transform: scaleX(1);
}

.epd-order-tab:disabled {
	cursor: wait;
	opacity: .6;
}

.epd-order-form {
	display: grid;
	gap: 15px;
}

.epd-order-panel {
	min-height: 75px;
}

.epd-order-panel[hidden] {
	display: none !important;
}

.epd-order-field {
	display: grid;
	gap: 7px;
}

.epd-order-field label {
	color: #38434d;
	font-size: 13px;
	font-weight: 600;
}

.epd-order-field label span {
	margin-left: 5px;
	color: #9aa3aa;
	font-size: 11px;
	font-weight: 400;
}

.epd-order-field input {
	box-sizing: border-box;
	width: 100%;
	height: 46px;
	padding: 0 14px;
	border: 1px solid #dfe4e8;
	border-radius: 7px;
	background: #fff;
	color: var(--epd-order-ink);
	font: inherit;
	font-size: 14px;
	box-shadow: inset 0 1px 1px rgba(18, 27, 34, .025);
	transition: border-color .18s ease, box-shadow .18s ease;
}

.epd-order-field input::placeholder {
	color: #b0b7bd;
}

.epd-order-field input:focus {
	border-color: rgba(255, 91, 53, .7);
	box-shadow: 0 0 0 3px rgba(255, 91, 53, .11);
	outline: none;
}

.epd-order-browser-note {
	display: flex;
	align-items: center;
	gap: 13px;
	min-height: 75px;
	box-sizing: border-box;
	padding: 13px 15px;
	border: 1px solid #e5e9ec;
	border-radius: 8px;
	background: #f8fafb;
}

.epd-order-browser-note > span {
	display: grid;
	place-items: center;
	width: 39px;
	height: 39px;
	flex: 0 0 39px;
	border-radius: 10px;
	background: #e9f7f1;
	color: #168154;
}

.epd-order-browser-note svg {
	width: 21px;
	height: 21px;
}

.epd-order-browser-note strong {
	display: block;
	margin-bottom: 3px;
	color: #35414a;
	font-size: 13px;
	font-weight: 650;
}

.epd-order-browser-note p {
	margin: 0 !important;
	color: #7d8891;
	font-size: 11px;
	line-height: 1.55;
}

.epd-order-form__actions {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 3px;
}

.epd-order-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 44px;
	padding: 0 18px;
	border-radius: 7px;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.epd-order-submit {
	min-width: 138px;
	gap: 9px;
	border: 1px solid var(--epd-order-accent);
	background: var(--epd-order-accent);
	color: #fff;
	box-shadow: 0 8px 18px rgba(255, 91, 53, .2);
}

.epd-order-submit:hover,
.epd-order-submit:focus-visible {
	border-color: var(--epd-order-accent-dark);
	background: var(--epd-order-accent-dark);
	box-shadow: 0 10px 24px rgba(255, 91, 53, .25);
	outline: none;
	transform: translateY(-1px);
}

.epd-order-submit__arrow {
	width: 17px;
	height: 17px;
}

.epd-order-submit__spinner {
	display: none;
	width: 15px;
	height: 15px;
	border: 2px solid rgba(255, 255, 255, .45);
	border-top-color: #fff;
	border-radius: 50%;
	animation: epd-order-spin .7s linear infinite;
}

.epd-order-submit.is-loading .epd-order-submit__arrow {
	display: none;
}

.epd-order-submit.is-loading .epd-order-submit__spinner {
	display: inline-block;
}

.epd-order-submit:disabled {
	cursor: wait;
	opacity: .65;
	transform: none;
}

.epd-order-feedback {
	min-height: 20px;
	margin-top: 14px;
	font-size: 12px;
	line-height: 1.6;
}

.epd-order-feedback.is-loading {
	color: #68747e;
}

.epd-order-feedback.is-error {
	color: #c83921;
}

.epd-order-feedback.is-success {
	color: #168154;
}

.epd-order-results {
	display: grid;
	gap: 12px;
}

.epd-order-result {
	padding: 15px;
	border: 1px solid var(--epd-order-line);
	border-left: 3px solid var(--epd-order-accent);
	border-radius: 8px;
	background: #fbfcfc;
}

.epd-order-result__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.epd-order-result__head h3 {
	margin: 0 !important;
	color: var(--epd-order-ink);
	font-size: 14px;
	font-weight: 650;
	line-height: 1.45;
}

.epd-order-result__head p {
	margin: 3px 0 0 !important;
	color: #8a949c;
	font-size: 11px;
	word-break: break-all;
}

.epd-order-result__badge {
	flex: 0 0 auto;
	padding: 3px 7px;
	border-radius: 999px;
	background: #e8f7f0;
	color: #147850;
	font-size: 10px;
	font-weight: 600;
}

.epd-order-result__label {
	margin: 13px 0 6px !important;
	color: #65717a;
	font-size: 11px;
	font-weight: 600;
}

.epd-order-code {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 6px;
	padding: 8px 8px 8px 11px;
	border: 1px dashed #d8dee2;
	border-radius: 6px;
	background: #fff;
}

.epd-order-code code {
	min-width: 0;
	flex: 1;
	color: #25313a;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
	font-size: 12px;
	line-height: 1.55;
	word-break: break-all;
}

.epd-order-code button {
	flex: 0 0 auto;
	padding: 5px 9px;
	border: 0;
	border-radius: 5px;
	background: #f0f3f5;
	color: #5d6871;
	font: inherit;
	font-size: 11px;
	cursor: pointer;
}

.epd-order-code button:hover,
.epd-order-code button:focus-visible,
.epd-order-code button.is-copied {
	background: #fff0eb;
	color: var(--epd-order-accent-dark);
	outline: none;
}

.epd-order-dialog__privacy {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 20px 0 0 !important;
	color: #9aa3aa;
	font-size: 10px !important;
	line-height: 1.5;
}

.epd-order-dialog__privacy svg {
	width: 13px;
	height: 13px;
	flex: 0 0 auto;
}

body.night .epd-order-entry,
body.night .epd-order-dialog__panel,
body.night .epd-order-field input,
body.night .epd-order-browser-note,
body.night .epd-order-code {
	border-color: #414243;
	background: #232323;
	color: #e5e8ea;
}

body.night .epd-order-entry__copy strong,
body.night .epd-order-dialog__header h2,
body.night .epd-order-browser-note strong,
body.night .epd-order-result__head h3,
body.night .epd-order-code code {
	color: #eef0f1;
}

body.night .epd-order-dialog__close,
body.night .epd-order-code button {
	border-color: #414243;
	background: #2b2b2b;
	color: #aeb5ba;
}

body.night .epd-order-result {
	border-color: #414243;
	background: #2b2b2b;
}

body.night .epd-order-field label,
body.night .epd-order-browser-note p,
body.night .epd-order-dialog__header p:last-child {
	color: #aeb5ba;
}

body.night .epd-order-tabs {
	border-bottom-color: #414243;
}

body.night .epd-order-tab:hover,
body.night .epd-order-tab:focus-visible {
	background: #2b2b2b;
}

@keyframes epd-order-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes epd-order-rise {
	from { opacity: 0; transform: translateY(12px) scale(.985); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes epd-order-spin {
	to { transform: rotate(360deg); }
}

@media (max-width: 600px) {
	.epd-order-dialog {
		align-items: end;
		padding: 0;
	}

	.epd-order-dialog__panel {
		width: 100%;
		max-height: 92vh;
		padding: 25px 19px calc(20px + env(safe-area-inset-bottom));
		border-radius: 16px 16px 0 0;
	}

	.epd-order-dialog__header {
		gap: 11px;
		margin-bottom: 16px;
	}

	.epd-order-dialog__mark {
		width: 40px;
		height: 40px;
		flex-basis: 40px;
	}

	.epd-order-dialog__header h2 {
		font-size: 20px;
	}

	.epd-order-tabs {
		margin-bottom: 18px;
	}

	.epd-order-tab {
		padding: 11px 3px 12px;
		font-size: 11px;
	}

	.epd-order-form__actions {
		align-items: stretch;
		flex-direction: column;
	}

	.epd-order-submit,
	.epd-order-form__actions {
		width: 100%;
	}

	.epd-order-result__head {
		align-items: flex-start;
		flex-direction: column-reverse;
		gap: 7px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.epd-order-dialog__backdrop,
	.epd-order-dialog__panel,
	.epd-order-submit__spinner {
		animation: none;
	}

	.epd-order-entry,
	.epd-order-entry__chevron,
	.epd-order-submit,
	.epd-order-tab {
		transition: none;
	}
}
