/* Sidebar Specs (Right side of product image) */

.ych-sidebar-specs-section {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.ych-sidebar-specs-title {
    font-size: 14px;
    font-weight: 700;
    color: #072126;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ych-sidebar-specs-table {
    width: 100%;
    border-collapse: collapse;
}

.ych-sidebar-specs-table tbody tr {
    border-bottom: 1px solid #dee2e6;
}

.ych-sidebar-specs-table tbody tr:last-child {
    border-bottom: none;
}

.ych-sidebar-specs-table td {
    padding: 8px 0;
    font-size: 13px;
}

.ych-sidebar-specs-table .sidebar-spec-label {
    font-weight: 600;
    color: #495057;
    padding-right: 8px;
    width: 50%;
}

.ych-sidebar-specs-table .sidebar-spec-value {
    color: #212529;
}

/* Product Specs Display Styles */

.ych-product-specs-section {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.ych-specs-title {
    font-size: 18px;
    font-weight: 700;
    color: #072126;
    margin: 0 0 16px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ych-specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
}

.ych-specs-table tbody tr {
    border-bottom: 1px solid #dee2e6;
}

.ych-specs-table tbody tr:last-child {
    border-bottom: none;
}

.ych-specs-table td {
    padding: 12px 0;
}

.ych-specs-table .spec-label {
    font-weight: 600;
    color: #495057;
    width: 40%;
    padding-right: 12px;
}

.ych-specs-table .spec-value {
    color: #212529;
    font-size: 14px;
}

.ych-request-quote-btn {
    display: block;
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: #fff;
    border: 0;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 250ms ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ych-request-quote-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(220, 53, 69, 0.3);
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
}

.ych-request-quote-btn:active {
    transform: translateY(0);
}

/* Modal Styles */

.ych-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 250ms ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.ych-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ych-modal-content {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    animation: slideIn 250ms ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.ych-modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #adb5bd;
    cursor: pointer;
    transition: color 150ms ease;
}

.ych-modal-close:hover {
    color: #212529;
}

.ych-modal h2 {
    margin: 0 0 24px 0;
    font-size: 24px;
    color: #072126;
    font-weight: 700;
}

.ych-modal .ych-contact-form {
    display: flex;
    flex-direction: column;
}

.ych-modal .form-group {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
}

.ych-modal .form-group label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    font-size: 14px;
}

.ych-modal .form-group .required {
    color: #dc3545;
}

.ych-modal .form-group input,
.ych-modal .form-group textarea {
    padding: 12px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 150ms ease;
}

.ych-modal .form-group input:focus,
.ych-modal .form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.ych-modal .ych-submit-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    color: #fff;
    border: 0;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 150ms ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ych-modal .ych-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    background: linear-gradient(135deg, #1e7e34 0%, #145a27 100%);
}

.ych-modal .ych-submit-btn:active {
    transform: translateY(0);
}

.ych-modal .ych-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Success Message */

.ych-quote-success {
    background-color: #d4edda;
    color: #155724;
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 16px;
    border: 1px solid #c3e6cb;
}

.ych-quote-error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 16px;
    border: 1px solid #f5c6cb;
}

/* Responsive */

@media (max-width: 600px) {
    .ych-modal-content {
        width: 95%;
        padding: 24px;
    }

    .ych-specs-title {
        font-size: 16px;
    }

    .ych-specs-table .spec-label {
        width: 35%;
        font-size: 13px;
    }

    .ych-specs-table .spec-value {
        font-size: 13px;
    }
}

/* Pasted specs table styling */
.ych-sidebar-pasted-specs table,
.ych-product-pasted-specs table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 12px 0 !important;
}

.ych-sidebar-pasted-specs table td,
.ych-sidebar-pasted-specs table th,
.ych-product-pasted-specs table td,
.ych-product-pasted-specs table th {
    padding: 8px 12px !important;
    font-size: 13px !important;
    border: 1px solid #dee2e6 !important;
    text-align: left !important;
}

.ych-sidebar-pasted-specs table th,
.ych-product-pasted-specs table th {
    background-color: #f1f3f5 !important;
    font-weight: 700 !important;
    color: #495057 !important;
}

.ych-sidebar-pasted-specs table tr:nth-child(even),
.ych-product-pasted-specs table tr:nth-child(even) {
    background-color: #f8f9fa;
}

/* Guest login button styles */
.ych-guest-login-quote-wrapper {
    margin: 20px 0;
}

.ych-guest-login-btn {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%) !important;
    color: #fff !important;
    border-radius: 6px !important;
    border: 0 !important;
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.15);
    transition: all 250ms ease !important;
    text-align: center;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.ych-guest-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(13, 110, 253, 0.35);
    background: linear-gradient(135deg, #0b5ed7 0%, #0a58ca 100%) !important;
}

/* Loop product login button styling */
.ych-loop-login-btn {
    background-color: #6c757d !important;
    color: #fff !important;
    border-radius: 4px !important;
    font-size: 13px !important;
    padding: 8px 16px !important;
    display: inline-block !important;
    text-align: center;
    text-decoration: none !important;
    transition: background-color 200ms ease !important;
}

.ych-loop-login-btn:hover {
    background-color: #5c636a !important;
}

/* Hide Prices in Front-End Templates */

/* Shop Loop & Single Product Page price container */
.price, 
.amount, 
.woocommerce-Price-amount,
.product-price,
.product-subtotal,
.cart-subtotal,
.order-total {
    display: none !important;
}

/* Hide Price and Subtotal column headers/cells in Cart Table */
.shop_table.cart th.product-price,
.shop_table.cart td.product-price,
.shop_table.cart th.product-subtotal,
.shop_table.cart td.product-subtotal {
    display: none !important;
}

/* Hide Total column header/cells in Checkout Table */
.shop_table.woocommerce-checkout-review-order-table th.product-total,
.shop_table.woocommerce-checkout-review-order-table td.product-total {
    display: none !important;
}

/* Hide totals details panel in Cart page (keeps proceed-to-checkout container) */
.cart_totals h2,
.cart_totals table.shop_table.shop_table_responsive {
    display: none !important;
}

.cart_totals {
    width: 100% !important;
    float: none !important;
    text-align: right;
    border: none !important;
    padding: 0 !important;
}

/* Hide order totals footer rows in Checkout order review table */
.shop_table.woocommerce-checkout-review-order-table tfoot {
    display: none !important;
}

