/**
 * Tailors95 Cart and Checkout - Frontend Styles
 */

/* Progress Bar */
.t95cc-checkout-progress {
    margin-bottom: 30px;
}

.t95cc-progress-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: space-between;
    position: relative;
}

.t95cc-progress-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50px;
    right: 50px;
    height: 2px;
    background-color: #ddd;
    z-index: 1;
}

.t95cc-step {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
}

.t95cc-step-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background-color: #ddd;
    color: #666;
    font-weight: bold;
    margin-bottom: 5px;
}

.t95cc-step.active .t95cc-step-number {
    background-color: #007cba;
    color: #fff;
}

.t95cc-step-title {
    display: block;
    font-size: 14px;
    color: #666;
}

.t95cc-step.active .t95cc-step-title {
    color: #007cba;
    font-weight: bold;
}

/* Cart Notices */
.t95cc-cart-notice {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.t95cc-free-shipping-notice {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #4caf50;
}

/* Recommended Products */
.t95cc-recommended-products {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.t95cc-recommended-products h3 {
    margin-bottom: 20px;
}

.t95cc-cart-recommendations {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

/* Gift Wrapping */
.t95cc-gift-wrapping-section {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 4px;
    margin: 20px 0;
}

.t95cc-gift-message-wrapper {
    margin-top: 15px;
}

.t95cc-gift-message-wrapper textarea {
    width: 100%;
    min-height: 80px;
}

/* Mobile Order Summary */
.t95cc-mobile-order-summary {
    display: none;
}

@media (max-width: 768px) {
    .t95cc-mobile-order-summary {
        display: block;
        margin-bottom: 20px;
    }
    
    .t95cc-toggle-summary {
        width: 100%;
        padding: 15px;
        background-color: #f0f0f0;
        border: 1px solid #ddd;
        border-radius: 4px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
    }
    
    .t95cc-summary-content {
        margin-top: 15px;
        padding: 15px;
        background-color: #fff;
        border: 1px solid #ddd;
        border-radius: 4px;
    }
}

/* Login Reminder */
.t95cc-login-reminder {
    margin-bottom: 20px;
}

.t95cc-show-login {
    text-decoration: underline;
    cursor: pointer;
}

.t95cc-login-form {
    margin-top: 20px;
}

/* Custom Cart Buttons */
.t95cc-save-cart,
.t95cc-share-cart {
    margin-left: 10px;
}

/* Field Validation */
.t95cc-field-error {
    border-color: #dc3545 !important;
}

.t95cc-field-success {
    border-color: #28a745 !important;
}

.t95cc-field-message {
    font-size: 12px;
    margin-top: 5px;
}

.t95cc-field-message.error {
    color: #dc3545;
}

.t95cc-field-message.success {
    color: #28a745;
}

/* Shipping Notes */
.t95cc-shipping-notes-section {
    margin: 20px 0;
}

.t95cc-shipping-notes-section textarea {
    width: 100%;
    min-height: 60px;
}

/* Loyalty Section */
.t95cc-loyalty-section {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 4px;
    padding: 20px;
    margin: 20px 0;
}

/* IČO a DIČ fields */
.t95cc-ico-field,
.t95cc-dic-field {
    position: relative;
}

/* Loading Spinner */
.t95cc-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: t95cc-spin 1s linear infinite;
    margin-left: 10px;
}

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

/* Responsive */
@media (max-width: 480px) {
    .t95cc-progress-steps {
        flex-direction: column;
    }
    
    .t95cc-progress-steps::before {
        display: none;
    }
    
    .t95cc-step {
        margin-bottom: 15px;
    }
}

/* Print Styles */
@media print {
    .t95cc-recommended-products,
    .t95cc-save-cart,
    .t95cc-share-cart,
    .t95cc-gift-wrapping-section,
    .t95cc-loyalty-section {
        display: none !important;
    }
}