/* Modal Styles */
.custom-modal {   
    border-radius: 15px;
}

.custom-modal-header {
    width: 100%;
    background: #7C7158;
    border-radius: 10px 10px 0 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    position: relative;
}

.custom-modal-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 38px;
    line-height: 1.2em;
    color: #FFFFFF;
    text-align: left;
}

.sub-title {
    font-family: 'Arial', sans-serif;
    font-weight: 700;
    font-size: 22px;
    line-height: 1.2em;
    color: #FFFFFF;
    text-align: left;
    margin-top: 10px;
}

.custom-modal-header .close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #FFFFFF;
    opacity: 1;
}

/* Form Styles */
.form-group.row.align-items-center,
.form-group.row.align-items-center-2 {
    margin-bottom: 1rem;
}

.col-form-label,
.col-form-label-2 {
    text-align: left;
}

.custom-input,
.custom-input-2 {
    border: 1px solid rgba(124, 113, 88, 0.8) !important;
    border-radius: 5px !important;
}

.custom-row-wrapper {
    border: 1px solid rgba(124, 113, 88, 0.2);
    padding: 0;
    border-radius: 10px;
}

.custom-header {
    background-color: rgba(124, 113, 88, 0.2);
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ccc;
}

.custom-header .left-text {
    color: #525252;
    display: flex;
    font-size: 20px;
    font-weight: bolder;
    align-items: center;
}

.custom-header .right-text {
    color: #525252;
    text-align: right;
}

.how-to-header {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

.how-to-header .left-text {
    justify-content: flex-start;
}

.how-to-note {
    width: 100%;
    box-sizing: border-box;
    text-align: left;
}

.how-to-note p {
    margin-bottom: 0.75rem;
}

.mt-3 {
    margin-top: 1rem !important;
}

svg.bi.bi-arrow-right-circle-fill {
    color: #7C7158 !important;
    height: 30px;
    width: 30px;
    margin-right: 10px;
}

/* Column Styles */
.left-column, .middle-column, .right-column {
    /* Add any custom styles here */
}

/* Color Options */
.color-options {
    display: flex;
    align-items: center;
}

.form-check-inline {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 20px;
}

.form-check-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 16px;
    color: #6c757d;
    cursor: pointer;
    margin: 0;
}

.color-circle {
    width: 40px;
    border-radius: 50%;
    margin-bottom: 5px;
    border: 2px solid transparent;
}

.color-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.color-container.active img {
    border: 6px solid #4d483e;
    border-radius: 50%;
}

.color-container.active div {
    font-weight: bold;
}


.form-check-input {
    display: none;
}

/* Buttons */
.btn-clear,
.btn-clear-pc,
.btn-run-calculator,
.btn-run-calculator-pc,
.btn-populate-cart,
.btn-populate-cart-pc {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 12px 25px !important;
    gap: 10px !important;
    border-radius: 4px !important;
    font-size: 20px !important;
    color: white !important;
    position: relative !important;
    box-shadow: 0px 26px 40px rgba(0, 0, 0, 0.06) !important;
    border: none !important;
    transition: background 0.3s, box-shadow 0.3s !important;
}

.btn-run-calculator {
  margin-left: 20px
}

.btn-clear, .btn-clear-pc {
    background: #7C7158 !important;
}

.btn-clear:hover, .btn-clear-pc:hover {
    background: #6B614C !important;
    box-shadow: 0px 26px 40px rgba(0, 0, 0, 0.1) !important;
}

.btn-run-calculator, .btn-run-calculator-pc {
    background: #15202E !important;
}

.btn-run-calculator:hover, .btn-run-calculator-pc:hover {
    background: #121923 !important;
    box-shadow: 0px 26px 40px rgba(0, 0, 0, 0.1) !important;
}

.btn-populate-cart, .btn-populate-cart-pc {
    background: #7C7158 !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    font-size: 20px !important;
    line-height: 25px !important;
    text-align: center !important;
}

.btn-populate-cart:hover, .btn-populate-cart-pc:hover {
    background: #6B614C !important;
    box-shadow: 0px 26px 40px rgba(0, 0, 0, 0.1) !important;
}

/* Clear Cart / View Cart — same size as the "Add to Cart" button (gray). */
.btn-aa-clear-cart,
.btn-aa-view-cart {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px 25px !important;
    border-radius: 4px !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    font-size: 20px !important;
    line-height: 25px !important;
    color: #fff !important;
    background: #5f6b7a !important;
    border: none !important;
    text-decoration: none !important;
    box-shadow: 0px 26px 40px rgba(0, 0, 0, 0.06) !important;
}
.btn-aa-clear-cart:hover,
.btn-aa-view-cart:hover {
    background: #4f5a67 !important;
    box-shadow: 0px 26px 40px rgba(0, 0, 0, 0.1) !important;
}

