/* WooMarkMcsimovRequest Frontend Styles */

.woomarkmcsimov-buttons {
    margin: 15px 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.woomarkmcsimov-btn {
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    line-height: 1.5;
    min-width: 120px;
}

.woomarkmcsimov-btn:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

.woomarkmcsimov-btn:active {
    transform: translateY(0);
}

.woomarkmcsimov-single-product-buttons {
    margin: 20px 0;
}

/* Popup Styles */
.woomarkmcsimov-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.woomarkmcsimov-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.woomarkmcsimov-popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 0;
}

.woomarkmcsimov-popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
    z-index: 10;
}

.woomarkmcsimov-popup-close:hover {
    color: #333;
}

.woomarkmcsimov-popup-header {
    padding: 25px 30px 15px;
    border-bottom: 1px solid #eee;
}

.woomarkmcsimov-popup-header h3 {
    margin: 0 0 10px;
    font-size: 24px;
    color: #333;
}

.woomarkmcsimov-popup-header p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.woomarkmcsimov-popup-body {
    padding: 20px 30px 30px;
}

/* Product Info Styles */
.woomarkmcsimov-product-info {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex !important;
    align-items: flex-start;
    gap: 15px;
    min-height: 120px;
}

.woomarkmcsimov-product-image {
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    max-width: 150px;
}

.woomarkmcsimov-product-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.woomarkmcsimov-product-details {
    flex: 1;
    min-width: 0;
}

.woomarkmcsimov-product-details h4 {
    margin: 0 0 10px;
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

.woomarkmcsimov-product-price {
    margin: 5px 0;
    font-weight: bold;
    color: #2c5aa0;
    font-size: 16px;
}

.woomarkmcsimov-product-sku {
    margin: 5px 0;
    font-size: 14px;
    color: #666;
}

.woomarkmcsimov-product-excerpt {
    margin: 10px 0 0;
    font-size: 14px;
    color: #555;
    line-height: 1.4;
}

.woomarkmcsimov-product-info .product-details {
    overflow: hidden;
}

.woomarkmcsimov-product-info .product-details p {
    margin: 5px 0;
    font-size: 14px;
}

.woomarkmcsimov-product-info .product-details strong {
    color: #333;
}

.woomarkmcsimov-product-info::after {
    content: "";
    display: table;
    clear: both;
}

/* Quantity and Total Styles */
.woomarkmcsimov-product-info label {
    display: inline-block;
    margin-right: 10px;
    font-weight: 600;
}

.woomarkmcsimov-product-info input[type="number"] {
    width: 80px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

#woomarkmcsimov_total {
    margin-top: 15px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

#total_amount {
    color: #0073aa;
}

/* Form Styles */
.woomarkmcsimov-popup .wpcf7-form {
    margin: 0;
}

.woomarkmcsimov-popup .wpcf7-form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 15px;
}

.woomarkmcsimov-popup .wpcf7-submit {
    background: #0073aa;
    color: #ffffff;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.woomarkmcsimov-popup .wpcf7-submit:hover {
    background: #005a87;
}

/* Loading State */
.woomarkmcsimov-popup.loading .woomarkmcsimov-popup-content {
    opacity: 0.7;
    pointer-events: none;
}

.woomarkmcsimov-popup.loading::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10001;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .woomarkmcsimov-popup-content {
        width: 95%;
        margin: 20px auto;
        max-height: 90vh;
    }
    
    .woomarkmcsimov-popup-header,
    .woomarkmcsimov-popup-body {
        padding: 15px 20px;
    }
    
    .woomarkmcsimov-buttons {
        flex-direction: column;
    }
    
    .woomarkmcsimov-btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .woomarkmcsimov-product-info .product-image {
        float: none;
        text-align: center;
        margin-bottom: 15px;
    }
}

/* Hide WooCommerce default buttons */
.woocommerce .products .product .add_to_cart_button,
.woocommerce .products .product .product_type_simple,
.woocommerce .products .product .product_type_variable {
    display: none !important;
}

.single-product .woocommerce div.product form.cart {
    display: none !important;
}