.bm-calc-wrapper {
    background: #fff;
    border-radius: 10px;
    max-width: 100%;
    margin: 0px auto;
    font-family: sans-serif;
    font-weight: 600;
    font-size: 12.8px;
}

.bm-calc-wrapper label {
    color: #000000;
    font-weight: bold;
    margin-top: 10px;
    margin-bottom:5px;
    display: flex;
}

.bm-calc-wrapper input, .bm-calc-wrapper select, input.number_input {
    width: 100%;
    padding: 7px 10px !important;
    border-radius: 4px;
    border: 1px solid #ddd;
    box-sizing: border-box;
    font-size: 12.8px;
    font-weight: 500;
    font-family: sans-serif;
}

.bm-calc-wrapper .bm-calc-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 12px;
}

.bm-calc-btn {
    background: #B51529;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 12px 28px;
    font-weight: bold;
    font-size: 1.1em;
    margin-top: 10px;
    cursor: pointer;
}

.bm-calc-btn:hover {
    background: #95121f;
}

.bm-calc-error {
    color: #B51529;
    margin-top: 12px;
    font-weight: bold;
    padding: 6px;
    border: 1px solid #B51529;
    background: #fff0f2;
    border-radius: 4px;
}

.bm-calc-result-box {
    margin-top: 18px;
    /* Removed fixed width to allow table to expand if needed, kept user preference logic below */
}

.bm-calc-result-box h3 {
    color:#cccdcd;
    /*color: #B51529;*/
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 700;
}

.bm-calc-stat-yellow-text {
    color:#eda45c;
}

.bm-calc-stat-right-border{
    border-right: 1px solid #cccdcd;
    padding-right: 15px;
}

.bm-calc-stat-header{
    color:#aca8a5;
    font-size: 12px;
    line-height: 10px;
}

.bm-calc-stat-wrapper b{
    font-size:16px;
}

.bm-calc-result-box p {
    color: #000000;
    margin: 3px 0 7px 0;
}

.bm-calc-validate-error {
    color: #B51529;
    font-size: 0.9em;
    margin-top: 10px;
    line-height: 1.3em;
    font-weight: 400;
    display: none;
}

.upper-input-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 1%;
}

.input-wrapper {
    width: 300px;
}

.bm-calc-stat-wrapper{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.bm-calc-stat-wrapper p{
    display:flex;
    flex-direction:column;
}


.bm-calc-checkbox-group input {
    width: 30px;
}

#bm_result {
    width: 100%;
}

#bm_result .bm-calc-result-box {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding: 1% 3%;
    margin-top: 20px;
    margin-bottom: 20px;
    /*border: 1px solid black;*/
    border: 3px solid #eda45c;
    border-radius: 15px;
}

.stat-icon svg {
    margin-bottom: -6px;
    margin-right: 10px
}

.input-icon svg {
    width: 20px;
}

.input-icon {
    width: 30px;
    display: flex;
    height: 20px;
    justify-content: center;
    align-items: center;
}

.input-wrapper .input {
    display: flex;
    align-items: center;
    background-color: #d0d6db;
    gap: 5px;
    padding-left: 5px;
    padding-right: 5px;
}

.total_results {
    width: 100%;
    padding-top: 20px;
}

.total_results span {
    /*padding-left: 5%;*/
    font-size: 24px;
    font-weight: 700;
}

span.bm-tooltip {
    display: inline-block;
    cursor: pointer;
    border-bottom: 1px dotted #333;
    position: relative;
    font-size: 8px;
    padding: 2px 4px;
    margin-left: 5px;
    background-color: gray;
    color: white;
    border-radius: 10px;
}

.bm-tooltip[data-tooltip]:hover:after,
.bm-tooltip[data-tooltip]:focus:after {
    width: 150px;
    line-height: 1.2em;
    content: attr(data-tooltip);
    position: absolute;
    left: 110%;
    top: 50%;
    transform: translateY(-80%);
    background: #111;
    color: #fff;
    padding: 6px 9px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: bold;
    z-index: 100;
    white-space: pre-wrap;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

.bm-tooltip:focus {
    outline: 2px solid #777;
}

.bm-calc-result-box-header {
    display: flex;
    /*flex-direction: column;*/
    flex-direction:row;
    row-gap: 20px;
    column-gap:20px;
    align-items: center;
}

.bm-calc-result-box-header-img {
    max-height: 30px;
    /*max-width: 200px;
    width: 100px;*/
    width:30px;
    object-fit: contain;
}

/* --- NEW STYLES FOR DETAILS SECTION --- */

/* Toggle Button */
.bm-toggle-btn {
    margin-top: 15px;
    /*background-color: #f9f9f9;*/
    background-color:#B51529;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    /*color: #B51529;*/
    color: #f9f9f9;
    transition: background 0.2s;
    user-select: none;
}

.bm-toggle-btn:hover {
    background-color: #b53545;
}

.bm-toggle-btn .bm-chevron {
    transition: transform 0.3s ease;
}

.bm-toggle-btn.open .bm-chevron {
    transform: rotate(180deg);
}

/* Details Panel (Accordion) */
.bm-details-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background-color: #fff;
}

.bm-details-inner {
    padding: 20px 0;
    overflow-x: auto; /* Handle table overflow on mobile */
}

/* Details Table */
.bm-details-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-top: 10px;
}

.bm-details-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.bm-details-table td:first-child {
    font-weight: bold;
    color: #555;
    width: 45%;
}

.bm-details-table td:last-child {
    color: #000;
}

.bm-details-table .section-header {
    background-color: #f4f4f4;
    color: #B51529;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 11px;
    padding: 8px 10px !important;
    letter-spacing: 0.5px;
}

.bm-discount-list {
    margin: 0;
    padding-left: 20px;
    font-size: 12px;
    color: #444;
}

.bm-discount-list li {
    margin-bottom: 4px;
}

.bm-highlight-red {
    color: #B51529;
    font-weight: bold;
}

.bm-highlight-green {
    color: #2e7d32;
    font-weight: bold;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
    .bm-details-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
    .bm-details-table td:first-child {
        padding-bottom: 2px;
        color: #B51529;
    }
    .bm-details-table tr {
        border-bottom: 5px solid #fff;
    }
}