/* Calculate Order Button */
.calculate-order-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #7C7158 !important;
    color: #fff !important;
    border-radius: 7px !important;
    padding: 10px 20px !important;
    border: none !important;
    transition: background-color 0.3s ease, box-shadow 0.3s ease !important;
}

.calculate-order-btn .icon-arrow-right {
    margin-left: 10px;
    background: #1B1D21 !important;
    border-radius: 50% !important;
    padding: 5px !important;
    width: 24px;
    height: 24px;
    color: white !important;
    transition: background-color 0.3s ease, transform 0.3s ease !important;
}

.calculate-order-btn:hover {
    background-color: #665f4d !important;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2) !important;
}

.calculate-order-btn:hover .icon-arrow-right {
    background-color: #2c2f33 !important;
    transform: translateX(3px) !important;
}

/* Hidden Row */
.hidden-row {
    display: none;
    /* Additional styles for the hidden row */
}

/* Table Styles */
.table-responsive {
    margin-top: 20px;
}

.table th, .table td {
    vertical-align: middle;
}

.hidden-row .table {
    width: 100%;
    table-layout: fixed;
}

.hidden-row .table th:nth-child(1),
.hidden-row .table td:nth-child(1) {
    width: 68%;
}

.hidden-row .table th:nth-child(2),
.hidden-row .table td:nth-child(2) {
    width: 19%;
}

.hidden-row .table th:nth-child(3),
.hidden-row .table td:nth-child(3) {
    width: 13%;
}

.hidden-row .table td:first-child {
    word-break: break-word;
}

.hidden-row .table .form-control {
    width: 100%;
    max-width: 80px;
}

.product-name {
    font-weight: bold;
    text-transform: uppercase;
}

.product-description {
    font-size: 14px;
    color: #666;
}

.form-control {
    width: 80px;
    margin: 0 auto;
}

/* Additional Styles */
span.order-subtitle {
    font-size: 15px;
    font-weight: normal;
    margin-left: 30px;
    width: 100%;
    clear: both;
}

.row-btn {
    width: 100% !important;
    margin: 30px auto !important;
    display: flex !important;
    justify-content: space-between !important;
}

.row-btn .form-group {
    display: flex !important;
    justify-content: space-between !important;
    width: 70%;
}


.row-btn {
    width: 100% !important;
    margin: 30px auto !important;
    display: flex !important;
    justify-content: space-between !important;
}


.row-btn-pc .form-group {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;

}


    .color-options {
            display: flex;
            align-items: center;
        }

        .form-check-inline {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-right: 20px;
        }

        .form-check-label {
            display: flex;
            flex-direction: column;
            align-items: center;
            font-size: 16px;
            color: #6c757d;
            cursor: pointer;
            margin: 0;
        }

        .color-circle {
            width: 40px;
            border-radius: 50%;
            margin-bottom: 5px;
            border: 2px solid transparent;
        }

        .color-container {
            display: flex;
            flex-direction: column;
            align-items: center;
        }

    

        .form-check-input {
            display: none;
        }


@media (max-width: 991.98px) {
    /* Your styles here */
    .btn-clear, .btn-clear-pc, .btn-run-calculator, .btn-run-calculator-pc, .btn-populate-cart, .btn-populate-cart-pc{
            font-size: 18px !important;
            padding: 5px 15px !important;
            margin-bottom: 10px;
    }

    .custom-modal-title{
            font-size: 22px;
    }

    .sub-title {
        font-size: 16px;
    }

    .custom-header{
        flex-direction: column;
    }

    .custom-header .left-text{
        font-size: 17px;
        justify-content: center;
        padding-bottom: 10px;
    }

 /*   .d-flex{
        flex-direction: column;
          align-items: center;
    }*/

    .btn-run-calculator {
      margin-left: 0px;
    }


    .button-container {
        display: block;
    }
    .top-buttons {
        display: flex;
        justify-content: space-between;
        gap: 0; /* no gap needed if they’re opposite sides */
    }
    .bottom-button {
        margin-top: 10px;
    }
    .bottom-button .btn-populate-cart {
        width: 100%;
    }

    .button-container {
        padding-bottom: 60px; /* adjust to taste */
    }


}

