html {
    font-size: 16px; /* Now 1rem equals 16px */
}
body {
    font-size: 16px; /* Now 1rem equals 16px */
}
.main-nav-placeholder {
    display: none;
}
.checkoutPage {
    text-align: left;
}
.checkoutPage #processed_by {
    text-align: center;
    font-size: 12px;
    width: 50%;
    margin: 25px auto;
}
.checkoutPage .clover-logo {
    margin-left: 15px;
}
.checkoutPage .clover-logo img, .checkoutPage .clover-logo svg {
    height: 27px;
    width: auto;
    vertical-align: middle;
}
.checkoutPage .payment-form-container {
    display: flex;
    width: 90%;
    margin: 0 auto;
}

.checkoutPage .left-column, .right-column {
    display: flex;
    flex-direction: column;
}

.checkoutPage .left-column {
    flex: 3; /* twice as wide as the right column */
}

.checkoutPage .right-column {
    flex: 2;
    display: flex;
    flex-direction: column;
}

.checkoutPage .section {
    flex: 1; /* Each section in the left column will grow equally */
    display: flex;
    flex-direction: column;
    width: 98%;
    margin: 0 auto 10px auto;
}

.checkoutPage .section .body {
    flex: 1; /* Fill the remaining space in the section */
}

/* This will make the right column's body grow to match its container */
.checkoutPage .right-column .totals {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.checkoutPage .right-column .totals .body {
    flex-grow: 1; /* Grow to take up remaining space */
}

.checkoutPage .header {
    background-color: #1C6BB6;
    color: #FFFFFF;
    padding: 10px;
    font-size: 18px;
    border-top-left-radius: 10px; /* Adjust the radius as needed */
    border-top-right-radius: 10px; /* Adjust the radius as needed */
}

.checkoutPage .body {
    background-color: #ECEFF9;
    padding: 10px;
    color: #777777;
    border: solid 1px #bbbbbb;
    border-bottom-left-radius: 10px; /* Adjust the radius as needed */
    border-bottom-right-radius: 10px; /* Adjust the radius as needed */
}

.checkoutPage .section .body:last-of-type {
    padding-bottom: 30px;
}

/* Reset margins for last section */
.checkoutPage .section:last-child {
    margin-bottom: 0;
}

.checkoutPage .form-group {
    margin:2px;
    font-family: Roboto, Verdana, Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #555555;
    background: #ECEFF9;
    border: none;
}

.checkoutPage .left-column .billing-address .form-row {
    max-width: 600px;
}

.checkoutPage .form-group label {
    font-family: Roboto, Verdana, Arial, sans-serif;
    line-height: 1.5em;
    margin-bottom: 2px;
    display: block;
    font-size: 1.5rem;
}

.checkoutPage .form-group input {
    font-size: 1.5rem;
    margin: 0;
}

.checkoutPage .form-group input[type="text"],
.checkoutPage .form-group input[type="number"],
.checkoutPage .form-group input[type="email"],
.checkoutPage .form-group select {
    width: 200px;
    margin-bottom: 5px;
    border: 1px solid #C3C3C3;
    border-radius: 6px;
    /*padding: 0.3rem;*/
    min-height: 1.5rem;
}

.checkoutPage .form-group select {
    margin: 0;
    /*height: 25px;*/
	padding: 0.41rem 0.5rem;
    background-color: white;
    -webkit-appearance: caret; /* Remove default styling on iOS */
    -moz-appearance: caret; /* Remove default styling on Firefox */
    appearance: auto; /* Remove default arrow for select element */
}

.checkoutPage .form-group select.state, .form-group input.zip {
    width: 125px;
}

/* Row styling for city/state/zip */
.checkoutPage .form-row {
    display: flex;
    justify-content: space-between;
}

.checkoutPage .form-row .form-group {
    flex-grow: 1;
}

.checkoutPage .form-row .city,
.checkoutPage .form-row .state,
.checkoutPage .form-row .zip {
    margin-right: 10px;
}

/*RadioBox*/
/* Style for radio buttons */
.checkoutPage .form-group input[type="radio"] {
    margin-right: 8px;
    cursor: pointer;
}

/* Custom radio button style */
.checkoutPage .form-group .radio-label {
    display: block;
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 1.5rem;
    user-select: none;
}

.checkoutPage .form-group .radio-label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkoutPage .form-group .checkmark {
    position: absolute;
    top: 4px;
    left: 0;
    height: 16px;
    width: 16px;
    background-color: #fff;
    border-radius: 50%;
    border: 1px solid #ddd;
}

.checkoutPage .form-group .radio-label:hover input ~ .checkmark {
    background-color: #ccc;
}

.checkoutPage .form-group .radio-label input:checked ~ .checkmark {
    background-color: #2196F3;
}

.checkoutPage .form-group .checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkoutPage .form-group .radio-label input:checked ~ .checkmark:after {
    display: block;
}

.checkoutPage .form-group .radio-label .checkmark:after {
    top: 3px;
    left: 3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}

/* Cart Items */

.cart-body {
    padding: 10px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    padding: 5px;
    border-top: 1px solid #999999;
    vertical-align: top;
}

.cart-item > div {
    display: flex;
    flex-direction: column;
}

.cart-item > div::after {
    content: '';
    flex-grow: 1;
}

.cart-summary-container {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
    padding: 20px 10px 10px;
    border-top: 1px solid #999999;
}

.product-details, .cart-actions, .total-price {
    display: flex;
    flex-direction: column;
    justify-content: center; /* This will vertically center the content in each column */
    flex: 1;
}

.product-details {
    flex-grow: 3;
}

.product-name {
    font-size: 18px;
    color: #333;
    font-weight: bold;
}

.product-options .option {
    display: block;
    font-size: 14px;
    color: #666;
}

.item-quantity {
    flex-grow: 1;
    font-size: 16px;
    color: #777;
    font-weight: 600;
    text-align: right;
    padding-right: 8px;
    white-space: nowrap;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 5px;
    vertical-align: middle;
}

.cart-summary-row > div {
    min-width: 0; /* Allow the flex items to shrink below their content size */
    flex: 1; /* Set flex grow and shrink */
    box-sizing: border-box; /* Include padding and border in the element's total width */
    padding: 0 5px; /* Add padding as needed, but make sure it's accounted for in the width */
    text-align: right;
}

.cart-summary-row > div:first-child {
    flex: 2;
    text-align: left;
}

.cart-summary-row .quantity-row {
    white-space: nowrap; /* Prevents wrapping and breaking */
    overflow: hidden;    /* Ensures content doesn't spill outside the container */
    text-overflow: ellipsis; /* Adds an ellipsis if the content is too long */
}

.quantity-input-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-right: 10px;
}

