/* Teledom Orders - Enhanced Public Styles with Date/Time Selection */

:root {
    --primary-color: #0073aa;
    --secondary-color: #005a87;
    --success-color: #46b450;
    --danger-color: #dc3232;
    --warning-color: #ffb900;
    --light-gray: #f7f7f7;
    --border-color: #ddd;
    --text-color: #333;
    --text-muted: #666;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 20px rgba(0,0,0,0.15);
    --border-radius: 8px;
}

/* ========================================
   Form Header / Branding
   ======================================== */

.teledom-form-header {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 30px 35px;
    margin: -30px -30px 30px -30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 3px solid var(--primary-color);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.teledom-form-logo {
    flex-shrink: 0;
}

.teledom-form-logo img {
    max-height: 80px;
    width: auto;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.teledom-form-branding {
    flex: 1;
}

.teledom-form-title {
    margin: 0 0 10px 0;
    font-size: 26px;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.3;
}

.teledom-form-subtitle {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

.teledom-form-description {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-muted);
}

.teledom-form-description strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Responsive header */
@media (max-width: 768px) {
    .teledom-form-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 25px 20px;
        margin: -20px -20px 25px -20px;
    }

    .teledom-form-logo img {
        max-height: 60px;
        margin: 0 auto;
    }

    .teledom-form-title {
        font-size: 20px;
    }

    .teledom-form-description {
        font-size: 14px;
    }
}

/* Prevent body scroll when popup is open */
body.popup-open {
    overflow: hidden;
}

/* Product Detail Popup */
.product-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.product-popup {
    background: white;
    border-radius: var(--border-radius);
    max-width: 1200px;
    width: 100%;
    max-height: 90vh;
    overflow: auto;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: white;
    border: none;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    z-index: 10;
}

.popup-close:hover {
    background: var(--danger-color);
    color: white;
    transform: rotate(90deg);
}

.popup-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 30px;
}

.popup-image-section {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-gray);
    border-radius: var(--border-radius);
    overflow: hidden;
    min-height: 300px;
}

.popup-image-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popup-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 300px;
}

.popup-no-image .dashicons {
    font-size: 80px;
    width: 80px;
    height: 80px;
    color: var(--border-color);
}

.popup-details-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.popup-details-section h2 {
    margin: 0;
    color: var(--text-color);
    font-size: 28px;
}

.popup-category-badge {
    display: inline-block;
    padding: 6px 12px;
    background: var(--light-gray);
    border-radius: 4px;
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.popup-description {
    flex: 1;
}

/* Step 0 popup: don't push price to bottom */
.popup-view-only .popup-description {
    flex: 0;
}

.popup-description h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: var(--text-color);
}

.popup-description p {
    margin: 0;
    line-height: 1.6;
    color: var(--text-muted);
    font-size: 15px;
}

.popup-add-to-cart {
    width: 100%;
    padding: 15px 30px;
    font-size: 18px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.popup-add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Date and Time Selection */
.date-time-selector-container {
    margin: 20px 0;
    padding: 20px;
    background: var(--light-gray);
    border-radius: var(--border-radius);
    border: 2px solid var(--border-color);
}

.date-time-selector-container h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: var(--text-color);
}

.date-range-selector,
.time-range-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 10px 0;

}

.date-input-group,
.time-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.date-input-group label,
.time-input-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
}

.date-input,
.time-input {
    padding: 10px 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 15px;
    background: white;
    transition: all 0.3s ease;
}

.date-input:focus,
.time-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.selector-hint {
    margin: 8px 0 0 0;
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
}

/* Cart Date Info Display */
.cart-item-date-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 5px 0;
    margin: 5px 0;
    border-top: 1px solid var(--border-color);
}

.cart-item-date-info small {
    font-size: 11px;
    color: var(--text-muted);
}

/* Step Indicators */
.steps-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    padding: 20px 0;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

.steps-indicator::before {
    content: '';
    position: absolute;
    top: 39px;
    left: 50px;
    right: 50px;
    height: 2px;
    background: var(--border-color);
    z-index: 0;
}

