/* Build Bundle Portable Styles */
/* This file contains all the necessary styles for the [build_bundle] shortcode */

/* ========================================
   CUSTOM GRID SYSTEM (Bootstrap Replacement)
   ======================================== */

/* Custom Grid Container */
#build_bundle .row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
    box-sizing: border-box;
}

/* Custom Grid Columns */
#build_bundle .col-md-1,
#build_bundle .col-md-2,
#build_bundle .col-md-3,
#build_bundle .col-md-4,
#build_bundle .col-md-5,
#build_bundle .col-md-6,
#build_bundle .col-md-7,
#build_bundle .col-md-8,
#build_bundle .col-md-9,
#build_bundle .col-md-10,
#build_bundle .col-md-11,
#build_bundle .col-md-12 {
    position: relative;
    min-height: 1px;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}

/* Column Widths */
#build_bundle .col-md-1 { width: 8.33333333%; }
#build_bundle .col-md-2 { width: 16.66666667%; }
#build_bundle .col-md-3 { width: 25%; }
#build_bundle .col-md-4 { width: 33.33333333%; }
#build_bundle .col-md-5 { width: 41.66666667%; }
#build_bundle .col-md-6 { width: 50%; }
#build_bundle .col-md-7 { width: 58.33333333%; }
#build_bundle .col-md-8 { width: 66.66666667%; }
#build_bundle .col-md-9 { width: 75%; }
#build_bundle .col-md-10 { width: 83.33333333%; }
#build_bundle .col-md-11 { width: 91.66666667%; }
#build_bundle .col-md-12 { width: 100%; }

/* Column Offsets */
#build_bundle .col-md-offset-2 { margin-left: 16.66666667%; }

/* Utility Classes */
#build_bundle .text-center { text-align: center; }
#build_bundle .text-right { text-align: right; }
#build_bundle .text-left { text-align: left; }

/* Table Styles (Bootstrap Replacement) */
#build_bundle .table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    box-sizing: border-box;
}

#build_bundle .table th,
#build_bundle .table td {
    padding: 0.75rem;
    border-top: 1px solid #dee2e6;
    box-sizing: border-box;
}

#build_bundle .table-bordered {
    border: 1px solid #dee2e6;
}

#build_bundle .table-bordered th,
#build_bundle .table-bordered td {
    border: 1px solid #dee2e6;
}

#build_bundle .table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Responsive Grid System */
@media (max-width: 991px) {
    #build_bundle .col-md-1,
    #build_bundle .col-md-2,
    #build_bundle .col-md-3,
    #build_bundle .col-md-4,
    #build_bundle .col-md-5,
    #build_bundle .col-md-6,
    #build_bundle .col-md-7,
    #build_bundle .col-md-8,
    #build_bundle .col-md-9,
    #build_bundle .col-md-10,
    #build_bundle .col-md-11,
    #build_bundle .col-md-12 {
        width: 100% !important;
        margin-left: 0;
        margin-right: 0;
    }
    
    #build_bundle .col-md-offset-2 {
        margin-left: 0;
    }
    
    #build_bundle .row {
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 767px) {
    #build_bundle .row {
        flex-direction: column;
    }
    
    #build_bundle .col-md-1,
    #build_bundle .col-md-2,
    #build_bundle .col-md-3,
    #build_bundle .col-md-4,
    #build_bundle .col-md-5,
    #build_bundle .col-md-6,
    #build_bundle .col-md-7,
    #build_bundle .col-md-8,
    #build_bundle .col-md-9,
    #build_bundle .col-md-10,
    #build_bundle .col-md-11,
    #build_bundle .col-md-12 {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* ========================================
   EXISTING BUNDLE BUILDER STYLES
   ======================================== */

/* Reset and base styles to ensure compatibility with any theme */
#build_bundle * {
    box-sizing: border-box;
}

#build_bundle {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow: hidden;
}

#build_bundle h3 {
    /*text-transform: uppercase;*/
    line-height: 1.2em;
    margin: 0 0 1em 0;
    font-weight: 100;
}

#build_bundle .sub_title {
    font-size: 1.6rem !important;
    line-height: 1.2em;
    font-weight: 100 !important;
}

