.tlcsc-catalog-dialog button,
.tlcsc-catalog-dialog input,
.tlcsc-catalog-dialog select {
	font-family: inherit;
	font-size: 14px;
	line-height: 1.4;
	letter-spacing: normal;
	text-transform: none;
}

.tlcsc-share-button[aria-busy="true"],
.tlcsc-restore-form[aria-busy="true"] button {
	cursor: progress;
}

.tlcsc-dialog {
	box-sizing: border-box;
	width: min(32rem, calc(100% - 2rem));
	max-width: 100%;
	padding: 2rem;
	border: 0;
	border-radius: 0.25rem;
	box-shadow: 0 1rem 3rem rgb(0 0 0 / 25%);
}

.tlcsc-dialog::backdrop {
	background: rgb(0 0 0 / 60%);
}

.tlcsc-dialog__close-form {
	margin: 0;
}

.tlcsc-dialog__close {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	min-width: 2.75rem;
	min-height: 2.75rem;
	padding: 0;
	border: 0;
	background: transparent;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
}

.tlcsc-dialog__content,
.tlcsc-dialog__result,
.tlcsc-copy-link {
	display: grid;
	gap: 0.75rem;
}

.tlcsc-dialog input[type="url"],
.tlcsc-copy-link input[type="url"] {
	box-sizing: border-box;
	width: 100%;
}

.tlcsc-status:empty {
	display: none;
}

.tlcsc-share-fallback {
	clear: both;
	width: 100%;
	margin-block: 1.5rem;
}

.tlcsc-shared-cart,
.tlcsc-catalog-mount,
.tlcsc-catalog-dialog {
	box-sizing: border-box;
	max-width: 100%;
	font-family: inherit;
}

.tlcsc-catalog-mount {
	clear: both;
	width: 100%;
}

.tlcsc-shared-cart-state {
	padding: 1rem;
	border-left: 0.25rem solid currentcolor;
}

.tlcsc-shared-cart-state--error,
.tlcsc-product--unavailable {
	color: #6b1a16;
}

.tlcsc-table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.tlcsc-select-column {
	width: 3rem;
}

.tlcsc-products .tlcsc-product__details {
	min-width: 18rem;
}

.tlcsc-product__link {
	display: flex;
	gap: 0.875rem;
	align-items: center;
	color: inherit;
}

.tlcsc-product__image {
	box-sizing: border-box;
	width: 4.5rem;
	height: 4.5rem;
	flex: 0 0 4.5rem;
	padding: 0.25rem;
	border: 1px solid #e2e4e7;
	border-radius: 0.25rem;
	background: #fff;
	object-fit: contain;
}

.tlcsc-product__name {
	min-width: 0;
}

.tlcsc-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: space-between;
	margin-block: 1rem;
}

.tlcsc-copy-link {
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	margin-top: 1.5rem;
}

.tlcsc-copy-link label,
.tlcsc-copy-link .tlcsc-status {
	grid-column: 1 / -1;
}

