/* Sign in modal — Shop Pay identity sheet layout */
body.teer-modal-open {
	overflow: hidden;
}

#teer-auth-modal {
	--teer-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
	--teer-text: #000000;
	--teer-subdued: #707070;
	--teer-border: #dedede;
	--teer-accent: #005bd1;
	--teer-accent-hover: #00459e;
	--teer-shop: #5a31f4;
	font-family: var(--teer-font);
	font-size: 14px;
	line-height: 1.35;
	color: var(--teer-text);
	box-sizing: border-box;
}

#teer-auth-modal *,
#teer-auth-modal *::before,
#teer-auth-modal *::after {
	box-sizing: border-box;
}

#teer-auth-modal.teer-auth-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

#teer-auth-modal[hidden] {
	display: none !important;
}

#teer-auth-modal .teer-auth-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
}

#teer-auth-modal .teer-auth-dialog {
	position: relative;
	z-index: 1;
	width: min(100%, 440px);
	background: #ffffff;
	border-radius: 16px;
	padding: 24px;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
}

#teer-auth-modal .teer-auth-close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: auto;
	height: auto;
	margin: 0;
	padding: 4px;
	border: 0;
	background: transparent;
	color: var(--teer-subdued);
	font-size: 24px;
	font-weight: 400;
	line-height: 1;
	cursor: pointer;
}

#teer-auth-modal .teer-auth-close:hover {
	color: #000000;
}

#teer-auth-modal .teer-auth-step[hidden] {
	display: none !important;
}

#teer-auth-modal .teer-auth-title {
	margin: 0 0 20px;
	padding-right: 28px;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--teer-text);
	text-align: left;
}

#teer-auth-modal .teer-auth-message {
	margin: 0 0 12px;
	padding: 10px 12px;
	border-radius: 8px;
	font-size: 14px;
	line-height: 1.4;
}

#teer-auth-modal .teer-auth-message[hidden] {
	display: none !important;
}

#teer-auth-modal .teer-auth-message.is-error {
	background: #fdecec;
	color: #d91c1c;
}

#teer-auth-modal .teer-auth-message.is-success {
	background: #ecfdf3;
	color: #067647;
}

#teer-auth-modal .teer-auth-shop-wrap[hidden],
#teer-auth-modal .teer-auth-or[hidden] {
	display: none !important;
}

#teer-auth-modal .teer-auth-shop-card {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	margin: 0 0 16px;
	padding: 10px 12px;
	border: 1px solid var(--teer-border);
	border-radius: 8px;
	background: #ffffff;
}

#teer-auth-modal .teer-auth-shop-card-main {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	text-align: left;
	cursor: pointer;
}

#teer-auth-modal .teer-auth-shop-card-main:hover .teer-auth-shop-card-title {
	color: var(--teer-accent);
}

#teer-auth-modal .teer-auth-shop-card-avatar {
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	border-radius: 999px;
	background: #f0f0f0;
	color: #666666;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

#teer-auth-modal .teer-auth-shop-card-body {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

#teer-auth-modal .teer-auth-shop-card-title {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--teer-text);
}

#teer-auth-modal .teer-auth-shop-card-email {
	font-size: 13px;
	line-height: 1.35;
	color: var(--teer-subdued);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

#teer-auth-modal .teer-auth-shop-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 22px;
	padding: 0 8px;
	border-radius: 4px;
	background: var(--teer-shop);
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	text-transform: lowercase;
}

#teer-auth-modal .teer-auth-shop-next-btn {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: #666666;
	cursor: pointer;
}

#teer-auth-modal .teer-auth-shop-next-btn[hidden] {
	display: none !important;
}

#teer-auth-modal .teer-auth-shop-next-btn:hover {
	color: var(--teer-accent);
}

#teer-auth-modal .teer-auth-or {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0 0 16px;
	color: var(--teer-subdued);
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
}

#teer-auth-modal .teer-auth-or::before,
#teer-auth-modal .teer-auth-or::after {
	content: "";
	flex: 1 1 auto;
	height: 1px;
	background: var(--teer-border);
}

#teer-auth-modal .teer-auth-email-row {
	position: relative;
	margin: 0 0 12px;
}

#teer-auth-modal .teer-auth-input {
	display: block;
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 12px 52px 12px 14px;
	border: 1px solid var(--teer-border);
	border-radius: 8px;
	background: #ffffff;
	color: var(--teer-text);
	font: inherit;
	font-size: 14px;
	line-height: 1.35;
	-webkit-appearance: none;
	appearance: none;
}

#teer-auth-modal .teer-auth-input::placeholder {
	color: var(--teer-subdued);
	opacity: 1;
}

#teer-auth-modal .teer-auth-input:focus {
	outline: 0;
	border-color: var(--teer-accent);
	box-shadow: 0 0 0 1px var(--teer-accent);
}

#teer-auth-modal .teer-auth-send {
	position: absolute;
	top: 50%;
	right: 6px;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: var(--teer-accent);
	color: #ffffff;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

#teer-auth-modal .teer-auth-send:hover {
	background: var(--teer-accent-hover);
}

#teer-auth-modal .teer-auth-send:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

#teer-auth-modal .teer-auth-check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0 0 16px;
	font-size: 14px;
	line-height: 1.4;
	color: var(--teer-text);
	cursor: pointer;
}

#teer-auth-modal .teer-auth-check input {
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	margin: 2px 0 0;
}

#teer-auth-modal .teer-auth-legal {
	margin: 0;
	font-size: 12px;
	line-height: 1.5;
	color: var(--teer-subdued);
	text-align: center;
}

#teer-auth-modal .teer-auth-legal a {
	color: var(--teer-accent);
	text-decoration: none;
}

#teer-auth-modal .teer-auth-legal a:hover {
	text-decoration: underline;
}

#teer-auth-modal .teer-auth-switch {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 0 0 16px;
	font-size: 14px;
	color: var(--teer-subdued);
}

#teer-auth-modal .teer-auth-link {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--teer-accent);
	font: inherit;
	font-size: 14px;
	cursor: pointer;
}

#teer-auth-modal .teer-auth-subtitle {
	margin: 0 0 16px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--teer-subdued);
}

#teer-auth-modal .teer-auth-subtitle strong {
	color: var(--teer-text);
	font-weight: 600;
}

#teer-auth-modal .teer-auth-code-wrap {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 8px;
	margin-bottom: 12px;
}

#teer-auth-modal .teer-auth-code-digit {
	width: 100%;
	height: 48px;
	margin: 0;
	padding: 0;
	border: 1px solid var(--teer-border);
	border-radius: 8px;
	background: #ffffff;
	text-align: center;
	font: inherit;
	font-size: 20px;
	font-weight: 700;
}

#teer-auth-modal .teer-auth-code-digit:focus {
	outline: 0;
	border-color: var(--teer-accent);
	box-shadow: 0 0 0 1px var(--teer-accent);
}

#teer-auth-modal .teer-auth-resend {
	display: block;
	width: 100%;
	min-height: 44px;
	margin: 0;
	padding: 10px 16px;
	border: 1px solid var(--teer-border);
	border-radius: 8px;
	background: #ffffff;
	color: var(--teer-subdued);
	font: inherit;
	font-size: 14px;
	cursor: pointer;
}

#teer-auth-modal .teer-auth-resend:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

#teer-auth-modal .teer-auth-change-email {
	display: inline-block;
	margin-top: 12px;
}