.step-item {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.step-number {
    width: 40px;
    height: 40px;
    margin: 0 auto 10px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.step-title {
    font-size: 13px;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.step-item.active .step-number {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.step-item.active .step-title {
    color: var(--primary-color);
    font-weight: 600;
}

.step-item.completed .step-number {
    background: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

/* Disabled steps after success */
.step-indicators.steps-disabled {
    pointer-events: none;
    opacity: 0.6;
}

.step-indicators.steps-disabled .step-item {
    cursor: not-allowed;
}

/* Main Wrapper */
.teledom-order-form-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

/* Category Sections for Overview */
.category-section {
    margin-bottom: 40px;
    background: var(--light-gray);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.category-header {
    padding: 20px;
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.category-icon-inline {
    font-size: 30px;
    width: 30px;
    height: 30px;
}

.category-info h3 {
    margin: 0;
    font-size: 24px;
    color: var(--text-color);
}

.category-desc {
    color: var(--text-muted);
    font-size: 14px;
}

.category-count {
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.category-products-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    padding: 20px;
}

.preview-product-card {
    background: white;
    padding: 15px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.preview-product-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.preview-product-image {
    width: 100%;
    height: 100px;
    margin-bottom: 10px;
    border-radius: 4px;
    overflow: hidden;
}

.preview-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-product-card h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: var(--text-color);
}

.preview-product-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0 0 10px 0;
    line-height: 1.4;
    flex: 1;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.preview-product-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: auto;
}

/* Hidden products - shown when toggle is clicked */
.preview-product-card.hidden-product {
    display: none;
}

.category-products-preview.expanded .preview-product-card.hidden-product {
    display: flex;
}

/* More products toggle button */
.more-products-toggle {
    grid-column: 1 / -1;
    text-align: center;
    padding: 12px 20px;
    background: rgba(0, 115, 170, 0.1);
    border-radius: var(--border-radius);
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.more-products-toggle:hover {
    background: rgba(0, 115, 170, 0.2);
}

.more-products-toggle .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.more-products-toggle .show-more,
.more-products-toggle .show-less {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Service Request Trigger */
.service-request-trigger {
    margin-top: 30px;
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    width: calc(100% - 40px);
}

.service-request-trigger::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.service-request-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 115, 170, 0.3);
}

.service-request-trigger .dashicons:first-child {
    color: white;
    font-size: 30px;
    width: 30px;
    height: 30px;
    line-height: 30px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.service-request-trigger .trigger-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.service-request-trigger .trigger-text {
    display: block;
    font-size: 17px;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    line-height: 1.4;
}

.service-request-trigger .trigger-desc {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 4px;
}

.service-request-trigger .trigger-arrow {
    color: rgba(255, 255, 255, 0.8);
    font-size: 20px;
    width: 20px;
    height: 20px;
    line-height: 20px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.service-request-trigger:hover .trigger-arrow {
    transform: translateX(3px);
}

/* Subtle variant */
.service-request-trigger-subtle {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    margin-top: 15px;
    padding: 15px 20px;
}

.service-request-trigger-subtle::before {
    display: none;
}

.service-request-trigger-subtle:hover {
    background: #f9fafb;
    border-color: var(--primary-color);
    transform: none;
    box-shadow: none;
}

.service-request-trigger-subtle .dashicons:first-child {
    color: #f59e0b;
}

.service-request-trigger-subtle .trigger-text {
    color: var(--text-color);
    text-shadow: none;
}

.service-request-trigger-subtle .trigger-desc {
    color: var(--text-muted);
}

.service-request-trigger-subtle .trigger-arrow {
    color: var(--text-muted);
}

/* Service Request Popup */
.service-request-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.service-request-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.service-request-popup-content {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 1200px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    animation: popupSlideIn 0.3s ease;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.service-request-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.service-request-popup-close:hover {
    background: #e5e7eb;
}

.service-request-popup-close .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: #6b7280;
}

.service-request-header {
    padding: 30px 25px 20px;
    text-align: center;
    background: linear-gradient(180deg, #f8f9ff 0%, white 100%);
    border-bottom: 1px solid #eef2ff;
}

.service-request-header-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0, 115, 170, 0.4);
}

.service-request-header-icon .dashicons {
    color: white;
    font-size: 32px;
    width: 32px;
    height: 32px;
}

.service-request-header h4 {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    letter-spacing: -0.5px;
}

.service-request-header p {
    margin: 0;
    font-size: 15px;
    color: #64748b;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.5;
}

.service-request-fields {
    max-width: 100%;
    padding: 25px;
}

.service-request-fields .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.service-request-fields .form-group {
    display: flex;
    flex-direction: column;
}

.service-request-fields .form-group.full-width {
    grid-column: 1 / -1;
}

.service-request-fields label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.service-request-fields label .dashicons {
    font-size: 16px;
    width: 22px;
    height: 20px;
    line-height: 1;
    color: #0073aa;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.service-request-fields input,
.service-request-fields textarea {
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.service-request-fields input:hover,
.service-request-fields textarea:hover {
    border-color: #d1d5db;
    background: white;
}

.service-request-fields input:focus,
.service-request-fields textarea:focus {
    outline: none;
    border-color: #0073aa;
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 115, 170, 0.1);
}

.service-request-fields input::placeholder,
.service-request-fields textarea::placeholder {
    color: #9ca3af;
}

.service-request-fields textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit-request {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
    padding: 16px 24px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%) !important;
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(0, 115, 170, 0.4) !important;
    transition: all 0.3s ease !important;
}

.btn-submit-request:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 115, 170, 0.5) !important;
}

.btn-submit-request:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.service-request-success {
    text-align: center;
    padding: 50px 30px;
    background: linear-gradient(180deg, #f0fdf4 0%, white 100%);
}

.service-request-success-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.3);
    animation: successPulse 2s ease-in-out infinite;
}

@keyframes successPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.service-request-success-icon .dashicons {
    font-size: 45px;
    width: 45px;
    height: 45px;
    color: white;
}

.service-request-success h4 {
    margin: 0 0 12px;
    font-size: 24px;
    font-weight: 700;
    color: #166534;
}

.service-request-success p {
    margin: 0;
    color: #64748b;
    font-size: 16px;
}

.service-request-cooldown {
    text-align: center;
    padding: 15px;
    background: #fef3c7;
    border-radius: 10px;
    margin: 20px 25px;
    color: #92400e;
    font-size: 14px;
    display: none;
}

.service-request-cooldown .dashicons {
    vertical-align: middle;
    margin-right: 6px;
}

@media (max-width: 600px) {
    .service-request-fields .form-row {
        grid-template-columns: 1fr;
    }

    .service-request-popup {
        padding: 10px;
    }

    .service-request-popup-content {
        max-height: 95vh;
    }

    .service-request-header h4 {
        font-size: 20px;
    }

    .service-request-fields {
        padding: 20px;
    }

    .service-request-trigger {
        padding: 15px;
    }

    .service-request-trigger .trigger-text {
        font-size: 15px;
    }

    .service-request-trigger .dashicons:first-child {
        font-size: 24px;
        width: 24px;
        height: 24px;
        line-height: 24px;
    }
}

/* Step Hint */
.step-hint {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
    margin-top: -5px;
    margin-bottom: 20px;
    opacity: 0.8;
}

/* Field Hint */
.field-hint {
    display: block;
    margin-top: 8px;
    margin-bottom: 5px;
    font-size: 12px;
    color: var(--text-muted);
    opacity: 0.8;
    line-height: 1.5;
}

/* Category Filter Tabs */
.vat-toggle-container {
    margin-bottom: 20px;
}

.vat-toggle-label {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0;
    cursor: pointer;
}

.vat-label-text {
    color: white;
    font-weight: 600;
    font-size: 15px;
}

.vat-switch-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 4px;
}

.vat-toggle-checkbox {
    display: none;
}

.vat-toggle-slider {
    position: absolute;
    width: 50%;
    height: calc(100% - 8px);
    background: white;
    border-radius: 26px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    left: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.vat-toggle-checkbox:checked + .vat-toggle-slider {
    transform: translateX(0);
}

.vat-toggle-checkbox:not(:checked) + .vat-toggle-slider {
    transform: translateX(100%);
}

.vat-toggle-text {
    display: flex;
    position: relative;
    z-index: 1;
}

.vat-toggle-text span {
    padding: 8px 20px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.vat-toggle-checkbox:checked ~ .vat-toggle-text .with-vat {
    color: var(--primary-color);
}

.vat-toggle-checkbox:not(:checked) ~ .vat-toggle-text .without-vat {
    color: var(--primary-color);
}

.vat-toggle-label:hover .vat-toggle-track {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

/* Filter Section */
.filter-section {
    background: var(--light-gray);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.filter-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    min-width: 0;
    overflow: hidden;
}

.filter-row:last-child {
    margin-bottom: 0;
}

.filter-label {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
    padding-top: 10px;
    min-width: 120px;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Filter Slider */
.filter-slider-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    max-width: calc(100% - 135px); /* 120px label + 15px gap */
    overflow: hidden;
}

.filter-slider-container {
    flex: 1;
    overflow: hidden;
    min-width: 0;
    max-width: 100%;
    cursor: grab;
    user-select: none;
}

.filter-slider-container:active {
    cursor: grabbing;
}

.filter-slider-arrow {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.filter-slider-arrow.visible {
    display: flex;
}

.filter-slider-arrow:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.filter-slider-arrow .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 16px;
}


.filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    transition: transform 0.3s ease;
    padding: 2px 0; /* Prevent cut-off of box-shadow */
}

/* Category Filter Tabs */
.category-filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
}

.filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.filter-tab .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 16px;
}

.filter-tab:hover {
    border-color: var(--primary-color);
    background: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.filter-tab.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.3);
}

.filter-tab.active .dashicons {
    color: white;
}

/* Service Group Tabs - slightly different style */
.service-group-tabs .filter-tab {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
}

.service-group-tabs .filter-tab.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

/* Responsive filter */
@media (max-width: 768px) {
    .filter-section {
        padding: 15px 10px;
    }

    .filter-row {
        flex-direction: column;
        gap: 10px;
    }

    .filter-label {
        padding-top: 0;
        min-width: auto;
        display: none; /* Hide label on mobile */
    }

    .filter-slider-wrapper {
        max-width: 100%;
        width: 100%;
        overflow: visible !important;
    }

    /* Always show arrows on mobile */
    .filter-slider-arrow {
        display: flex !important;
        width: 36px;
        height: 36px;
        min-width: 36px;
    }

    .filter-slider-arrow .dashicons {
        font-size: 18px;
        width: 18px;
        height: 18px;
    }

    /* Make container touch-scrollable */
    .filter-slider-container {
        overflow-x: auto !important;
        overflow-y: visible !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
        padding: 6px 0; /* Prevent button cut-off */
        margin: -6px 0;
    }

    .filter-slider-container::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

    .filter-tabs {
        padding: 4px 6px; /* Extra space for shadows */
    }

    .filter-tab {
        padding: 10px 14px;
        font-size: 13px;
        min-height: 40px;
    }

    .filter-tab .dashicons {
        font-size: 14px;
        width: 14px;
        height: 14px;
    }

    .filter-tabs {
        gap: 6px;
    }
}

/* Products and Cart Container */
.products-cart-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

.products-section {
    min-width: 0;
    overflow: hidden;
}

/* No Products Message */
.no-products-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.no-products-message .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    opacity: 0.3;
    margin-bottom: 10px;
}

/* Messages */
.teledom-messages {
    position: relative;
    z-index: 1000;
    margin-bottom: 20px;
}

/* When message is stuck to top */
.teledom-messages.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100vw;
}

.teledom-messages.is-sticky + .teledom-messages-placeholder {
    display: block;
}

.teledom-messages-placeholder {
    display: none;
    margin-bottom: 20px;
}

.teledom-error,
.teledom-success,
.teledom-info {
    padding: 15px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.teledom-messages.is-sticky .teledom-error,
.teledom-messages.is-sticky .teledom-success,
.teledom-messages.is-sticky .teledom-info {
    border-radius: 0;
    justify-content: center;
}

.teledom-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: var(--danger-color);
}

.teledom-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: var(--success-color);
}

.teledom-info {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    color: #0284c7;
}

/* Steps */
.teledom-step {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.teledom-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.teledom-step h2 {
    margin: 0 0 10px 0;
    color: var(--text-color);
    font-size: 32px;
    font-weight: 600;
}

.step-description {
    color: var(--text-muted);
    margin-bottom: 10px;
    font-size: 16px;
}

/* Form Elements */
.form-group {
    margin-bottom: 30px;
    clear: both;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
    align-items: start;
}

.form-row .form-group {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--text-color);
    font-size: 15px;
    line-height: 1.4;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 12px 0;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 15px;
    transition: border-color 0.3s ease;
    background: #fff;
    text-indent: 5px;
}