.quantity-label {
    margin: 0;
}

.quantity-input {
    width: 30px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 2px;
    margin: 0;
}

.update-quantity {
    color: #999;
    font-size: 16px;
    text-decoration: none;
    margin-left: 10px;
}

.update-quantity:hover {
    color: #333;
}

.update-quantity.green-check {
    color: #4CAF50;
    font-size: 1.2em;
}

.quantity-input {
     padding: 0 10px;
 }

.total-price {
    flex-grow: 1;
    font-size: 18px;
    color: #333;
    font-weight: bold;
    text-align: right;
}

.cart-actions {
    flex-grow: 1;
    padding: 0 10px;
    text-align: right;
    max-width: 30px;
}

.cart-actions a.remove-action {
    color: #999;
    font-size: 16px;
    text-decoration: none;
}

.cart-actions a.remove-action:hover {
    color: #333;
}


/* Cart Buttons */
.cart-btn-container {
    display: flex; /* Enable Flexbox */
    justify-content: flex-end; /* Align items to the end (right) of the container */
    align-items: center; /* Vertically align items in the middle */
}

.cart-btn {
    margin-left: 10px; /* Add some space between the buttons */
}

.cart-btn button.disabled-btn,
.cart-btn input[type=button].disabled-btn,
.cart-btn input[type=submit].disabled-btn {
    color: #666666;
    background-color: #F7F7F7;
    border: 1px solid #BBBBBB;
    box-shadow: -1px 1px 0 0 #999999;
    text-shadow: none;
    font-weight: 200;
}

.cart-btn-container.w-lt-480 {
    flex-direction: column-reverse; /* Stack buttons vertically */
    align-items: flex-end; /* Align items to the end (right) */
}

.cart-btn-container.w-lt-480 .cart-btn {
    margin-left: 0;
    margin-top: 10px; /* Add some space between the buttons */
}

.cart-btn-container.w-lt-480 .cart-btn.add-more-btn {
    align-items: center;
    text-align: center !important;
    margin: auto;
}

.cart-btn-container.w-lt-480 .cart-btn.add-more-btn p {
    margin: 5px 0;
}



/*Profiles & Cards CSS*/
.profile-container {
    font-family: Arial, sans-serif;
    margin: 0 0 10px;
}

.profile-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.profile-header {
    font-size: 18px;
    font-weight: bold;
}

.profile-sub-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #ddd;
    margin-top: 10px;
}

.profile-sub-header {
    font-size: 16px;
    font-weight: bold;
}

.profile-actions a {
    color: #007bff;
    text-decoration: none;
    cursor: pointer;
}

.profile-data-row {
    margin: 8px 0 0;
}

.profile-action-row {
    border-bottom: 1px solid #cccccc;
    padding: 2px 2px 8px;
}

.profile-data-row, .profile-action-row {
    display: flex;
    align-items: stretch;
}

.profile-row-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 5px;
}

.profile-data-row > .profile-row-column, .profile-action-row > .profile-row-column {
    display: flex;
    align-items: center;
    flex-wrap: wrap; /* Allows multiple items to wrap in the column */
    text-align: left;
}

.profile-data-row > .profile-row-column {
    flex: 0 1 auto; /* Shrink to fit content and do not grow */
}

.profile-action-row > .profile-row-column {
    flex: 0 1 auto; /* Take available space but also shrink to content */
    justify-content: flex-start; /* Align actions to the start */
}

.profile-action-row > .profile-row-column:first-child {
    width: 35px; /* Set your desired width here */
    flex: 0 0 auto; /* Do not grow or shrink */
}

