/*
Theme Name: FMS
Theme URI: https://yourwebsite.com
Description: Custom theme for FMS
Author: Your Name
Template: kadence
Version: 1.0.0
*/



.quote-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
}

.quote-popup-container {
    position: relative;
    background-color: #fff;
    width: 90%;
    max-width: 600px;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    margin: 40px auto;
}

.quote-popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #aaa;
}

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

/* Additional styles for Ninja Forms compatibility */
#ninja-form-container .nf-form-content {
    padding: 0;
}

/* Ensure the popup is displayed properly on mobile */
@media only screen and (max-width: 600px) {
    .quote-popup-container {
        padding: 20px;
        width: 95%;
    }
}

/*archive catagory description override*/
/* Add margin-bottom to WooCommerce category descriptions regardless of position */
.woocommerce .term-description,
.woocommerce-products-header .term-description,
.woocommerce-before-shop-loop .term-description {
    margin-bottom: 100px;
}





/*Popup tables for category archives*/
.table-popup-content {
    background-color: #fff;
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.table-popup-inner {
    position: relative;
}

.table-popup-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-popup-header h3 {
    margin: 0;
    font-size: 20px;
}

.table-popup-close {
    font-size: 28px;
    cursor: pointer;
    color: #999;
    line-height: 1;
}

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

.table-popup-body {
    padding: 20px;
    overflow-y: auto;
}

.table-popup-button {
    margin-bottom: 50px;
}

/* Table styling */
.table-popup-body table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 20px;
    font-size: 14px;
}

.table-popup-body th,
.table-popup-body td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

.table-popup-body th {
    background-color: #f2f2f2;
    font-weight: bold;
    color: #333;
}

/* Style the entire first row (both th and td cells) */
.table-popup-body tr:first-child th,
.table-popup-body tr:first-child td {
    background-color: #f2f2f2;
    font-weight: bold;
    color: #333;
}

/* Style the first cell of every row starting with the third row */
.table-popup-body tr:nth-child(n+2) td:first-child {
    background-color: #c4272d;
    color: white;
    font-weight: bold;
}

.table-popup-body tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Make tables responsive */
@media screen and (max-width: 767px) {
    .table-popup-body {
        padding: 10px;
    }
    
    .table-popup-body table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}



/* Features section columns*/
.features-container {
    display: flex;
    flex-wrap: wrap;
}
.features-column {
    flex: 1;
    min-width: 300px;
    padding: 20px;
}
.features-column h5 {
    color: #333;
    margin-top: 0;
}
.features-column ul {
    padding-left: 20px;
    margin-top: 10px;
}
.features-column li {
    margin-bottom: 8px;
}
@media (max-width: 768px) {
    .features-column {
        flex: 100%;
    }
}


/* Make navigation items bold when active */
.menu-item.current-menu-item > a,
.menu-item.current-menu-parent > a,
.menu-item.current-menu-ancestor > a,
.menu-item.current_page_item > a {
    font-weight: bold !important;
}



/*hide payments section from products not for online sale*/
.product-type-external .summary .single-product-payments {
    display: none !important; 
}


/*tables scrollable horizontally in product pages at mobile size, and top row sticky*/
.responsive-table {
    width: 100%;
    overflow-x: auto;
  }
  
  .responsive-table table {
    width: 100%;
    border-collapse: collapse;
  }
  
  .responsive-table th, 
  .responsive-table td {
    padding: 10px;
    text-align: left;
    background: #fff; /* helps when sticky */
    border: 1px solid #ccc;
  }
  
  .responsive-table th {
    position: sticky;
    top: 0;
    background: #f9f9f9; /* lighter background for header */
    z-index: 2;
  }

  @media(max-width: 768px) {
    .table-popup-content{
        width: 100%;
        margin:0;
    }
    }
  
/* Hide the WooCommerce cart icon */
.header-cart-wrap,
.site-header-item.kadence-header-cart,
.header-mobile-cart-wrap {
    display: none !important;
}