/* Shift calendar icon in date inputs */
.form-group input[type="date"]::-webkit-calendar-picker-indicator {
    margin-right: 5px;
    cursor: pointer;
}

.form-group input[type="date"]::-moz-calendar-picker-indicator {
    margin-right: 5px;
    cursor: pointer;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

/* Field error state */
.form-group input.field-error,
.form-group select.field-error,
.form-group textarea.field-error {
    border-color: #dc3232 !important;
    background-color: #fff8f8;
    box-shadow: 0 0 0 3px rgba(220, 50, 50, 0.15);
}

.form-group input.field-error:focus,
.form-group select.field-error:focus,
.form-group textarea.field-error:focus {
    border-color: #dc3232 !important;
    box-shadow: 0 0 0 3px rgba(220, 50, 50, 0.25);
}

.form-group label.field-error-label {
    color: #dc3232;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.product-card {
    background: #fff;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Allow tooltip to overflow for products with price ranges */
.product-card.has-ranges {
    overflow: visible;
}

.product-card.has-ranges .product-footer {
    overflow: visible;
}

.product-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.product-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
    flex-shrink: 0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card h4 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: var(--text-color);
}

.product-category-badge {
    display: inline-block;
    padding: 4px 8px;
    background: var(--light-gray);
    border-radius: 4px;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-weight: 600;
}

.product-description {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 15px;
    line-height: 1.5;
    flex: 1;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px;
    border-top: 1px solid var(--border-color);
    gap: 10px;
}

.product-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    white-space: nowrap;
}

.btn-add-to-cart {
    background: var(--success-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-add-to-cart:hover {
    background: #3d9a44;
    transform: scale(1.05);
}

.btn-add-to-cart.added {
    background: var(--primary-color);
}

/* Cart Sidebar */
.cart-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: sticky;
    top: 20px;
    height: fit-content;
}

.cart-sidebar {
    background: var(--light-gray);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    width: calc(100% - 40px);
    min-height: 530px;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    margin-bottom: 20px;
}

.cart-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
}

.cart-count {
    background: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
}

.cart-empty {
    text-align: center;
    padding: 65px 20px;
    color: var(--text-muted);
}

.cart-empty .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    opacity: 0.3;
    margin-bottom: 10px;
}

.cart-item {
    background: white;
    border-radius: var(--border-radius);
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: var(--shadow-sm);
}

.cart-item-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 10px;
}

.cart-item-name {
    font-weight: 500;
    color: var(--text-color);
    flex: 1;
}

.cart-item-remove {
    background: transparent;
    border: none;
    color: var(--danger-color);
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
}

.cart-item-remove:hover {
    background: #fef2f2;
    border-radius: 4px;
}

.cart-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--light-gray);
    border-radius: var(--border-radius);
    padding: 4px;
}

.cart-qty-decrease,
.cart-qty-increase {
    width: 28px;
    height: 28px;
    border: none;
    background: white;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.cart-qty-decrease:hover,
.cart-qty-increase:hover {
    background: var(--primary-color);
    color: white;
}

.cart-qty {
    min-width: 40px;
    text-align: center;
    font-weight: 600;
}

.cart-item-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
}

/* Promo Code Section */
.promo-code-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed var(--border-color);
}

.promo-code-toggle-btn {
    background: transparent;
    border: 1px dashed var(--primary-color);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    justify-content: center;
    transition: all 0.2s ease;
}

.promo-code-toggle-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

.promo-code-toggle-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.promo-code-form {
    margin-top: 10px;
}

.promo-code-input-group {
    display: flex;
    gap: 8px;
}

.promo-code-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    text-transform: uppercase;
}

.promo-code-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(var(--primary-color-rgb), 0.1);
}

