.predplatne-container {
    width: 100%;
    margin: 0 auto;
    font-family: 'Figtree', sans-serif;
    padding: 20px;
    text-align: center;
}

/* Styles for the icon container and icon */
.predplatne-icon-container {
    text-align: center;
    margin-bottom: 20px; /* Space below the icon */
    display: none; /* Skrytí ikonek */
}

#predplatne-dynamic-icon {
    display: inline-block; /* Allows centering */
    width: 150px; /* Adjust size as needed */
    height: 150px;
    border-radius: 50%; /* Make it circular */
    background-color: #f0f0f0; /* Light background for the circle */
    background-size: 60%; /* Adjust icon size within the circle */
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 0.3s ease-in-out; /* Smooth transition for icon change */
    border: 2px solid #00466A; /* Optional border */
}


/* Obecné styly pro všechny kroky */
.predplatne-step {
    margin-bottom: 30px;
    padding: 0;
}

/* První krok obsahuje quick-presets */
.predplatne-step-druh {
    /* Quick presets jsou součástí tohoto kroku */
}

/* Pouze druhý a další kroky mají horní okraj */
.predplatne-step:not(.predplatne-step-druh) {
    padding-top: 30px;
    border-top: 1px solid #e8e8e8;
}

.predplatne-step h3 {
    font-size: 1.75rem;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
    font-family: 'Figtree', sans-serif;
}


.predplatne-slider {
    position: relative;
    padding: 0;
    margin: auto;
}

.predplatne-slider img {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
}

.druh-slider{
    width: 70%;
}

/* Added styles for the new chut slider */
.chut-slider {
    width: 80%; /* Or adjust as needed, maybe 60%? */
}

.jak-casto-slider{
width: 50%;
}

.balicky-slider{
    width: 80%;
}

.doba-slider{
    width: 50%;
}

.slider-wrapper {
    position: relative;
    padding:0;
}

.slider {
    width: 100%;
    -webkit-appearance: none;
    height: 10px!important;
    background: #efefef!important;
    outline: none!important;
    opacity: 0.7;
    -webkit-transition: .2s;
    transition: opacity .2s;
    border-radius: 5px;
    border:none!important;
    padding: 0!important;
}

.slider:hover {
    opacity: 1;
}

/* Hide the default thumb */
.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 0; /* Hide */
    height: 0; /* Hide */
    background: transparent; /* Make invisible */
    cursor: pointer; /* Keep cursor */
}

.slider::-moz-range-thumb {
    width: 0; /* Hide */
    height: 0; /* Hide */
    background: transparent; /* Make invisible */
    border: 0;
    cursor: pointer; /* Keep cursor */
}

.zrno-track{
    position: absolute;
    margin: 0 30px;
    top: 0;
    left: 0;
    right: 0;
    height: 0;
    pointer-events: none;
    z-index: 2;
}

/* Style the visual thumb */
.zrno-visual {
    position: absolute;
    width: 30px; /* Same size as original thumb */
    height: 30px;
    background: url('https://laborka.coffee/wp-content/uploads/2025/04/zrno-b.svg') center/cover no-repeat;
    border-radius: 50%;
    top: -3px; /* Position relative to the wrapper, align vertically with track center */
    left: 0; /* Initial position, will be updated by JS */
    transform: translateX(-50%); /* Center the visual thumb on its position */
    cursor: pointer;
    z-index: 2; /* Above track dots */
    transition: left 0.3s ease-in-out; /* Změněno pro plynulejší přechod */
    pointer-events: none; /* Prevent interaction with this visual element */
}


.slider {
    position: relative; /* Keep for thumb positioning */
    z-index: 1; /* Ensure slider input is interactable */
}

/* New styles for combined anchors */
.slider-anchors {
    position: relative;
    /* bottom: 0; Removed to prevent clipping */
    pointer-events: none; /* Container doesn't block clicks */
    margin: -34px 30px 0 30px; /* Align with visual track ends (thumb radius) */
    z-index: 1;
}

.druh-slider-anchors{
    height: 80px;
}

.chut-slider-anchors{
    height: 170px;
}

.doba-slider-anchors{
    height: 150px;
}

.balicky-slider-anchors{
    height: 110px;
}

.anchor-point {
    position: absolute;
    width: 70%;
    left: 0; /* Will be set by JS */
    top: 12px; /* Align dot vertically with track center */
    transform: translateX(-50%); /* Center the whole anchor */
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: auto; /* Allow clicks on children */
}

.anchor-point .dot {
    width: 20px;
    height: 20px;
    background-image: url('https://laborka.coffee/wp-content/uploads/2025/04/zrno-b.svg') !important;
    background-position: center !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-color: transparent !important; /* Ensure no background color is shown */
    display: block;
    opacity: 1; /* Default state */
    visibility: visible;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out; /* Combined transition */
    cursor: pointer;
}

/* Styles for the active anchor point */
.anchor-point.active-anchor .dot {
    background-image: url('https://laborka.coffee/wp-content/uploads/2025/04/zrno-b.svg') !important; /* Ensure zrno image is kept */
    background-position: center !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-color: transparent !important; /* Ensure no background color is shown */
    opacity: 0;
    visibility: hidden;
    transition-duration: 0.3s;
    transition-delay: 0s;
}

.anchor-point.active-anchor .label {
    color: #00466A;
    font-weight: 700;
}

.anchor-point.active-anchor .sub-label {
    color: #00466A; /* Use same color, adjust if needed */
    font-weight: 500;
}


.anchor-point .label {
    margin-top: 18px; /* Space between dot and label */
    font-size: 1rem;
    white-space: nowrap;
    cursor: pointer;
    color: #333333;
    transition: color .3s;
    font-weight: 500;
    font-family: 'Figtree', sans-serif;
}


.anchor-point .label:hover {
    color: #333;
}

/* Hover effect for the entire anchor point (but not if it's active) */
.anchor-point:not(.active-anchor):hover .dot {
    opacity: 0.8; /* Mírně ztmavit zrno při najetí myší */
}
.anchor-point:not(.active-anchor):hover .label,
.anchor-point:not(.active-anchor):hover .sub-label {
    color: #323232; /* Change text color */
}


.anchor-point .sub-label {
    margin-top: 4px;
    font-size: 0.875rem;
    white-space: normal;
    max-width: 250px;
    font-weight: 400;
    line-height: 1.4;
    display: block;
    cursor: pointer;
    color: #6c7880;
    transition: color .3s;
    font-family: 'Figtree', sans-serif;
}

