.checkout-shell {
	max-width: 980px;
	margin: 0 auto 32px;
}

.checkout-card {
	background: #fff;
	border: 1px solid #dbe3ee;
	border-radius: 14px;
	padding: 18px 18px 14px;
	box-shadow: 0 6px 18px rgba(22, 33, 52, 0.06);
}

.checkout-intro {
	margin: 0 0 18px;
	line-height: 1.6;
}

.checkout-intro .btn {
	margin-right: 10px;
}

.checkout-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 14px;
}

.checkout-actions .btn {
	margin: 0;
}

.checkout-table {
	margin-bottom: 0;
}

.checkout-table th {
	white-space: nowrap;
}

/* Rekapitulace používá sdílenou šablonu s inline email styly;
   tímto je přepíšeme jen v checkout UI. */
.checkout-card .checkout-table {
	table-layout: auto !important;
	border-collapse: separate !important;
	border-spacing: 0 !important;
	border: 1px solid #dbe3ee !important;
	border-radius: 10px;
	overflow: hidden;
}

.checkout-card .checkout-table th,
.checkout-card .checkout-table td {
	border: 1px solid #e6edf5 !important;
	padding: 0.65rem 0.75rem !important;
	text-align: left !important;
	background: #fff !important;
}

.checkout-card .checkout-table thead th {
	background: #f7f9fc !important;
	color: #27364a;
}

.checkout-card .checkout-table tbody tr:nth-child(even) td {
	background: #fbfdff !important;
}

.checkout-card .checkout-table th:last-child,
.checkout-card .checkout-table td:last-child {
	text-align: right !important;
}

.checkout-card .checkout-table tfoot th,
.checkout-card .checkout-table tfoot td {
	background: #f7f9fc !important;
	font-weight: 700;
}

#order-state.checkout-state-table {
	margin-bottom: 18px;
	background: #fff;
	border: 1px solid #dbe3ee;
	border-radius: 12px;
	overflow: hidden;
}

#order-state.checkout-state-table td {
	padding: 10px 6px;
	vertical-align: middle;
}

#order-state.checkout-state-table a {
	text-decoration: none;
	font-weight: 600;
}