#build_bundle .build-header {
    margin-bottom: 2em;
    margin-right: 180px;
    text-align: center;
}

#build_bundle .build-nav {
    margin-top: 2em;
}

#build_bundle button:focus {
    outline: none;
}

#build_bundle button:disabled {
    opacity: .25;
}

#build_bundle section {
    width: 0;
    height: 0;
    position: relative;
    left: 200px;
    transition: none;
    opacity: 0;
    overflow: hidden;
}

#build_bundle section.active {
    width: 100%;
    height: auto;
    left: 0;
    opacity: 1;
    transition: left .5s ease, opacity .5s ease;
    z-index: 1;
    overflow: visible;
}

#build_bundle .more_toggle {
    display: block;
    margin: 1em 0;
    color: #0065BD;
    text-decoration: none;
    cursor: pointer;
}

#build_bundle .more_toggle:hover {
    text-decoration: underline;
}

#build_bundle .more_info {
    display: none;
    text-align: left;
    background: #f8f9fa;
    padding: 1em;
    border-radius: 4px;
    margin: 1em 0;
}

#build_bundle .checkbox .well,
#build_bundle .radio .well {
    display: block;
    padding-left: 40px;
    margin: 0.5em 0;
    cursor: pointer;
}

#build_bundle .checkbox .well label,
#build_bundle .radio .well label {
    font-weight: 300;
    cursor: pointer;
    margin: 0;
}

#build_bundle .sec-title {
    font-size: smaller;
    opacity: .5;
    text-align: center;
    margin-bottom: 1em;
    font-weight: 400;
}

#build_bundle .conditional {
    /* border: 1px dashed orange; */
}

#build_bundle #step-counter {
    display: inline-block;
    margin-top: 15px;
    opacity: 0;
    transition: opacity .25s ease;
    white-space: nowrap;
    font-size: 0.9em;
    color: #666;
}

/* Cart / Final Step */
#step_final table.feature-table td {
    padding: 8px 15px;
}

#step_final table th {
    background-color: #4a4e55;
    color: white;
    padding: 8px 15px;
    border: none;
}

#step_final table th h3 {
    color: white;
    font-size: 22px;
    margin: 0;
}

#step_final td:first-of-type i {
    min-width: 25px;
    text-align: center;
}

#step_final .price-col {
    text-align: center;
}

#step_final tr.sub > td:first-of-type {
    text-indent: 30px;
}

#step_final tr.sub > td:first-of-type:before {
    content: '– ';
}

#step_final .add,
#step_final .remove {
    font-size: 14px;
    font-weight: 300;
    display: block;
    cursor: pointer;
    white-space: nowrap;
    color: #0065BD;
    text-decoration: none;
}

#step_final .add:hover,
#step_final .remove:hover {
    text-decoration: underline;
}

#step_final .add {
    display: none;
}

#step_final .removed .cont_flex_col2, 
#step_final .removed .cont_flex_col3 {
    transition: all .25s ease;
    opacity: .5;
}

#step_final .removed label {
    text-decoration: line-through;
}

#step_final .removed td:first-of-type {
    opacity: .5;
}

#step_final .removed .price {
    text-decoration: line-through;
}

#step_final .removed .remove {
    display: none;
}

#step_final .removed .add {
    display: block;
}

#step_final tfoot td {
    vertical-align: middle;
    border: none;
    background-color: #0065BD !important;
    color: white;
}

#step_final .totals {
    box-shadow: 0px 0px 15px rgba(0,0,0,.13);
    background: rgb(248,248,248);
    background: linear-gradient(180deg, rgba(248,248,248,1) 0%, rgba(236,236,236,1) 100%);	
    font-weight: 200;
    color: #000;
    padding-bottom: 20px;
    border-radius: 8px;
}

#step_final .total {
    padding-top: 40px;
    font-size: 80px;
    line-height: 66px;
    font-weight: 300;
}

#step_final .total sup {
    font-size: 40px;
}

#step_final .total_sub {
    font-size: 12px;
    padding-left: 20px;
}

#step_final .savings {
    font-size: 14px;	
    padding: 16px 0;
}

#step_final .savings strong {
    font-weight: 900;
}