/* Styles for the popular badge */
.popular-badge {
    position: absolute;
    width: clamp(6.25rem, 4.018rem + 5.952vw, 9.375rem);
    top: -20px;
    right: 50%;
    transform: translateX(50%);
    z-index: 10;
}

.popular-badge img {
    width: 100%; /* Nastavení explicitní šířky */
    height: auto; /* Zachování poměru stran */
}

/* Hide mobile badge by default */
.popular-badge .badge-mobile {
    display: none;
}

/* Ensure active sub-label styles apply correctly on desktop too */
.anchor-point.active-anchor .sub-label {
    color: #00466A;
    font-weight: 500;
    /* display: block; is inherited */
}

/* Hide the dedicated display area on desktop */
.mobile-sub-label-display {
    display: none;
}



/* Removed .active-sub-label-display styles */


/* Remove old styles */
/* .slider-track-dots, .slider-kotvy, .slider-track-dots span, .slider-kotvy span { display: none; } */

.predplatne-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.predplatne-buttons button {
    padding: 10px 40px;
    border: none;
    background-color: #f0f0f0;
    color: #333;
    cursor: pointer;
    margin: 0;
    transition: background-color 0.2s ease-in-out;
}

.predplatne-buttons button.active {
    background-color: #00466A;
    color: #fff;
}

.predplatne-buttons .pro-sebe {
    border-radius: 15px 0 0 15px;
}

.predplatne-buttons .jako-darek {
    border-radius: 0 15px 15px 0;
}

/* Pokladna - pravá strana */

/* Sjednocení stylu nadpisů - nahrazuje předchozí .predplatne-info h3 */
.fakturace-doruceni-info h3,
.predplatne-order-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    background-color: transparent;
    padding-top: 0;
    margin-top: 30px;
    font-family: 'Figtree', sans-serif;
}


.shrnuti-predplatneho {
    margin: 0 0 30px!important;
    padding: 0;
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    text-align: left;
    font-size: 1.1em;
    line-height: 1.8;
}


/* Styl pro položky v rekapitulaci */
/* Ujistíme se, že obecný styl pro .cena-bez-dph nepřepíše váhu písma */
.cena-bez-dph {
    font-weight: 400; /* Výchozí váha pro všechny .cena-bez-dph */
}

/* Sekce s cenami */
.predplatne-cena-doprava {
    margin: 20px 0;
    padding: 0;
    background-color: #fff;
    border-radius: 0;
    box-shadow: none;
    border-top: 1px solid #e0e0e0;
    padding-top: 15px;
}

/* Řádky s cenami */
.predplatne-cena-doprava p {
    display: flex;
    justify-content: space-between;
    text-align: left;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

/* Poslední řádek bez spodního borderu */
.predplatne-cena-doprava p:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Zarovnání ceny doprava */
.predplatne-cena-doprava p span:last-child {
    text-align: right;
    margin-left: auto; /* Zajistí posunutí doprava v flex kontejneru */
    flex-grow: 1; /* Umožní elementu zabrat dostupný prostor */
}


/* Celková cena - výraznější */
.cena-celkem-radek {
    color: #00466A;
    font-weight: bold;
    font-size: 1.1em;
    margin-top: 10px !important;
    padding-top: 10px !important;
    border-top: 2px solid #e0e0e0 !important;
}

/* Styly pro blok s cenou předplatného */
.predplatne-cena-blok {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e8e8e8;
}

.predplatne-cena-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333333;
    font-family: 'Figtree', sans-serif;
}

/* Responzivní styly pro blok s cenou */
@media (max-width: 768px) {
    .predplatne-cena-blok {
        margin-top: 1.5rem;
    }
    
    .predplatne-cena-text {
        font-size: 1.1rem;
    }
}

/* Úprava obecného stylu pro ceny - odstraníme barvu, váhu upravíme individuálně */

.item-price {
    font-size: 1.5rem;
    font-family: 'Figtree', sans-serif;
    font-weight: 600;
}

/* Specifické styly pro tučné ceny tam, kde jsou potřeba */
.cena-celkem,
.cena-s-dph, /* Pokud se bude používat */
.cena-dopravy, /* Pokud má být tučně */
.item-price {
    /* .subtotal-price a .cena-bez-dph mají vlastní styly */
    font-weight: bold;
}


/* Fakturační údaje v shrnutí */
.summary-billing-shipping {
    margin: 20px 0;
    padding: 0;
    background-color: #fff;
    border-radius: 0;
    box-shadow: none;
    border-top: 1px solid #e0e0e0;
    padding-top: 15px;
}

.summary-billing-shipping p {
    text-align: left;
    margin-bottom: 15px;
}

.summary-billing-shipping p:last-child {
    margin-bottom: 0;
}

/* Odstraníme původní separator */
.summary-separator {
    display: none;
}

/* Sekce s datem */
.predplatne-grid {
    margin: 20px 0 10px;
    padding: 0;
    background-color: #fff;
    border-radius: 0;
    box-shadow: none;
    text-align: center;
}

.predplatne-info-obj {
    margin: 10px 0 20px !important;
    width: 100%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
    background-color: #fff;
    border-radius: 0;
    box-shadow: none;
    text-align: center;
    font-size: 0.9em;
    color: #777;
}

/* Odstraněno - duplicitní pravidlo */

/* Speciální případ pro skrytí kroku chut */
.predplatne-step-chut {
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 1;
}

.predplatne-step-chut.chut-hidden {
    max-height: 0; /* Animate to 0 */
    opacity: 0;
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0;
    /* Ensure child elements don't interfere */
    pointer-events: none;
}

/* Odstraněno - pravidla jsou již definována výše */

.predplatne-grid {
    display: block;
    text-align: center;
}

.predplatne-grid-item {
    font-size: clamp(0.813rem, 0.679rem + 0.357vw, 1rem);
    color: #777;
}

.predplatne-grid-item a {
    color: #00466A;
    text-decoration: none;
}
.change-month-link{
    color:#00466A!important;
}

.change-country-link{
    color:#00466A!important;
}

/* Month Selector Popup */
.month-selector-popup {
    position: absolute;
    background-color: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    padding: 10px;
    z-index: 10; /* Ensure it's above other elements */
    min-width: 150px; /* Adjust as needed */
    left: 20%; /* Align with the start of the container */
    top: 100%; /* Position below the "(změnit)" link */
    margin-top: 5px;
}