.payment-methods {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.payment-method-row {
	padding: 10px 12px;
	border: 1px solid #dbe3ee;
	border-radius: 10px;
}

.payment-method-label {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	cursor: pointer;
}

.payment-method-title {
	font-weight: 600;
}

.payment-method-price {
	margin-left: auto;
	font-weight: 700;
}

.admin-shell {
	max-width: 1100px;
	margin: 0 auto 32px;
}

.admin-card {
	background: #fff;
	border: 1px solid #dbe3ee;
	border-radius: 14px;
	padding: 16px;
	box-shadow: 0 6px 18px rgba(22, 33, 52, 0.06);
}

.admin-shell .aButton,
.admin-shell button.aButton,
.admin-shell input.aButton {
	display: inline-block;
	padding: 0.42rem 0.78rem;
	border: 1px solid #0d6efd;
	border-radius: 0.5rem;
	background: #fff;
	color: #0d6efd;
	text-decoration: none;
	line-height: 1.35;
}

.admin-shell .aButton:hover,
.admin-shell .aButton:focus {
	background: #eef5ff;
	text-decoration: none;
}

.admin-shell .admin-back-button {
	margin-bottom: 8px;
}

.admin-card .checkout-table,
.admin-order-manage .items-table,
.admin-order-manage .total-table,
.admin-order-manage .cell-spacing,
.admin-order-manage .invoice-dates {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid #e0e7f1;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
}

.admin-card .checkout-table th,
.admin-card .checkout-table td,
.admin-order-manage .items-table th,
.admin-order-manage .items-table td,
.admin-order-manage .total-table td,
.admin-order-manage .cell-spacing td,
.admin-order-manage .invoice-dates td {
	padding: 0.58rem 0.68rem;
	border: 1px solid #e9eef5;
	vertical-align: middle;
}

.admin-card .checkout-table thead th,
.admin-order-manage .items-table thead th {
	background: #f7f9fc;
	color: #27364a;
	font-weight: 700;
}

.admin-order-manage .items-table td.price,
.admin-order-manage .items-table td.price_total,
.admin-order-manage .items-table td.price_total_vat,
.admin-order-manage .total-table td,
.admin-orders-table td:nth-child(3) {
	text-align: right;
}

.admin-orders-table .admin-edit-link {
	margin-left: 8px;
}

.admin-order-manage .manage-add-product {
	border-radius: 10px;
}

.product-manage-card h2 {
	margin: 18px 0 12px;
	font-size: 1.15rem;
	color: #24364a;
}

.product-manage-card .row {
	margin-left: 0;
	margin-right: 0;
	row-gap: 12px;
}

.product-manage-card .form-label {
	font-weight: 600;
	margin-bottom: 0.35rem;
	color: #31455d;
}

.product-manage-card .form-control,
.product-manage-card .form-select,
.product-manage-card textarea,
.product-manage-card input[type="text"],
.product-manage-card input[type="number"],
.product-manage-card input[type="file"],
.product-manage-card select {
	border: 1px solid #ccd8e6;
	border-radius: 10px;
	padding: 0.62rem 0.75rem;
	box-shadow: none;
	background: #fff;
}

.product-manage-card textarea {
	min-height: 140px;
}

.product-manage-card .btn-outline-primary {
	border-radius: 10px;
	padding: 0.62rem 1rem;
	font-weight: 600;
}

.article-list-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.article-list-title {
	margin: 0;
	font-size: 1.45rem;
	color: #24364a;
}

.article-list-items {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.article-list-item {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 16px;
	border: 1px solid #e2e9f2;
	border-radius: 12px;
	background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.article-list-main {
	min-width: 0;
	flex: 1 1 auto;
}

.article-list-item-title {
	margin: 0 0 6px;
	font-size: 1.1rem;
}

.article-list-item-title a {
	color: #1d4f91;
	text-decoration: none;
}

.article-list-item-title a:hover {
	text-decoration: underline;
}

.article-list-item-description {
	margin: 0;
	color: #5c6d80;
	line-height: 1.5;
}

.article-list-actions {
	display: flex;
	gap: 8px;
	flex: 0 0 auto;
	align-items: center;
}

.article-list-actions .btn,
.article-list-actions .aButton {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.article-list-actions .article-remove-button {
	color: #c4374b;
	border-color: #edc0c8;
	background: #fff;
}

.article-list-actions .article-remove-button:hover,
.article-list-actions .article-remove-button:focus {
	background: #fff4f6;
}

.article-editor-title {
	margin: 0 0 6px;
	font-size: 1.45rem;
	color: #24364a;
}

.article-editor-help {
	margin: 0 0 16px;
	color: #5c6d80;
	line-height: 1.55;
}

.article-editor-card .row {
	margin-left: 0;
	margin-right: 0;
	row-gap: 12px;
}

.article-editor-card .form-label {
	font-weight: 600;
	margin-bottom: 0.35rem;
	color: #31455d;
}

.article-editor-card .form-control,
.article-editor-card textarea,
.article-editor-card input[type="text"] {
	border: 1px solid #ccd8e6;
	border-radius: 10px;
	padding: 0.62rem 0.75rem;
	box-shadow: none;
	background: #fff;
}

.article-editor-card textarea {
	min-height: 180px;
}

.article-editor-card .btn-outline-primary {
	border-radius: 10px;
	padding: 0.62rem 1rem;
	font-weight: 600;
}

.article-editor-card .tox-tinymce {
	border-radius: 12px !important;
	border-color: #ccd8e6 !important;
}

.settings-title {
	margin: 0 0 6px;
	font-size: 1.45rem;
	color: #24364a;
}

.settings-help {
	margin: 0 0 16px;
	color: #5c6d80;
	line-height: 1.55;
}

.settings-form-card {
	margin-top: 18px;
}

.settings-form-title {
	margin: 0 0 12px;
	font-size: 1.15rem;
	color: #24364a;
}

.settings-table td,
.settings-table th {
	vertical-align: middle;
}

.settings-signature {
	max-width: 140px;
	max-height: 54px;
	width: auto;
	height: auto;
	display: block;
	padding: 4px 6px;
	background: #fff;
	border: 1px solid #e2e9f2;
	border-radius: 8px;
}

.settings-delete-button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #c4374b !important;
	border-color: #edc0c8 !important;
}

.settings-delete-button:hover,
.settings-delete-button:focus {
	background: #fff4f6 !important;
}

.settings-form-card .row {
	margin-left: 0;
	margin-right: 0;
	row-gap: 12px;
}

.settings-form-card .form-label {
	font-weight: 600;
	margin-bottom: 0.35rem;
	color: #31455d;
}

.settings-form-card .form-control,
.settings-form-card .form-select,
.settings-form-card input[type="text"],
.settings-form-card input[type="number"],
.settings-form-card input[type="file"],
.settings-form-card select {
	border: 1px solid #ccd8e6;
	border-radius: 10px;
	padding: 0.62rem 0.75rem;
	box-shadow: none;
	background: #fff;
}

.settings-form-card .btn-outline-primary {
	border-radius: 10px;
	padding: 0.62rem 1rem;
	font-weight: 600;
}

.person-manage-title {
	margin: 0 0 6px;
	font-size: 1.45rem;
	color: #24364a;
}

.person-manage-help {
	margin: 0 0 16px;
	color: #5c6d80;
	line-height: 1.55;
}

.person-manage-card .row {
	margin-left: 0;
	margin-right: 0;
	row-gap: 12px;
	margin-bottom: 12px;
}

.person-manage-card h2 {
	margin: 18px 0 10px;
	font-size: 1.1rem;
	color: #24364a;
	padding-bottom: 6px;
	border-bottom: 1px solid #e7edf5;
}

.person-manage-card .form-label,
.person-manage-card .form-check-label {
	font-weight: 600;
	color: #31455d;
}

.person-manage-card .form-control,
.person-manage-card .form-select,
.person-manage-card textarea,
.person-manage-card input[type="text"],
.person-manage-card input[type="email"],
.person-manage-card input[type="password"],
.person-manage-card input[type="number"],
.person-manage-card select {
	border: 1px solid #ccd8e6;
	border-radius: 10px;
	padding: 0.62rem 0.75rem;
	box-shadow: none;
	background: #fff;
}

.person-manage-card .form-check-input {
	width: 1.1rem;
	height: 1.1rem;
	margin-right: 8px;
	vertical-align: middle;
}

.person-manage-card .btn,
.person-manage-card button[type="submit"] {
	border-radius: 10px;
	padding: 0.62rem 1rem;
	font-weight: 600;
}

.administration-title,
.login-page-title {
	margin: 0 0 6px;
	font-size: 1.5rem;
	color: #24364a;
}

.administration-help,
.login-page-help {
	margin: 0 0 16px;
	color: #5c6d80;
	line-height: 1.55;
}

.administration-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.administration-actions .btn {
	padding: 0.62rem 1rem;
	border-radius: 10px;
	font-weight: 600;
}

.login-page-shell {
	max-width: 620px;
	margin: 0 auto 32px;
}

.login-card .row {
	margin-left: 0;
	margin-right: 0;
	row-gap: 12px;
	margin-bottom: 12px;
}

.login-card .form-label {
	font-weight: 600;
	margin-bottom: 0.35rem;
	color: #31455d;
}

.login-card .form-control,
.login-card input[type="email"],
.login-card input[type="password"] {
	border: 1px solid #ccd8e6;
	border-radius: 10px;
	padding: 0.62rem 0.75rem;
	box-shadow: none;
	background: #fff;
}

.login-card .btn-primary {
	width: 100%;
	border-radius: 10px;
	padding: 0.7rem 1rem;
	font-weight: 600;
	margin-bottom: 0 !important;
}

.login-page-register-link {
	margin: 14px 0 0;
	color: #5c6d80;
}

.product-detail-page {
	margin: 0 auto 32px;
}

.product-detail-card {
	border: 1px solid #dbe3ee;
	border-radius: 14px;
	box-shadow: 0 6px 18px rgba(22, 33, 52, 0.06);
}

.product-detail-info {
	color: #304458;
}

.product-detail-code {
	color: #5c6d80;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.product-detail-title {
	color: #24364a;
	font-size: 2rem;
	line-height: 1.22;
	margin-bottom: 0.75rem;
}

.product-detail-title a {
	font-size: 1.2rem;
	margin-left: 6px;
	color: #1d4f91;
	text-decoration: none;
}

.product-detail-title a:hover {
	color: #153b6f;
}

.product-detail-stock .badge {
	font-size: 0.88rem;
	padding: 0.42rem 0.62rem;
}

.product-detail-short {
	font-weight: 700;
	color: #29425c;
	line-height: 1.55;
	margin-bottom: 0.7rem;
}

.product-detail-description,
.product-detail-description p,
.product-detail-description li {
	font-size: 1rem;
	line-height: 1.65;
	color: #304458;
}

.product-detail-description h2,
.product-detail-description h3,
.product-detail-description h4 {
	color: #2c4058;
	margin-top: 1rem;
}

.product-detail-description a {
	color: #1d4f91;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.article-default-shell {
	max-width: 980px;
	margin: 0 auto 32px;
}

.article-default-content {
	background: #fff;
	border: 1px solid #dbe3ee;
	border-radius: 14px;
	padding: 18px;
	box-shadow: 0 6px 18px rgba(22, 33, 52, 0.06);
}

.article-default-content h1 {
	font-size: 2rem !important;
	line-height: 1.25;
	margin: 0 0 14px;
	color: #24364a !important;
}

.article-default-content h2 {
	font-size: 1.45rem !important;
	line-height: 1.3;
	margin: 24px 0 10px;
	color: #2c4058 !important;
}

@media (max-width: 768px) {
	.product-detail-title {
		font-size: 1.6rem;
	}
}

.article-default-content h3,
.article-default-content h4,
.article-default-content h5,
.article-default-content h6 {
	font-size: 1.18rem !important;
	line-height: 1.35;
	margin: 18px 0 8px;
	color: #34506d !important;
}

.article-default-content p,
.article-default-content li,
.article-default-content td,
.article-default-content th,
.article-default-content blockquote {
	font-size: 1rem !important;
	line-height: 1.65;
	color: #304458 !important;
}

.article-default-content p *:not(a),
.article-default-content li *:not(a),
.article-default-content td *:not(a),
.article-default-content blockquote *:not(a) {
	font-size: inherit !important;
	color: inherit !important;
}

.article-default-content a {
	color: #1d4f91;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.article-default-content ul,
.article-default-content ol {
	padding-left: 1.2rem;
	margin: 0.4rem 0 1rem;
}

.article-default-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 12px 0;
}

.article-default-content table td,
.article-default-content table th {
	border: 1px solid #e5edf6;
	padding: 0.52rem 0.62rem;
}

.product-manage-card select[multiple] {
	min-height: 220px;
	padding: 0.45rem;
}

.product-manage-card .tox-tinymce {
	border-radius: 12px !important;
	border-color: #ccd8e6 !important;
}

#product-images-administration {
	margin: 10px 0 2px;
	padding: 10px 0 0;
	gap: 8px;
}

#product-images-administration > div {
	position: relative;
	border-radius: 12px;
	border: 1px solid #dbe3ee;
	box-shadow: 0 6px 18px rgba(22, 33, 52, 0.08);
	background: #fff;
}

#product-images-administration > div > a {
	position: absolute;
	top: 8px;
	right: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.94);
	color: #dc3545;
	text-decoration: none;
	border: 1px solid #f0c2c9;
}