.profile-actions a, .edit-profile-action, .delete-profile-action {
    margin-right: 10px;
}

.profile-row-column label {
    display: flex;
    align-items: center;
}

.cardInfoDisplay {
    margin-right: 10px;
}

.cc-brand-icon img {
    width: 30px;
    margin-right: 5px;
    vertical-align: middle;
}

.checkoutPage .form-group select.expiry-dd {
    width: 60px;
    -webkit-appearance: auto;
    -moz-appearance: auto;
    appearance: auto;
}

.checkoutPage input:invalid.required,
.checkoutPage select:invalid.required{
    border-color: #ff0000;
    background-color: #ffdddd;
}


/* Mobile Responsive CSS */
@media (max-width: 1200px) {
    .main-nav-placeholder {
        display: none;
    }

    /*.checkoutPage .payment-form-container {
        width: 70%;
        max-width: 70%;
    }*/

    .checkoutPage #processed_by {
        width: 70%;
        max-width: 70%;
    }
}

@media (max-width: 900px) {
    .checkoutPage .payment-form-container {
        width: 100%;
        max-width: 100%;
    }

    .checkoutPage #processed_by {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 879px) {
    #checkoutForm {
        margin-bottom: 100px;
    }
    .checkoutPage .payment-form-container {
        flex-direction: column;
        /*width: 90%; !* Slightly reduce the width to maintain some margin *!*/
        max-width: 90%;
    }

    .checkoutPage .left-column, .right-column {
        flex: 1; /* Both columns will take full width on small screens */
    }

    .checkoutPage .right-column {
        margin-top: 20px;
    }
}


/* Adjustments for smaller screens */
@media (max-width: 768px) {
    #top-nav-icon {
        position: fixed;
        top: 0;
        right: 0;
        box-sizing: content-box;
        padding: 8px;
        width: 24px;
        background: #15518a;
        cursor: pointer;
        z-index: 900;
        -webkit-backface-visibility: hidden;
    }
    .clearfix:after {
        content: "";
        clear: both;
        display: table;
    }
    #checkoutForm {
        margin-bottom: 100px;
    }
    .checkoutPage .payment-form-container {
        flex-direction: column;
        width: 90%; /* Slightly reduce the width to maintain some margin */
        max-width: 90%;
    }

    .checkoutPage #processed_by {
        width: 90%;
        max-width: 90%;
    }

    .checkoutPage .left-column, .right-column {
        flex: 1; /* Both columns will take full width on small screens */
    }

    .checkoutPage .right-column {
        margin-top: 20px;
    }

    .checkoutPage .section {
        width: 100%; /* Ensure sections take the full width */
        margin-bottom: 20px; /* Increase margin bottom for better spacing */
    }

    .checkoutPage .section:last-child {
        margin-bottom: 20px;
    }

    .checkoutPage .form-group input[type="text"],
    .checkoutPage .form-group input[type="number"],
    .checkoutPage .form-group input[type="email"],
    .checkoutPage .form-group select {
        max-width: 96%; /* Make input fields take full width */
        width: 96%; /* Make input fields take full width */
    }

    .checkoutPage .form-group select.state, .form-group input.zip {
        width: auto; /* Allow the state and zip fields to take necessary width */
    }

    .checkoutPage .form-row {
        flex-wrap: wrap; /* Allow form rows to wrap on small screens */
    }

    .checkoutPage .form-row .form-group {
        flex: 1 1 100%; /* Allow form groups to take full width on small screens */
        margin-right: 0;
        max-width: 98%;
    }

    /* Style adjustments for labels and other text elements if needed */
    .checkoutPage .form-group label {
        font-size: 1.5rem; /* Adjust font size for small screens if needed */
    }

    .checkoutPage .header {
        font-size: 1.5rem; /* Adjust header font size for better readability */
    }

    /* Adjustments for the radio button and labels */
    .checkoutPage .form-group .radio-label {
        font-size: 0.9rem; /* Adjust label font size */
    }

    /* You may also adjust padding and margins for smaller elements */
    .checkoutPage .header, .body {
        padding: 8px; /* Adjust padding for headers and bodies */
    }

    .checkoutPage form img {
        max-width: 300px;
        height: auto;
    }

    .checkoutPage form iframe {
        width: 100%;
        border: none;
    }

    .checkoutPage .body {
        overflow: hidden;
    }
}

/* Further adjustments for even smaller screens */
@media (max-width: 480px) {
    #checkoutForm {
        margin-bottom: 10px;
    }
    .checkoutPage .payment-form-container {
        width: 95%; /* Increase width to maximize space */
    }

    .checkoutPage #processed_by {
        width: 95%;
        max-width: 95%;
    }

    /* Adjust padding and margins as necessary */
    .checkoutPage .header, .body {
        padding: 6px; /* Further reduce padding */
    }

    .checkoutPage .form-group label {
        font-size: 1.5rem; /* Further reduce label font size if necessary */
    }

    .cardInfoDisplay {

    }

    .cardInfoDisplay.nicknameDisplay {
        display: none;
    }
}