.promo-code-apply-btn {
    padding: 10px 16px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.promo-code-apply-btn:hover {
    opacity: 0.9;
}

.promo-code-apply-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.promo-code-message {
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
}

.promo-code-message.error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.promo-code-message.success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.promo-code-applied {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #86efac;
    border-radius: 8px;
    padding: 12px;
}

.promo-code-applied-inner {
    display: flex;
    align-items: center;
    gap: 10px;
}

.promo-code-applied-inner > .dashicons {
    color: #16a34a;
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.promo-code-applied-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.promo-code-applied-info strong {
    font-size: 14px;
    color: #15803d;
}

.promo-code-applied-info span {
    font-size: 12px;
    color: #166534;
}

.promo-code-remove-btn {
    background: transparent;
    border: none;
    color: #dc2626;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.promo-code-remove-btn:hover {
    background: rgba(220, 38, 38, 0.1);
}

.promo-code-remove-btn .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.promo-code-discount-amount {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #86efac;
    text-align: right;
    font-size: 14px;
    color: #166534;
}

.promo-code-discount-amount strong {
    color: #dc2626;
    font-weight: 700;
}

/* Promo Code Confirmation Modal */
.teledom-promo-modal-overlay {
    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: 999999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.teledom-promo-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.teledom-promo-modal {
    background: #fff;
    border-radius: var(--border-radius, 8px);
    box-shadow: var(--shadow-lg, 0 10px 25px rgba(0, 0, 0, 0.15));
    max-width: 700px;
    width: 60%;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.teledom-promo-modal-overlay.active .teledom-promo-modal {
    transform: scale(1) translateY(0);
}

.teledom-promo-modal-header {
    background: var(--light-gray, #f5f5f5);
    padding: 20px 24px;
    text-align: center;
    border-bottom: 1px solid var(--border-color, #ddd);
}

.teledom-promo-modal-icon {
    width: 56px;
    height: 56px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    border: 2px solid var(--border-color, #ddd);
}

.teledom-promo-modal-icon .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
    color: var(--primary-color, #0073aa);
}

.teledom-promo-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color, #333);
}

.teledom-promo-modal-body {
    padding: 20px 24px;
}

.teledom-promo-modal-info {
    background: #fff8f8;
    border: 1px solid #f0d0d0;
    border-radius: var(--border-radius, 8px);
    padding: 16px;
    margin-bottom: 16px;
}

.teledom-promo-modal-info .promo-info-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.teledom-promo-modal-info .promo-badge {
    background: #fff;
    border: 2px solid #c00;
    padding: 6px 12px;
    border-radius: 6px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #c00;
}

.teledom-promo-modal-info .promo-status {
    font-size: 14px;
    color: #c00;
    font-weight: 500;
}

.teledom-promo-modal-reason {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.teledom-promo-modal-message {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-color, #333);
    margin-bottom: 0;
    font-weight: 500;
}

.teledom-promo-modal-footer {
    padding: 16px 24px 24px;
    display: flex;
    gap: 12px;
}

.teledom-promo-modal-btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: var(--border-radius, 8px);
    font-size: 15px;
    font-weight: 400;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 1.5;
}

.teledom-promo-modal-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.teledom-promo-modal-btn-cancel {
    background: #fff;
    border: 2px solid var(--border-color, #ddd);
    color: var(--text-color, #333);
}

.teledom-promo-modal-btn-cancel:hover {
    background: var(--light-gray, #f5f5f5);
}

.teledom-promo-modal-btn-confirm {
    background: var(--primary-color, #0073aa);
    border: 2px solid var(--primary-color, #0073aa);
    color: #fff;
}

.teledom-promo-modal-btn-confirm:hover {
    background: var(--secondary-color, #005a87);
    border-color: var(--secondary-color, #005a87);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md, 0 4px 6px rgba(0, 0, 0, 0.1));
}

/* Promo Modal Responsive */
@media (max-width: 768px) {
    .teledom-promo-modal {
        width: 90%;
        max-width: none;
    }
}

/* Cart discount row */
.cart-discount-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
    color: #dc2626;
}

.cart-discount-row .cart-discount-label {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cart-discount-row .cart-discount-label .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.cart-discount-row .cart-discount-amount {
    font-weight: 600;
}

/* Overview discount items (customer order edit) */
.overview-discount-item {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 1px solid #fecaca;
    border-radius: 6px;
    margin-top: 8px;
}

.overview-discount-item .overview-item-main {
    display: flex;
    align-items: center;
    padding: 10px 12px;
}

.overview-discount-item .discount-name {
    flex: 1;
    color: #dc2626;
}

.overview-discount-item .discount-name .dashicons {
    color: #dc2626;
    margin-right: 4px;
    font-size: 16px;
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

.overview-discount-item .discount-name strong {
    font-size: 14px;
}

.overview-discount-item .discount-name small {
    display: block;
    font-size: 12px;
    color: #991b1b;
    margin-top: 2px;
}

.overview-discount-item .discount-price {
    color: #dc2626;
    font-weight: 600;
    font-size: 14px;
}

.overview-discount-item .discount-price::before {
    content: "-";
}

.cart-summary {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--border-color);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 20px;
    margin-bottom: 15px;
}

#cart-total {
    color: var(--primary-color);
    font-weight: 700;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid var(--border-color);
    flex-wrap: wrap;
}

.form-actions-right {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

.btn-prev,
.btn-next,
.btn-skip,
.btn-submit,
.btn-confirm-order,
.btn-draft-secondary,
.btn-draft-primary {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-weight: 400;
    line-height: 1.5;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
    text-decoration: none;
    margin: 0;
    height: auto;
}

.btn-prev,
.btn-draft-secondary {
    background: white;
    color: var(--text-color);
    border: 2px solid var(--border-color);
}

.btn-prev:hover,
.btn-draft-secondary:hover {
    background: var(--light-gray);
}

.btn-skip {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-skip:hover {
    background: var(--light-gray);
    border-color: var(--text-muted);
}

.btn-primary,
.btn-draft-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover,
.btn-draft-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

.btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Order Summary */
.order-summary {
    background: var(--light-gray);
    padding: 20px;
    border-radius: var(--border-radius);
}

.summary-section {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
}

.summary-section h4 {
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
}

.summary-total {
    background: var(--primary-color);
    color: white;
    padding: 20px;
    border-radius: var(--border-radius);
    font-size: 24px;
    font-weight: 700;
}

.summary-total .total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-total .total-row.total-without-vat {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.summary-total .total-row.total-without-vat span {
    color: white;
}

.summary-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.summary-table th,
.summary-table td {
    padding: 12px 8px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
}

.summary-table th {
    background: var(--light-gray);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.summary-table td small {
    display: block;
    color: var(--text-muted);
    font-size: 11px;
    margin-top: 3px;
}

.summary-table tbody tr:hover {
    background: var(--light-gray);
}

.summary-total-row {
    border-top: 2px solid var(--primary-color) !important;
}

.summary-total-row td {
    padding-top: 15px !important;
    padding-bottom: 15px !important;
    background: var(--light-gray) !important;
}

.summary-total-row:hover {
    background: var(--light-gray) !important;
}

/* Summary table mobile responsive */
.summary-table-wrapper,
.order-summary-section,
.summary-section {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    /* Convert table to card layout on mobile */
    .summary-table {
        display: block;
        min-width: 0;
        font-size: 13px;
    }

    .summary-table thead {
        display: none; /* Hide header on mobile */
    }

    .summary-table tbody {
        display: block;
    }

    .summary-table tbody tr {
        display: block;
        background: transparent;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        margin-bottom: 12px;
        padding: 12px;
    }

    .summary-table tbody tr:hover {
        background: transparent;
    }

    .summary-table td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        padding: 6px 0 !important;
        border-bottom: 1px solid #f0f0f0;
        text-align: left !important;
    }

    .summary-table td:last-child {
        border-bottom: none;
        padding-bottom: 0 !important;
        font-weight: 600;
        color: var(--primary-color);
    }

    .summary-table td:first-child {
        display: block;
        font-weight: 600;
        font-size: 14px;
        padding-bottom: 8px !important;
        margin-bottom: 4px;
        border-bottom: 2px solid var(--primary-color);
    }

    .summary-table td:before {
        font-weight: 500;
        color: var(--text-muted);
        font-size: 12px;
        flex-shrink: 0;
        margin-right: 10px;
    }

    .summary-table td:first-child:before {
        display: none;
    }

    /* Labels for each column */
    .summary-table td:nth-child(2):before { content: "Jedn.:"; }
    .summary-table td:nth-child(3):before { content: "Cena:"; }
    .summary-table td:nth-child(4):before { content: "Počet:"; }
    .summary-table td:nth-child(5):before { content: "Bez DPH:"; }
    .summary-table td:nth-child(6):before { content: "DPH:"; }
    .summary-table td:nth-child(7):before { content: "Celkom:"; }

    .summary-table td small {
        display: block;
        margin-top: 4px;
        font-size: 11px;
    }

    /* Total row special styling */
    .summary-table .summary-total-row {
        background: var(--light-gray) !important;
        border: 2px solid var(--primary-color);
    }

    .summary-table .summary-total-row td {
        border-bottom-color: #e0e0e0;
    }

    .summary-table-wrapper {
        margin: 0;
        padding: 0;
        width: 100%;
        overflow-x: visible;
    }

    .summary-section {
        margin: 0 0 15px 0;
        padding: 10px;
        width: 100%;
        overflow-x: visible;
    }

    .summary-content {
        padding: 5px 0;
    }

    #summary-payment {
        padding: 15px 0;
        margin: 10px 0;
    }

    .payment-method-display {
        padding: 12px;
    }
}

/* Terms Agreement */
.terms-agreement {
    margin: 20px 0;
    padding: 15px;
    background: var(--light-gray);
    border-radius: var(--border-radius);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Success Message */
.teledom-success-message {
    text-align: center;
    padding: 60px 20px;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--success-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.success-icon .dashicons.dashicons-yes-alt {
    width: 50px;
    height: 50px;
    font-size: 50px;
}

.order-number-display {
    background: var(--light-gray);
    padding: 20px;
    border-radius: var(--border-radius);
    margin: 30px 0;
    font-size: 18px;
}

.success-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-edit-order {
    background: transparent;
    color: var(--text-color);
    border: 2px solid var(--border-color);
    padding: 13px 28px;
    border-radius: var(--border-radius);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-edit-order:hover {
    background: var(--light-gray);
    color: var(--text-color);
    border-color: var(--text-color);
    transform: translateY(-2px);
}

.btn-new-order {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: var(--border-radius);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-new-order:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Duration Selector in Popup */
.duration-selector-container {
    margin: 20px 0;
    padding: 15px;
    background: var(--light-gray);
    border-radius: var(--border-radius);
}

.duration-selector-container label {
    display: block;
    margin-bottom: 10px;
    font-size: 15px;
    color: var(--text-color);
}

.duration-selector,
.days-selector {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 15px;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.duration-selector:focus,
.days-selector:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

/* Cart Duration Display */
.cart-duration {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: normal;
    margin-left: 5px;
}

.cart-item-price-detail {
    padding: 5px 0;
    font-size: 12px;
    color: var(--text-muted);
}

.cart-item-price-detail small {
    display: block;
}

/* Cart item metadata */
.cart-item-meta {
    padding: 5px 0;
    font-size: 11px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    margin-top: 5px;
    padding-top: 8px;
}

.cart-item-category {
    font-weight: 600;
    color: var(--primary-color);
}

.cart-item-vat {
    background: var(--light-gray);
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 500;
}

/* Modern VAT Toggle & Price Display */
.step-header-with-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.step-header-text h2 {
    margin: 0 0 5px 0;
}

.step-header-text .step-description {
    margin: 0;
}

.vat-toggle-container {
    flex-shrink: 0;
}

.vat-toggle-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.toggle-label-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    white-space: nowrap;
}

.vat-switch-wrapper {
    position: relative;
}

.vat-toggle-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.vat-toggle-track {
    position: relative;
    display: flex;
    align-items: center;
    width: 220px;
    height: 40px;
    background: var(--light-gray);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 3px;
    transition: all 0.3s ease;
}

.vat-toggle-option {
    position: relative;
    z-index: 2;
    flex: 1;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.3s ease;
    padding: 8px;
    line-height: 1;
    white-space: nowrap;
}

.vat-toggle-option.active {
    color: white;
}

.vat-toggle-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: calc(50% - 3px);
    height: calc(100% - 6px);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 17px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.vat-toggle-track.without-vat .vat-toggle-slider {
    left: calc(50%);
}

.vat-toggle-track.without-vat .vat-toggle-option.left {
    color: var(--text-muted);
}

.vat-toggle-track.without-vat .vat-toggle-option.right {
    color: white;
}

.vat-toggle-track.without-vat .vat-toggle-option.left.active {
    color: var(--text-muted);
}

.vat-toggle-track.without-vat .vat-toggle-option.right.active {
    color: white;
}

.vat-toggle-label:hover .vat-toggle-track {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

/* Preview Product Price with VAT label */
.preview-product-price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-top: 10px;
}

.preview-product-price .price-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-color);
}

.preview-product-price .vat-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--light-gray);
    padding: 2px 8px;
    border-radius: 10px;
}

/* Cart Total with VAT Indicator */
.cart-total-label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.cart-vat-indicator {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--light-gray);
    padding: 2px 8px;
    border-radius: 10px;
}

/* Product Card Price with VAT */
.product-price-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.product-vat-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--light-gray);
    padding: 2px 8px;
    border-radius: 10px;
}

/* Popup Price with VAT */
.popup-price-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
}

.popup-price {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.popup-price-vat {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--light-gray);
    padding: 4px 10px;
    border-radius: 12px;
}

/* Popup Unit Price (Compact) */
.popup-unit-price {
    background: linear-gradient(135deg, #f0f7ff 0%, #e3f0ff 100%);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    padding: 15px 20px;
    margin: 15px 0;
}

.unit-price-main {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.unit-price-details {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: var(--text-muted);
}

.unit-price-details .price-no-vat {
    color: #666;
}

.unit-price-details .price-vat-info {
    color: #888;
}

/* Combined Unit Product Summary Block (quantity + total) */
.popup-unit-summary {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    margin: 15px 0;
    overflow: hidden;
}

.unit-quantity-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: white;
}

.unit-quantity-row .quantity-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
}

.popup-quantity-controls {
    display: flex;
    align-items: center;
    gap: 0;
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.popup-quantity-controls .qty-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: var(--light-gray);
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-quantity-controls .qty-btn:hover {
    background: var(--primary-color);
    color: white;
}

.popup-quantity-controls .popup-quantity-input {
    width: 70px;
    height: 44px;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
    -moz-appearance: textfield;
}

.popup-quantity-controls .popup-quantity-input::-webkit-outer-spin-button,
.popup-quantity-controls .popup-quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.unit-summary-divider {
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), #00a0d2);
}

.unit-total-inline {
    padding: 15px 20px;
}

.unit-total-inline .total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 13px;
    color: #666;
}

.unit-total-inline .total-row.qty-row {
    font-size: 14px;
    padding-bottom: 10px;
    margin-bottom: 8px;
    border-bottom: 1px dashed #e0e0e0;
    color: var(--text-color);
}

.unit-total-inline .qty-row .qty-label {
    font-weight: 600;
    color: var(--primary-color);
}

.unit-total-inline .qty-row .qty-multiply {
    color: #999;
    margin: 0 8px;
}

.unit-total-inline .total-row.final-row {
    font-size: 16px;
    padding-top: 10px;
    margin-top: 8px;
    border-top: 1px solid #e0e0e0;
    color: var(--text-color);
}

.unit-total-inline .final-row .calc-total {
    font-size: 22px;
    color: var(--success-color);
}

/* Combined Booking Summary Block (dates + total) */
.popup-booking-summary {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    margin: 15px 0;
    overflow: hidden;
}

.booking-dates-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 18px 20px;
    background: white;
    border-bottom: 1px solid #eee;
}

.booking-dates-row .date-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.booking-dates-row .date-col.full-width {
    flex: 1;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
}

.booking-dates-row .date-label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.booking-dates-row .date-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
}

.booking-dates-row .date-arrow {
    color: var(--primary-color);
    font-size: 20px;
    display: flex;
    align-items: center;
}

.booking-dates-row .date-arrow .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.booking-time-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 15px 20px;
    background: #fafafa;
    border-bottom: 1px solid #eee;
}

.booking-time-row .time-col label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 6px;
}

.booking-time-row .time-col select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: white;
}

.booking-summary-divider {
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), #00a0d2);
}

.booking-total-inline {
    padding: 15px 20px;
}

.booking-total-inline .total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 13px;
    color: #666;
}

.booking-total-inline .total-row.qty-row {
    font-size: 14px;
    padding-bottom: 10px;
    margin-bottom: 8px;
    border-bottom: 1px dashed #e0e0e0;
    color: var(--text-color);
}

.booking-total-inline .qty-row .qty-label {
    font-weight: 600;
    color: var(--primary-color);
}

.booking-total-inline .qty-row .qty-multiply {
    color: #999;
    margin: 0 8px;
}

.booking-total-inline .total-row.final-row {
    font-size: 16px;
    padding-top: 10px;
    margin-top: 8px;
    border-top: 1px solid #e0e0e0;
    color: var(--text-color);
}

.booking-total-inline .final-row .calc-total {
    font-size: 22px;
    color: var(--success-color);
}

/* Availability status styling */
.popup-booking-status {
    margin: 5px 0 15px 0;
}

.popup-booking-status .availability-result {
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
}

.popup-booking-status .availability-result.available {
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    color: #2e7d32;
}

.popup-booking-status .availability-result.unavailable {
    background: #ffebee;
    border: 1px solid #ffcdd2;
    color: #c62828;
}

.popup-booking-status .availability-result.checking {
    background: #fff3e0;
    border: 1px solid #ffe0b2;
    color: #ef6c00;
}

.popup-booking-status .availability-result .dashicons {
    vertical-align: middle;
    margin-right: 6px;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 992px) {
    .products-cart-container {
        grid-template-columns: 1fr;
    }

    .cart-column {
        position: static;
    }

    .cart-sidebar {
        max-height: none;
    }

    .steps-indicator {
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .step-title {
        font-size: 11px;
    }

    .popup-content {
        grid-template-columns: 1fr;
    }

    .popup-image-section {
        min-height: 250px;
    }

    .date-range-selector,
    .time-range-selector {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .category-products-preview {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions button {
        width: 100%;
        justify-content: center;
    }

    .steps-indicator::before {
        display: none;
    }

    .step-number {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .product-popup {
        max-width: 100%;
        max-height: 95vh;
        margin: 10px;
    }

    .popup-content {
        padding: 20px;
        gap: 20px;
    }

    .popup-close {
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    .teledom-order-form-wrapper {
        padding: 20px;
        margin: 20px 10px;
    }

    .steps-indicator {
        gap: 5px;
    }

    .category-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .category-info {
        flex-direction: column;
    }

    .product-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-add-to-cart {
        width: 100%;
    }

    .step-header-with-toggle {
        flex-direction: column;
        gap: 20px;
    }

    .vat-toggle-container {
        width: 100%;
    }

    .vat-toggle-track {
        width: 100%;
        max-width: 300px;
    }
}

/* Cart item date edit button */
.cart-item-date-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.cart-item-date-wrapper .cart-item-date-info {
    flex: 1;
}

.cart-item-edit-date {
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 4px 6px;
    cursor: pointer;
    color: #666;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.cart-item-edit-date:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.cart-item-edit-date .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* Time slot styling for hourly bookings */
#popup-time-start option.booked-slot,
#popup-time-end option.booked-slot {
    color: var(--danger-color);
    background-color: #ffeaea;
}

#popup-time-start option:disabled,
#popup-time-end option:disabled {
    color: #999;
}

#popup-time-start option.booked-slot:disabled,
#popup-time-end option.booked-slot:disabled {
    color: var(--danger-color);
    background-color: #ffeaea;
}

/* Delivery time selects - disabled options styling */
#delivery-time-start option:disabled,
#delivery-time-end option:disabled,
#delivery-time-start option.time-disabled,
#delivery-time-end option.time-disabled {
    color: #999;
    background-color: #f5f5f5;
}

/* Cart item price without VAT */
.cart-item-price-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.cart-item-price-without-vat {
    color: var(--text-muted);
    font-size: 11px;
    opacity: 0.85;
}

/* Cart total without VAT */
.cart-total-without-vat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-color);
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 13px;
}

.cart-total-label-small {
    font-weight: 500;
}

.cart-total-without-vat #cart-total-without-vat {
    font-weight: 600;
}

/* Order edit template - total without VAT */
.total-row.total-without-vat {
    font-size: 13px;
    color: var(--text-muted);
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 1px dashed var(--border-color);
}

.total-row.total-without-vat .total-amount {
    font-weight: 600;
}

/* ========================================
   Payment Options Styles
   ======================================== */

.payment-options {
    margin: 30px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.payment-option-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-option {
    display: block;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.payment-option-content {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 25px;
    background: var(--light-gray);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.payment-option:hover .payment-option-content {
    border-color: var(--primary-color);
    background: #f0f7fc;
}

.payment-option.selected .payment-option-content,
.payment-option input[type="radio"]:checked + .payment-option-content {
    border-color: var(--success-color);
    background: #f0fff4;
    box-shadow: 0 0 0 3px rgba(70, 180, 80, 0.15);
}

.payment-option-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}

.payment-option-icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}

.payment-option.selected .payment-option-icon .dashicons,
.payment-option input[type="radio"]:checked + .payment-option-content .payment-option-icon .dashicons {
    color: var(--success-color);
}

.payment-option-details {
    flex: 1;
}

.payment-option-details strong {
    display: block;
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 4px;
}

.payment-option-desc {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
}

.payment-option-check {
    opacity: 0;
    transition: all 0.3s ease;
}

.payment-option.selected .payment-option-check,
.payment-option input[type="radio"]:checked + .payment-option-content .payment-option-check {
    opacity: 1;
}

.payment-option-check .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
    color: var(--success-color);
}

.payment-info-box {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: #e8f4fd;
    border-left: 4px solid var(--primary-color);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    margin: 25px 0;
}

.payment-info-box .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 2px;
}

