.osm-wrapper {
	max-width: 700px;
	margin: 0 auto;
	padding: 20px 0 40px;
}

.osm-box {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	padding: 36px;
	color: #333333 !important;
}

.osm-title {
	margin-top: 0;
	margin-bottom: 10px;
	font-size: 22px;
	color: #222222 !important;
}

/* ── Obecné texty uvnitř boxu ── */

.osm-box p,
.osm-box span,
.osm-box li,
.osm-box strong,
.osm-box label {
	color: #333333 !important;
}

/* ── Formulářová pole ── */

.osm-field {
	margin-bottom: 20px;
}

.osm-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
	font-size: 15px;
	color: #333333 !important;
}

.osm-field input[type="text"],
.osm-field input[type="email"],
.osm-field textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 15px;
	box-sizing: border-box;
	transition: border-color .15s;
	color: #333333 !important;
	background: #ffffff !important;
}

.osm-field input:focus,
.osm-field textarea:focus {
	border-color: #2c7a2c;
	outline: none;
	box-shadow: 0 0 0 2px rgba(44,122,44,.15);
}

.osm-req      { color: #c0392b; }
.osm-optional { color: #888; font-weight: 400; font-size: 13px; }
.osm-hint     { display: block; font-size: 13px; color: #666; margin-top: 5px; }

/* ── Tlačítko ── */

.osm-btn {
	display: block;
	width: 100%;
	background: #2c7a2c;
	color: #fff;
	border: none;
	padding: 14px 28px;
	font-size: 16px;
	font-weight: 600;
	border-radius: 4px;
	cursor: pointer;
	margin-top: 8px;
	transition: background .15s;
}

.osm-btn:hover  { background: #245e24; }
.osm-btn:disabled { opacity: .6; cursor: not-allowed; }

/* ── Zprávy ── */

.osm-msg {
	padding: 12px 16px;
	border-radius: 4px;
	margin-bottom: 16px;
	font-size: 15px;
}

.osm-msg--success {
	background: #d4edda;
	border: 1px solid #b8dfc4;
	color: #155724;
}

.osm-msg--error {
	background: #f8d7da;
	border: 1px solid #f1b0b7;
	color: #721c24;
}

/* ── Informace o objednávce ── */

.osm-order-info {
	background: #f8f9fa;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	padding: 12px 16px;
	margin-bottom: 20px;
	font-size: 14px;
	color: #333333 !important;
}

/* ── Seznam položek ── */

.osm-items {
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	margin-bottom: 20px;
	overflow: hidden;
}

.osm-select-all {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	border-bottom: 1px solid #e0e0e0;
	background: #f8f9fa;
	cursor: pointer;
	user-select: none;
	color: #333333 !important;
}

.osm-select-all input { cursor: pointer; }

.osm-item {
	border-bottom: 1px solid #f0f0f0;
}

.osm-item:last-child { border-bottom: none; }

.osm-item label {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	cursor: pointer;
	margin: 0;
	font-weight: normal;
}

.osm-item label:hover { background: #fafafa; }

.osm-item-cb  { cursor: pointer; flex-shrink: 0; }

.osm-item-img {
	width: 52px;
	height: 52px;
	object-fit: cover;
	border-radius: 4px;
	flex-shrink: 0;
}

.osm-item-name  { flex: 1; font-size: 15px; }
.osm-item-qty   { color: #666; font-size: 14px; white-space: nowrap; }
.osm-item-price { font-weight: 600; font-size: 14px; white-space: nowrap; }

/* ── Chybová varianta boxu ── */

.osm-box--error {
	border-color: #f1b0b7;
	background: #fff8f8;
}

.osm-box--error a { color: #2c7a2c; }

/* ── Poznámka v patičce formuláře ── */

.osm-note {
	font-size: 13px;
	color: #666;
	margin-top: 20px;
	margin-bottom: 0;
}

/* ── Responzivita ── */

@media (max-width: 500px) {
	.osm-box { padding: 20px; }

	.osm-item-img { display: none; }

	.osm-item label { flex-wrap: wrap; gap: 8px; }
	.osm-item-price { margin-left: auto; }
}