@media (max-width: 36rem) {

	.tlcsc-products .tlcsc-product__details {
		min-width: 0;
	}

	.tlcsc-product__image {
		width: 3.75rem;
		height: 3.75rem;
		flex-basis: 3.75rem;
	}

	.tlcsc-actions,
	.tlcsc-copy-link {
		display: grid;
		grid-template-columns: 1fr;
	}

	.tlcsc-actions button,
	.tlcsc-copy-link button {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {

	.tlcsc-dialog {
		scroll-behavior: auto;
	}
}

.tlcsc-catalog-launcher {
	box-sizing: border-box;
	display: grid;
	gap: 0.75rem;
	margin-block: 1.5rem;
	padding: 1.25rem;
	border: 1px solid #dcdcde;
	border-left: 0.25rem solid #2271b1;
	border-radius: 0.25rem;
	background: #fff;
}

.tlcsc-catalog-launcher__title,
.tlcsc-catalog-launcher__description {
	margin: 0;
}

.tlcsc-catalog-launcher__button {
	justify-self: start;
}

.tlcsc-catalog-dialog {
	box-sizing: border-box;
	width: calc(100vw - 32px);
	max-width: calc(100vw - 32px);
	max-height: calc(100dvh - 32px);
	margin: auto;
	padding: 0;
	overflow: visible;
	border: 0;
	border-radius: 8px;
	background: transparent;
	box-shadow: 0 16px 64px rgb(0 0 0 / 25%);
}

.tlcsc-catalog-dialog::backdrop {
	background: rgb(0 0 0 / 62%);
}

.tlcsc-catalog-dialog__drawer {
	box-sizing: border-box;
	position: relative;
	max-height: calc(100dvh - 32px);
	overflow: auto;
	border-radius: inherit;
	background: #fff;
	color: #1e1e1e;
	overscroll-behavior: contain;
}

.tlcsc-catalog-dialog__header {
	position: sticky;
	z-index: 2;
	top: 0;
	padding: 22px 24px 14px;
	border-bottom: 1px solid #e2e4e7;
	background: #fff;
	box-shadow: 0 4px 12px rgb(0 0 0 / 4%);
}

.tlcsc-catalog-dialog__header > h2 {
	margin: 0;
	padding-right: 48px;
	color: #1e1e1e;
	font-size: clamp(24px, 2vw, 36px);
	font-weight: 600;
	line-height: 1.15;
}

.tlcsc-catalog-dialog__header > p {
	margin: 6px 0 0;
	color: #50575e;
	font-size: 14px;
	line-height: 1.5;
}

.tlcsc-catalog-dialog button.tlcsc-catalog-dialog__close {
	position: absolute;
	z-index: 3;
	top: 14px;
	right: 16px;
	display: grid;
	width: 40px;
	height: 40px;
	padding: 0;
	place-items: center;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: inherit;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.tlcsc-catalog-dialog button.tlcsc-catalog-dialog__close:hover,
.tlcsc-catalog-dialog button.tlcsc-catalog-dialog__close:focus-visible {
	background: #f0f0f1;
}

.tlcsc-catalog-search-form {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 10px;
	margin-block: 14px 6px;
}

.tlcsc-catalog-search-form input[type="search"] {
	box-sizing: border-box;
	width: 100%;
	min-height: 44px;
	padding-inline: 14px;
	font-size: 15px;
}

.tlcsc-catalog-dialog .tlcsc-catalog-search-form button[type="submit"] {
	min-height: 44px;
	padding-inline: 22px;
	white-space: nowrap;
}

.tlcsc-catalog-dialog__summary {
	display: flex;
	min-height: 24px;
	align-items: center;
	gap: 16px;
	justify-content: space-between;
}

.tlcsc-catalog-status {
	margin: 0;
	color: #3c434a;
	font-size: 13px;
	line-height: 1.4;
}

.tlcsc-catalog-dialog button.tlcsc-catalog-clear {
	min-width: 0;
	min-height: 0;
	padding: 2px 0;
	border: 0;
	background: transparent;
	color: #50575e;
	font-size: 12px;
	line-height: 1.4;
	text-decoration: underline;
	cursor: pointer;
}

.tlcsc-catalog-results {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 12px;
	padding: 16px 24px 24px;
}

.tlcsc-catalog-results[aria-busy="true"] {
	opacity: 0.65;
}

.tlcsc-catalog-card {
	display: grid;
	grid-template-columns: 120px minmax(0, 1fr) minmax(260px, 340px);
	align-items: start;
	gap: 20px;
	padding: 16px;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 1px 3px rgb(0 0 0 / 5%);
}

.tlcsc-catalog-card:focus-visible {
	outline: 3px solid #2271b1;
	outline-offset: 2px;
}

.tlcsc-catalog-card__visual {
	display: grid;
	align-self: center;
	place-items: center;
}

.tlcsc-catalog-card__image {
	display: block;
	width: 120px;
	height: 120px;
	object-fit: contain;
	border-radius: 6px;
	background: #f6f7f7;
}

.tlcsc-catalog-card__body {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 6px;
}

.tlcsc-catalog-card__title,
.tlcsc-catalog-card__sku,
.tlcsc-catalog-card__price,
.tlcsc-catalog-card__reason {
	margin: 0;
}

.tlcsc-catalog-card__title {
	font-size: clamp(16px, 1.2vw, 20px);
	font-weight: 600;
	line-height: 1.3;
}

.tlcsc-catalog-card__title a {
	color: inherit;
	text-decoration: none;
}

.tlcsc-catalog-card__title a:hover,
.tlcsc-catalog-card__title a:focus-visible {
	text-decoration: underline;
}

.tlcsc-catalog-card__sku {
	color: #646970;
	font-size: 13px;
	line-height: 1.4;
}

.tlcsc-catalog-card__price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
}

.tlcsc-catalog-card__price del {
	color: #757575;
	font-size: 13px;
	font-weight: 400;
}

.tlcsc-catalog-card__reason {
	display: flex;
	width: fit-content;
	max-width: 100%;
	align-items: flex-start;
	gap: 5px;
	padding: 4px 7px;
	border-left: 2px solid #72aee6;
	background: #f6f8fb;
	color: #50575e;
	font-size: 12px;
	line-height: 1.35;
}

.tlcsc-catalog-card__reason span {
	flex: 0 0 auto;
	color: #2271b1;
}

.tlcsc-catalog-card__purchase {
	display: grid;
	min-width: 0;
	align-self: stretch;
	gap: 10px;
	padding-left: 18px;
	border-left: 1px solid #e2e4e7;
}

.tlcsc-catalog-card__field,
.tlcsc-catalog-card__quantity {
	display: grid;
	gap: 4px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.35;
}

.tlcsc-catalog-card__field select {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	min-height: 40px;
	font-size: 13px;
}

.tlcsc-catalog-card__actions {
	display: flex;
	align-items: end;
	gap: 10px;
	margin-top: auto;
}

.tlcsc-catalog-card__quantity {
	flex: 0 0 72px;
}

.tlcsc-catalog-card__quantity input {
	box-sizing: border-box;
	width: 100%;
	min-height: 40px;
	font-size: 14px;
}

.tlcsc-catalog-card__add,
.tlcsc-catalog-card__configure {
	flex: 1 1 auto;
	min-height: 40px;
	padding-inline: 14px;
	font-size: 14px;
	text-align: center;
	white-space: nowrap;
}

.tlcsc-catalog-card__add[aria-busy="true"] {
	cursor: progress;
}

.tlcsc-catalog-launcher .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 1024px) {

	.tlcsc-catalog-card {
		grid-template-columns: 96px minmax(0, 1fr);
	}

	.tlcsc-catalog-card__image {
		width: 96px;
		height: 96px;
	}

	.tlcsc-catalog-card__purchase {
		grid-column: 2;
		padding-top: 12px;
		padding-left: 0;
		border-top: 1px solid #e2e4e7;
		border-left: 0;
	}
}

@media (max-width: 768px) {

	.tlcsc-catalog-dialog {
		inset: 0;
		width: 100vw;
		max-width: 100vw;
		height: 100dvh;
		max-height: 100dvh;
		margin: 0;
		border-radius: 0;
	}

	.tlcsc-catalog-dialog__drawer {
		height: 100%;
		max-height: 100dvh;
		border-radius: 0;
	}

	.tlcsc-catalog-dialog__header {
		padding: 18px 16px 12px;
	}

	.tlcsc-catalog-dialog__header > h2 {
		font-size: 24px;
	}

	.tlcsc-catalog-dialog__header > p {
		padding-right: 28px;
		font-size: 13px;
	}

	.tlcsc-catalog-results {
		padding: 12px 16px 20px;
	}

	.tlcsc-catalog-search-form {
		grid-template-columns: 1fr;
	}

	.tlcsc-catalog-dialog .tlcsc-catalog-search-form button[type="submit"],
	.tlcsc-catalog-launcher__button {
		width: 100%;
	}

	.tlcsc-catalog-card {
		grid-template-columns: 80px minmax(0, 1fr);
		gap: 14px;
		padding: 14px;
	}

	.tlcsc-catalog-card__image {
		width: 80px;
		height: 80px;
	}

	.tlcsc-catalog-card__purchase {
		grid-column: 1 / -1;
	}

	.tlcsc-catalog-card__actions {
		align-items: stretch;
		flex-direction: column;
	}

	.tlcsc-catalog-card__quantity {
		width: 100%;
	}
}

@media (max-width: 480px) {

	.tlcsc-catalog-card {
		grid-template-columns: 1fr;
	}

	.tlcsc-catalog-card__image {
		width: 100%;
		height: 128px;
	}

	.tlcsc-catalog-card__purchase {
		grid-column: 1;
	}
}

@media (prefers-reduced-motion: no-preference) {

	.tlcsc-catalog-dialog[open] {
		animation: tlcsc-catalog-fade 160ms ease-out;
	}

	@keyframes tlcsc-catalog-fade {

		from {
			opacity: 0;
			transform: translateY(0.75rem);
		}

		to {
			opacity: 1;
			transform: translateY(0);
		}
	}
}