#step_final .savings_disclaimer {
    font-size: 9px;
    text-align: center;
    text-transform: uppercase;
}

#step_final .print {
    padding: 14px 0;
}

#step_final #print {
    font-size: 12px;
    text-align: center;
    color: #0986c7;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
}

#step_final #print:hover {
    text-decoration: underline;
}

#step_final .congrats {
    padding-top: 20px;
    font-size: 26px;
    line-height: 1.2em;
}

#step_final .congrats_sub {
    font-size: 13px;
}

#step_final .bundle_choices label {
    line-height: 1.2em;
    font-weight: 200;
}

#step_final .bundle_choices {
    text-align: left; 
    padding: 25px 60px 30px 60px;
    font-size: 12px;
}

.bundle_choices .col-md-1,
.bundle_choices .col-md-11 {
    padding-left: 0px;
    padding-right: 0px;
}

.bundle_choices .col-md-11 {
    padding-left: 5px;
}

.top5 { padding-top: 5px; }
.top15 { padding-top: 15px; }

#step_final .total_head {
    color: #66696e;
    padding: 7px 15px;
    text-align: center;
    font-weight: 900 !important;
    font-size: 14px;
    text-transform: uppercase;
}

#step_final .totals {
    text-align: center;
    position: relative;
}

#step_final .totals.stuck {
    position: fixed;
    top: 25px;
    max-width: 360px;
    width: 100%;
}

.cta-end {
    width: 100%;
    text-align: center;
}

#step_final .totals td {
    background-color: #f6f4f4;
}

#step_final .totals td:first-child {
    text-align: right;
}

/* Button styles */
#build_bundle .button {
    display: inline-block;
    background-color: #fc6719;
    border: 2px solid #fc6719;
    text-transform: uppercase;
    padding: 9px 24px;
    font-size: 16px;
    color: white !important;
    letter-spacing: 1px;
    border-radius: 3px;
    position: relative;
    transition: all 0.3s ease;
    font-weight: 400;
    cursor: pointer;
    text-decoration: none;
}

#build_bundle .button:hover {
    background-color: #e55a15;
    border-color: #e55a15;
    color: white !important;
    text-decoration: none;
}

#build_bundle .button.gray {
    background: #6c757d;
	border: 2px solid #6c757d;
}

#build_bundle .button.gray:hover {
    background-color: #4a4f55 !important;
    border-color: #65696e !important;
}

#build_bundle .button:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

/* Form elements */
#build_bundle input[type="radio"],
#build_bundle input[type="checkbox"] {
    margin-right: 8px;
}

#build_bundle .well {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 15px;
    margin: 10px 0;
}

#build_bundle .well:hover {
    background: #e9ecef;
}

/* Custom radio button styles */
#step_final .container {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 22px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#step_final .container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

#step_final .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 16px;
    width: 16px;
    background-color: #ccc;
    border-radius: 50%;
}

#step_final .container:hover input ~ .checkmark {
    background-color: #e78c59;
}

#step_final .container input:checked ~ .checkmark {
    background-color: #999;
}

#step_final .checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

#step_final .container input:checked ~ .checkmark:after {
    display: block;
}

#step_final .container .checkmark:after {
    top: 1px;
    left: 1px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #e78c59;
}
.form-wrap {
    background: none !important;
}
/* Switch input styles */
.switch_input input[type="checkbox"] {
    width: 0;
    height: 0;
    visibility: hidden;
}

.switch_input label {
    width: 44px;
    height: 20px;
    display: block;
    background-color: #666;
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    transition: 0.5s;
    top: -22px;
    left: 3px;
}

.switch_input label::after {
    content: "";
    width: 26px;
    height: 26px;
    background-color: #ebecf3;
    position: absolute;
    border-radius: 13px;
    top: -3px;
    left: 0px;
    transition: 0.5s;
    box-shadow: 0 0 5px rgba(0,0,0,.3);
}

.switch_input input:checked + label:after {
    left: 44px;
    transform: translateX(-100%);
}

.switch_input input:checked + label {
    background-color: #e57840;
}

.switch_input label:active:after {
    width: 44px;
}

/* Flexbox utilities */
.cont_flex {
    display: flex;
    justify-content: start;
    align-items: center;
}