.month-selector-popup ul {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 200px; /* Limit height and allow scrolling if needed */
    overflow-y: auto;
}

.month-selector-popup li {
    padding: 5px 10px;
    cursor: pointer;
    text-align: left;
}

.month-selector-popup li:hover {
    background-color: #f0f0f0;
}

/* Country Selector Popup (similar to month selector) */
.country-selector-popup {
    position: absolute;
    background-color: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    padding: 10px;
    z-index: 10;
    min-width: 150px;
    left: 0;
    top: 100%;
    margin-top: 5px;
}

.country-selector-popup ul {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 200px;
    overflow-y: auto;
}

.country-selector-popup li {
    padding: 5px 10px;
    cursor: pointer;
    text-align: left;
}

.country-selector-popup li:hover {
    background-color: #f0f0f0;
}

#jako-darek-fields{
    display: none;
    margin-bottom: 20px;
    text-align: center;
}

#jako-darek-fields .gift-name,
#jako-darek-fields .gift-email,
#jako-darek-fields .gift-message{
    width: 100%;
    margin: 20px 3px 0;
    padding: 13px clamp(0.813rem, 0.679rem + 0.357vw, 1rem) 9px;
    transition: all .2s;
    border-radius: 0 !important;
    border: 1px solid #e7e7e7;
}

#jako-darek-fields small{
    display: block;
    color: #777;
    margin: 12px 0 0 0;
}

/* Styles for the checkout container */
.checkout-container {
    margin-top: 64px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    width: 600px;
    margin-left: auto;
    margin-right: auto;
    padding: 20px; /* Přidán padding pro lepší vzhled na desktopu */
}

/* Rekapitulace obsah */
.rekapitulace-obsah {
    padding: 30px;
    background-color: #fff;
    border-radius: 10px;
    margin-bottom: 20px;
}
.obchodni-podminky {
    font-size: .7rem !important;
}
.rekapitulace-sekce {
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e0e0e0;
}
.rekapitulace-sekce:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.rekapitulace-sekce h4 {
    font-size: 1.1em;
    color: #00466A;
    font-weight: 600;
    margin-bottom: 12px;
    margin-top: 0;
    letter-spacing: 0.5px;
}

.shipping-row,
.payment-row{
    justify-self: center;
    width: 70%;
}

.celkova-cena .total-row {
    background: #f5f9fc;
    border-radius: 8px;
    padding: 16px 12px;
    font-size: 1.2em;
    color: #00466A;
    font-weight: bold;
    margin-bottom: 10px;
    border: 2px solid #e0e0e0;
}
.celkova-cena .vat-row {
    font-size: 0.98em;
    color: #6c7880;
    margin-top: 0;
    padding: 0 12px;
}

/* Styles for Fakturace & Doručení block */
.fakturace-doruceni-info {
    flex: 1; /* Allow flex item to grow/shrink */
    min-width: 0; /* Prevent overflow issues in flex */
    padding: 20px; /* Přidán padding */
    text-align: left; /* Align content to the left */
}

