.lcc-samples-entry {
	margin: 0.35rem 0 0.85rem;
}

.lcc-samples-entry__btn {
	appearance: none;
	border: 0;
	background: none;
	padding: 0;
	font: inherit;
	font-size: 0.95rem;
	color: var(--global-palette3, #8a5a3a);
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.lcc-samples-entry__btn:hover,
.lcc-samples-entry__btn:focus {
	color: var(--global-palette2, #1c1a17);
	outline: none;
}

body.lcc-samples-open {
	overflow: hidden;
}

.lcc-samples-modal[hidden] {
	display: none !important;
}

.lcc-samples-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.lcc-samples-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(28, 26, 23, 0.45);
}

.lcc-samples-modal__panel {
	position: relative;
	z-index: 1;
	width: min(560px, 100%);
	max-height: min(86vh, 720px);
	overflow: auto;
	background: #f7f3ec;
	color: #1c1a17;
	border: 1px solid #d9d2c8;
	padding: 1.25rem 1.35rem 1.35rem;
	box-shadow: 0 18px 40px rgba(28, 26, 23, 0.18);
}

.lcc-samples-modal__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 0.5rem;
}

.lcc-samples-modal__header h2 {
	margin: 0;
	font-size: 1.35rem;
	font-weight: 500;
	font-family: Georgia, "Times New Roman", serif;
}

.lcc-samples-modal__close {
	appearance: none;
	border: 0;
	background: transparent;
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
	color: #6b6560;
	padding: 0 0.15rem;
}

.lcc-samples-modal__hint {
	margin: 0 0 1rem;
	font-size: 0.9rem;
	color: #6b6560;
}

.lcc-samples-modal__colours {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.lcc-samples-swatch {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	cursor: pointer;
	margin: 0;
	padding: 0.45rem;
	border: 1px solid #d9d2c8;
	background: #fff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.lcc-samples-swatch input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.lcc-samples-swatch.is-selected,
.lcc-samples-swatch:has(input:checked) {
	border-color: #8a5a3a;
	box-shadow: inset 0 0 0 1px #8a5a3a;
}

.lcc-samples-swatch__media {
	display: block;
	aspect-ratio: 1;
	overflow: hidden;
	background: #efe4d8;
}

.lcc-samples-swatch__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.lcc-samples-swatch__label {
	font-size: 0.78rem;
	line-height: 1.3;
	text-align: center;
}

.lcc-samples-modal__error {
	margin: 0 0 0.75rem;
	color: #a33;
	font-size: 0.88rem;
}

.lcc-samples-modal__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding-top: 0.75rem;
	border-top: 1px solid #d9d2c8;
}

.lcc-samples-modal__fee {
	font-size: 0.95rem;
}

.lcc-samples-modal__submit {
	appearance: none;
	border: 0;
	background: #8a5a3a;
	color: #fff;
	padding: 0.7rem 1.15rem;
	font-size: 0.92rem;
	cursor: pointer;
}

.lcc-samples-modal__submit:hover,
.lcc-samples-modal__submit:focus {
	background: #734a30;
}

.lcc-samples-modal__submit:disabled {
	opacity: 0.65;
	cursor: wait;
}

@media (max-width: 480px) {
	.lcc-samples-modal__panel {
		padding: 1rem;
	}

	.lcc-samples-modal__footer {
		flex-direction: column;
		align-items: stretch;
	}

	.lcc-samples-modal__submit {
		width: 100%;
	}
}