.cont_flex_col1 {
    height: 50px;
    flex: 0 0 70px;
}

.cont_flex_col2 {
    flex: 10;
    font-size: 1.2rem !important;
    font-weight: 100 !important;
}

.cont_flex_col3 {
    flex: 2;
    font-size: 18px;
    font-weight: 600;
    padding-top: 2px;
}

.cont_flex_col2 label {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}

/* Print styles */
@media print {
    #step_final .print-header {
        display: block;
        text-align: center;
        padding-bottom: 40px;
    }

    #build_bundle table {
        zoom: 75% !important;
    }

    #print,
    #build_bundle .remove,
    #build_bundle .sec-title,
    #build_bundle .build-header,
    #build_bundle .build-nav,
    .responsive-spacer,
    .page-header,
    .no_print {
        display: none;
    }

    body .wrap.container {
        display: block;
    }

    .main {
        padding: 0;
    }

    #build_bundle tfoot tr td {
        /* page-break-inside: avoid; */
    }

    #build_bundle .table-bordered>tbody>tr>td {
        border-left: 0 !important;
        border-right: 0 !important;
    }

    .totals {
        position: relative !important;
        top: 0 !important;
    }
    
    .final-col-left label,
    .final-col-left .cont_flex_col3 {
        font-size: 14px !important;
    }
    
    .final-col-left {
        page-break-after: always;
    }
}

/* Responsive styles */
@media only screen and (max-width: 992px) {
    #step_final .totals.stuck {
        position: relative;
        top: 1em;
        max-width: 100%;
        width: 100%;
    }

    #build_bundle .build-header {
        margin-right: 0px;
    }

    .totals { 
        width: 380px;
        margin: 50px auto 0 auto;
    }
    
    .cont_flex {
        margin: 0 20px;
    }
}

@media only screen and (max-width: 768px) {
    #build_bundle .build-header {
        margin-right: 0;
    }
    
    .totals {
        width: 100%;
        margin: 20px auto 0 auto;
    }
    
    #step_final .total {
        font-size: 60px;
        line-height: 50px;
    }
    
    #step_final .total sup {
        font-size: 30px;
    }
    
    .bundle_choices {
        padding: 15px 20px 20px 20px;
    }
}

/* Ensure compatibility with various themes */
#build_bundle .row {
    margin-left: -15px;
    margin-right: -15px;
}

#build_bundle .col-md-1,
#build_bundle .col-md-2,
#build_bundle .col-md-3,
#build_bundle .col-md-4,
#build_bundle .col-md-5,
#build_bundle .col-md-6,
#build_bundle .col-md-7,
#build_bundle .col-md-8,
#build_bundle .col-md-9,
#build_bundle .col-md-10,
#build_bundle .col-md-11,
#build_bundle .col-md-12 {
    position: relative;
    min-height: 1px;
    padding-left: 15px;
    padding-right: 15px;
}

#build_bundle .col-md-1 { width: 8.33333333%; }
#build_bundle .col-md-2 { width: 16.66666667%; }
#build_bundle .col-md-3 { width: 25%; }
#build_bundle .col-md-4 { width: 33.33333333%; }
#build_bundle .col-md-5 { width: 41.66666667%; }
#build_bundle .col-md-6 { width: 50%; }
#build_bundle .col-md-7 { width: 58.33333333%; }
#build_bundle .col-md-8 { width: 66.66666667%; }
#build_bundle .col-md-9 { width: 75%; }
#build_bundle .col-md-10 { width: 83.33333333%; }
#build_bundle .col-md-11 { width: 91.66666667%; }
#build_bundle .col-md-12 { width: 100%; }

#build_bundle .col-md-offset-2 { margin-left: 16.66666667%; }

/* Table styles */
#build_bundle table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

#build_bundle table th,
#build_bundle table td {
    padding: 0.75rem;
    border-top: 1px solid #dee2e6;
}

#build_bundle .table-bordered {
    border: 1px solid #dee2e6;
}

#build_bundle .table-bordered th,
#build_bundle .table-bordered td {
    border: 1px solid #dee2e6;
}

/* Hide side-float elements that might conflict with themes */
.side-float {
    display: none;
}
