body.sample-body {
	font-family: Arial, sans-serif;
	line-height: 1.6;
}

/* Košík */
.sample-cart-wrapper {
	position: fixed;
	top: 0;
	right: -500px;
	width: 500px;
	height: 100vh;
	background: white;
	box-shadow: -2px 0 5px rgba(0,0,0,0.1);
	transition: right 0.3s ease;
	z-index: 10000002;
	overflow: hidden; /* Aby obsah nepřesahoval container */
}
.sample-cart-wrapper.active { right: 0; }

.sample-cart {
	display: flex;
	flex-direction: column;
	height: 100%;
	/* Přidáme podporu pro iOS Safari */
	position: relative;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch; /* Pro lepší scrollování na iOS */
}

.sample-cart-header, .sample-cart-footer {
	padding: 20px;
	display: flex;
	align-items: center;
}
.sample-cart-header {
	justify-content: space-between;
	border-bottom: 1px solid #eee;
	padding: 20px 25px; /* Zvětšený padding pro vzdušnější vzhled */
}
.sample-cart-footer { border-top: 1px solid #eee; }

.sample-cart-items {
	flex: 1;
	overflow-y: auto;
	padding: 20px;
}

.sample-cart-item {
	display: flex;
	align-items: center;
	padding: 15px;
	border-bottom: 1px solid #eee;
	gap: 12px; /* Mezera mezi prvky */
	text-align: left !important;
	justify-content: flex-start !important;
}

.sample-cart-item .item-details {
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	text-align: left !important;
}

.sample-cart-item .item-details h4 {
	margin: 0 0 4px 0;
	font-size: 15px;
	font-weight: 600;
	color: #333;
	text-align: left !important;
}

.sample-cart-item .item-details small {
	color: #777;
	font-size: 12px;
	text-align: left !important;
}

/* Styl pro miniatury produktů */
.sample-cart-item-thumbnail {
	width: 62px;
	height: 62px;
	background-color: #f0f0f0;
	border-radius: 4px; /* Stejné zaoblení jako tlačítka */
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.sample-cart-item-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Tlačítko košíku */
.sample-cart-toggle-button {
	position: fixed;
	right: 0;
	top: 20%;
	width: 80px;
	height: 80px;
	background: #FFD54F;
	border: none;
	border-radius: 40px 0 0 40px;
	cursor: pointer;
	z-index: 999;
	box-shadow: -2px 0 5px rgba(0,0,0,0.1);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	margin: 0;
}

.sample-cart-icon {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.sample-cart-icon svg {
	width: 100%;
	height: 100%;
	color: #1F2937;
}

.sample-cart-counter {
	position: absolute;
	top: 8px;
	right: 8px;
	background: #4CAF50;
	color: white;
	border-radius: 50%;
	width: 22px;
	height: 22px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: bold;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Modal - základní struktura */
.sample-modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.6);
	z-index: 10000003;
	padding: 20px;
}

/* Obsah modalu */
.sample-modal-content {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: white;
	padding: 40px;
	border-radius: 8px;
	width: 90%;
	max-width: 500px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Nadpis modalu */
.sample-modal-content h3 {
	font-size: 24px;
	font-weight: 600;
	color: #333;
	margin-bottom: 30px;
	padding-right: 30px;
	text-align: left !important;
}

/* Formulářové skupiny */
.sample-form-group {
	margin-bottom: 25px;
}

/* Popisky formuláře */
.sample-form-group label {
	display: block;
	margin-bottom: 8px;
	font-size: 15px;
	font-weight: 600;
	color: #444;
	text-align: left !important;
}

/* Hvězdička pro povinná pole */
.sample-form-group label::after {
	content: " *";
	color: #E53E3E;
	font-weight: 400;
}

/* Input a Select pole */
.sample-modal-content input,
.sample-modal-content select {
	width: 100%;
	height: 52px; /* Sjednocená výška */
	padding: 12px 15px;
	border: 1.5px solid #e0e0e0;
	border-radius: 6px;
	font-size: 15px;
	transition: all 0.2s ease;
	background-color: #fff;
	box-sizing: border-box;
}

/* Placeholder barva */
.sample-modal-content input::placeholder {
	color: #999;
}

/* Select šipka */
.sample-modal-content select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 15px center;
	padding-right: 40px;
}

/* Focus stavy */
.sample-modal-content input:focus,
.sample-modal-content select:focus {
	border-color: #4DBCAB;
	box-shadow: 0 0 0 3px rgba(77, 188, 171, 0.1);
	outline: none;
}

/* Tlačítko zavření */
.sample-modal-close {
	position: absolute;
	right: 20px;
	top: 20px;
	width: 30px;
	height: 30px;
	background: transparent;
	border: none;
	cursor: pointer;
	color: #666;
	font-size: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.2s ease;
}

.sample-modal-close:hover {
	color: #333;
}

/* Submit tlačítko */
.sample-modal-content form button[type="submit"] {
	background: #4DBCAB;
	color: white;
	padding: 15px 20px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 16px;
	font-weight: 600;
	width: 100%;
	border: none;
	transition: all 0.2s ease;
	margin-top: 30px;
	height: 52px;
}

.sample-modal-content form button[type="submit"]:hover {
	background: #5AC3B5;
	transform: translateY(-1px);
}

.sample-modal-content form button[type="submit"]:active {
	transform: translateY(0);
}

/* Responzivní úpravy */
@media (max-width: 500px) {
	.sample-modal-content {
		padding: 30px 20px;
	}
	
	.sample-modal-content h3 {
		font-size: 20px;
		margin-bottom: 25px;
	}
	
	.sample-form-group {
		margin-bottom: 20px;
	}
}

/* Styly pro nevalidní pole - jemnější přístup */
.sample-modal input:invalid,
.sample-modal select:invalid {
	border-color: #e0e0e0;
}

/* Styly pro nevalidní pole po interakci */
.sample-modal input:invalid:focus,
.sample-modal select:invalid:focus {
	border-color: #4DBCAB;
	box-shadow: 0 0 0 3px rgba(77, 188, 171, 0.1);
}

/* Zvýraznění prázdných select polí */
.sample-modal select:invalid {
	color: #999; /* Světlejší barva pro placeholder */
}

.sample-modal select option[value=""] {
	color: #999;
}

.sample-modal select option:not([value=""]) {
	color: #333;
}

/* Tlačítka */
a.add-sample-btn {
	border: none;
	cursor: pointer;
	background-color: #FFD54F;
	color: #000;
	/*position: absolute;
    top: 60px;
    right: 22px;
    z-index: 1111;*/
	/*border-top-right-radius: 0;
	border-bottom-right-radius: 0;*/
}

body.sample-body a.add-sample-btn {
	padding: 10px 20px;
	margin: 5px;
	position: relative;
}

/* Upravené tlačítko pro odstranění položky */
button.remove-item {
	background: transparent;
	color: #333;
	padding: 0;
	width: 30px;
	height: 30px;
	font-size: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
}

button.remove-item:hover {
	color: #000;
}

.order-samples {
	background: #26B99A;
	color: white;
	width: auto;
}

.order-samples:hover {
	background: #1FA588;
}

.sample-close-cart-button {
	background: white;
	color: #333;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	font-weight: 400;
}

.sample-close-cart-button:hover {
	background: #f5f5f5;
}

.sample-cart-footer {
	padding: 20px;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	border-top: 1px solid #eee;
}

.test-buttons {
	padding: 20px;
	background: #f8f9fa;
	margin: 20px;
	border-radius: 5px;
}

/* Úprava zavíracího tlačítka v košíku */
.sample-close-cart {
	background: transparent;
	color: #333;
	border: none;
	font-size: 24px;
	cursor: pointer;
	padding: 0;
	margin: 0;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.sample-close-cart:hover {
	color: #000;
}

/* Responsivní design */
@media (max-width: 768px) {
	.sample-cart-toggle-button {
		width: 60px; height: 60px;
		border-radius: 30px 0 0 30px;
	}
	.sample-cart-icon { width: 30px; height: 30px; }
	.sample-cart-counter {
		width: 20px; height: 20px;
		font-size: 11px;
		top: 5px; right: 5px;
	}
}

/* Úpravy pro mobilní zařízení */
@media (max-width: 500px) {
    /* Na mobilních zařízeních bude košík přes celou obrazovku */
    .sample-cart-wrapper {
        width: 100%;
        right: -100%;
        height: 100%;
        display: flex;
        flex-direction: column;
    }
    
    .sample-cart-wrapper.active { 
        right: 0;
    }
    
    /* Upravíme strukturu košíku pro mobilní zařízení - flexbox layout */
    .sample-cart {
        flex: 1;
        display: flex;
        flex-direction: column;
        height: 100%;
        overflow: hidden;
    }
    
    .sample-cart-header {
        flex-shrink: 0;
        padding: 18px 20px;
    }
    
    .sample-cart-items {
        flex: 1;
        overflow-y: auto;
        padding: 20px;
        padding-bottom: 20px;
    }
    
    /* Sekce s informací umístěna nad patičkou */
    .samples-info-section {
        flex-shrink: 0;
        padding: 15px 20px;
        border-top: 1px solid #eee;
        border-bottom: 1px solid #eee;
        background-color: white;
    }
    
    /* Upevníme patičku na spodek košíku */
    .sample-cart-footer {
        flex-shrink: 0;
        padding: 15px;
        background: white;
        border-top: 1px solid #eee;
        flex-direction: column;
        align-items: stretch;
    }
    
    /* Tlačítka budou pod sebou a přes celou šířku */
    .sample-cart-footer .sample-cart-button {
        width: 100%;
        margin: 5px 0;
        padding: 15px;
        font-size: 16px;
        text-align: center;
        display: block;
    }
    
    /* První tlačítko (Objednat vzorky) bude mít větší padding */
    .sample-cart-footer .order-samples {
        margin-bottom: 10px;
        font-weight: 700;
    }
}

/* Pro nejmenší zařízení ještě více optimalizujeme */
@media (max-width: 375px) {
    .sample-cart-footer {
        padding: 12px; /* Zmenšený padding celého footer containeru */
    }
    
    .sample-cart-footer .sample-cart-button {
        padding: 12px 5px; /* Přizpůsobení výšky tlačítek */
        font-size: 13px;
    }
}

/* Tooltip pro tlačítko košíku */
.sample-cart-tooltip {
    position: absolute;
    right: 90px; /* Větší odstup od tlačítka */
    top: 50%;
    transform: translateY(-50%);
    background-color: #333;
    color: white;
    padding: 8px 15px; /* Větší padding pro vzdušnější vzhled */
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
    z-index: 998;
}

.sample-cart-tooltip::after {
	content: "";
	position: absolute;
	right: -10px;
	top: 50%;
	transform: translateY(-50%);
	border-width: 5px;
	border-style: solid;
	border-color: transparent transparent transparent #333;
}

.sample-cart-toggle-button:hover .sample-cart-tooltip {
	opacity: 1;
	visibility: visible;
}

/* Tlačítka pro košík na základě screenshotu */
.sample-cart-button {
    padding: 15px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    margin-right: 10px;
    transition: background-color 0.2s ease;
    min-width: 120px;
    text-align: center !important;
}

/* Specifické úpravy pro tlačítka ve footeru košíku podle screenshotu */
.sample-cart-footer .order-samples {
    background: #4DBCAB;
    border-radius: 4px;
    font-weight: 700;
    min-width: 200px;
    transition: background-color 0.2s ease;
    text-align: center !important;
}

.sample-cart-footer .order-samples:hover {
    background: #5AC3B5; /* Trochu světlejší odstín při najetí myší */
}

.sample-cart-footer .sample-close-cart-button {
    min-width: 150px;
    text-align: center !important;
}

/* Sekce s informací o zbývajících vzorcích */
.samples-info-section {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    border-top: 1px solid #eee;
    background-color: #fff;
    text-align: left !important;
    justify-content: flex-start !important;
}

.samples-info-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: #4DBCAB; /* Stejná barva jako u tlačítka objednání */
}

.samples-info-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.samples-info-text {
    flex: 1;
}

.samples-info-text h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
    color: #333;
    text-align: left !important;
}

.samples-info-text p {
    font-size: 14px;
    color: #666;
    margin: 0;
    text-align: left !important;
}

/* Styly pro upozornění, když je košík plný */
.samples-info-section.full {
    background-color: #FFF5F5;
}

.samples-info-section.full .samples-info-icon {
    color: #E53E3E;
}

/* Přizpůsobení pro mobilní zařízení */
@media (max-width: 500px) {
    .samples-info-section {
        padding: 15px 20px;
    }
}

/* Overlay pro košík */
.sample-cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000001; /* Vyšší než 10000000 */
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sample-cart-overlay.active {
    display: block;
    opacity: 1;
}

/* Přidáno !important pro zajištění, že hranice bude aplikována */
button.sample-cart-button.sample-close-cart-button {
    background: white !important;
    color: #333 !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 4px !important;
    font-weight: 400 !important;
}

button.sample-cart-button.sample-close-cart-button:hover {
    background: #f5f5f5 !important;
}

/* Kontrola, že se nepřepisují obecným pravidlem pro tlačítka */
.sample-cart-button {
    padding: 15px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    margin-right: 10px;
    transition: background-color 0.2s ease;
    min-width: 120px;
    /* Odstranění border: none, které může přepisovat naše nastavení */
}

/* Úprava hlavičky košíku */
.sample-cart-header {
    justify-content: space-between;
    border-bottom: 1px solid #eee;
    padding: 20px 25px; /* Zvětšený padding pro vzdušnější vzhled */
}

/* Styl pro obal nadpisu s ikonkou */
.sample-cart-header-title {
    display: flex;
    align-items: center;
    text-align: left !important;
    justify-content: flex-start !important;
}

/* Styl pro ikonku v nadpisu */
.sample-cart-header-icon {
    width: 32px; /* Mírně větší ikona */
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px; /* Větší mezera mezi ikonou a textem */
    color: #4DBCAB;
}

/* Nadpis v hlavičce košíku */
.sample-cart-header-title h3 {
    font-size: 18px; /* Trochu větší písmo pro nadpis */
    font-weight: 600; /* Středně tučné písmo */
    text-align: left !important;
}

.sample-cart-header-icon svg {
    width: 100%;
    height: 100%;
}

/* Styl pro disabled tlačítko */
.sample-cart-footer .order-samples.disabled {
    background: #cccccc;
    cursor: not-allowed;
    opacity: 0.7;
}

.sample-cart-footer .order-samples.disabled:hover {
    background: #cccccc;
}

/* Styly pro tlačítko v modalu */
.sample-modal-content form button[type="submit"] {
    background: #4DBCAB;
    color: white;
    padding: 15px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    width: 100%;
    border: none;
    transition: background-color 0.2s ease;
    margin-top: 20px;
}

.sample-modal-content form button[type="submit"]:hover {
    background: #5AC3B5;
}

/* Úprava pro focus stav */
.sample-modal-content form button[type="submit"]:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(77, 188, 171, 0.2);
}

/* Pro tlačítka odstranění položek (X) */
.remove-item {
    outline: none !important;
    border: none !important;
}

/* Pro tlačítko Objednat vzorky */
.sample-cart-button,
.order-samples {
    outline: none !important;
    border: none !important;
}

/* Resetování zarovnání pro všechny elementy v košíku */
.sample-cart * {
    text-align: left !important;
}

/* Specifické úpravy pro jednotlivé elementy */
.sample-cart-item {
    text-align: left !important;
    justify-content: flex-start !important;
}

.samplecart-item .item-details {
    text-align: left !important;
}

.samplecart-item .item-details h4,
.samplecart-item .item-details small,
.samples-info-text h4,
.samples-info-text p {
    text-align: left !important;
}

/* Úprava pro hlavičku košíku */
.sample-cart-header-title {
    text-align: left !important;
    justify-content: flex-start !important;
}

.sample-cart-header-title h3 {
    text-align: left !important;
}

/* Úprava pro informační sekci */
.samples-info-section {
    text-align: left !important;
    justify-content: flex-start !important;
}