/* Checkout Steps Styles */
.checkout-steps {
    padding: 24px;
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

/* Step Indicators */
.step-indicators {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    position: relative;
    padding: 0 10px;
}

.step-indicator {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #777;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    border: 2px solid #e0e0e0;
    margin-bottom: 10px;
    font-family: 'Figtree', sans-serif;
}

.step-indicator.active {
    background-color: #00466A;
    color: white;
    border-color: #00466A;
}

.step-indicator.completed {
    background-color: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

.step-indicator-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 3;
}

.step-indicator-label {
    font-size: 0.875rem;
    color: #777;
    margin-top: 5px;
    font-weight: 400;
    max-width: 80px;
    text-align: center;
    font-family: 'Figtree', sans-serif;
}

.step-indicator-wrapper.active .step-indicator-label {
    color: #00466A;
    font-weight: 500;
}

.step-progress-bar {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 4px;
    background-color: #e0e0e0;
    z-index: 1;
}

.step-progress {
    height: 100%;
    background-color: #00466A;
    transition: width 0.3s ease;
}

/* Step Content */
.checkout-step {
    display: none;
    justify-self: center;
    width: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.checkout-step.active {
    display: block;
    opacity: 1;
}

.checkout-step h3 {
    margin-bottom: 20px;
    color: #333;
    font-weight: 600;
    font-size: 1.25rem;
    font-family: 'Figtree', sans-serif;
}

/* Step Buttons */
.step-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 0;
    gap:8px
}

.prev-step-btn, .next-step-btn {
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.prev-step-btn {
    background-color: #f0f0f0;
    color: #333;
}

.next-step-btn {
    background-color: #00466A;
    color: white;
    margin-left: auto;
}

.prev-step-btn:hover {
    background-color: #e0e0e0;
}

.next-step-btn:hover {
    background-color: #003d5c;
}

.next-step-btn:disabled {
    background-color: #cccccc;
    color: #888888;
    cursor: not-allowed;
}

.koupit-btn:disabled {
    background-color: #cccccc;
    color: #888888;
    cursor: not-allowed;
}
.koupit-btn {
    width: 100%;
    color: white;
    background-color: #003d5c;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* .fakturace-doruceni-info h3 je nyní součástí sjednoceného stylu výše */

/* Sekce údajů */
.udaje-sekce {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.udaje-sekce:last-child {
    border-bottom: none;
}

.udaje-sekce h4 {
    text-align: left;
    font-size: 1.125rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    font-family: 'Figtree', sans-serif;
}

/* Odkaz na přihlášení */
.prihlaseni-odkaz {
    margin-bottom: 15px;
}

.prihlaseni-odkaz a {
    color: #00466A;
    text-decoration: none;
    font-size: 0.9rem;
}

.prihlaseni-odkaz a:hover {
    text-decoration: underline;
}

/* Formulářové prvky */
.fakturacni-udaje,
.dorucovaci-udaje {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Responsive grid */
    gap: 15px; /* Zvětšená mezera mezi inputy */
    margin-bottom: 20px;
}

.fakturacni-udaje input,
.dorucovaci-udaje input,
.company-fields input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: clamp(0.813rem, 0.679rem + 0.357vw, 1rem);
}

.fakturacni-udaje input[name="billing_name"],
.fakturacni-udaje input[name="billing_email"],
.dorucovaci-udaje input[name="shipping_name"],
.company-fields input {
    grid-column: 1 / -1; /* Roztáhne pole přes celou šířku gridu */
}

/* Telefon s předvolbou */
.telefon-wrapper {
    position: relative;
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
}

.telefon-predvolba-select {
    position: relative;
    width: 90px;
    flex-shrink: 0;
}

.telefon-predvolba-select select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px 0 0 5px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #f5f5f5;
    font-weight: 500;
    cursor: pointer;
}

/* Odstraněno nastavení pro vlaječku */

.telefon-wrapper input {
    flex-grow: 1;
    border-radius: 0 5px 5px 0;
    border-left: none;
}

/* Checkbox styly */
.firma-checkbox,
.dorucovaci-checkbox {
    margin-bottom: 15px;
}

.firma-checkbox label,
.dorucovaci-checkbox label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem;
    color: #333;
}

.firma-checkbox input[type="checkbox"],
.dorucovaci-checkbox input[type="checkbox"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
}

/* Pole pro firmu */
.company-fields {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.company-fields input[name="billing_company"] {
    grid-column: 1 / -1;
}

/* Země info */
.zeme-info {
    grid-column: 1 / -1;
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 5px;
    margin-top: 5px;
}

.zeme-info span {
    font-size: 0.9rem;
    color: #555;
}

.separator {
    border: none;
    border-top: 1px solid #e0e0e0; /* Light grey line */
    margin: 25px 0; /* Space above and below */
}

/* Shared styles for headings in shipping and payment */
.vyber-dopravy h4,
.vyber-platby h4,
.checkout-step h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 15px;
    text-align: left !important;
    font-family: 'Figtree', sans-serif;
}

/* Explicitní zarovnání pro hlavní nadpis "Výběr dopravy" */
.checkout-container h3 {
    text-align: left !important;
}

/* Shared container styles */
.vyber-dopravy,
.vyber-platby {
    margin-top: 20px;
}

.vyber-dopravy input[type="radio"],
.vyber-platby input[type="radio"] {
    /* Hide default radio button */
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Style the custom radio button container */
.custom-radio-label {
    display: flex; /* Use flexbox for alignment */
    align-items: center; /* Align items to the top */
    position: relative;
    padding: 15px; /* Padding uvnitř boxu */
    margin-bottom: 15px; /* Increased margin */
    cursor: pointer;
    font-size: clamp(0.813rem, 0.679rem + 0.357vw, 1rem);
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    color: #555;
    border: 2px solid #E3E3E3; /* Ohraničení boxu */
    border-radius: 5px; /* Zaoblené rohy */
    transition: box-shadow 0.2s ease;
    justify-content: space-between; /* Zarovnání obsahu - text vlevo, cena vpravo */
}

/* Styl pro cenu dopravy v radio labelu */
.shipping-price {
    font-weight: bold;
    white-space: nowrap;
    margin-left: auto; /* Odsune cenu doprava */
    color: #333;
}

/* Hover efekt pro box */
.custom-radio-label:hover {
    border-color: #00466A;
}

/* Styl pro vybraný box */
.custom-radio-label input:checked ~ .custom-radio {
    display: none; /* Skryjeme původní custom radio */
}

/* Styl pro vybraný box - text a ikony */
.custom-radio-label input:checked ~ * {
    color: #00466A;
}

/* Styl pro vybraný box - pozadí a border */
.custom-radio-label input:checked + .custom-radio-label,
.custom-radio-label input:checked {
    background-color: #f5f9fc; /* Světlé pozadí pro vybraný box */
}

/* Styl pro vybraný box - border */
.custom-radio-label input:checked {
    border: none; /* Odstraníme původní border */
}

/* Styl pro vybraný box - border a stín */
.custom-radio-label input:checked ~ .shipping-text-wrapper,
.custom-radio-label input:checked ~ .payment-text-wrapper {
    color: #00466A;
}

/* Styl pro vybraný box - border a stín */
.custom-radio-label input:checked ~ .shipping-icon,
.custom-radio-label input:checked ~ .payment-icon {
    filter: brightness(0.9);
}

/* Styl pro vybraný box - border a stín */
.custom-radio-label input:checked {
    background-color: #f5f9fc; /* Světlé pozadí pro vybraný box */
}

/* Styl pro vybraný box - border a stín */
.custom-radio-label input:checked ~ .custom-radio {
    display: none;
}

/* Styl pro vybraný box - border a stín */
.custom-radio-label input:checked + .custom-radio {
    display: none;
}

/* Styl pro vybraný box - border a stín */
.custom-radio-label input:checked {
    border: none;
}

/* Styl pro vybraný box - border a stín */
.vyber-dopravy .custom-radio-label input:checked,
.vyber-platby .custom-radio-label input:checked {
    border: none;
}

/* Styl pro vybraný box - border a stín */
.vyber-dopravy .custom-radio-label input:checked ~ .shipping-label-text,
.vyber-platby .custom-radio-label input:checked ~ .payment-label-text {
    color: #00466A;
}

/* Styl pro vybraný box - border a stín */
.vyber-dopravy .custom-radio-label input:checked ~ .shipping-sub-label,
.vyber-platby .custom-radio-label input:checked ~ .payment-sub-label {
    color: #00466A;
}

/* Styl pro vybraný box - border a stín */
.vyber-dopravy .custom-radio-label input:checked,
.vyber-platby .custom-radio-label input:checked {
    background-color: #f5f9fc;
}

/* Styl pro vybraný box - border a stín */
/* Removed hover outline to prevent border size change
.vyber-dopravy .custom-radio-label:hover,
.vyber-platby .custom-radio-label:hover {
    outline: 2px solid #00466A;
    border: 1px solid white;
} */

/* Styl pro vybraný box - border a stín */
.vyber-dopravy .custom-radio-label input:checked ~ .custom-radio-label,
.vyber-platby .custom-radio-label input:checked ~ .custom-radio-label {
    border-color: #00466A;
}

/* Styl pro vybraný box - border a stín */
.vyber-dopravy .custom-radio-label input:checked,
.vyber-platby .custom-radio-label input:checked {
    border: none;
}

/* Styl pro vybraný box - border a stín */
.vyber-dopravy label.custom-radio-label input:checked,
.vyber-platby label.custom-radio-label input:checked {
    border: none;
}

/* Styl pro vybraný box - border a stín */
.vyber-dopravy label.custom-radio-label,
.vyber-platby label.custom-radio-label {
    border: 1px solid #E3E3E3;
}

/* Styl pro vybraný box - border a stín */
.vyber-dopravy .custom-radio-label input:checked,
.vyber-platby .custom-radio-label input:checked {
    background-color: #f5f9fc;
}

/* Jednodušší řešení pro vybraný box */
.vyber-dopravy .custom-radio-label input:checked ~ .custom-radio,
.vyber-platby .custom-radio-label input:checked ~ .custom-radio {
    display: none;
}

/* Jednodušší řešení pro vybraný box */
.vyber-dopravy .custom-radio-label input:checked,
.vyber-platby .custom-radio-label input:checked {
    border: none;
}

/* Jednodušší řešení pro vybraný box */
.vyber-dopravy .custom-radio-label:has(input:checked),
.vyber-platby .custom-radio-label:has(input:checked) {
    border: 2px solid #00466A;
    box-shadow: 0 0 5px rgba(0, 70, 106, 0.2);
}

/* Jednodušší řešení pro vybraný box - funguje ve všech prohlížečích */
.vyber-dopravy input[type="radio"]:checked + .custom-radio-label,
.vyber-platby input[type="radio"]:checked + .custom-radio-label {
    border: 2px solid #00466A;
    box-shadow: 0 0 5px rgba(0, 70, 106, 0.2);
}

/* Skryjeme původní custom radio */
.custom-radio {
    display: none;
}

/* Style the shipping icon */
.shipping-icon {
    width: 50px; /* Adjust size as needed */
    margin-right: 10px; /* Space between icon and text wrapper */
    flex-shrink: 0; /* Prevent icon from shrinking */
}

/* Style the text wrapper */
.shipping-text-wrapper {
    display: flex;
    flex-direction: column;
    text-align: left;
}

/* Style the main shipping label */
.shipping-label-text {
    font-weight: 600;
    color: #333;
    margin-bottom: 0;
    font-family: 'Figtree', sans-serif;
}

/* Style the sub-label */
.shipping-sub-label {
    font-size: 0.9em; /* Slightly smaller font */
    color: #777; /* Lighter color */
    line-height: 1.3;
}

/* Style the payment icon (similar to shipping icon) */
.payment-icon {
    width: 50px; /* Adjust size as needed */
    margin-right: 10px; /* Space between icon and text wrapper */
    flex-shrink: 0; /* Prevent icon from shrinking */
}

/* Style the payment text wrapper (similar to shipping) */
.payment-text-wrapper {
    display: flex;
    flex-direction: column;
    text-align: left;
}

/* Style the main payment label (similar to shipping) */
.payment-label-text {
    font-weight: 600;
    color: #333;
    margin-bottom: 0;
    font-family: 'Figtree', sans-serif;
}

/* Style the payment sub-label (similar to shipping) */
.payment-sub-label {
    font-size: 0.9em; /* Slightly smaller font */
    color: #777; /* Lighter color */
    line-height: 1.3;
}

/* Style for the payment price */
.payment-price {
    font-weight: bold;
    white-space: nowrap;
    margin-left: auto; /* Add some space between text and price */
    color: #333;
}


.summary-billing-shipping{
    padding-top: 8px;
    border-top: 1px solid #eee;
}

/* Style summary headings */
.summary-billing-shipping p strong {
    color: #000; /* Změněno na černou */
    font-weight: bold;

    /* Match the .dynamic style */
}


/* --- Responsive Styles --- */
@media (max-width: 768px) {

    /* Show mobile badge and hide desktop badge on mobile */
    .popular-badge .badge-desktop {
        display: none;
    }
    .popular-badge .badge-mobile {
        display: inline; /* Or block, depending on desired layout */
    }

    .predplatne-container {
        width: 100%;
        padding: 0; /* Reduce padding on mobile */
    }

    .checkout-container {
        width: 100%; /* Full width on mobile */
        padding: 0; /* Reduce padding on mobile */
        margin-top: 20px; /* Adjust top margin */
        box-shadow: none;
    }
    /* Checkout Steps Styles */
.checkout-steps {
    padding: 0;


}
.checkout-step{
    padding: 0 5px;
}

    .druh-slider {
        width: 100%; /* Full width on mobile */
    }

    .predplatne-slider {
        width: 80%; /* As requested */
    }

    /* Mobile: Hide all sub-labels within anchors */
    .slider-wrapper .anchor-point .sub-label { /* Try different specificity */
        display: none; /* Hide all sub-labels inside anchors */
    }

    /* Mobile: Style and show the dedicated display area */
    .mobile-sub-label-display {
        display: block; /* Show on mobile */
        position: absolute;
        top: default;
        bottom: 0;
        font-size: 13px;
        color: #555; /* Or inherit active color if needed */
        min-height: 30px; /* Ensure space */
        text-align: center;
        width: 100%; /* Full width */
    }

/* Odstraněno - duplicitní pravidla */

    .predplatne-grid {
        grid-template-columns: 1fr; /* Stack grid items on mobile */
        gap: 10px;
    }

    .predplatne-grid-item {
        text-align: center; /* Center grid items */
    }

    /* Adjust popup positions if needed */
    .month-selector-popup,
    .country-selector-popup {
        left: 50%;
        transform: translateX(-50%);
        min-width: 200px;
    }

    /* Disable hover effects on mobile */
    .anchor-point:hover .dot {
        background-color: #333333; /* Revert to default */
    }
    .anchor-point:hover .label,
    .anchor-point:hover .sub-label {
        color: #333333; /* Revert to default */
    }
    /* Keep active styles */
    .anchor-point.active-anchor:hover .label,
    .anchor-point.active-anchor:hover .sub-label {
         color: #00466A; /* Keep active color on hover */
    }
    
    .druh-slider-anchors{
        height: 80px;
    }
    
    .chut-slider-anchors{
        height: 140px;
    }
    
    .doba-slider-anchors{
        height: 130px;
    }
    
    .balicky-slider-anchors{
        height: 120px;
    }

    .obchodni-podminky p {
        font-size: .9rem;
    }

    .month-selector-popup{
        left: 50%;
        top: 50%;
    }

    #predplatne-dynamic-icon {
        width: 100px; /* Adjust size as needed */
        height: 100px;
    }

    /* Responsive adjustments for the new block */
    .fakturace-doruceni-info {
        width: 100%; /* Full width on mobile */
        padding: 10px; /* Add padding back for mobile */
    }

    .info-wrapper {
        flex-direction: column; /* Stack columns on mobile */
        padding: 0; /* Bez paddingu */
        gap: 0; /* Bez mezery */
        border-radius: 10px; /* Zaoblené rohy na všech stranách pro mobil */
    }

    /* Hide separator on mobile */
    .info-wrapper::before {
        display: none;
    }

    .fakturace-doruceni-info,
    .predplatne-info {
        width: 100%; /* Full width on mobile */
    }

    .fakturacni-udaje,
    .dorucovaci-udaje,
    .company-fields {
        grid-template-columns: 1fr; /* Stack inputs on mobile */
        gap: 10px; /* Menší mezera mezi inputy */
    }

    .fakturacni-udaje input,
    .dorucovaci-udaje input,
    .company-fields input {
        width: 100%; /* Plná šířka inputů */
    }

    .telefon-wrapper {
        flex-direction: row; /* Zachovat řádek pro telefon */
        align-items: center;
    }

    .telefon-predvolba-select {
        width: 80px; /* Mírně zmenšit šířku předvolby */
    }

    .popular-badge {
        width: 60%;
        top: -14px;
    }

    .step-indicators {
        flex-direction: row; /* Zpět na řádek jako na desktopu */
        justify-content: space-between; /* Rozprostřít indikátory */
        align-items: center;
        margin-bottom: 20px;
        width: 100%; /* Plná šířka */
        padding: 0; /* Zachovat padding */
    }

    .step-indicator {
        width: 30px; /* Menší indikátor */
        height: 30px; /* Menší indikátor */
        font-size: 0.8em; /* Menší písmo v indikátoru */
        margin-bottom: 5px; /* Menší mezera pod indikátorem */
    }

    .step-indicator-wrapper {
        margin-bottom: 0; /* Odstranit spodní margin */
        flex-basis: 0; /* Umožnit flex itemům zmenšit se */
        flex-grow: 1; /* Umožnit flex itemům růst */
    }

    .step-progress-bar {
        display: none; /* Hide progress bar on mobile */
    }

    .step-indicator-label {
        font-size: 0.75em; /* Menší popisek */
        max-width: none; /* Zrušit omezení šířky */
    }

    /* Add vertical line between indicators on mobile */
    .step-indicator-wrapper:not(:last-child) {
        border-right: 1px solid #e0e0e0; /* Adjust color and thickness as needed */
    }

    .step-buttons {
        flex-direction: column; /* Stack buttons on mobile */
        gap: 10px;
    }

    .prev-step-btn, .next-step-btn, .koupit-btn {
        width: 100%; /* Full width buttons */
        text-align: center;
        margin-left: 0; /* Remove auto margin */
    }

    .rekapitulace-obsah {
        padding: 15px; /* Menší padding */
    }

    .rekapitulace-sekce {
        margin-bottom: 15px;
        padding-bottom: 10px;
    }

    .celkova-cena .total-row {
        padding: 10px; /* Menší padding */
    }

    .vyber-dopravy .custom-radio-label,
    .vyber-platby .custom-radio-label {
        padding: 10px; /* Menší padding v radio boxech */
    }

    .shipping-icon, .payment-icon {
        width: 30px; /* Menší ikony */
        margin-right: 8px;
    }

    .shipping-label-text, .payment-label-text {
        font-size: 1em; /* Mírně menší font */
    }

    .shipping-sub-label, .payment-sub-label {
        font-size: 0.85em; /* Mírně menší font */
    }

    .shipping-price, .payment-price {
        font-size: 1em; /* Mírně menší font */
    }
}

/* Styl pro chybovou hlášku výběru platby */
.payment-required-message {
    color: red;
    text-align: center;
    width: 100%; /* Zajistí, že text-align: center funguje správně v flex kontejneru */
    font-weight: bold; /* Volitelné: zvýraznění */
}

/* Styl pro informační hlášku v kroku 2 (již je inline v PHP, ale můžeme zde upravit) */
#monthly-payment-info {
    /* Styly jsou již nastaveny inline v PHP, zde můžeme přidat/upravit */
    /* např. font-weight: bold; pokud chceme tučně */
}

