/* Customer Info Styles */
.ts-customer-info-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Inter', sans-serif;
}

/* Cart Container for third step */
.ts-cart-container {
    padding-top: 32px;
}

/* Hide page title */
.page-template-default .entry-title {
    display: none !important;
}

/* Progress Steps - stejné jako v shipping-payment */
.ts-checkout-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
    margin-bottom: 24px;
}

.ts-step {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #666;
    font-size: 16px;
    position: relative;
}

.ts-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 400;
    font-size: 18px;
    color: #666;
    transition: all 0.3s ease;
    position: relative;
}

.ts-step.active .ts-step-number {
    border-color: #000;
    background: #fff;
    color: #000;
    border-width: 2px;
    font-weight: 500;
}

.ts-step.completed .ts-step-number {
    border-color: #10b981;
    background: #10b981;
    color: #fff;
    font-size: 0;
}

.ts-step.completed .ts-step-number::after {
    content: '✓';
    font-size: 16px;
    font-weight: 600;
}

.ts-step-label {
    white-space: nowrap;
    font-size: 17px;
    line-height: 1.2;
    font-weight: 400;
}

.ts-step-divider {
    width: 160px;
    height: 1px;
    background: #ddd;
    margin: 0 24px;
    position: relative;
}

.ts-step.completed + .ts-step-divider {
    background: #10b981;
}

@media (max-width: 768px) {
    .ts-checkout-steps {
        padding: 0 10px;
    }
    
    .ts-step-label {
        display: none;
    }
    
    .ts-step-divider {
        width: 60px;
        margin: 0 10px;
    }
    
    .ts-step-number {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

/* Content Layout - same as shipping-payment */
.ts-ci-content {
    display: grid;
    grid-template-columns: 1fr 440px;
    gap: 32px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 968px) {
    .ts-ci-content {
        grid-template-columns: 1fr;
    }
    
    .ts-ci-summary {
        order: -1;
        margin-bottom: 30px;
    }
}

/* Form Section */
.ts-ci-form-section {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ts-ci-form-section h2 {
    margin: 0 0 20px 0;
    font-size: 24px;
    font-weight: 600;
    color: #111827;
}

/* Login Prompt */
.ts-ci-login-prompt {
    background: #f3f4f6;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.ts-ci-login-prompt a {
    color: #10b981;
    text-decoration: underline;
}

/* Form Groups */
.ts-ci-form-group {
    margin-bottom: 20px;
}

.ts-ci-form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.ts-ci-form-group .required {
    color: #ef4444;
}

.ts-ci-form-group input[type="text"],
.ts-ci-form-group input[type="email"],
.ts-ci-form-group input[type="tel"],
.ts-ci-form-group input[type="password"],
.ts-ci-form-group select,
.ts-ci-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s;
}

.ts-ci-form-group input:focus,
.ts-ci-form-group select:focus,
.ts-ci-form-group textarea:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.ts-ci-form-group input.error {
    border-color: #ef4444;
}

/* Name Group */
.ts-ci-name-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.ts-ci-name-group .ts-ci-form-field {
    margin-bottom: 0;
}

/* Phone Group */
.ts-ci-phone-group {
    display: flex;
    gap: 10px;
}

.ts-ci-phone-prefix {
    width: 120px;
    flex-shrink: 0;
}

/* Company Fields */
.ts-ci-company-fields {
    padding: 20px;
    background: #f9fafb;
    border-radius: 6px;
    margin-bottom: 20px;
}

.ts-ci-company-ids {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Checkbox */
.ts-ci-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
}

.ts-ci-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Section Title */
.ts-ci-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 30px 0 20px 0;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

/* Shipping Fields */
.ts-ci-shipping-fields {
    padding: 20px;
    background: #f9fafb;
    border-radius: 6px;
    margin-bottom: 20px;
}

/* Password Fields */
.ts-ci-password-fields {
    padding: 20px;
    background: #f9fafb;
    border-radius: 6px;
    margin-bottom: 20px;
}

/* Use shipping-payment styles for buttons and summary */
.ts-sp-continue-btn,
.ts-sp-back-link,
.ts-sp-right-column,
.ts-sp-summary,
.ts-sp-summary-title,
.ts-sp-products,
.ts-sp-product,
.ts-sp-product-image,
.ts-sp-product-info,
.ts-sp-product-item,
.ts-sp-product-name,
.ts-sp-product-price,
.ts-sp-product-quantity,
.ts-sp-totals,
.ts-sp-total-row,
.ts-sp-discount-row,
.ts-sp-discount,
.ts-sp-total-final,
.ts-sp-vat {
    /* Styles are inherited from shipping-payment.css */
}

/* Summary Section */
.ts-ci-summary {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.ts-ci-summary h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

/* Cart Items */
.ts-ci-cart-items {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.ts-ci-cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.ts-ci-item-image {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.ts-ci-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.ts-ci-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ts-ci-item-name {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    margin-bottom: 4px;
}

.ts-ci-item-quantity {
    font-size: 12px;
    color: #6b7280;
}

.ts-ci-item-price {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    align-self: center;
}

/* Totals */
.ts-ci-totals {
    font-size: 14px;
}

.ts-ci-total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    color: #6b7280;
}

.ts-ci-discount {
    color: #059669;
}

.ts-ci-total-final {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
    font-size: 16px;
    color: #111827;
}

.ts-ci-total-final strong {
    font-weight: 600;
}

/* Error Message */
.ts-ci-error-message {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ts-customer-info-container {
        padding: 15px;
    }
    
    .ts-checkout-steps {
        flex-direction: column;
        gap: 15px;
    }
    
    .ts-step::after {
        display: none;
    }
    
    .ts-ci-form-section {
        padding: 20px;
    }
    
    .ts-ci-name-group,
    .ts-ci-company-ids {
        grid-template-columns: 1fr;
    }
    
    .ts-ci-phone-group {
        flex-direction: column;
    }
    
    .ts-ci-phone-prefix {
        width: 100%;
    }
    
    .ts-ci-buttons {
        flex-direction: column-reverse;
        gap: 10px;
    }
    
    .ts-ci-back-btn,
    .ts-ci-continue-btn {
        width: 100%;
    }
}