/**
 * Frontend styly pro zobrazení termínů čištění
 */

/* Hlavní kontejner */
.mcc-cleaning-appointments {
    margin: 20px 0;
    font-family: inherit;
}

.mcc-appointments-title {
    font-size: 1.2em;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #333;
}

/* Seznam termínů */
.mcc-appointments-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Jednotlivé termíny */
.mcc-appointment-item {
    display: inline-block;
}

/* Badge styling - label tlačítko */
.mcc-appointment-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 12px;
    background: var(--waste-color, #666666);
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    min-width: 100px;
    text-align: center;
    cursor: default;
    position: relative;
    overflow: hidden;
    border: none;
}

.mcc-appointment-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Datum */
.mcc-appointment-date {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
    display: block;
}

/* Typ odpadu */
.mcc-appointment-waste {
    font-size: 12px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

/* Puntík s barvou odpadu */
.mcc-waste-color-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.3);
}

/* Stejná šířka tlačítek */
.mcc-equal-width .mcc-appointments-list {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.mcc-equal-width .mcc-appointment-badge {
    width: 100%;
    min-width: 140px;
}

/* Styly pro ceník/tarify */
.mcc-pricing-section {
    margin-bottom: 30px;
}

.mcc-pricing-title,
.mcc-appointments-title {
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
    color: #333;
}

.mcc-pricing-plans {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mcc-pricing-item {
    width: 100%;
}

.mcc-pricing-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
    text-decoration: none;
    color: inherit;
    min-height: 50px;
    box-sizing: border-box;
}

.mcc-pricing-badge:hover {
    border-color: #4CAF50;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
    transform: translateY(-2px);
}

.mcc-pricing-badge input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.mcc-pricing-badge.selected {
    border-color: #4CAF50;
    background: #f8fff8;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
}

.mcc-pricing-badge.selected .mcc-plan-price-badge {
    color: #4CAF50;
    font-weight: 800;
}

.mcc-pricing-badge.default-selected {
    border-color: #ddd;
    background: #f9f9f9;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Levá část - 3 sloupce (název + popis) */
.mcc-plan-content {
    flex: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mcc-plan-name {
    font-weight: 600;
    font-size: 15px;
    color: #333;
    margin: 0 0 3px 0;
    line-height: 1.2;
}

.mcc-plan-description {
    color: #666;
    font-size: 13px;
    line-height: 1.3;
    margin: 0;
}

/* Pravá část - 1 sloupec (cena) */
.mcc-plan-price-badge {
    flex: 1;
    text-align: right;
    font-size: 16px;
    font-weight: 700;
    color: #2c5282;
    margin: 0;
    white-space: nowrap;
    background: rgba(44, 82, 130, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 80px;
}

/* Pozicování price badges pomocí data atributů */

/* Simplified pricing - no positioning system needed */

/* Typ svozu */
.mcc-appointment-type {
    font-size: 10px;
    opacity: 0.8;
    background: rgba(255,255,255,0.2);
    padding: 2px 6px;
    border-radius: 10px;
    margin-top: 4px;
    display: inline-block;
}

/* Order System Styles */
.mcc-order-section {
    margin-top: 30px;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #f9f9f9;
    text-align: center; /* Default centrování */
}

/* Quantity Row - Horizontální layout s rekapitulací */
.mcc-quantity-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    flex-wrap: wrap;
    justify-content: center; /* Default centrování */
}

.mcc-quantity-label {
    font-weight: 600;
    color: #333;
    margin: 0;
    white-space: nowrap;
    font-size: 16px;
}

.mcc-quantity-input {
    width: 100px;
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 18px;
    text-align: center;
    background: #fff;
    font-weight: 600;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    /* Obnovení native number input spinnerů */
    -moz-appearance: number-input;
    appearance: auto;
}

.mcc-quantity-input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15), 0 2px 8px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.mcc-quantity-input:hover {
    border-color: #bbb;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.mcc-quantity-input:invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

/* Obnovení native spinner buttonů */
.mcc-quantity-input::-webkit-outer-spin-button,
.mcc-quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: auto;
    margin: 0;
    height: auto;
}

/* Quantity rekapitulace */
.mcc-quantity-recap {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    white-space: nowrap;
}

.mcc-recap-quantity {
    font-weight: 600;
    color: #333;
    min-width: 20px;
    text-align: center;
}

.mcc-recap-unit-price {
    font-weight: 600;
    color: #2196F3;
}

/* Price Row */
.mcc-price-row {
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    border: 1px solid #dee2e6;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.mcc-current-price {
    font-size: 18px;
    color: #333;
    white-space: nowrap;
    font-weight: 500;
    display: block;
    text-align: center;
}

.mcc-total-price {
    font-size: 24px;
    color: #4CAF50;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    display: inline-block;
    padding: 5px 10px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 6px;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.mcc-total-price:hover {
    background: rgba(76, 175, 80, 0.15);
    transform: scale(1.05);
}

.mcc-total-price.mcc-price-updating {
    animation: priceUpdate 0.3s ease;
    background: rgba(76, 175, 80, 0.2);
}

@keyframes priceUpdate {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.95); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

/* Pricing Badge změny ceny */
.mcc-plan-price-badge {
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.mcc-plan-price-badge.mcc-price-changed {
    animation: priceChange 0.6s ease;
}

@keyframes priceChange {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.mcc-old-price {
    text-decoration: line-through;
    opacity: 0.6;
    font-size: 0.75em;
    margin-right: 8px;
    position: relative;
    color: #999;
}

.mcc-old-price::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 2px;
    background: currentColor;
    animation: strikeThrough 0.4s ease 0.2s forwards;
    transform: scaleX(0);
    transform-origin: left;
}

@keyframes strikeThrough {
    to { transform: scaleX(1); }
}

.mcc-new-price {
    font-weight: 700;
    font-size: 1em;
    animation: newPriceSlideIn 0.5s ease 0.3s both;
}

@keyframes newPriceSlideIn {
    from { 
        opacity: 0; 
        transform: translateX(10px);
    }
    to { 
        opacity: 1; 
        transform: translateX(0);
    }
}

.mcc-order-button {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

.mcc-order-button:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.mcc-order-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.mcc-order-button.loading {
    position: relative;
    color: transparent;
}

.mcc-order-button.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: mccSpin 1s linear infinite;
}

/* Responzivní design */
@media (max-width: 768px) {
    .mcc-appointments-list {
        justify-content: center;
    }
    
    .mcc-appointment-badge {
        min-width: 100px;
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .mcc-appointment-date {
        font-size: 14px;
    }
}

/* Styly variants */

/* Compact styl */
.mcc-style-compact .mcc-appointments-list {
    gap: 8px;
}

.mcc-style-compact .mcc-appointment-badge {
    padding: 8px 12px;
    min-width: 90px;
    font-size: 12px;
}

.mcc-style-compact .mcc-appointment-date {
    font-size: 14px;
}

.mcc-style-compact .mcc-appointment-waste {
    font-size: 11px;
}

/* Minimal styl */
.mcc-style-minimal .mcc-appointment-badge {
    background: transparent;
    color: var(--waste-color, #666666);
    border: 2px solid var(--waste-color, #666666);
    box-shadow: none;
}

.mcc-style-minimal .mcc-appointment-badge:hover {
    background: var(--waste-color, #666666);
    color: white;
}

.mcc-style-minimal .mcc-appointment-type {
    background: rgba(0,0,0,0.1);
    color: inherit;
}

/* WooCommerce integrace */
.single-product .mcc-cleaning-appointments {
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-top: 30px;
}

/* Elementor integrace */
.elementor-widget .mcc-cleaning-appointments {
    margin: 0;
}

.elementor-widget .mcc-appointments-title {
    margin-top: 0;
}

/* Accessibility */
.mcc-appointment-badge:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.1);
}

/* Print styles */
@media print {
    .mcc-appointment-badge {
        background: transparent !important;
        color: #000 !important;
        border: 1px solid #000;
        box-shadow: none;
    }
}

/* Animace při načtení */
.mcc-appointment-item {
    animation: mccFadeInUp 0.5s ease-out;
    animation-fill-mode: both;
}

@keyframes mccFadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered animation delay */
.mcc-appointment-item:nth-child(1) { animation-delay: 0.1s; }
.mcc-appointment-item:nth-child(2) { animation-delay: 0.2s; }
.mcc-appointment-item:nth-child(3) { animation-delay: 0.3s; }
.mcc-appointment-item:nth-child(4) { animation-delay: 0.4s; }
.mcc-appointment-item:nth-child(5) { animation-delay: 0.5s; }
.mcc-appointment-item:nth-child(n+6) { animation-delay: 0.6s; }

/* ========== ELEMENTOR WIDGET SPECIFIC STYLES ========== */

/* Layout types */
.mcc-elementor-widget.mcc-layout-grid .mcc-appointments-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.mcc-elementor-widget.mcc-layout-flex .mcc-appointments-list {
    display: flex;
    flex-wrap: wrap;
}

/* Hover animations */
.mcc-elementor-widget.mcc-hover-enabled .mcc-appointment-badge:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

/* Entrance animations */
.mcc-elementor-widget.mcc-entrance-enabled .mcc-appointment-item {
    animation: mccElementorFadeInUp 0.6s ease-out backwards;
}

@keyframes mccElementorFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Disable animations in editor */
.elementor-editor-active .mcc-appointment-item {
    animation: none !important;
}

/* Elementor responsive controls */
@media (max-width: 1024px) {
    .mcc-elementor-widget.mcc-layout-grid .mcc-appointments-list {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
}

@media (max-width: 768px) {
    .mcc-elementor-widget.mcc-layout-grid .mcc-appointments-list {
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    }
    
    .mcc-elementor-widget .mcc-appointment-badge {
        min-width: 90px;
        padding: 10px 12px;
    }
}

/* ========== SELECTABLE APPOINTMENTS ========== */

/* Klikatelné termíny */
.mcc-selectable-badge {
    cursor: pointer;
    border: none;
    background: inherit;
    font: inherit;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mcc-selectable-badge:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.mcc-selectable-badge:hover:before {
    left: 100%;
}

/* Selected stav */
/* Vybraný termín - pouze pokud není výchozí */
.mcc-selectable-badge.selected:not(.default-selected) {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Výchozí vybraný termín vypadá stejně jako nevybrané */
.mcc-selectable-badge.selected.default-selected {
    transform: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Color override support */
.mcc-color-override .mcc-appointment-badge {
    background: var(--badge-bg-color, var(--waste-color, #666666)) !important;
    color: var(--badge-text-color, #ffffff) !important;
}

/* Hover states pro selectable */
.mcc-selectable .mcc-selectable-badge:hover {
    transform: translateY(-2px) scale(1.02);
    filter: brightness(1.1);
}

.mcc-selectable .mcc-selectable-badge:active {
    transform: translateY(0) scale(1);
}

/* Focus states pro accessibility */
.mcc-selectable-badge:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.1);
}

/* Disabled stav */
.mcc-selectable-badge:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Loading stav */
.mcc-selectable-badge.loading {
    opacity: 0.7;
    pointer-events: none;
}

.mcc-selectable-badge.loading:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: mccSpin 1s linear infinite;
}

@keyframes mccSpin {
    to { transform: rotate(360deg); }
}

/* Custom notification */
.mcc-notification {
    animation: mccSlideIn 0.3s ease-out;
}

@keyframes mccSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive adjustments for selectable */
@media (max-width: 768px) {
    .mcc-selectable-badge {
        min-width: 100px;
        padding: 10px 12px;
    }
}

/* Print styles pro selectable */
@media print {
    .mcc-selectable-badge.selected:after {
        content: " [VYBRÁN]";
        font-size: 10px;
        color: #000;
    }
}

/* Elementor editor preview improvements */
.elementor-editor-active .mcc-cleaning-appointments {
    min-height: 60px;
}

.elementor-editor-active .mcc-appointments-list:empty::after {
    content: "Termíny čištění se zobrazí zde";
    display: block;
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 20px;
}

/* Elementor editor - disable clicking */
.elementor-editor-active .mcc-selectable-badge {
    pointer-events: none;
}

/* Advanced Elementor styling features */

/* Touch-friendly styling for mobile */
.mcc-cleaning-appointments .touch-friendly .mcc-appointment-badge {
    min-height: 44px;
    min-width: 44px;
}

/* Enhanced accessibility */
.mcc-appointment-badge:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.1);
}

.mcc-appointment-badge:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.2);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .mcc-appointment-badge {
        border: 2px solid currentColor;
    }
    
    .mcc-appointment-badge.selected {
        background: #000 !important;
        color: #fff !important;
        border-color: #fff;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .mcc-appointment-badge,
    .mcc-appointment-item {
        transition: none !important;
        animation: none !important;
    }
}

/* Layout improvements */
.mcc-layout-grid .mcc-appointments-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.mcc-layout-flex .mcc-appointments-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}

/* Color override support */
.mcc-color-override .mcc-appointment-badge {
    background: var(--elementor-badge-bg-color, var(--waste-color, #666666)) !important;
    color: var(--elementor-badge-text-color, #ffffff) !important;
}

/* Entrance animations */
.mcc-entrance-enabled .mcc-appointment-item {
    opacity: 0;
    transform: translateY(20px);
    animation: mccFadeInUp 0.6s ease forwards;
}

@keyframes mccFadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover animations */
.mcc-hover-enabled .mcc-appointment-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Selection states with better feedback */
.mcc-selectable .mcc-appointment-badge {
    cursor: pointer;
    position: relative;
}

.mcc-selectable .mcc-appointment-badge::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    pointer-events: none;
}

.mcc-selectable .mcc-appointment-badge:active::after {
    width: 100%;
    height: 100%;
}



/* Loading states */
.mcc-loading .mcc-appointment-badge {
    opacity: 0.6;
    pointer-events: none;
}

.mcc-loading .mcc-appointment-badge::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: mccSpin 1s linear infinite;
}

@keyframes mccSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced responsive design */
@media (max-width: 768px) {
    .mcc-appointments-list {
        gap: 8px;
    }
    
    .mcc-appointment-badge {
        min-width: 100px;
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .mcc-layout-grid .mcc-appointments-list {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
    
    /* Equal width responsive */
    .mcc-equal-width .mcc-appointments-list {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .mcc-equal-width .mcc-appointment-badge {
        min-width: 120px;
    }
    
    /* Pricing plans responsive */
    .mcc-pricing-plans {
        gap: 8px;
    }
    
    .mcc-pricing-badge {
        padding: 12px 15px 12px 12px;
        min-height: 50px;
    }
    
    .mcc-plan-name {
        font-size: 15px;
        padding-right: 70px;
    }
    
    .mcc-plan-description {
        font-size: 13px;
        padding-right: 70px;
    }
    
    .mcc-plan-price-badge {
        font-size: 11px;
        padding: 3px 6px;
    }
    
    /* Order section responsive */
    .mcc-quantity-row {
        gap: 10px;
        margin-bottom: 12px;
        padding: 12px;
        flex-wrap: wrap;
    }
    
    .mcc-quantity-label {
        font-size: 15px;
        width: 100%;
        margin-bottom: 5px;
    }
    
    .mcc-quantity-input {
        width: 90px;
        padding: 8px 12px;
        font-size: 16px;
    }
    
    .mcc-quantity-recap {
        font-size: 13px;
        padding: 6px 10px;
    }
    
    .mcc-price-row {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .mcc-current-price {
        font-size: 16px;
    }
    
    .mcc-total-price {
        font-size: 20px;
    }
    
    .mcc-plan-name {
        padding-right: 85px;
        font-size: 15px;
    }
    
    .mcc-plan-description {
        padding-right: 85px;
        font-size: 13px;
    }
    
    .mcc-plan-price-badge {
        font-size: 10px;
        padding: 4px 7px;
        min-width: 45px;
    }
    
    .mcc-old-price {
        font-size: 0.7em;
    }
    
    .mcc-new-price {
        font-size: 0.9em;
    }
    
    .mcc-order-button {
        padding: 12px 20px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .mcc-appointments-list {
        gap: 6px;
    }
    
    .mcc-appointment-badge {
        min-width: 90px;
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .mcc-layout-grid .mcc-appointments-list {
        grid-template-columns: 1fr 1fr;
    }
    
    /* Equal width na mobilu */
    .mcc-equal-width .mcc-appointments-list {
        grid-template-columns: 1fr 1fr;
    }
    
    .mcc-equal-width .mcc-appointment-badge {
        min-width: auto;
        width: 100%;
    }
    
    /* Pricing plans na mobilech */
    .mcc-pricing-plans {
        gap: 6px;
    }
    
    .mcc-pricing-badge {
        padding: 10px 12px 10px 10px;
        min-height: 45px;
    }
    
    .mcc-plan-name {
        font-size: 14px;
        padding-right: 60px;
    }
    
    .mcc-plan-description {
        font-size: 12px;
        padding-right: 60px;
    }
    
    .mcc-plan-price-badge {
        font-size: 10px;
        padding: 2px 5px;
        bottom: 8px;
        right: 8px;
    }
    
    /* Order section na mobilech */
    .mcc-order-section {
        margin-top: 15px;
        padding: 10px;
    }
    
    .mcc-quantity-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 10px;
        padding: 10px;
    }
    
    .mcc-quantity-label {
        font-size: 14px;
        width: 100%;
        margin-bottom: 8px;
    }
    
    .mcc-quantity-input {
        width: 80px;
        padding: 8px 10px;
        font-size: 15px;
        align-self: center;
    }
    
    .mcc-quantity-recap {
        font-size: 12px;
        padding: 6px 8px;
        align-self: center;
    }
    
    .mcc-price-row {
        padding: 10px;
        margin-bottom: 12px;
    }
    
    .mcc-current-price {
        font-size: 15px;
    }
    
    .mcc-total-price {
        font-size: 18px;
        padding: 4px 8px;
    }
    
    .mcc-plan-name {
        padding-right: 75px;
        font-size: 14px;
    }
    
    .mcc-plan-description {
        padding-right: 75px;
        font-size: 12px;
    }
    
    .mcc-plan-price-badge {
        font-size: 9px;
        padding: 3px 5px;
        min-width: 40px;
        bottom: 6px;
        right: 6px;
    }
    
    .mcc-old-price {
        font-size: 0.65em;
        margin-right: 3px;
    }
    
    .mcc-new-price {
        font-size: 0.85em;
    }
    
    .mcc-order-button {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    /* Responsive pro tarify - menší obrazovky */
    .mcc-pricing-badge {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        padding: 10px;
    }
    
    .mcc-plan-content {
        flex: none;
        width: 100%;
        margin-bottom: 8px;
    }
    
    .mcc-plan-price-badge {
        flex: none;
        text-align: left;
        font-size: 15px;
    }
}

/* Cart Custom Items Styles */
.mcc-hidden-quantity {
    display: none !important;
}

/* Cart item name customization */
.woocommerce-cart-form .cart_item .product-name {
    line-height: 1.5;
    padding-right: 20px;
}

.woocommerce-cart-form .cart_item .product-name strong {
    font-size: 16px;
    color: #333;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

.woocommerce-cart-form .cart_item .product-name .mcc-cart-meta {
    display: block;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 4px;
    font-weight: normal;
}

.woocommerce-cart-form .cart_item .product-name .mcc-meta-label {
    color: #666;
    font-weight: 500;
    display: inline-block;
    min-width: 140px;
}

.woocommerce-cart-form .cart_item .product-name .mcc-meta-value {
    color: #333;
    font-weight: 600;
}

/* Skrytí prázdných meta dat */
.woocommerce dl.variation {
    display: none;
}

/* Layout úpravy pro košík */
.woocommerce table.cart {
    width: 100%;
}

.woocommerce table.cart thead th.product-name {
    text-align: left;
    padding-left: 20px;
}

.woocommerce table.cart .cart_item .product-name {
    vertical-align: top;
    padding-top: 20px;
    padding-bottom: 20px;
}

.woocommerce table.cart .cart_item .product-price,
.woocommerce table.cart .cart_item .product-subtotal {
    vertical-align: top;
    padding-top: 20px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

/* Responsive úpravy */
@media (max-width: 768px) {
    .woocommerce-cart-form .cart_item .product-name .mcc-cart-meta {
        font-size: 13px;
        line-height: 1.5;
    }
    
    .woocommerce-cart-form .cart_item .product-name .mcc-meta-label {
        min-width: 120px;
        font-size: 13px;
    }
    
    .woocommerce-cart-form .cart_item .product-name strong {
        font-size: 15px;
        margin-bottom: 6px;
    }
}

@media (max-width: 480px) {
    .woocommerce-cart-form .cart_item .product-name .mcc-meta-label {
        display: block;
        min-width: auto;
        margin-bottom: 2px;
    }
    
    .woocommerce-cart-form .cart_item .product-name .mcc-meta-value {
        display: block;
        padding-left: 10px;
        margin-bottom: 8px;
    }
}

/* Cart Cleaning Notice */
.mcc-cart-cleaning-notice {
    margin: 30px 0 20px 0;
    padding: 0;
    width: 100%;
    clear: both;
}

.mcc-notice-content {
    background: #f8f9fa;
    border: 2px solid #e3f2fd;
    border-left: 5px solid #2196F3;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.mcc-notice-title {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1976D2;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mcc-notice-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

.mcc-notice-text strong {
    color: #1976D2;
    font-weight: 600;
}

/* Responsive úpravy pro poznámku */
@media (max-width: 768px) {
    .mcc-cart-cleaning-notice {
        margin: 20px 0 15px 0;
    }
    
    .mcc-notice-content {
        padding: 16px;
    }
    
    .mcc-notice-title {
        font-size: 15px;
        margin-bottom: 10px;
    }
    
    .mcc-notice-text {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .mcc-notice-content {
        padding: 14px;
        border-radius: 6px;
    }
    
    .mcc-notice-title {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .mcc-notice-text {
        font-size: 12px;
        line-height: 1.4;
    }
}

/* Success Popup */
.mcc-success-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mcc-success-popup.show {
    opacity: 1;
    visibility: visible;
}

.mcc-success-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    max-width: 400px;
    margin: 20px;
}

.mcc-success-popup.show .mcc-success-content {
    transform: translateY(0);
}

.mcc-success-icon {
    font-size: 48px;
    color: #4CAF50;
    margin-bottom: 15px;
    font-weight: bold;
}

.mcc-success-message {
    font-size: 16px;
    color: #333;
    font-weight: 500;
    line-height: 1.4;
}

/* Mobile úpravy pro popup */
@media (max-width: 480px) {
    .mcc-success-content {
        padding: 25px 20px;
        margin: 15px;
    }
    
    .mcc-success-icon {
        font-size: 40px;
        margin-bottom: 12px;
    }
    
    .mcc-success-message {
        font-size: 15px;
    }
}

/* Úpravy košíku - skrytí nepotřebných sloupců */
.woocommerce-cart-form .shop_table.cart thead th:not(.product-remove):not(.product-name):not(.product-price),
.woocommerce-cart-form .shop_table.cart tbody td:not(.product-remove):not(.product-name):not(.product-price) {
    display: none !important;
}

/* Skrytí specifických sloupců pokud mají jiné třídy */
.woocommerce-cart-form .shop_table.cart .product-thumbnail,
.woocommerce-cart-form .shop_table.cart .product-quantity,
.woocommerce-cart-form .shop_table.cart .product-subtotal {
    display: none !important;
}

/* Přejmenování hlaviček */
.woocommerce-cart-form .shop_table.cart thead th.product-name {
    font-size: 0;
    line-height: 0;
}
.woocommerce-cart-form .shop_table.cart thead th.product-name:after {
    content: "Lokalita";
    font-size: 16px;
    line-height: 1.5;
    font-weight: 600;
}

/* Skrytí obrázků v product-name sloupci */
.woocommerce-cart-form .shop_table.cart .product-name img,
.woocommerce-cart-form .shop_table.cart .product-name .product-thumbnail {
    display: none !important;
}

/* Rozšíření zbývajících sloupců */
.woocommerce-cart-form .shop_table.cart {
    table-layout: fixed;
    width: 100%;
}

.woocommerce-cart-form .shop_table.cart .product-remove {
    width: 80px;
    text-align: center;
}

.woocommerce-cart-form .shop_table.cart .product-name {
    width: auto;
    text-align: left;
}

.woocommerce-cart-form .shop_table.cart .product-price {
    width: 120px;
    text-align: right;
}

/* Zarovnání ceny doprava - hlavička i obsah */
.woocommerce-cart-form .shop_table.cart thead th.product-price,
.woocommerce-cart-form .shop_table.cart tbody td.product-price {
    text-align: right !important;
}

/* Skrytí tlačítka Aktualizovat košík */
.woocommerce-cart-form button[name="update_cart"],
.woocommerce-cart-form input[name="update_cart"] {
    display: none !important;
}

/* Skrytí celé sekce actions */
.woocommerce-cart-form .shop_table.cart .actions,
.woocommerce-cart-form .shop_table.cart td.actions {
    display: none !important;
}

/* Skrytí celého řádku s akcemi */
.woocommerce-cart-form .shop_table.cart tr:has(.actions) {
    display: none !important;
}

/* Mobile responsivnost */
@media (max-width: 768px) {
    .woocommerce-cart-form .shop_table.cart .product-remove {
        width: 60px;
    }
    
    .woocommerce-cart-form .shop_table.cart .product-price {
        width: 100px;
        text-align: right !important;
    }
}

/* Rozšíření zbývajících sloupců */
.woocommerce-cart-form .shop_table.cart {
    table-layout: fixed;
    width: 100%;
}

.woocommerce-cart-form .shop_table.cart thead th:nth-child(2), /* Lokalita */
.woocommerce-cart-form .shop_table.cart tbody td:nth-child(2) {
    width: 70%;
    text-align: left;
}

.woocommerce-cart-form .shop_table.cart thead th:nth-child(3), /* Cena */
.woocommerce-cart-form .shop_table.cart tbody td:nth-child(3) {
    width: 30%;
    text-align: right;
}

/* Mobile responsivnost */
@media (max-width: 768px) {
    .woocommerce-cart-form .shop_table.cart thead th:nth-child(2),
    .woocommerce-cart-form .shop_table.cart tbody td:nth-child(2) {
        width: 60%;
    }
    
    .woocommerce-cart-form .shop_table.cart thead th:nth-child(3),
    .woocommerce-cart-form .shop_table.cart tbody td:nth-child(3) {
        width: 40%;
    }
}

/* Přidružené obce na mapě */
.mcc-associated-city-marker {
    background: transparent;
    border: none;
}

.associated-dot {
    width: 10px;
    height: 10px;
    background: #dc3545;
    border: 2px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: all 0.2s ease;
}

.associated-dot:hover {
    transform: scale(1.3);
    background: #c82333;
    box-shadow: 0 3px 6px rgba(0,0,0,0.4);
}

/* Popup pro přidružené obce */
.mcc-associated-popup {
    min-width: 250px;
}

.mcc-associated-popup h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 16px;
}

.mcc-associated-popup small {
    color: #666;
    font-weight: normal;
}

.mcc-associated-popup p {
    margin: 5px 0;
    font-size: 13px;
}

.mcc-associated-popup .mcc-popup-actions {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

/* Styly pro objednání bez termínu */
.mcc-no-appointment-mode {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.mcc-no-appointment-title {
    color: #495057;
    font-size: 1.3em;
    font-weight: 600;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.mcc-no-appointment-text {
    color: #6c757d;
    font-size: 1em;
    line-height: 1.5;
    margin: 0 0 20px 0;
}

.mcc-no-appointment-text p {
    margin: 0 0 10px 0;
}

.mcc-no-appointment-text p:last-child {
    margin-bottom: 0;
}

.mcc-no-appointment-order {
    margin-top: 20px;
}

.mcc-no-appointment-button {
    background: #007cba;
    color: white;
    font-weight: 600;
    padding: 12px 20px;
    font-size: 1.1em;
    margin: 15px 0;
    transition: background-color 0.3s ease;
}

.mcc-no-appointment-button:hover {
    background: #005a87;
    color: white;
}

.mcc-no-appointment-note {
    color: #6c757d;
    font-size: 0.9em;
    line-height: 1.4;
    margin-top: 15px;
    padding: 10px;
    background: #e3f2fd;
    border-radius: 4px;
    border-left: 3px solid #2196F3;
}

/* Dodatečná pole pro plánování tras */
.mcc-additional-fields {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.mcc-additional-title {
    color: #495057;
    font-size: 1.1em;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.mcc-additional-description {
    color: #6c757d;
    font-size: 0.9em;
    line-height: 1.4;
    margin: 0 0 20px 0;
    padding: 10px;
    background: #e3f2fd;
    border-radius: 4px;
    border-left: 3px solid #2196F3;
}

.mcc-additional-form {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    align-items: start;
}

.mcc-additional-row {
    display: flex;
    flex-direction: column;
}

.mcc-additional-label {
    color: #495057;
    font-weight: 500;
    margin-bottom: 6px;
    font-size: 0.95em;
    line-height: 1.3;
}

.mcc-additional-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    color: #495057;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.mcc-additional-select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.15);
}

.mcc-additional-select:hover {
    border-color: #adb5bd;
}

.mcc-additional-select option {
    padding: 8px;
    color: #495057;
}

.mcc-additional-select option:disabled {
    color: #6c757d;
    font-style: italic;
}

/* Responsive úpravy pro dodatečná pole */
@media (max-width: 768px) {
    .mcc-additional-fields {
        padding: 15px;
        margin: 15px 0;
    }
    
    .mcc-additional-title {
        font-size: 1em;
    }
    
    .mcc-additional-description {
        font-size: 0.85em;
        padding: 8px;
        margin-bottom: 15px;
    }
    
    .mcc-additional-form {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .mcc-additional-label {
        font-size: 0.9em;
        margin-bottom: 5px;
    }
    
    .mcc-additional-select {
        padding: 8px 10px;
        font-size: 13px;
        padding-right: 35px;
        background-size: 14px;
        background-position: right 10px center;
    }
}

@media (max-width: 480px) {
    .mcc-additional-fields {
        padding: 12px;
        margin: 12px 0;
    }
    
    .mcc-additional-title {
        font-size: 0.95em;
    }
    
    .mcc-additional-description {
        font-size: 0.8em;
        padding: 6px;
        margin-bottom: 12px;
    }
    
    .mcc-additional-form {
        gap: 12px;
    }
    
    .mcc-additional-label {
        font-size: 0.85em;
        margin-bottom: 4px;
    }
    
    .mcc-additional-select {
        padding: 7px 8px;
        font-size: 12px;
        padding-right: 30px;
        background-size: 12px;
        background-position: right 8px center;
    }
}

/* Styly pro metadata objednávky bez termínu v košíku a objednávkách */
.woocommerce-cart-form .shop_table.cart .product-name dl dt:contains("Objednávka"),
.woocommerce-order .order_details dt:contains("Objednávka") {
    color: #856404;
    font-weight: bold;
    font-size: 13px;
}

.woocommerce-cart-form .shop_table.cart .product-name dl dd:contains("Bez konkrétního termínu"),
.woocommerce-order .order_details dd:contains("Bez konkrétního termínu") {
    color: #856404;
    font-weight: bold;
    background: #fff3cd;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 3px;
    font-size: 12px;
    border: 1px solid #ffeaa7;
}

/* Email template styling pro objednávky bez termínu */
.woocommerce-email-order-meta .meta-item:has(strong:contains("Objednávka")) {
    background: #fff3cd;
    padding: 8px 12px;
    border-radius: 4px;
    border-left: 4px solid #ffc107;
    margin: 5px 0;
}

.woocommerce-email-order-meta .meta-item strong:contains("Objednávka") {
    color: #856404;
}

.woocommerce-email-order-meta .meta-item:contains("Bez konkrétního termínu") {
    color: #856404;
    font-weight: 600;
}