/* Styl pro informační hlášku v kroku 4 nad platbou */
#recap-monthly-payment-info {
    width: 70%;
    justify-self: center;
    color: #00466A; /* Modrá barva pro informaci */
    font-size: 0.9em; /* Mírně menší písmo */
    font-style: italic; /* Kurzíva pro odlišení */
    text-align: left; /* Zarovnání doleva */
    /* display: none; je řízeno inline stylem z JS */
}

/* Odstraněn styl .payment-info-message-step4 - již není potřeba */

/* Styly pro zobrazení/skrytí kroků formuláře */
.predplatne-form-step {
    display: none;
}

.predplatne-form-step.active {
    display: block !important;
}

/* Styles for the new checkout grid container */
.predplatne-container .checkout-grid-container {
    display: flex;
    flex-direction: row;
    gap: 20px; /* Space between columns */
}

/* Styles for the main content area within the grid */
.predplatne-container .checkout-main-content {
    flex: 55%;
}

/* Styles for the sidebar area within the grid (rekapitulace) */
.predplatne-container .checkout-sidebar {
    flex: 45%;
}

/* Styles for the individual steps within the main content area */
.predplatne-container .checkout-main-content-step {
    display: none; /* Hide steps by default */
}

/* Show the active step within the main content area */
.predplatne-container .checkout-main-content-step.active {
    display: block; /* Show the active step */
}

