/* Add your custom CSS here */
.fp-product-table {
    width: 80%; /* Set table width to 80% of the screen */
    max-width: none; /* Ensure the table doesn't exceed screen width */
    margin: 0 auto !important; /* Center the table */
    border-collapse: collapse;
    table-layout: auto; /* Ensure the table width is consistent */
}

.fp-product-table th, .fp-product-table td {
    padding: 8px;
    text-align: left;
    vertical-align: middle;
}

.fp-product-table th {
    border-bottom: 2px solid #ddd; /* Only border at the bottom */
    border-top: none;
    text-transform: uppercase;
    font-weight: normal;
    color: #aaa;
    letter-spacing: 1px;
    font-size: 16px;
}

.fp-product-table td {
    border-bottom: 1px solid #ddd; /* Border only at the bottom */
    border-left: none; /* Remove internal borders */
    border-right: none; /* Remove internal borders */
    font-size: 14px;
}

.fp-product-table th:first-child,
.fp-product-table th:last-child,
.fp-product-table td:first-child,
.fp-product-table td:last-child {
    border-left: none; /* Remove border on the sides */
    border-right: none; /* Remove border on the sides */
}

.fp-product-table th:first-child,
.fp-product-table th:last-child {
    border-top: none;
    font-size: 15px;
    font-weight: 600;
}

.fp-product-table td:first-child a {
    color: #2759a5; /* Product name color */
    text-decoration: none;
}

.fp-item-name {
    color: #2759a5;
}

.fp-add-to-cart {
    background-color: #2759a5; /* Button color */
    color: white;
    border: none;
    padding: 7px 10px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 2px;
}

.fp-add-to-cart:hover {
    background-color: #214e91;
}

.fp-add-to-cart:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

#fp-fast-payment-cart {
    margin-top: 20px;
    background-color: #2759a5;
    color: white;
    padding: 15px;
    text-align: left;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    z-index: 10000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    width: 90%; /* Adjust width to prevent horizontal overflow on small screens */
    max-width: 400px; /* Ensure it does not exceed a maximum width */
    box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

#fp-fast-payment-cart .fp-cart-info {
    display: flex;
    flex-direction: column;
    font-size: 16px;
}

#fp-fast-payment-cart .fp-cart-link {
    color: white;
    text-decoration: none;
    padding: 10px;
    border-radius: 5px;
    font-size: 16px;
}

#fp-fast-payment-cart a {
    color: white;
    text-decoration: none;
    display: block;
    width: 100%;
    height: 100%;
}

body #fp-fast-payment-cart span {
    color: white !important;
}

.fp-shipping-info {
    font-size: 10px;
    color: #ccc;
}

#fp-cart-button {
    color: white;
    text-decoration: none;
    margin-left: 10px;
}

#fp-cart-button:hover {
    background-color: #214e91;
}

/* Style for variation radio buttons */
.fp-variation-radio {
    margin-right: 2px;
}

.fp-label-sizing {
    font-size: 13px !important;
}

.fp-variation-radio:disabled + label {
    text-decoration: line-through;
    color: #ccc;
}

/* Style for add-to-cart popup message */
.fp-add-to-cart-popup {
    position: fixed;
    top: 40px;
    right: 20px;
    background-color: #2759a5; /* Popup color */
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 10000;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    font-size: 16px;
}

.fp-quantity {
    width: 60px !important;
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    font-size: 15px;
    padding: 8px 8px !important;
    margin-bottom: 5px !important;
    margin-top: 5px !important;
}

/* Prevent horizontal scrolling for plugin elements */
.fp-container {
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
}

/* Set consistent column widths for all tables */
.fp-product-table colgroup col {
    width: auto;
}

.fp-product-table colgroup col:nth-child(1) {
    width: 20%;
}

.fp-product-table colgroup col:nth-child(2) {
    width: 20%;
}

.fp-product-table colgroup col:nth-child(3) {
    width: 20%;
}

.fp-product-table colgroup col:nth-child(4) {
    width: 20%;
}

.fp-product-table colgroup col:nth-child(5) {
    width: 20%;
    text-align: right;
}

.fp-sticky-cart {
    z-index: 10000;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .fp-product-table {
        width: 100% !important; /* Set table width to 100% on small screens */
        display: block; /* Ensure table behaves as a block element */
    }

    .fp-product-table thead {
        display: flex; /* Hide table header */
        justify-content: center;
    }

    .fp-product-table tbody,
    .fp-product-table tr {
        display: block; /* Set tbody and tr to block */
        margin-bottom: 15px; /* Add space between rows */
    }

    .fp-product-table tr:first-child td {
        border-top-style: none !important;
    }

    .fp-product-table td {
        display: block; /* Set td to block */
        width: calc(100% - 20px); /* Full width for td with padding */
        border: none;
        padding: 10px 10px; /* Padding for td */
        text-align: left; /* Align text to left */
        margin-left: 10px; /* Indent the cells a bit */
    }

    .fp-product-table tbody tr::after {
        content: "";
        display: block;
        width: 100%;
        height: 1px;
        background-color: #ddd;
        margin-top: 10px; /* Margin above the line */
    }

    .fp-item-name {
        font-weight: bold;
        font-size: 16px;
        color: #2759a5; /* Product name color */
        margin-bottom: 10px; /* Margin below the product name */
    }

    .fp-add-to-cart {
        width: 100%; /* Full width for add to cart button */
        margin-top: 10px; /* Margin at the top */
    }

    #fp-fast-payment-cart {
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        border-radius: 0;
        max-width: 100%; /* Ensure it does not exceed screen width */
    }
}

.spinner {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -35px 0 0 -20px;
    border: 4px solid rgba(255, 255, 255, 0.1) !important;
    border-top: 4px solid #fff !important;
    border-radius: 50%;
    animation: spin 1s linear infinite, pulse 1.5s ease-in-out infinite;
    z-index: 1000;
}

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

.fp-sticky-cart.loading {
    opacity: 0.8;
}

/*!* LOCAL TESTING *!*/
/*.post-thumbnail, .entry-content .wp-audio-shortcode, .entry-content > :not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.wp-block-separator), [class*="inner-container"] > :not(.entry-content):not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.wp-block-separator), .default-max-width {*/
/*    max-width: 100% !important;*/
/*}*/

/*input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], input[type="number"], input[type="tel"], input[type="date"], input[type="month"], input[type="week"], input[type="time"], input[type="datetime"], input[type="datetime-local"], input[type="color"], .site textarea {*/
/*    border: none !important;*/
/*}*/

/*.site .button:hover, .site .button, button, button:active, input[type="submit"]:hover, input[type="submit"]:active, input[type="reset"]:hover, input[type="reset"]:active, .wp-block-search .wp-block-search__button:hover, .wp-block-search .wp-block-search__button:active, .wp-block-button .wp-block-button__link:hover, .wp-block-button .wp-block-button__link:active, .wp-block-file a.wp-block-file__button:hover, .wp-block-file a.wp-block-file__button:active {*/
/*    background-color: #2759a5 !important;*/
/*    color: white !important;*/
/*}*/
