/* ============ Blahoželania a priania ============ */

@font-face {
	font-family: Lato;
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../../font/Lato/Lato-Regular-Latin.woff2") format("woff2");
}

.rk-psec--hero .rk-section__inner { padding-top: clamp(1.75rem, 3.2vw, 2.75rem); }
.rk-wishes .rk-section__inner { padding-top: clamp(1.5rem, 3vw, 2.5rem); }

.rk-wishes__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(0.875rem, 2vw, 1.25rem);
}

.rk-wish {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: clamp(1.75rem, 3.5vw, 2.5rem) clamp(1.25rem, 3vw, 2rem);
	border: 1px solid var(--wp--preset--color--line);
	background: var(--wp--preset--color--white);
	text-align: center;
	transition: border-color 0.25s var(--wp--custom--ease);
}
.rk-wish:hover { border-color: var(--wp--custom--gold-line); }

.rk-wish::before {
	content: "";
	position: absolute;
	inset: 0.5625rem;
	border: 1px solid var(--wp--custom--gold-line);
	opacity: 0.45;
	pointer-events: none;
	transition: opacity 0.25s var(--wp--custom--ease);
}
.rk-wish:hover::before { opacity: 0.8; }

.rk-wish__tx {
	flex: 1;
	font-family: var(--wp--preset--font-family--body);
	font-size: 1rem;
	line-height: 1.8;
	color: var(--wp--preset--color--ink);
}
.rk-wish__tx p { margin: 0; }
.rk-wish__tx p + p { margin-top: 0.75rem; }

.rk-wish__tx::after {
	content: "";
	display: block;
	width: 7rem;
	height: 2.125rem;
	margin: clamp(1.125rem, 2.5vw, 1.75rem) auto 0;
	background: url("../img/logo.webp") center / contain no-repeat;
	opacity: 0.55;
}

/* Kopírovať · Zdieľať v prvom riadku, Poslať s naším darčekom pod nimi */
.rk-wish__acts {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.5rem;
	width: min(100%, 18rem);
	margin: clamp(1.125rem, 2.5vw, 1.5rem) auto 0;
	padding-top: clamp(0.875rem, 2vw, 1.125rem);
	border-top: 1px solid var(--wp--preset--color--line);
}
.rk-wish__acts:has(> :only-child) { grid-template-columns: 1fr; }

.rk-wish__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4375rem;
	padding: 0.4375rem 0.5rem;
	border: 1px solid var(--wp--preset--color--line);
	background: none;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--custom--ink-soft);
	cursor: pointer;
	transition: border-color 0.2s var(--wp--custom--ease), color 0.2s var(--wp--custom--ease),
		background 0.2s var(--wp--custom--ease);
}
.rk-wish__btn:hover {
	border-color: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--ink);
}
.rk-wish__btn svg { width: 0.9375rem; height: 0.9375rem; }
.rk-wish__btn--gift { grid-column: 1 / -1; }

.rk-wish__btn.is-done {
	border-color: var(--wp--custom--gold-hover);
	background: var(--wp--custom--gold-hover);
	color: var(--wp--preset--color--ink);
}

/* ---- Pásy medzi blahoželaniami ---- */

.rk-wishes__break {
	grid-column: 1 / -1;
	margin: clamp(1rem, 2vw, 1.5rem) 0;
}

/* Takto vyzerá naše blahoželanie */
.rk-noteband {
	display: grid;
	grid-template-columns: minmax(18rem, 27rem) minmax(0, 1fr) auto;
	align-items: center;
	gap: clamp(1.5rem, 3.5vw, 3rem);
	border: 1px solid var(--wp--preset--color--line);
	background: var(--wp--preset--color--white);
	padding: clamp(1rem, 2vw, 1.5rem) clamp(1.5rem, 3.5vw, 3rem) clamp(1rem, 2vw, 1.5rem) clamp(1rem, 2vw, 1.5rem);
}
.rk-noteband--text { grid-template-columns: minmax(0, 1fr) auto; }
.rk-noteband__media { margin: 0; }
.rk-noteband__media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 21 / 9;
	object-fit: cover;
	background: var(--wp--preset--color--surface-product);
}
.rk-noteband__eyebrow {
	margin: 0 0 0.5rem;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--custom--gold-line);
}
.rk-noteband__p {
	max-width: 40rem;
	margin: 0;
	font-family: var(--wp--preset--font-family--body);
	font-size: 1rem;
	line-height: 1.7;
	color: var(--wp--preset--color--ink);
}