/* Default: keep top buttons on the left and Populate Cart on right */
@media (min-width: 992px) {
    .button-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .bottom-button {
        margin-top: 0; /* remove extra space on desktop */
        width: auto;
    }
    .bottom-button .btn-populate-cart {
        width: auto;
    }
}



input[type="number"]{
    padding: 5px;
    text-align: right;
 }

/* WooCommerce cart text color */
body.woocommerce-cart .woocommerce,
body.woocommerce-cart .woocommerce-cart-form,
body.woocommerce-cart .cart_totals,
body.woocommerce-cart .woocommerce table.shop_table,
body.woocommerce-cart .woocommerce table.shop_table th,
body.woocommerce-cart .woocommerce table.shop_table td,
body.woocommerce-cart .woocommerce .cart_totals h2,
body.woocommerce-cart .woocommerce .product-name,
body.woocommerce-cart .woocommerce .product-price,
body.woocommerce-cart .woocommerce .product-quantity,
body.woocommerce-cart .woocommerce .product-subtotal,
body.woocommerce-cart .woocommerce .coupon label {
    color: #2f2f2f !important;
}

body.woocommerce-cart .woocommerce a:not(.button):not(.checkout-button):not(.remove) {
    color: #2f2f2f !important;
}

body.woocommerce-cart .entry-title,
body.woocommerce-cart .page-title,
body.woocommerce-cart .woocommerce-products-header__title,
body.woocommerce-cart .wc-block-cart h1,
body.woocommerce-cart .wc-block-cart h2,
body.woocommerce-cart .wc-block-cart h3,
body.woocommerce-cart .wc-block-cart p,
body.woocommerce-cart .wc-block-cart label,
body.woocommerce-cart .wc-block-cart span,
body.woocommerce-cart .wc-block-cart li,
body.woocommerce-cart .wc-block-cart .wc-block-components-totals-item__label,
body.woocommerce-cart .wc-block-cart .wc-block-components-totals-item__value {
    color: #2f2f2f !important;
}

body.woocommerce-cart .wc-block-components-product-name,
body.woocommerce-page .wc-block-components-product-name,
body.woocommerce-cart .wc-block-cart-item__wrap,
body.woocommerce-page .wc-block-cart-item__wrap,
body.woocommerce-cart .wc-block-components-product-details,
body.woocommerce-page .wc-block-components-product-details,
body.woocommerce-cart .wc-block-components-product-metadata,
body.woocommerce-page .wc-block-components-product-metadata,
body.woocommerce-cart .wc-block-components-product-price,
body.woocommerce-page .wc-block-components-product-price,
body.woocommerce-cart .wc-block-components-formatted-money-amount,
body.woocommerce-page .wc-block-components-formatted-money-amount,
body.woocommerce-cart .wc-block-components-totals-item__label,
body.woocommerce-page .wc-block-components-totals-item__label,
body.woocommerce-cart .wc-block-components-totals-item__value,
body.woocommerce-page .wc-block-components-totals-item__value,
body.woocommerce-cart .wp-block-woocommerce-cart-order-summary-block,
body.woocommerce-page .wp-block-woocommerce-cart-order-summary-block,
body.woocommerce-cart .wp-block-woocommerce-cart-line-items-block {
    color: #2f2f2f !important;
}

body.woocommerce-cart .wc-block-components-product-name a,
body.woocommerce-page .wc-block-components-product-name a,
body.woocommerce-cart .wc-block-cart-item__wrap a:not(.wc-block-components-product-name__button),
body.woocommerce-page .wc-block-cart-item__wrap a:not(.wc-block-components-product-name__button) {
    color: #2f2f2f !important;
    font-weight: 700 !important;
}

body.woocommerce-cart .wc-block-components-product-name,
body.woocommerce-page .wc-block-components-product-name {
    font-weight: 700 !important;
}

body.woocommerce-cart .wc-block-cart-item__wrap,
body.woocommerce-page .wc-block-cart-item__wrap {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

body.woocommerce-cart .wc-block-components-product-name,
body.woocommerce-page .wc-block-components-product-name {
    order: 1;
}

body.woocommerce-cart .wc-block-components-product-metadata,
body.woocommerce-page .wc-block-components-product-metadata {
    order: 2;
}

body.woocommerce-cart .wc-block-cart-item__prices,
body.woocommerce-page .wc-block-cart-item__prices {
    order: 3;
}

body.woocommerce-cart .wc-block-cart-item__quantity,
body.woocommerce-page .wc-block-cart-item__quantity {
    order: 4;
}