.payment-info-box p {
    margin: 0;
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.6;
    word-wrap: break-word;
}

/* Summary payment section */
#summary-payment .payment-method-display {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: #f0fff4;
    border-radius: var(--border-radius);
    border: 1px solid #c3e6cb;
}

#summary-payment .payment-method-display .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: var(--success-color);
}

#summary-payment .payment-method-display strong {
    color: var(--text-color);
}

/* Responsive payment options */
@media (max-width: 600px) {
    .payment-option-content {
        padding: 15px;
        gap: 15px;
    }

    .payment-option-icon {
        width: 40px;
        height: 40px;
    }

    .payment-option-icon .dashicons {
        font-size: 20px;
        width: 20px;
        height: 20px;
    }

    .payment-option-details strong {
        font-size: 14px;
    }

    .payment-option-desc {
        font-size: 12px;
    }
}

/* ========================================
   Customer Type Selection Styles
   ======================================== */

.customer-type-selection {
    margin: 20px 0 30px 0;
}

.customer-type-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.customer-type-option {
    display: block;
    cursor: pointer;
    transition: all 0.3s ease;
}

.customer-type-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.customer-type-content {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--light-gray);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.customer-type-option:hover .customer-type-content {
    border-color: var(--primary-color);
    background: #f0f7fc;
}

