/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */
 /* Modal Background */
#descriptionModal {
    display: none; /* Initially hidden */
    position: fixed; /* Fixed position to the screen */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    z-index: 1000;
    overflow: auto; /* Allow scrolling if needed */
}

/* Modal Content */
#descriptionModal .modal-content {
    background: #fff;
    padding: 20px;
    width: 50%; /* Adjust the width as needed */
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* Modal Button Styles */
#descriptionModal button {
    margin-top: 10px;
    padding: 10px;
    background-color: #0073aa;
    color: white;
    border: none;
    cursor: pointer;
}

#descriptionModal button:hover {
    background-color: #005f8d;
}
/* Make the table responsive */
#productTable {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed; /* Ensures that the table adjusts within its container */
    overflow: hidden;
    word-wrap: break-word;
}

#productTable th, #productTable td {
    padding: 10px;
    text-align: left;
    border: 1px solid #ddd;
}

#productTable th {
    background-color: #f4f4f4;
    font-weight: bold;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    /* Stack table rows */
    #productTable, #productTable thead, #productTable tbody, #productTable th, #productTable td, #productTable tr {
        display: block;
        width: 100%;
    }

    /* Hide table headers */
    #productTable thead {
        display: none;
    }

    #productTable tr {
        margin-bottom: 15px;
    }

    #productTable td {
        position: relative;
        padding-left: 50%;
    }

    /* Add labels before each cell in mobile view */
    #productTable td:before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        top: 10px;
        font-weight: bold;
        color: #0073aa;
    }

    /* Adjust buttons and inputs */
    #productTable input,
    #productTable select,
    #productTable button {
        width: 100%;
        box-sizing: border-box;
    }

    /* Styling for buttons */
    #productTable button {
        width: auto;
        padding: 8px;
        background-color: #ffffff;
        color: white;
        border-radius: 4px;
    }

    #productTable button:hover {
        background-color: #ffffff;
    }

}

/* Extra responsive for small screens */
@media screen and (max-width: 480px) {
    #productTable td {
        padding-left: 30%;
    }

    #descriptionModal .modal-content {
        width: 80%; /* Make modal smaller on small screens */
    }
}
.topbutton {
    width: auto;
    padding: 8px;
    margin: 1rem;
    background-color:green;
    color: white !important;
    border-radius: 4px;
    cursor: pointer;
}

.topbutton:hover {
    background-color: #319b11;
    transition: ease-in-out 0.5ms;

    
}
button i {
    margin-right: 12px; /* Adds space between the icon and the text */
    font-size: 1.5rem ;    /* Adjusts the icon size */
}

/* Optional: Change icon color */
button i.fas {
    color: #000000; /* Example color */
}

/* Style for the modal */
#orderModal {
    display: none; /* Initially hidden */
    position: fixed; /* Fixed position to the screen */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    z-index: 1000;
    overflow: auto; /* Allow scrolling if needed */
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 5px;
    width: 80%;
    max-width: 800px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Style for the Order Management Table */
#orderTable {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

#orderTable th, #orderTable td {
    padding: 12px;
    text-align: left;
    border: 1px solid #ddd;
}

#orderTable th {
    background-color: #f4f4f4;
}

#orderTable td {
    background-color: #fff;
}

#orderTable td button {
    padding: 6px 12px;
    background-color: #e2e0e0;
    color: rgb(0, 0, 0);
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

#orderTable td button:hover {
    background-color: #999999;
}

/* Responsive Table Styling */
@media screen and (max-width: 768px) {
    #orderTable thead {
        display: none;
    }

    #orderTable, #orderTable tbody, #orderTable tr, #orderTable td {
        display: block;
        width: 100%;
    }

    #orderTable td {
        text-align: right;
        padding-left: 50%;
        position: relative;
    }

    #orderTable td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        font-weight: bold;
    }

    /* Adjust button placement for smaller screens */
    #orderTable td button {
        width: 100%;
        padding: 10px 0;
    }
}
.admin-shortcode-icon {
    display: inline-block;
    padding: 5px 10px;
    background: #000;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    margin-left: 15px;
}

.admin-shortcode-icon i {
    margin-right: 5px;
}
/* Basic button styling */
td[data-label="Actions"] button {
    padding: 8px 12px;
    margin: 0 4px; /* Space between buttons */
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

/* Individual button colors */
td[data-label="Actions"] button:nth-child(1) { /* Save */
    background-color: #28a745; /* Green */
}

td[data-label="Actions"] button:nth-child(2) { /* Edit */
    background-color: #007bff; /* Blue */
}

td[data-label="Actions"] button:nth-child(3) { /* Delete */
    background-color: #dc3545; /* Red */
}

/* Hover effects */
td[data-label="Actions"] button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Optional: Focus state for accessibility */
td[data-label="Actions"] button:focus {
    outline: 2px solid rgba(0, 123, 255, 0.5);
    outline-offset: 2px;
}

/* Optional: Make icons inside buttons align well (if used later) */
td[data-label="Actions"] button i {
    margin-right: 6px;
}


/* Shop page custom buttons group */
.woocommerce ul.products li.product .custom-buttons {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.custom-buttons {
    display: flex;
  /*  justify-content: center; /* Center the buttons horizontally */
    align-items: center; /* Center the buttons vertically */
    gap: 10px; /* Space between buttons */
    margin-top: 10px;
}

.custom-buttons .button {
    display: inline-flex; /* Ensure button content is in a flex container */
    justify-content: center;
    align-items: center; /* Ensure text and icon are aligned vertically */
    padding: 10px 20px; /* Ensure consistent padding */
    border-radius: 5px;
    text-align: center;
}

.call-now-button {
    display: inline-flex; /* Make it inline-flex to align properly with other buttons */
    justify-content: center;
    align-items: center; /* Align text and icon vertically */
    padding: 10px 20px; /* Consistent padding */
    background-color: #4CAF50; /* Button background color */
    color: white;
    border-radius: 5px;
}

.call-now-button .icon {
    width: 20px; /* Set the size of the icon */
    height: 20px;
    background-image: url('icons8-phone-96.png');  /* Make sure the icon path is correct */
    background-size: cover; /* Ensure the icon fills the space */
    margin-right: 10px; /* Space between icon and text */
}

    

/* Hide Add to Cart button on shop/archive pages */
.woocommerce ul.products li.product .add_to_cart_button {
    display: none !important;
}

/* Hide Add to Cart button on single product pages */
.single-product .single_add_to_cart_button {
    display: none !important;
}