/* ---- Okná: Blahoželanie ako obrázok, Poslať s naším darčekom ---- */

dialog.rk-modal {
	width: min(60rem, calc(100vw - 2rem));
	max-height: calc(100vh - 2rem);
	overflow: auto;
	padding: 0;
	border: 1px solid var(--wp--preset--color--line);
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--body);
}
dialog.rk-modal::backdrop { background: rgba(34, 34, 34, 0.64); }
html.rk-dialog-open { overflow: hidden; }

.rk-modal__in { padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.25rem, 3vw, 2.5rem); }
.rk-modal__in:focus { outline: none; }

.rk-modal__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
}
.rk-modal__title {
	margin: 0;
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(1.125rem, 0.95rem + 0.8vw, 1.5rem);
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1.15;
	text-transform: uppercase;
	color: var(--wp--preset--color--heading);
}
.rk-modal__x {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 1px solid var(--wp--preset--color--line);
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
	cursor: pointer;
}
.rk-modal__x svg {
	width: 1.125rem;
	height: 1.125rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
}
.rk-modal__x:hover { border-color: var(--wp--preset--color--ink); }

.rk-modal__back {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0 0 1rem;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--custom--ink-mute);
}
.rk-modal__back::before {
	content: "";
	width: 0.875rem;
	height: 0.875rem;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5M11 18l-6-6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5M11 18l-6-6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.rk-modal__back:hover { color: var(--wp--preset--color--ink); }
.rk-modal__back[hidden] { display: none; }

.rk-modal__lbl {
	display: block;
	margin: 0 0 0.625rem;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--custom--ink-soft);
}

/* Obrázok */
.rk-modal__body {
	display: flex;
	align-items: flex-start;
	gap: clamp(1.5rem, 3vw, 2.5rem);
	margin-top: 1.25rem;
}
.rk-modal__canvas {
	flex: 0 0 25rem;
	display: flex;
	justify-content: center;
}
.rk-modal__canvas canvas {
	display: block;
	max-width: 100%;
	height: auto;
	border: 1px solid var(--wp--preset--color--line);
	background: var(--wp--preset--color--surface-product);
}
.rk-modal__opts {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 1.375rem;
}
.rk-modal__sws {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.75rem;
}
.rk-modal__sw {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	height: 5.75rem;
	overflow: hidden;
	padding: 0;
	border: 1px solid var(--wp--preset--color--line);
	background: var(--wp--preset--color--surface-product) center / cover no-repeat;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-align: center;
	color: var(--wp--preset--color--ink);
	cursor: pointer;
}
.rk-modal__sw[aria-pressed="true"] {
	outline: 2px solid var(--wp--preset--color--ink);
	outline-offset: -2px;
}
.rk-modal__swl {
	display: block;
	width: 100%;
	padding: 0.3125rem 0.25rem;
	background: rgba(255, 255, 255, 0.82);
	line-height: 1.2;
}
.rk-modal__sw--dark { color: var(--wp--preset--color--gold); }
.rk-modal__sw--dark .rk-modal__swl { background: rgba(34, 34, 34, 0.82); }

.rk-modal__fmt {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
}
.rk-modal__fmt button {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
	height: 2.5rem;
	padding: 0 0.875rem;
	border: 1px solid var(--wp--preset--color--line);
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	cursor: pointer;
	transition: border-color 0.2s var(--wp--custom--ease);
}
.rk-modal__fmt button i {
	display: block;
	width: 0.75rem;
	height: 0.75rem;
	border: 1.5px solid currentColor;
}
.rk-modal__fmt button[data-fmt="story"] i {
	width: 0.5625rem;
	height: 0.9375rem;
}
.rk-modal__fmt button:hover { border-color: var(--wp--preset--color--ink); }
.rk-modal__fmt button[aria-pressed="true"] {
	border-color: var(--wp--preset--color--ink);
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--ink);
}

.rk-modal__acts {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
}
.rk-modal__acts .rk-btn {
	min-height: 3rem;
	padding: 0 1.375rem;
	font-size: 0.6875rem;
}