.customer-type-option.selected .customer-type-content,
.customer-type-option input[type="radio"]:checked + .customer-type-content {
    border-color: var(--primary-color);
    background: #e8f4fd;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.15);
}

.customer-type-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.customer-type-icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: var(--text-muted);
}

.customer-type-option.selected .customer-type-icon .dashicons,
.customer-type-option input[type="radio"]:checked + .customer-type-content .customer-type-icon .dashicons {
    color: var(--primary-color);
}

.customer-type-details {
    flex: 1;
}

.customer-type-details strong {
    display: block;
    font-size: 15px;
    color: var(--text-color);
    margin-bottom: 4px;
}

.customer-type-desc {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
}

.customer-type-check {
    opacity: 0;
    transition: all 0.3s ease;
}

.customer-type-option.selected .customer-type-check,
.customer-type-option input[type="radio"]:checked + .customer-type-content .customer-type-check {
    opacity: 1;
}

.customer-type-check .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}

/* Company section animation */
.company-section {
    transition: all 0.3s ease;
}

.company-section.visible {
    display: block !important;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive customer type options */
@media (max-width: 600px) {
    .customer-type-options {
        grid-template-columns: 1fr;
    }

    .customer-type-content {
        padding: 15px;
        gap: 12px;
    }

    .customer-type-icon {
        width: 40px;
        height: 40px;
    }

    .customer-type-icon .dashicons {
        font-size: 20px;
        width: 20px;
        height: 20px;
    }

    .customer-type-details strong {
        font-size: 14px;
    }

    .customer-type-desc {
        font-size: 12px;
    }
}

/* ========================================
   Improved Cart Item Styles
   ======================================== */

.cart-item.cart-item-detailed {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.cart-item-detailed .cart-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border-bottom: 1px solid var(--border-color);
}

.cart-item-name-wrapper {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.cart-item-detailed .cart-item-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-color);
    line-height: 1.3;
}

.cart-item-category-badge {
    display: inline-block;
    padding: 2px 8px;
    background: var(--primary-color);
    color: white;
    font-size: 10px;
    font-weight: 500;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
}

.cart-item-tariff-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: #6c5ce7;
    color: white;
    font-size: 10px;
    font-weight: 500;
    border-radius: 10px;
    letter-spacing: 0.3px;
    width: fit-content;
    cursor: pointer;
    transition: background 0.2s ease;
}

.cart-item-tariff-badge:hover {
    background: #5f4dd0;
}

.cart-item-detailed .cart-item-remove {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.cart-item-detailed .cart-item-remove:hover {
    background: #fee;
    color: #c00;
}

.cart-item-detailed .cart-item-remove .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Cart Item Details Grid */
.cart-item-details-grid {
    padding: 12px 15px;
    background: #fafbfc;
}

.cart-detail-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 8px 0;
}

.cart-detail-row:not(:last-child) {
    border-bottom: 1px dashed #e5e5e5;
}

.cart-detail-row.cart-detail-datetime {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: 15px;
}

.cart-detail-row.cart-detail-datetime .cart-detail-item {
    flex: 0 0 auto;
}

.cart-detail-row.cart-detail-datetime .cart-detail-edit {
    flex: 1 1 auto;
    justify-content: flex-end;
}

.cart-detail-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.cart-detail-label {
    font-size: 10px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.cart-detail-label .dashicons {
    font-size: 12px;
    width: 12px;
    height: 12px;
    vertical-align: middle;
    margin-right: 2px;
    color: var(--primary-color);
}

.cart-detail-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
}

.cart-detail-vat {
    color: var(--primary-color);
    background: #e8f4fd;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    width: fit-content;
}

.cart-detail-edit {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.cart-detail-edit button {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.cart-detail-edit button:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.cart-detail-edit button .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* Cart Item Footer */
.cart-item-detailed .cart-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: white;
    border-top: 1px solid var(--border-color);
}

.cart-item-qty-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-qty-label {
    font-size: 12px;
    color: #666;
}

.cart-item-detailed .cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--light-gray);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.cart-item-detailed .cart-item-controls button {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--text-color);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cart-item-detailed .cart-item-controls button:hover {
    background: var(--primary-color);
    color: white;
}

.cart-item-detailed .cart-qty {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-color);
}

.cart-item-total-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.cart-item-detailed .cart-item-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

.cart-item-detailed .cart-item-price-without-vat {
    font-size: 11px;
    color: #888;
}

/* Responsive Cart Items */
@media (max-width: 600px) {
    .cart-detail-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .cart-detail-row.cart-detail-datetime {
        flex-wrap: wrap;
        gap: 10px;
    }

    .cart-detail-row.cart-detail-datetime .cart-detail-edit {
        width: 100%;
        justify-content: flex-end;
    }

    .cart-item-detailed .cart-item-footer {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .cart-item-qty-section {
        justify-content: space-between;
    }

    .cart-item-total-section {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding-top: 10px;
        border-top: 1px dashed var(--border-color);
    }

    .cart-item-detailed .cart-item-price {
        font-size: 16px;
    }
}

/* ========================================
   Step Instructions Styles
   ======================================== */

.step-instructions {
    display: flex;
    gap: 20px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: 12px;
    padding: 20px 25px;
    margin-bottom: 25px;
    position: relative;
}

.step-instructions::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #0ea5e9 0%, #0284c7 100%);
    border-radius: 12px 0 0 12px;
}

.step-instructions-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.step-instructions-icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.step-instructions-content {
    flex: 1;
}

.step-instructions-content h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 700;
    color: #0369a1;
}

.step-instructions-content ol {
    margin: 0 0 12px 0;
    padding-left: 20px;
    list-style-position: outside;
}

.step-instructions-content ol li {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.5;
    color: #1e3a5f;
}

.step-instructions-content ol li:last-child {
    margin-bottom: 0;
}

.step-instructions-content ol li strong {
    color: #0369a1;
}