/* Zajistíme, že kroky budou viditelné, když jsou aktivní */
.predplatne-container .checkout-main-content-step[style*="display: block"] {
    display: block !important;
}

/* Ensure rekapitulace is always visible within the grid sidebar */
.predplatne-container #step-rekapitulace {
    display: block !important;
}

/* Odstraněno pravidlo pro vynucené zobrazení kroků */

/* Styly pro rekapitulaci v pravém sloupci */
#rekapitulace-sidebar {
    background-color: #ffffff;
    border: 2px solid #E3E3E3;
    border-radius: 5px;
    padding: 20px;
    margin-top: 48px;
}



/* Responsive adjustments for the grid layout */
@media (max-width: 768px) {
    .predplatne-container .checkout-grid-container {
        flex-direction: column; /* Stack columns on mobile */
        gap: 0; /* Remove gap on mobile */
    }

    .predplatne-container .checkout-main-content,
    .predplatne-container .checkout-sidebar {
        flex: 100%; /* All items take full width */
    }
}

/* Styly pro rekapitulaci objednávky */
.rekapitulace-nadpis {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    font-family: 'Figtree', sans-serif;
}

.rekapitulace-box {
    margin-top: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 0.375rem;
    background-color: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.rekapitulace-seznam {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rekapitulace-polozka {
    display: flex;
    padding: 1.5rem 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.rekapitulace-obrazek {
    flex-shrink: 0;
}

.rekapitulace-img {
    width: 5rem;
    border-radius: 0.375rem;
}

.rekapitulace-info {
    display: flex;
    width: 100%;
    flex-direction: column;
    text-align: left;
}

.rekapitulace-info-radek {
    display: flex;
}

.rekapitulace-info-obsah {
    min-width: 0;
    flex: 1;
}

.rekapitulace-radek {
    margin-top: 0.25rem;
    font-size: 16px;
    color: #6b7280;
    display: flex;
    justify-content: space-between;
}

.rekapitulace-hodnota {
    font-weight: 600;
    font-size: 16px;
}

.rekapitulace-celkem {
    font-size: 16px;
    font-weight: 500;
    color: #111827;
}

.rekapitulace-podminky {
    margin-top: 0.75rem;
}

.podminky-text {
    font-size: 16px;
    color: #6b7280;
}

.podminky-odkaz {
    font-weight: 500;
    color: #00466A !important;
}

/* Responzivní styly pro rekapitulaci */
@media (max-width: 768px) {
    .rekapitulace-polozka {
        padding: 1rem 0.75rem;
    }
    
    .rekapitulace-img {
        width: 4rem;
    }
    
    .rekapitulace-info {
        margin-left: 1rem;
    }
    
    .rekapitulace-radek {
        font-size: 16px;
    }
    
    .rekapitulace-celkem {
        font-size: 16px;
    }
}

/* Nové styly pro rekapitulaci objednávky */
.recap-box {
    margin-bottom: 24px;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.recap-title {
    font-size: 1.2rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 16px;
}

.recap-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.recap-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.recap-label {
    color: #666;
}

.recap-value {
    font-weight: 500;
    color: #333;
}

.recap-divider {
    height: 1px;
    background-color: #e0e0e0;
    margin: 10px 0;
}

.recap-item.total {
    font-weight: 700;
    color: #00466A;
    margin-top: 5px;
}

/* Responzivní styly pro rekapitulaci */
@media (max-width: 768px) {
    .recap-box {
        padding: 15px;
        margin-bottom: 16px;
    }
    
    .recap-title {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .recap-items {
        gap: 8px;
    }
    
    .recap-label, .recap-value {
        font-size: 16px;
    }
}

/* Nové styly pro rekapitulaci */
.rekapitulace-vyber-kavy {
    margin-left: 0;
    display: flex;
    width: 100%;
    flex-direction: column;
    text-align: left;
}

.rekapitulace-typ-doprava-platba,
.rekapitulace-celkova-cena {
    padding: 1rem;
    border-top: 1px solid #e0e0e0;
}

.rekapitulace-polozka {
    align-items: flex-start;
}

.rekapitulace-obrazek {
    width: 60px;
    margin-right: 15px;
}

.rekapitulace-img {
    width: 100%;
    height: auto;
}

.rekapitulace-radek {
    margin-bottom: 8px;
    font-size: 16px;
}

.rekapitulace-hodnota {
    font-weight: 600;
    text-align: right;
    margin-left: auto;
    padding-left: 10px;
}

.rekapitulace-celkem {
    font-size: 16px;
    font-weight: 700;
    color: #00466A;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
}

/* Skrytí původních sliderů - pouze pro boxy */
.predplatne-step .predplatne-slider,
.predplatne-step .slider-wrapper,
.predplatne-step .slider-anchors,
.predplatne-step .anchor-point,
.predplatne-step .zrno-track,
.predplatne-step .zrno-visual,
.predplatne-step .mobile-sub-label-display,
.predplatne-container .predplatne-slider,
.predplatne-container .slider-wrapper,
.predplatne-container .slider-anchors,
.predplatne-container .anchor-point,
.predplatne-container .zrno-track,
.predplatne-container .zrno-visual,
.predplatne-container .mobile-sub-label-display {
    display: none !important;
}

/* Styly pro rychlé presety */
.quick-presets {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #dee2e6;
}

.quick-presets h4 {
    text-align: center;
    margin-bottom: 12px;
    color: #495057;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Figtree', sans-serif;
}

.preset-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.preset-btn {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    text-align: left;
    min-width: auto;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.preset-btn:hover {
    border-color: #00466A;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 70, 106, 0.15);
}

.preset-btn.active {
    border-color: #00466A;
    background: #f5f9fc;
    transform: translateY(-2px);
}

.preset-icon {
    font-size: 1.2rem;
    margin: 0;
    display: block;
    flex-shrink: 0;
}

.preset-text-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.preset-title {
    font-weight: 600;
    color: #333;
    margin: 0;
    font-size: 0.875rem;
    font-family: 'Figtree', sans-serif;
    line-height: 1.2;
}

.preset-desc {
    font-size: 0.6875rem;
    color: #666;
    line-height: 1.2;
    font-family: 'Figtree', sans-serif;
    font-weight: 400;
    margin: 0;
}

.preset-btn:hover .preset-title,
.preset-btn.active .preset-title {
    color: #00466A;
}

/* Odstraněno - grid layout pro první dva kroky */

/* Styly pro nové boxy místo sliderů */
.predplatne-boxes {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin: 0 auto;
    max-width: 800px;
    align-items: stretch;
}

/* Odstraněno - grid layout styly */

.predplatne-box {
    flex: 0 0 calc(33.333% - 8px);
    width: calc(33.333% - 8px);
    height: 230px;
    padding: 18px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.predplatne-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 70, 106, 0.1), transparent);
    transition: left 0.6s ease;
}

.predplatne-box:hover::before {
    left: 100%;
}

.predplatne-box:hover {
    border-color: #00466A;
    box-shadow: 0 8px 25px rgba(0, 70, 106, 0.15);
    transform: translateY(-2px);
}

.predplatne-box.active {
    border-color: #00466A;
    background-color: #f5f9fc;
    box-shadow: 0 8px 25px rgba(0, 70, 106, 0.2);
    transform: translateY(-3px);
}

.predplatne-box.active::after {
    content: '✓';
    position: absolute;
    top: 10px;
    left: 10px;
    width: 24px;
    height: 24px;
    background: #00466A;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    animation: checkmark 0.3s ease-in-out;
}

@keyframes checkmark {
    0% { transform: scale(0) rotate(180deg); opacity: 0; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes preset-applied {
    0% { transform: scale(1) translateY(-3px); }
    50% { transform: scale(1.05) translateY(-5px); box-shadow: 0 12px 30px rgba(0, 70, 106, 0.3); }
    100% { transform: scale(1) translateY(-3px); }
}

/* Loading stav */
.predplatne-box.loading {
    opacity: 0.7;
    pointer-events: none;
}

.predplatne-box.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #00466A;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Focus styly pro accessibility */
.predplatne-box:focus {
    outline: 3px solid #00466A;
    outline-offset: 2px;
}

.predplatne-box:focus:not(:focus-visible) {
    outline: none;
}

/* Lepší hover efekty pro ikony */
.predplatne-box .box-icon {
    filter: grayscale(0.3);
    transition: all 0.3s ease;
}

.predplatne-box:hover .box-icon,
.predplatne-box.active .box-icon {
    filter: grayscale(0);
}

/* Tooltip efekt pro popular badge */
.popular-badge::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border: 5px solid transparent;
    border-top-color: #ff6b6b;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popular-badge:hover::after {
    opacity: 1;
}

.box-header {
    margin-bottom: 10px;
    position: relative;
    flex-shrink: 0;
}

/* Speciální úprava pro popular badge v malých boxech */
.jak-casto-boxes .popular-badge,
.doba-boxes .popular-badge {
    top: 3px;
    right: 3px;
    font-size: 0.75rem;
    padding: 2px 4px;
}

.box-icon {
    font-size: 1.75rem;
    margin-bottom: 8px;
    display: block;
    transition: transform 0.3s ease;
}

.predplatne-box:hover .box-icon {
    transform: scale(1.1);
}

.predplatne-box.active .box-icon {
    /* transform: scale(1.15); - Zrušeno zvětšování ikony při aktivním stavu */
    transform: scale(1);
}

.box-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 5px;
    font-family: 'Figtree', sans-serif;
}

.predplatne-box.active .box-title {
    color: #00466A;
}

.popular-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #ff6b6b;
    color: white;
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: -0.02em;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    z-index: 5;
    white-space: nowrap;
    line-height: 1.2;
    max-width: fit-content;
}


.box-description {
    margin-top: 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.box-description p {
    font-size: 0.875rem;
    color: #666;
    line-height: 1.4;
    margin: 0 0 6px 0;
    font-family: 'Figtree', sans-serif;
    font-weight: 400;
}

.box-subtitle {
    font-size: 0.875rem;
    color: #888;
    font-style: italic;
    margin: 5px 0 0 0 !important;
    font-family: 'Figtree', sans-serif;
    font-weight: 400;
}

.predplatne-box.active .box-description p {
    color: #555;
}

.predplatne-box.active .box-subtitle {
    color: #00466A;
    font-weight: 500;
}

/* Všechny boxy mají stejnou výšku */
.jak-casto-boxes {
    justify-content: center;
}

.jak-casto-boxes .predplatne-box {
    flex: 0 0 calc(50% - 6px);
    width: calc(50% - 6px);
    max-width: 260px;
    height: 230px;
}

.doba-boxes {
    justify-content: center;
}

.doba-boxes .predplatne-box {
    flex: 0 0 calc(50% - 6px);
    width: calc(50% - 6px);
    max-width: 260px;
    height: 230px;
}

.balicky-boxes .predplatne-box {
    flex: 0 0 calc(33.333% - 8px);
    width: calc(33.333% - 8px);
    height: 230px;
}

.druh-boxes .predplatne-box,
.chut-boxes .predplatne-box {
    height: 230px;
}

.jak-casto-boxes .predplatne-box .box-description,
.doba-boxes .box-title {
    font-size: 1.2rem;
}

/* Tablet responzivní úpravy */
@media (max-width: 1024px) and (min-width: 769px) {
    .predplatne-boxes {
        max-width: 700px;
        gap: 12px;
    }
    
    .predplatne-box {
        flex: 0 0 calc(50% - 6px);
        width: calc(50% - 6px);
        max-width: 260px;
        height: 200px;
    }
    
    .jak-casto-boxes .predplatne-box,
    .doba-boxes .predplatne-box,
    .druh-boxes .predplatne-box,
    .chut-boxes .predplatne-box,
    .balicky-boxes .predplatne-box {
        height: 200px;
    }
    
    .preset-buttons {
        gap: 12px;
    }
    
    .preset-btn {
        min-width: 120px;
        padding: 12px 16px;
    }
}

/* Úprava pozice badge při menších boxech */
.predplatne-boxes .popular-badge {
    line-height: 1;
}

/* Touch optimization */
@media (hover: none) and (pointer: coarse) {
    .predplatne-box {
        min-height: 60px; /* Bigger touch targets */
        padding: 20px;
    }
    
    .preset-btn {
        padding: 18px 20px;
        min-height: 60px;
    }
    
    .predplatne-box:hover::before {
        display: none; /* Disable hover animations on touch */
    }
    
    .predplatne-box:active {
        transform: scale(0.98);
    }
}

/* Responzivní úpravy pro mobil */
@media (max-width: 768px) {
    .quick-presets {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .preset-buttons {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
    
    .preset-btn {
        width: 100%;
        max-width: 100%;
        min-width: auto;
        padding: 10px 12px;
        justify-content: flex-start;
    }
    
    .predplatne-boxes {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin: 15px auto;
    }
    
    .predplatne-box {
        flex: 0 0 100%;
        width: 100%;
        height: auto;
        min-height: 200px;
        padding: 15px;
        margin: 0;
    }
    
    .jak-casto-boxes .predplatne-box,
    .doba-boxes .predplatne-box,
    .balicky-boxes .predplatne-box,
    .druh-boxes .predplatne-box,
    .chut-boxes .predplatne-box {
        flex: 0 0 100%;
        width: 100%;
        height: auto;
        min-height: 200px;
    }
    
    .box-title {
        font-size: 1.2rem;
    }
    
    .box-description p {
        font-size: 0.9rem;
    }
    
    .box-icon {
        font-size: 1.5rem;
    }
    
    .popular-badge {
        top: -4px;
        right: -4px;
        padding: 2px 4px;
        font-size: 0.75rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .predplatne-box {
        border-width: 3px;
    }
    
    .predplatne-box.active {
        border-color: #000;
        background-color: #fff;
    }
    
    .popular-badge {
        background: #000;
        color: #fff;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .predplatne-box,
    .preset-btn,
    .box-icon,
    .popular-badge {
        transition: none;
        animation: none;
    }
    
    .predplatne-box:hover::before {
        display: none;
    }
}