.rk-modal__foot {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding-top: 1.125rem;
	border-top: 1px solid var(--wp--preset--color--line);
	font-size: 0.9375rem;
	line-height: 1.6;
	color: var(--wp--custom--ink-soft);
}

/* Poslať s naším darčekom */
.rk-modal__text { margin-top: 1.25rem; }
.rk-modal__tech { margin-top: 1.25rem; }
.rk-modal__env { margin-top: 1.25rem; }
.rk-modal__tech .rk-gift__tech { margin-bottom: 0; }
.rk-modal__tech .rk-gift__techimg { aspect-ratio: 4 / 1; }
@media (max-width: 767px) {
	.rk-modal__tech .rk-gift__techimg { aspect-ratio: 2 / 1; }
}
.rk-modal__hint {
	margin: 0.625rem 0 0;
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--wp--custom--ink-soft);
}
.rk-modal__hint[hidden] { display: none; }
.rk-modal__ta {
	width: 100%;
	min-height: 5.5rem;
	padding: 0.75rem 0.875rem;
	border: 1px solid var(--wp--preset--color--line);
	background: var(--wp--preset--color--surface);
	font-family: var(--wp--preset--font-family--body);
	font-size: 1rem;
	line-height: 1.6;
	color: var(--wp--preset--color--ink);
	resize: vertical;
}
.rk-modal__ta:focus {
	outline: 2px solid var(--wp--preset--color--ink);
	outline-offset: 1px;
}
.rk-modal__rows { margin-top: 1.75rem; }
.rk-modal__groups {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(1.25rem, 3vw, 2.5rem);
}
.rk-modal__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(0.75rem, 1.5vw, 1.125rem);
}
.rk-modal__list .rk-gcard__media .rk-gcard__img {
	display: block;
	width: 100%;
	height: auto;
}
.rk-modal__list .rk-gcard:hover .rk-gcard__img { transform: none; }
.rk-modal__list .rk-gcard__body {
	display: flex;
	flex: 1;
	flex-direction: column;
}
.rk-modal__list .rk-gcard__name { margin-top: 0.625rem; }
.rk-modal__list .rk-gcard__row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.5rem;
	margin-top: auto;
	padding-top: 0.375rem;
}
.rk-modal__list .rk-gcard__price { margin: 0; }
.rk-modal__note {
	margin: 1.25rem 0 0;
	padding-top: 0.875rem;
	border-top: 1px solid var(--wp--preset--color--line);
	font-size: 0.8125rem;
	line-height: 1.6;
	color: var(--wp--custom--ink-soft);
}

/* ---- Užšie displeje ---- */

@media (max-width: 1100px) {
	.rk-wishes__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
	.rk-noteband,
	.rk-noteband--text {
		grid-template-columns: 1fr;
		gap: 0.875rem;
		padding: 1rem;
	}
	.rk-noteband__p { font-size: 0.9375rem; }
	.rk-noteband__act { justify-self: start; }
}

@media (max-width: 780px) {
	.rk-wishes__grid { grid-template-columns: 1fr; }
	.rk-modal__groups { grid-template-columns: 1fr; gap: 1.25rem; }
}

@media (max-width: 767px) {
	dialog.rk-modal {
		width: 100%;
		max-width: none;
		max-height: 92dvh;
		margin: auto 0 0;
		border-inline: 0;
		border-bottom: 0;
	}
	.rk-modal__body {
		flex-direction: column;
		gap: 1.25rem;
	}
	.rk-modal__canvas {
		flex: none;
		width: 100%;
	}
	.rk-modal__canvas canvas { width: min(100%, 20rem) !important; }
	.rk-modal__sws { gap: 0.5rem; }
	.rk-modal__sw {
		height: 4.5rem;
		font-size: 0.625rem;
	}
	.rk-modal__acts .rk-btn { flex: 1 1 100%; }
}

@media (max-width: 520px) {
	.rk-modal__list { gap: 0.625rem; }
	.rk-modal__list .rk-gcard__name { font-size: 0.625rem; }
}

.rk-modal__note a {
	color: var(--wp--preset--color--ink);
	text-decoration: underline;
	text-underline-offset: 0.2em;
	white-space: nowrap;
}
.rk-modal__note a:hover { color: var(--wp--custom--gold-line); }