.step-instructions-note {
    display: block;
    margin: 0;
    padding: 10px 12px;
    background: white;
    border-radius: 8px;
    font-size: 13px;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.step-instructions-note .dashicons {
    color: #0ea5e9;
    vertical-align: middle;
    margin-right: 6px;
}

/* Final step variation - green */
.step-instructions.step-instructions-final {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #86efac;
}

.step-instructions.step-instructions-final::before {
    background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
}

.step-instructions.step-instructions-final .step-instructions-icon {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.step-instructions.step-instructions-final .step-instructions-content h4 {
    color: #166534;
}

.step-instructions.step-instructions-final .step-instructions-content ol li {
    color: #14532d;
}

.step-instructions.step-instructions-final .step-instructions-content ol li strong {
    color: #166534;
}

.step-instructions.step-instructions-final .step-instructions-note .dashicons {
    color: #22c55e;
}

/* ========================================
   Sticky Form Actions
   ======================================== */

.form-actions-sticky-wrapper {
    position: relative;
}

/* Placeholder to prevent content jump when buttons become fixed */
.form-actions-placeholder {
    display: none;
}

.form-actions-placeholder.active {
    display: block;
}

/* Base transition for smooth sticky/unsticky */
.form-actions {
    transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
}

.form-actions.is-sticky {
    position: fixed;
    bottom: 0;
    background: white;
    padding: 15px 30px;
    margin: 0;
    border-top: 2px solid var(--primary-color);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    border-radius: 0;
    box-sizing: border-box;
    /* Width and left position will be set by JS to match form width */
}

/* Smooth appearance animation via class */
.form-actions.is-sticky.sticky-entering {
    transform: translateY(100%);
    opacity: 0;
}

.form-actions.is-sticky.sticky-visible {
    transform: translateY(0);
    opacity: 1;
}

/* Smooth exit animation */
.form-actions.sticky-exiting {
    transform: translateY(20px);
    opacity: 0;
}

.form-actions.is-sticky .btn-primary {
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.4);
}

.form-actions.is-sticky .btn-prev {
    background: white;
}

/* Tawk.to Consult Button in form-actions */
.tawk-consult-btn {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #22c55e;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    white-space: nowrap;
    order: -1;
}
.tawk-consult-btn:hover {
    background: #16a34a;
    transform: translateY(-1px);
}
.tawk-consult-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 16px;
}
.form-actions.is-sticky .tawk-consult-btn {
    display: inline-flex;
}

/* Tawk.to toast notification */
.tawk-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #1e293b;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    z-index: 100000;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.tawk-toast-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Mobile responsive for sticky */
@media (max-width: 768px) {
    .step-instructions {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }

    .step-instructions-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .step-instructions-icon .dashicons {
        font-size: 20px;
        width: 20px;
        height: 20px;
    }

    .step-instructions-content ol li {
        font-size: 13px;
    }

    .form-actions.is-sticky {
        padding: 12px 15px !important;
        flex-direction: column;
        gap: 10px;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        border-radius: 0;
        align-items: center;
        justify-content: center;
        box-sizing: border-box !important;
    }

    .form-actions.is-sticky .form-actions-right {
        flex-direction: column;
        width: 100%;
    }

    .form-actions.is-sticky button {
        width: 100%;
    }

    .form-actions-right {
        margin-left: 0;
    }

    /* On mobile - always show buttons as sticky at bottom */
    .form-actions {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        margin: 0 !important;
        padding: 12px 15px !important;
        z-index: 1000 !important;
        background: white !important;
        border-top: 2px solid var(--primary-color) !important;
        box-shadow: 0 -4px 12px rgba(0,0,0,0.1) !important;
        border-radius: 0 !important;
        box-sizing: border-box !important;
    }

    .tawk-consult-label { display: none; }
    .tawk-consult-btn { padding: 8px 10px; }
    .form-actions .tawk-consult-btn {
        display: inline-flex !important;
        width: auto !important;
        order: -1;
    }
}

/* ========================================
   Confirmation Modal
   ======================================== */

.teledom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.teledom-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.teledom-modal-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    max-width: 1060px;
    width: 100%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.3s ease;
    overflow: hidden;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.teledom-modal-header {
    padding: 28px 30px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #e0e0e0;
    text-align: center;
}

.teledom-modal-header .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.teledom-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

.teledom-modal-body {
    padding: 25px 30px;
}

.modal-info-text {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    background: #e8f4fd;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin: 0;
}

.modal-info-text .dashicons {
    flex-shrink: 0;
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: var(--primary-color);
    margin-top: 2px;
}

.modal-order-name {
    margin: 0 0 20px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #e8f4fd 0%, #f0f7ff 100%);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    font-size: 14px;
    color: #555;
}

.modal-order-name:empty {
    display: none;
}

.modal-order-name strong {
    color: #333;
}

.modal-simple-text {
    font-size: 18px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 20px;
}

.modal-simple-text p {
    margin: 0 0 14px;
}

.modal-simple-text p:last-child {
    margin-bottom: 0;
}

.modal-simple-text strong {
    color: #333;
}

/* Modal info sections */
.modal-info-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 16px;
}

.modal-info-section h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.modal-info-section h4 .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: var(--primary-color);
}

.modal-info-section.modal-info-warning {
    background: #fff8e6;
    border-left: 4px solid #f0ad4e;
}

.modal-info-section.modal-info-warning h4 .dashicons {
    color: #e69500;
}

.modal-info-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.modal-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    line-height: 1.5;
    color: #555;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.modal-info-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.modal-info-list li:first-child {
    padding-top: 0;
}

.modal-info-list li .dashicons {
    flex-shrink: 0;
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: #28a745;
    margin-top: 2px;
}

.modal-info-section.modal-info-warning .modal-info-list li .dashicons {
    color: #e69500;
}

.modal-info-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    padding: 14px 16px;
    background: #e8f4fd;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
    color: #555;
}

.modal-info-note .dashicons {
    flex-shrink: 0;
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: var(--primary-color);
    margin-top: 1px;
}

