.short-ofert-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2147483647;
	padding: 1.5rem;
	isolation: isolate;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.short-ofert-overlay.short-ofert-overlay--visible {
	opacity: 1;
	visibility: visible;
}

.short-ofert-overlay.short-ofert-overlay--visible .short-ofert-popup {
	animation: short-ofert-popup-in 0.35s ease forwards;
}

@keyframes short-ofert-popup-in {
	from {
		opacity: 0;
		transform: scale(0.92) translateY(-20px);
	}
	to {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
}

.short-ofert-popup {
	background: #ffffff;
	max-width: 960px;
	width: 100%;
	border-radius: 12px;
	box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
	position: relative;
	padding: 2rem 2rem 1.75rem;
	box-sizing: border-box;
	opacity: 0;
}

.short-ofert-close {
	position: absolute;
	right: 1.25rem;
	top: 1.25rem;
	background: transparent;
	border: none;
	font-size: 1.5rem;
	cursor: pointer;
	line-height: 1;
}

.short-ofert-header {
	margin-bottom: 1.5rem;
	text-align: left;
}

.short-ofert-popup.short-ofert-screen-3 .short-ofert-header {
	display: none;
}

.short-ofert-step {
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #888;
	margin: 0 0 0.25rem;
}

.short-ofert-title {
	margin: 0 0 0.4rem;
	font-size: 1.3rem;
}

.short-ofert-subtitle {
	margin: 0;
	font-size: 0.95rem;
	color: #555;
}

.short-ofert-form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.short-ofert-body {
	min-height: 260px;
}

.short-ofert-screen {
	display: none;
}

.short-ofert-screen--active {
	display: block;
}

.short-ofert-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.short-ofert-tile {
	border-radius: 10px;
	border: 1px solid #e0e0e0;
	padding: 1rem 0.9rem;
	background: #fafafa;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	cursor: pointer;
	transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, transform 0.1s ease;
}

.short-ofert-tile:hover,
.short-ofert-tile:focus-visible {
	border-color: #111827;
	background: #ffffff;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.07);
	outline: none;
	transform: translateY(-1px);
}

.short-ofert-tile-label {
	font-weight: 500;
	font-size: 0.95rem;
	text-align: center;
	width: 100%;
}

.short-ofert-tile-image-wrap {
	width: 100%;
	margin-bottom: 0.5rem;
	overflow: hidden;
	border-radius: 8px;
	background: #f3f4f6;
}

.short-ofert-tile-image {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
}

.short-ofert-fields {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.85rem;
	max-width: 420px;
	margin-left: auto;
	margin-right: auto;
}

.short-ofert-contact-fields {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.85rem;
	max-width: 100%;
	margin-left: auto;
	margin-right: auto;
}

.short-ofert-field {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.short-ofert-field label {
	display: block;
	font-size: 0.85rem;
	font-weight: 500;
	margin-bottom: 0.2rem;
	align-self: flex-start;
}

.short-ofert-field input,
.short-ofert-field textarea {
	width: 100%;
	max-width: 320px;
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
	padding: 0.55rem 0.65rem;
	border-radius: 6px;
	border: 1px solid #d4d4d4;
	font-size: 0.9rem;
}

.short-ofert-field input:focus,
.short-ofert-field textarea:focus {
	outline: none;
	border-color: #111827;
	box-shadow: 0 0 0 1px #11182720;
}

.short-ofert-actions {
	margin-top: 1.2rem;
	display: flex;
	justify-content: center;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.short-ofert-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.55rem 1.1rem;
	border-radius: 999px;
	border: none;
	font-size: 0.9rem;
	cursor: pointer;
	background: #111827;
	color: #ffffff;
	transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.short-ofert-btn:hover,
.short-ofert-btn:focus-visible {
	background: #020617;
	box-shadow: 0 8px 20px rgba(15, 23, 42, 0.25);
	outline: none;
	transform: translateY(-1px);
}

.short-ofert-btn--ghost {
	background: transparent;
	color: #111827;
	border: 1px solid #d4d4d4;
}

.short-ofert-btn--ghost:hover,
.short-ofert-btn--ghost:focus-visible {
	background: #f3f4f6;
	box-shadow: none;
	transform: none;
}

.short-ofert-loader {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	text-align: center;
	min-height: 180px;
}

.short-ofert-loader-text {
	margin: 0;
	font-size: 1rem;
	font-weight: 500;
	color: #374151;
}

.short-ofert-spinner {
	width: 30px;
	height: 30px;
	border-radius: 999px;
	border: 3px solid #e5e5e5;
	border-top-color: #111827;
	animation: short-ofert-spin 0.9s linear infinite;
}

@keyframes short-ofert-spin {
	to {
		transform: rotate(360deg);
	}
}

.short-ofert-contact-intro {
	margin-bottom: 1.25rem;
}

.short-ofert-contact-intro-title {
	font-size: 1.1rem;
	font-weight: 600;
	color: #111827;
	line-height: 1.4;
	margin: 0 0 0.5rem;
}

.short-ofert-contact-intro-desc {
	font-size: 1rem;
	color: #374151;
	line-height: 1.5;
	margin: 0;
}

.short-ofert-footer {
	margin-top: 0.5rem;
	min-height: 1.2rem;
}

.short-ofert-status {
	margin: 0;
	font-size: 0.85rem;
	color: #166534;
}

.short-ofert-status--error {
	color: #b91c1c;
}

@media (min-width: 768px) {
	.short-ofert-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.short-ofert-fields--default {
		grid-template-columns: 1fr;
	}

	.short-ofert-contact-fields {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		max-width: 540px;
	}
}

@media (min-width: 1024px) {
	.short-ofert-popup {
		padding: 2.25rem 2.5rem 2rem;
	}

	.short-ofert-title {
		font-size: 1.4rem;
	}

	.short-ofert-subtitle {
		font-size: 1rem;
	}

	.short-ofert-tile {
		padding: 1.25rem 1rem;
	}

	.short-ofert-tile-label {
		font-size: 1rem;
	}
}

@media (max-width: 767px) {
	.short-ofert-grid {
		gap: 0.75rem;
	}

	.short-ofert-tile {
		padding: 0.75rem 0.65rem;
	}

	.short-ofert-tile-label {
		font-size: 0.85rem;
	}

	.short-ofert-contact-fields {
		gap: 0.75rem;
		max-width: 100%;
	}
}

@media (max-width: 639px) {
	.short-ofert-fields {
		max-width: 100%;
	}

	.short-ofert-field input,
	.short-ofert-field textarea {
		max-width: 100%;
	}
}

@media (max-width: 480px) {
	.short-ofert-overlay {
		padding: 0.5rem;
		align-items: flex-start;
		padding-top: 1rem;
	}

	.short-ofert-popup {
		padding: 1.25rem 1rem 1rem;
		max-width: 100%;
		height: auto;
	}

	.short-ofert-close {
		right: 0.75rem;
		top: 0.75rem;
		font-size: 1.35rem;
	}

	.short-ofert-title {
		font-size: 1.05rem;
		padding-right: 1.5rem;
	}

	.short-ofert-subtitle {
		font-size: 0.85rem;
	}

	.short-ofert-actions {
		margin-top: 1rem;
		gap: 0.5rem;
	}

	.short-ofert-btn {
		padding: 0.5rem 1rem;
		font-size: 0.85rem;
	}

	.short-ofert-body {
		min-height: 200px;
	}
}

