/*
 * «Προσφορά» block: layout only. Colours, fonts and the deal-page look come
 * from the theme (stickerfreak-child, --sf-* tokens), never from here.
 */

.sf-deal {
	display: grid;
	gap: 1rem;
	max-width: 36rem;
	margin-inline: auto;
	scroll-margin-top: 6rem;
}

.sf-deal [hidden] {
	display: none !important;
}

.sf-deal__offer {
	display: grid;
	gap: 1rem;
}

.sf-deal__countdown {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: center;
	gap: 0.5em;
	margin: 0;
	text-transform: uppercase;
	font-variant-numeric: tabular-nums;
}

.sf-deal__subtitle {
	margin: 0;
	text-align: center;
}

.sf-deal__box {
	padding: 1rem;
	border: 1px solid currentColor;
	border-radius: 0.75rem;
}

.sf-deal__label {
	margin: 0 0 0.5rem;
	text-transform: uppercase;
	font-size: 0.8em;
}

.sf-deal__rows {
	display: grid;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sf-deal__row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
}

.sf-deal__row > :last-child {
	text-align: end;
}

.sf-deal__row--save {
	padding-top: 0.5rem;
	border-top: 1px dashed currentColor;
}

.sf-deal__shipping {
	display: block;
}

.sf-deal__drop {
	position: relative;
	display: grid;
	gap: 0.25rem;
	justify-items: center;
	padding: 1.5rem 1rem;
	border: 2px dashed currentColor;
	border-radius: 0.75rem;
	text-align: center;
	cursor: pointer;
}

.sf-deal__drop:focus-within,
.sf-deal__drop.is-dragover {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

/* Visually hidden but focusable: the label is the visible control. */
.sf-deal__input {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.sf-deal__drop-title {
	font-weight: 700;
}

.sf-deal__file {
	overflow-wrap: anywhere;
}

.sf-deal__submit {
	width: 100%;
	cursor: pointer;
}

.sf-deal__submit[disabled] {
	cursor: progress;
}

.sf-deal__actions {
	display: grid;
	gap: 0.75rem;
}

.sf-deal__added[hidden] {
	display: none;
}

.sf-deal__ended {
	display: grid;
	gap: 1rem;
	justify-items: center;
	text-align: center;
}

.sf-deal__ended-title {
	margin: 0;
}