.teledom-modal-actions {
    display: flex;
    gap: 12px;
    padding: 20px 30px 28px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

.btn-modal-cancel {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: #fff;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-modal-cancel:hover {
    background: var(--light-gray);
    border-color: var(--text-muted);
}

.btn-modal-cancel .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.btn-modal-confirm {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary-color);
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-modal-confirm:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-modal-confirm .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Modal Responsive */
@media (max-width: 600px) {
    .teledom-modal {
        padding: 10px;
        align-items: flex-start;
        overflow-y: auto;
    }

    .teledom-modal-content {
        margin: 10px auto;
        max-width: calc(100% - 20px);
        max-height: none;
        overflow: visible;
    }

    .teledom-modal-header {
        padding: 24px 20px 18px;
    }

    .teledom-modal-header h3 {
        font-size: 18px;
    }

    .teledom-modal-body {
        padding: 20px;
        max-height: none;
        overflow-y: visible;
    }

    .modal-info-text {
        font-size: 13px;
        padding: 14px 16px;
    }

    .teledom-modal-actions {
        flex-direction: column;
        padding: 16px 20px 24px;
    }

    .btn-modal-cancel,
    .btn-modal-confirm {
        width: 100%;
        padding: 12px 24px;
    }
}

/* =============================================
   Draft Action Buttons (in form-actions)
   ============================================= */
.draft-action-buttons {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

/* Hidden button when draft is active */
.btn-hidden-for-draft {
    display: none !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .draft-action-buttons {
        flex-direction: column;
        width: 100%;
    }

    .draft-action-buttons .btn-discard-draft,
    .draft-action-buttons .btn-restore-draft {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   ENHANCED MOBILE & TABLET RESPONSIVE STYLES
   ======================================== */

/* === TABLET (768px - 992px) === */
@media (max-width: 992px) and (min-width: 769px) {
    /* Service group tabs - horizontal scroll on tablet */
    .service-group-tabs {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        padding-bottom: 5px;
        gap: 8px;
    }

    .service-group-tabs::-webkit-scrollbar {
        height: 4px;
    }

    .service-group-tabs::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 4px;
    }

    .service-group-tab {
        flex-shrink: 0;
        white-space: nowrap;
    }

    /* Cart sidebar - better tablet layout */
    .cart-sidebar {
        max-height: 50vh;
    }

    /* Product cards - 2 columns on tablet */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* === MOBILE (max 768px) === */
@media (max-width: 768px) {
    /* Main wrapper - tighter padding */
    .teledom-order-form-wrapper {
        padding: 15px;
        margin: 10px;
        border-radius: 12px;
    }

    /* Service group tabs - horizontal scroll */
    .service-group-tabs {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        gap: 8px;
        padding: 5px 0 10px 0;
        margin: 0 -5px;
    }

    .service-group-tabs::-webkit-scrollbar {
        display: none;
    }

    .service-group-tab {
        flex-shrink: 0;
        white-space: nowrap;
        padding: 10px 16px;
        font-size: 13px;
        border-radius: 20px;
        min-height: 44px; /* Touch-friendly */
        display: flex;
        align-items: center;
    }

    /* Steps indicator - compact mobile version */
    .steps-indicator {
        gap: 5px;
        padding: 10px 0;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .step-item {
        flex-shrink: 0;
        min-width: auto;
    }

    .step-number {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .step-title {
        font-size: 10px;
        max-width: 60px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Form section titles */
    .form-section-title {
        font-size: 18px;
        padding-bottom: 10px;
        margin-bottom: 15px;
    }

    /* Form fields - full width, larger touch targets */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents iOS zoom */
        padding: 14px 12px;
        min-height: 48px; /* Touch-friendly */
        border-radius: 8px;
    }

    .form-group label {
        font-size: 14px;
        margin-bottom: 6px;
    }

    /* Buttons - larger touch targets */
    .btn-primary,
    .btn-secondary,
    .btn-add-to-cart,
    button[type="submit"],
    .form-actions button {
        min-height: 48px;
        padding: 12px 20px;
        font-size: 15px;
        border-radius: 10px;
    }

    /* Product cards - single column */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .product-card {
        border-radius: 12px;
    }

    .product-card-image {
        height: 160px;
    }

    .product-card-content {
        padding: 15px;
    }

    .product-name {
        font-size: 16px;
    }

    .product-price {
        font-size: 18px;
    }

    /* Cart sidebar - improved mobile */
    .cart-sidebar {
        border-radius: 12px;
        padding: 15px;
    }

    .cart-header h3 {
        font-size: 16px;
    }

    .cart-item {
        padding: 12px;
        border-radius: 8px;
        margin-bottom: 10px;
    }

    .cart-item-name {
        font-size: 14px;
    }

    .cart-item-price {
        font-size: 15px;
    }

    .cart-summary {
        padding-top: 12px;
    }

    .cart-total-label,
    .cart-total-amount {
        font-size: 16px;
    }

    /* Form actions - sticky at bottom */
    .form-actions {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
        margin: 0 -15px -15px -15px;
        background: #fff;
        border-top: 1px solid #e0e0e0;
    }

    .form-actions.is-sticky {
        position: fixed;
        bottom: 0;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        margin: 0;
        padding: 12px 15px !important;
        z-index: 1000;
        box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
        border-radius: 0;
        align-items: center;
        justify-content: center;
        box-sizing: border-box !important;
    }

    .form-actions button {
        width: 100%;
        justify-content: center;
    }

    /* Popup improvements */
    .product-popup-overlay {
        padding: 10px;
        align-items: flex-end; /* Slide up from bottom */
    }

    .product-popup {
        max-height: 90vh;
        border-radius: 20px 20px 0 0;
        margin: 0;
        animation: slideUpMobile 0.3s ease;
    }

    @keyframes slideUpMobile {
        from {
            opacity: 0;
            transform: translateY(100%);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .popup-close {
        width: 36px;
        height: 36px;
        top: 12px;
        right: 12px;
        font-size: 24px;
    }

    .popup-content {
        padding: 15px;
        gap: 15px;
    }

    .popup-image-section {
        min-height: 180px;
        border-radius: 12px;
    }

    .popup-details h2 {
        font-size: 20px;
    }

    /* Date/time pickers - larger touch targets */
    .date-range-selector,
    .time-range-selector {
        gap: 10px;
    }

    .date-input-group input,
    .time-input-group select {
        font-size: 16px;
        padding: 12px;
        min-height: 48px;
    }

    /* Quantity controls - larger */
    .quantity-controls {
        gap: 8px;
    }

    .quantity-controls button {
        width: 44px;
        height: 44px;
        font-size: 20px;
        border-radius: 10px;
    }

    .quantity-controls input {
        width: 60px;
        height: 44px;
        font-size: 18px;
    }

    /* VAT toggle - mobile friendly */
    .vat-toggle-container {
        width: 100%;
        margin-top: 10px;
    }

    .vat-toggle-track {
        width: 100%;
        max-width: none;
    }

    /* Billing section */
    .billing-address-section {
        padding: 15px;
        border-radius: 12px;
    }

    /* Service request link */
    .service-request-trigger {
        padding: 15px;
        border-radius: 10px;
        font-size: 14px;
    }
}

/* === SMALL MOBILE (max 480px) === */
@media (max-width: 480px) {
    .teledom-order-form-wrapper {
        padding: 12px;
        margin: 5px;
    }

    /* Header - compact */
    .teledom-form-header {
        padding: 15px;
        margin: -12px -12px 15px -12px;
        gap: 12px;
    }

    .teledom-form-logo img {
        max-height: 50px;
    }

    .teledom-form-title {
        font-size: 18px;
    }

    .teledom-form-subtitle {
        font-size: 13px;
    }

    .teledom-form-description {
        font-size: 12px;
    }

    /* Steps - very compact */
    .step-number {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .step-title {
        display: none; /* Hide titles on very small screens */
    }

    /* Service tabs - smaller */
    .service-group-tab {
        padding: 8px 14px;
        font-size: 12px;
        min-height: 40px;
    }

    /* Product cards */
    .product-card-image {
        height: 140px;
    }

    .product-card-content {
        padding: 12px;
    }

    /* Cart items - compact */
    .cart-item {
        padding: 10px;
    }

    .cart-item-remove {
        width: 28px;
        height: 28px;
    }

    /* Form actions */
    .form-actions {
        padding: 12px;
        gap: 8px;
    }

    .form-actions button {
        min-height: 44px;
        font-size: 14px;
    }

    /* Popup - full screen on small mobile */
    .product-popup {
        max-height: 100vh;
        height: 100vh;
        border-radius: 0;
    }

    .popup-content {
        padding: 12px;
    }

    /* Quantity in popup */
    .popup-quantity-section {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .quantity-controls {
        justify-content: center;
    }

    /* Date inputs stacked */
    .date-range-selector,
    .time-range-selector {
        flex-direction: column;
    }

    .date-input-group,
    .time-input-group {
        width: 100%;
    }
}

/* === IFRAME SPECIFIC MOBILE IMPROVEMENTS === */
body.teledom-iframe-mode {
    /* Better spacing in iframe */
}

@media (max-width: 768px) {
    body.teledom-iframe-mode {
        padding: 10px 10px 80px 10px;
    }

    body.teledom-iframe-mode .teledom-order-form-wrapper {
        padding: 15px;
        border-radius: 12px;
    }

    /* Cart in iframe - horizontal on mobile */
    body.teledom-iframe-mode .cart-sidebar {
        max-height: none !important;
    }

    body.teledom-iframe-mode .cart-items {
        max-height: 200px;
    }
}

@media (max-width: 480px) {
    body.teledom-iframe-mode {
        padding: 5px 5px 70px 5px;
    }

    body.teledom-iframe-mode .teledom-order-form-wrapper {
        padding: 12px;
        border-radius: 10px;
    }
}

/* === LANDSCAPE MOBILE === */
@media (max-height: 500px) and (orientation: landscape) {
    .product-popup {
        max-height: 100vh;
    }

    .popup-content {
        flex-direction: row;
        align-items: flex-start;
    }

    .popup-image-section {
        width: 40%;
        min-height: 100%;
    }

    .popup-details {
        width: 60%;
        max-height: 80vh;
        overflow-y: auto;
    }
}

/* === TOUCH DEVICE IMPROVEMENTS === */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .btn-add-to-cart,
    .cart-item-remove,
    .popup-close,
    .service-group-tab {
        min-height: 44px;
        min-width: 44px;
    }

    /* Remove hover effects that don't work on touch */
    .product-card:hover {
        transform: none;
    }

    .product-card:active {
        transform: scale(0.98);
    }

    /* Better tap feedback */
    .btn-primary:active,
    .btn-secondary:active,
    .btn-add-to-cart:active {
        transform: scale(0.97);
        opacity: 0.9;
    }

    /* Disable text selection on buttons */
    button,
    .btn-primary,
    .btn-secondary,
    .service-group-tab {
        -webkit-user-select: none;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
    }
}

/* === WORDPRESS CONTAINER FULL WIDTH ON MOBILE/TABLET === */
@media (max-width: 992px) {
    #wp--skip-link--target > div > div > div {
        max-width: 100% !important;
        width: 100% !important;
        /* padding-left: 15px !important; */
        /* padding-right: 15px !important; */
    }
}

@media (max-width: 768px) {
    #wp--skip-link--target > div > div > div {
        /* padding-left: 10px !important; */
        /* padding-right: 10px !important; */
    }
}
