/*
 * Revised package_prices2.css for Bootstrap 5
*/

/* --- Responsive Pricing Table (Logic Preserved) --- */
div#pricing {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}
div#pricing article {
    width: 100%;
    max-width: 1000px;
    margin: auto;
    position: relative;
}
div#pricing ul {
    display: flex;
    top: 0px;
    z-index: 10;
    padding-bottom: 14px;
}
div#pricing li {
    list-style: none;
    flex: 1;
}
div#pricing button {
    width: 100%;
    border: 1px solid #DDD;
    border-right: 0;
    border-top: 0;
    padding: 10px;
    background: #FFF;
    font-size: 14px;
    font-weight: bold;
    height: 60px;
    color: #999;
}
div#pricing li.active button {
    background: #F5F5F5;
    color: #000;
}
div#pricing table {
    table-layout: fixed;
    width: 100%;
}
div#pricing th {
    display: none;
}
div#pricing td, div#pricing th {
    border: 1px solid #DDD;
    padding: 10px;
    vertical-align: middle;
    width: 100% !important; /* ADD THIS LINE */
}
div#pricing td + td, div#pricing th + th {
    text-align: center;
    display: none;
}
div#pricing td.default {
    display: table-cell;
}

/*
 * Dark Mode Fixes for Pricing Table
*/
[data-bs-theme="dark"] #pricing th,
[data-bs-theme="dark"] #pricing td[style*="background:#F5F5F5"] {
  background-color: #343a40 !important; /* A dark gray for headers */
  color: #f8f9fa !important; /* A bright white for text */
}

/* Fix for the column toggles on mobile */
[data-bs-theme="dark"] #pricing li button {
    background-color: #212529;
    color: #adb5bd;
    border-color: #495057;
}

[data-bs-theme="dark"] #pricing li.active button {
    background-color: #343a40;
    color: #f8f9fa;
}

/* --- Media Query for Desktop Table --- */
@media (min-width: 640px) {
    div#pricing ul {
        display: none;
    }
    div#pricing td, div#pricing th {
        display: table-cell !important;
    }
    div#pricing td:first-child, div#pricing th:first-child {
        width: 330px; /* Keep the first column wider */
    }
    div#pricing td + td, div#pricing th + th {
        width: auto;
    }
}

/* --- General and Custom Styles (Kept) --- */
.bg-purple { border-top: 3px solid #A32362; }
.bg-blue { border-top: 3px solid #0097CF; font-size: 20px; }
.bg-blue:hover { cursor: pointer; }
.price_feats { font-weight: bold; font-size: 13px; }
.tick { font-size: 18px; color: #198754; } /* Bootstrap 5 success green */
.cross_out { font-size: 18px; color: #dc3545; } /* Bootstrap 5 danger red */


/* --- Calculator Styles (MODERNIZED) --- */
.calculator_container {
    background-color: #f8f9fa;
    margin-top: 40px;
    padding: 2rem;
    border-radius: 0.5rem;
    border: 1px solid #DDD;
}
[data-bs-theme="dark"] .calculator_container {
    background-color: #343a40; /* A dark gray for the container */
}