/* General styles for selectable tables */
#cp_size_selection tr, #cp_qty_discounts tr {
    cursor: pointer; /* Pointer cursor for clickable rows */
}
#cp_size_selection tr.active, #cp_qty_discounts tr.active {
    background: #f5a71c; /* Highlight selected rows */
}

/* General styles for the input group container */
.input-group {
    margin-bottom: 15px; /* Adds spacing below the input groups */
    display: flex; /* Aligns the input and its prepend/append in a single row */
    flex-wrap: nowrap; /* Prevents wrapping */
    align-items: center; /* Centers items vertically */
}

/* Input field styles */
.input-group input.form-control {
    width: 100%; /* Ensures input takes full available width */
    height: calc(2.25rem + 2px); /* Standard input height */
    border-left: none; /* Removes left border to merge with prepend */
    border-right: solid 1px; /* Removes right border to merge with append */
    box-shadow: none; /* Removes default shadow */
    border-color: #ced4da; /* Matches border with the prepend and append */
    padding: 0.375rem 0.75rem; /* Padding adjusted to match input-group-text */
    font-size: 1rem;
    line-height: 1.5;
    background: white;
}

/* Styles specifically for the 'cm' or unit display */
.input-group-prepend .input-group-text,
.input-group-append .input-group-text {
    background-color: #f8f9fa; /* Light gray background */
    border: 1px solid #ced4da; /* Matches input's border */
    font-weight: bold; /* Makes text bold */
    padding: 6px 12px; /* Adds padding for better readability */
    display: block;
    height: calc(2.25rem + 2px); /* Same height as the input */
    font-size: 1rem;
    line-height: 1.5;
}

/* Add focus styles for the input */
.input-group input:focus {
    border-color: rgb(215, 192, 144); /* Bootstrap's focus color */
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgb(215, 192, 144); /* Subtle blue shadow */
}



/* Additional general styles for the table */
.table-hover tbody tr:hover {
    background-color: #f8f9fa; /* Lighter background on row hover */
}

.panel {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0;
}

.panel-heading {
    background-color: #f5f5f5;
    padding: 10px 15px;
    border-bottom: 1px solid #ddd;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.panel-heading h1 {
    font-size: 24px;
    margin: 0;
    font-weight: bold;
}

.panel-body {
    padding: 15px;
}

.table-hover {
    margin-bottom: 20px;
}

#cp-sel-material {
    display: flex;
    flex-wrap: wrap;
}
#cp-sel-material li {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 5px 10px;
}

#cp-sel-material img, #cp-sel-material div.shape {
    width: 100px;
    height: 100px;
    border-radius: 150px;
    cursor: pointer;
    border: solid 1px grey;
}
#cp-sel-material li.active img, #cp-sel-material li.active div.shape {
    border: solid 5px #f5a71c;
}
#cp_sel_material_container .title{
    font-weight: 700;
    text-align: center;
}

/* General styles for the panel footer */
.panel-footer {
    background-color: #f5f5f5; /* Light gray background similar to panel header */
    padding: 10px 15px; /* Spacing inside the footer */
    border-top: 1px solid #ddd; /* Border to separate from the panel body */
    border-bottom-left-radius: 4px; /* Rounds the bottom left corner */
    border-bottom-right-radius: 4px; /* Rounds the bottom right corner */
    display: flex; /* Use flexbox for layout */
    justify-content: end;
    align-items: center;
}
.panel-footer >
/* Styles for the final price display */
.final-price {
    font-weight: bold; /* Make the price bold */
    font-size: 1.2rem; /* Slightly larger font for prominence */
    color: #333; /* Dark text color */
}

.panel-footer .price {
    font-size: 2rem;
    margin: 0 15px;
}


    /* Styles for the button in the footer */
.panel-footer .btn {
    padding: 20px 20px; /* Larger padding for the button */
    font-size: 1.2rem; /* Standard font size */
    background-color: #f5a71c; /* Bootstrap primary button color */
    border: none; /* Remove default borders */
    color: white; /* White text for contrast */
    border-radius: 4px; /* Rounded button edges */
    text-transform: uppercase; /* Capitalize button text */
    float: right;
}

/* Hover effect for the button */
.panel-footer .btn:hover {
    background-color: #be7b01; /* Darker shade of blue on hover */
    color: white;
}

#alert-price-discount{
    color: #1a1a1a;
    margin: 0 15px;
    text-align: right;
}



/* Responsive styling */
@media (max-width: 767.98px) {
    .input-group {
        display: block;
        width: 100%; /* Ensure full width for mobile screens */
    }

    .input-group-prepend,
    .input-group-append {
        width: auto; /* Auto width on mobile */
        margin-bottom: 5px; /* Adds some spacing on mobile */
    }
    .panel-footer {
        flex-direction: column; /* Stack items vertically on small screens */
        align-items: stretch; /* Stretch items to take full width */
    }

    .panel-footer .final-price {
        margin-bottom: 10px; /* Add space between the price and button */
        text-align: center; /* Center align the price */
    }

    .panel-footer .btn {
        width: 100%; /* Make the button full width on small screens */
    }
}