/* ====== Odstoupení od smlouvy ====== */

:root {
	--odstoupeni-accent: #e30613;
	--odstoupeni-accent-dark: #b30410;
}

/* --- Floating action button (patička, každá stránka) --- */
#odstoupeni-fab {
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 900;
	display: flex;
	align-items: center;
	gap: 8px;
	background: #333;
	color: #fff;
	padding: 12px 16px;
	border-radius: 40px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
	cursor: pointer;
	font-size: 14px;
	line-height: 1;
	transition: background .2s ease, transform .2s ease;
}

#odstoupeni-fab:hover {
	background: var(--odstoupeni-accent);
	transform: translateY(-2px);
	color: #fff;
}

#odstoupeni-fab i {
	font-size: 16px;
}

@media (max-width: 600px) {
	#odstoupeni-fab {
		padding: 12px;
		border-radius: 50%;
	}

	#odstoupeni-fab .odstoupeni-fab-text {
		display: none;
	}
}

/* --- Stránka --- */
.odstoupeni-page {
	max-width: 900px;
}

.odstoupeni-page h1 {
	margin-bottom: 10px;
}

.odstoupeni-sub {
	color: #666;
	margin-bottom: 24px;
}

.odstoupeni-btn {
	display: inline-block;
	background: var(--odstoupeni-accent);
	color: #fff !important;
	text-decoration: none;
	padding: 13px 24px;
	border: 0;
	border-radius: 4px;
	font-size: 15px;
	cursor: pointer;
	transition: background .2s ease;
}

.odstoupeni-btn:hover {
	background: var(--odstoupeni-accent-dark);
	color: #fff !important;
}

.odstoupeni-intro-actions {
	margin: 20px 0 30px;
}

.odstoupeni-hint {
	color: #888;
	font-size: 13px;
	margin-top: 8px;
}

.odstoupeni-pouceni-wrap {
	border-top: 1px solid #eee;
	padding-top: 20px;
	color: #444;
	line-height: 1.7;
}

.odstoupeni-pouceni-wrap h4 {
	margin: 18px 0 6px;
	font-size: 16px;
}

/* --- Formulář --- */
.odstoupeni-section {
	margin-bottom: 26px;
	padding-bottom: 22px;
	border-bottom: 1px solid #eee;
}

.odstoupeni-section h2 {
	font-size: 17px;
	margin-bottom: 14px;
}

.odstoupeni-section h2 small {
	color: #999;
	font-weight: normal;
}

.odstoupeni-fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

.odstoupeni-fields label,
.odstoupeni-block {
	display: flex;
	flex-direction: column;
	font-size: 13px;
	color: #666;
	gap: 5px;
}

.odstoupeni-form-wrap input[type="text"],
.odstoupeni-form-wrap input[type="email"],
.odstoupeni-form-wrap input[type="number"],
.odstoupeni-form-wrap textarea {
	border: 1px solid #ccc;
	border-radius: 4px;
	padding: 10px 12px;
	font-size: 14px;
	width: 100%;
}

.odstoupeni-form-wrap input[readonly] {
	background: #f5f5f5;
	color: #888;
}

.odstoupeni-block {
	max-width: 420px;
}

.odstoupeni-form-wrap textarea {
	width: 100%;
	max-width: 600px;
}

/* položky */
.odstoupeni-item {
	border: 1px solid #eee;
	border-radius: 6px;
	padding: 14px 16px;
	margin-bottom: 10px;
}

.odstoupeni-item-head {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	margin: 0;
}

.odstoupeni-item-name small {
	color: #999;
}

.odstoupeni-item-qty {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 10px;
	padding-left: 26px;
	font-size: 13px;
	color: #666;
}

.odstoupeni-item-qty input {
	width: 80px;
}

.odstoupeni-item-note {
	margin-top: 8px;
	padding-left: 26px;
	font-size: 12px;
	color: var(--odstoupeni-accent);
}

.odstoupeni-confirm {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 15px;
	cursor: pointer;
}

.odstoupeni-confirm input {
	margin-top: 3px;
}

.odstoupeni-error-box {
	background: #fdecea;
	border: 1px solid #f5c6cb;
	color: #a11;
	padding: 12px 14px;
	border-radius: 4px;
	margin-bottom: 16px;
}

/* --- Status (success / error) --- */
.odstoupeni-status {
	max-width: 640px;
}

.odstoupeni-status ul,
.odstoupeni-status ol {
	margin: 10px 0 20px;
	padding-left: 20px;
	line-height: 1.7;
}

.odstoupeni-status-success h1 {
	color: #2e7d32;
}

.odstoupeni-status-error h1 {
	color: var(--odstoupeni-accent);
}

/* --- Modal (host – zadání č. objednávky + e-mail) --- */
/* tlačítko v modalu – stejný vzhled jako ostatní modal tlačítka */
#modal .modal-content .modal-button.odstoupeni-request-event {
	cursor: pointer;
	background-color: #33bf79;
}

.odstoupeni-modal .odstoupeni-modal-msg {
	margin-top: 12px;
	font-size: 13px;
}

.odstoupeni-modal .odstoupeni-modal-msg.is-error {
	color: var(--odstoupeni-accent);
}

.odstoupeni-modal .odstoupeni-modal-msg.is-success {
	color: #2e7d32;
}

@media (max-width: 600px) {
	.odstoupeni-fields {
		grid-template-columns: 1fr;
	}
}

@media print {
	#odstoupeni-fab {
		display: none !important;
	}
}