#product-images-administration > div > a:hover {
	background: #fff5f6;
}

.admin-order-manage .payment-info-col {
	padding-right: 8px;
	box-sizing: border-box;
}

.admin-order-manage .payment-dates-col {
	padding-left: 8px;
	box-sizing: border-box;
}

.admin-order-manage .payment-dates-col .invoice-dates {
	margin-top: 0;
}

.admin-order-manage .payment-dates-actions {
	margin-top: 12px;
	text-align: right;
}

.product-list-card {
	border: 1px solid #dbe3ee;
	border-radius: 14px;
	box-shadow: 0 6px 18px rgba(22, 33, 52, 0.06);
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.product-list-card:hover {
	box-shadow: 0 8px 24px rgba(22, 33, 52, 0.12);
	transform: translateY(-2px);
}

.product-list-body {
	padding: 12px !important;
}

.product-list-actions {
	margin-bottom: 8px;
	display: flex;
	gap: 6px;
	justify-content: center;
	align-items: center;
}

.product-list-actions a {
	color: #1d4f91;
	text-decoration: none;
	font-size: 1.2rem;
}

.product-list-actions a:hover {
	color: #153b6f;
}

.product-list-title {
	font-size: 1rem;
	line-height: 1.4;
	color: #24364a;
	margin: 8px 0 6px;
	font-weight: 700;
}

.product-list-title a {
	color: #24364a;
	text-decoration: none;
}

.product-list-title a:hover {
	color: #1d4f91;
	text-decoration: underline;
}

.product-list-desc {
	font-size: 0.92rem;
	line-height: 1.5;
	color: #5c6d80;
	margin: 6px 0;
	min-height: 2.8rem;
}

.product-list-old-price {
	font-size: 0.88rem;
	color: #8a9aaa;
}

.product-list-price {
	font-size: 1.1rem;
	color: #1d4f91;
	font-weight: 700;
}

.contact-shell {
	max-width: 980px;
	margin: 0 auto 32px;
	padding: 0 15px;
}

.contact-content {
	background: #fff;
	border: 1px solid #dbe3ee;
	border-radius: 14px;
	padding: 24px 28px;
	box-shadow: 0 6px 18px rgba(22, 33, 52, 0.06);
}

.contact-content h1 {
	font-size: 2rem;
	line-height: 1.25;
	margin: 0 0 14px;
	color: #24364a;
	font-weight: 700;
}

.contact-content > p {
	font-size: 1rem;
	line-height: 1.65;
	color: #304458;
	margin-bottom: 24px;
}

.contact-content .row {
	margin-bottom: 16px;
	flex-wrap: wrap;
}

.contact-content label {
	font-weight: 600;
	color: #24364a;
	margin-bottom: 6px;
	display: block;
	font-size: 0.95rem;
}

.contact-content input[type="text"],
.contact-content input[type="email"],
.contact-content input[type="date"],
.contact-content textarea,
.contact-content select {
	display: block;
	width: 100%;
	border: 1px solid #d1dce7;
	border-radius: 8px;
	padding: 10px 12px;
	font-size: 1rem;
	color: #304458;
	background: #fafbfc;
	font-family: inherit;
}

.contact-content input[type="text"]:focus,
.contact-content input[type="email"]:focus,
.contact-content input[type="date"]:focus,
.contact-content textarea:focus,
.contact-content select:focus {
	outline: none;
	border-color: #1d4f91;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(29, 79, 145, 0.1);
}

.contact-content textarea {
	min-height: 120px;
	resize: vertical;
}

@media (max-width: 768px) {
	.checkout-shell {
		margin-bottom: 24px;
	}

	.checkout-card {
		padding: 14px 12px;
	}

	.checkout-actions {
		flex-direction: column;
	}

	.checkout-actions .btn {
		width: 100%;
	}

	#order-state.checkout-state-table td {
		padding: 8px 4px;
	}

	#order-state.checkout-state-table .fs-1 {
		font-size: 1.35rem !important;
	}

	.admin-shell {
		margin-bottom: 24px;
	}

	.admin-card {
		padding: 12px;
	}

	.admin-order-manage .payment-info-col,
	.admin-order-manage .payment-dates-col {
		padding-left: 0;
		padding-right: 0;
	}

	.product-manage-card .btn-outline-primary {
		width: 100%;
	}

	.article-list-header,
	.article-list-item {
		flex-direction: column;
		align-items: stretch;
	}

	.article-list-actions {
		width: 100%;
		justify-content: stretch;
	}

	.article-list-actions .btn,
	.article-list-actions .aButton,
	.article-list-header .btn {
		width: 100%;
		justify-content: center;
	}

	.article-editor-card .btn-outline-primary {
		width: 100%;
	}

	.settings-form-card .btn-outline-primary,
	.settings-delete-button {
		width: 100%;
		justify-content: center;
	}

	.person-manage-card .btn,
	.person-manage-card button[type="submit"] {
		width: 100%;
	}

	.administration-actions {
		flex-direction: column;
	}

	.administration-actions .btn {
		width: 100%;
	}

	.article-default-content {
		padding: 14px 12px;
	}

	.article-default-content h1 {
		font-size: 1.7rem !important;
	}

	#orders,
	.admin-order-manage .items-table,
	.admin-order-manage .total-table {
		display: block;
		overflow-x: auto;
		white-space: nowrap;
	}
}
