

html, body {
    margin: 0;
    padding: 0;
 
}

.container-fluid {
    width: 100%;
    padding: 0;
}

.carousel .carousel-item {
    text-align: center;
    overflow: hidden;
}

.thumb-wrapper {
    padding: 10px 10px;
    position: relative;
    margin-bottom: 10px;
    cursor: pointer;
    border: 1px solid #dee2e6;
    transition: border-color 0.3s ease-in-out;
    text-align: center;
    background-color: #ffffff;
}

    .thumb-wrapper.selected {
        border-color: #7f1518 !important;
        box-shadow: 0 0 0 0.25rem rgba(127, 21, 24, 0.25) !important;
    }

    .thumb-wrapper:hover {
        border: 3px solid;
        border-color: #7f1518;
    }

    .thumb-wrapper img {
        max-width: 75%;
        height: auto;
        display: inline-block;
        margin: 0 auto;
        border: 2px solid transparent;
        transition: border-color 0.3s;
    }

    .thumb-wrapper input[type="radio"]:checked + span {
        font-weight: bold;
        color: #000;
    }

    .thumb-wrapper input[type="radio"]:checked ~ img {
        border: 2px solid blue;
    }

.carousel-control-prev,
.carousel-control-next {
    background-color: transparent;
    border: 2px solid #5e0b12;
    border-radius: 50%;
    color: #5e0b12;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 25px;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 -35px;
}

    .carousel-control-prev:hover,
    .carousel-control-next:hover {
        color: white;
        background-color: #5e0b12;
    }

    .carousel-control-prev i,
    .carousel-control-next i {
        font-size: 14px;
    }

.carousel-indicators {
    position: absolute;
    bottom: -20%;
    transform: translateX(0%);
}

    .carousel-indicators [data-bs-target] {
        background-color: #7f1518;
    }

    .carousel-indicators li.active {
        background-color: #5e0b12;
    }

.bg-black {
    background-color: black !important;
}

.bg-gray {
    background-color: rgba(231, 230, 230, 0.5);
}

.custom-input, .upload-container {
    transition: box-shadow 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

    .custom-input:focus, .upload-container:focus-within {
        border-color: #7f1518 !important;
        box-shadow: 0 0 0 0.25rem rgba(127, 21, 24, 0.25);
    }

    .custom-input input[type="radio"],
    .custom-input input[type="checkbox"] {
        cursor: pointer;
        appearance: none;
        width: 15px;
        height: 15px;
        border-radius: 15%;
        border: 1px solid #212529;
        padding: 0;
        position: relative;
        transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
    }

        /* For :checked pseudo-class */
        .custom-input input[type="radio"]:checked::before,
        .custom-input input[type="checkbox"]:checked::before {
            content: '\2713';
            font-size: 12px;
            color: #fff;
            position: absolute;
            top: -3px;
            left: 2px;
            font-weight: bold;
        }

        /* For :checked, :focus pseudo-classes */
        .custom-input input[type="radio"]:checked,
        .custom-input input[type="radio"]:focus,
        .custom-input input[type="checkbox"]:checked,
        .custom-input input[type="checkbox"]:focus {
            background-color: #7f1518;
            border-color: #7f1518;
            box-shadow: 0 0 0 0.25rem rgba(127, 21, 24, 0.25);
        }

.placeholder-right::placeholder {
    text-align: right;
}

.fixed-image {
    max-height: 100px;
}

.selected-box {
    border: 1px solid #7f1518;
    box-shadow: 0 0 0 0.25rem rgba(127, 21, 24, 0.25);
}

.selected-label {
    color: #7f1518;
}

.square-checkbox:checked + label {
    color: #7f1518;
}

.switch-custom .form-check-input {
    width: 3rem;
    height: 1.5rem;
    margin-right: 1rem;
    cursor: pointer;
}

.form-check {
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-check-label {
    font-size: 1rem;
    text-align: left;
    font-weight: bold;
    cursor: pointer;
}

.form-check-input {
    width: 2.5rem !important;
    height: 1.5rem !important;
    background-color: gray;
    border: none;
    position: relative;
    appearance: none;
    border-radius: 1rem;
    transition: background-color 0.2s ease-in-out;
    margin-right: 8px;
}

    .form-check-input:checked {
        background-color: black;
    }

    .form-check-input:focus {
        box-shadow: none !important;
        outline: none !important;
    }

    .form-check-input::after {
        content: "";
        width: 1.1rem;
        height: 1.1rem;
        background-color: white;
        border-radius: 50%;
        position: absolute;
        top: 0.20rem;
        left: 0.20rem;
        transition: transform 0.2s ease-in-out;
    }

    .form-check-input:checked::after {
        transform: translateX(1rem);
        background-color: white;
        content: '\2713';
        display: flex;
        align-items: center;
        justify-content: center;
        color: black;
        font-weight: bold;
    }

.custom-negative-margin {
    margin-top: -5rem !important;
}

@media (max-width: 767px) {
    .form-check-label {
        font-size: 0.6rem;
    }

    .form-check-input {
        width: 2rem !important;
        height: 1.1rem !important;
    }

        .form-check-input::after {
            width: 0.8rem;
            height: 0.8rem;
        }

        .form-check-input:checked::after {
            transform: translateX(0.8rem);
        }

    .custom-negative-margin {
        margin-top: 0rem !important;
    }

    .img-options {
        width: 50%;
    }
}

.custom-radio-container {
    border: 1px solid #ced4da;
    background-color: #fff;
    padding: 11px;
    display: flex;
    align-items: center;
    width: auto;
    transition: border-color 0.2s, box-shadow 0.2s;
    cursor: pointer;
    border-radius: 5px;
}

    .custom-radio-container:hover {
        border-color: #7f1518;
        box-shadow: 0 0 0 0.25rem rgba(127, 21, 24, 0.25);
    }

input[type="radio"]:checked + .custom-radio-container {
    border-color: #7f1518;
    box-shadow: 0 0 0 0.25rem rgba(127, 21, 24, 0.25);
}

input[type="checkbox"]:checked + .custom-radio-container {
    border-color: #7f1518;
    box-shadow: 0 0 0 0.25rem rgba(127, 21, 24, 0.25);
}

input[type="radio"]:checked + .custom-radio-container label span {
    color: #7f1518 !important;
}

input[type="checkbox"]:checked + .custom-radio-container label span {
    color: #7f1518 !important;
}

.radio-label .align-right {
    text-align: right;
    font-size: 0.9em;
}

.shipping {
    position: absolute;
    top: 50%;
    left: 5%;
}

.amountlater {
    position: absolute;
    top: 50%;
    left: 25%;
}

@media (max-width: 767.98px) {
    .fixed-sidebar {
        position: static;
        top: auto;
        padding-left: 0;
        padding-right: 0;
        margin-top: 20px;
    }
}

.form-control {
    height: calc(3rem + 2px);
    background-color: #ffffff;
}

.btn-dark {
    height: calc(3rem + 2px);
    font-size: 1.25rem;
}

.carousel-container-width {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.carousel-control-prev,
.carousel-control-next {
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

    .carousel-control-prev:hover,
    .carousel-control-next:hover {
        opacity: 1;
    }

    .carousel-control-prev .fas,
    .carousel-control-next .fas {
        font-size: 1.5rem;
        color: #fff;
    }

.product-option-box {
    border: 1px solid #dee2e6;
    transition: border-color 0.3s ease-in-out;
    padding: 15px;
    text-align: center;
    background-color: #f8f9fa;
}

    .product-option-box:hover {
        border: 3px solid;
        border-color: #7f1518;
    }

    .product-option-box img {
        max-width: 100%;
        height: auto;
        margin-bottom: 10px;
        border: 2px solid transparent;
        transition: border-color 0.3s;
    }

    .product-option-box input[type="radio"]:checked + label {
        font-weight: bold;
        color: #000;
    }

    .product-option-box input[type="radio"]:checked ~ img {
        border: 2px solid blue;
    }

.row.justify-content-center.mt-3.mx-0 {
    min-height: 120vh;
    align-items: flex-start;
}

body {
    background-color: #f2f2f2;
}

.fixed-sidebar .card {
    background-color: #ffffff !important;
    margin: 10px;
}

.form-control {
    background-color: #ffffff;
}

.design-name-po-outer-white {
    background-color: #ffffff;
    border-radius: 0.3rem;
    padding: 1.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    position: relative;
}

.design-name-po-inner-light-gray {
    background-color: #f8f9fa;
    border-radius: 0.25rem;
    padding: 1.5rem;
}

.design-name-po-outer-white > .row {
    padding: 0 1.5rem;
}

.login-close-button {
    position: absolute;
    top: 0;
    right: 0;
    margin: 1rem;
    z-index: 10;
}

.design-name-po-outer-white2 {
    background-color: #ffffff;
    border-radius: 0.3rem;
    padding: 1.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    position: relative;
    margin: 10px;
}

.accordion-button {
    font-weight: bold;
    font-size: 1.75rem;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    color: #212529;
    border: 1px solid #dee2e6;
    border-radius: 0.3rem;
    padding: 1rem 1.25rem;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

    .accordion-button:not(.collapsed) {
        color: #7f1518;
        background-color: #f8f9fa;
        box-shadow: none;
    }

    .accordion-button:focus {
        box-shadow: none;
        border-color: #7f1518;
    }

    .accordion-button .heading-text {
        flex-grow: 1;
        text-align: center;
        align-self: center;
    }

    .accordion-button::after {
        flex-shrink: 0;
        width: 1.25rem;
        height: 1.25rem;
        margin-left: auto;
        content: "\f067";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        background-image: none !important;
        background-repeat: no-repeat;
        background-size: 1.25rem;
        transition: transform .2s ease-in-out;
        display: flex;
        align-items: center;
        justify-content: center;
    }

.thumbnail-preview {
    max-width: 100px;
    max-height: 100px;
    margin-top: 10px;
    border: 1px solid #ddd;
    padding: 5px;
    display: none;
}

.accordion-button:not(.collapsed)::after {
    content: "\f068";
    transform: rotate(0deg);
}

.accordion-body {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 0.3rem 0.3rem;
    padding: 1.5rem;
    margin-top: -0.5rem;
    position: relative;
    z-index: 1;
}

.accordion-item {
    border: none;
    margin-bottom: 1rem;
    background-color: transparent;
}

#instructions {
    height: 244px;
    overflow-y: hidden;
}

@media (min-width: 768px) {
    .col-equal-5 {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

#myCarouselMobile {
    display: none;
}

#myCarouselDesktop {
    display: none;
}

@media (max-width: 767.98px) {
    #myCarouselMobile {
        display: block;
    }

    #myCarouselDesktop {
        display: none;
    }

    #myCarouselMobile .carousel-item .col-12 {
        flex: 0 0 100%;
        max-width: 95%;
    }

    #myCarouselMobile .carousel-control-prev {
        left: 60px;
    }

    #myCarouselMobile .carousel-control-next {
        right: 60px;
    }
}

@media (min-width: 768px) {
    #myCarouselDesktop {
        display: block;
    }

    #myCarouselMobile {
        display: none;
    }

    #myCarouselDesktop .carousel-item .col-sm-2 {
        flex: 0 0 16.666%;
        max-width: 16.666%;
    }

    #myCarouselDesktop .carousel-control-prev {
        left: -20px;
    }

    #myCarouselDesktop .carousel-control-next {
        right: -20px;
    }
}

.file-list-container {
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 4px;
    background-color: #f9f9f9;
}

.file-item {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    font-size: 0.9em;
    color: #333;
}

    .file-item .file-name {
        flex-grow: 1;
        margin-right: 10px;
        word-break: break-all;
    }

    .file-item .tick-mark {
        color: green;
        font-weight: bold;
        font-size: 1.1em;
        margin-left: auto;
    }

.upload-container {
    position: relative;
    cursor: pointer;
}

    .upload-container input[type="file"] {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        cursor: pointer;
    }

.thumbnail-preview {
    max-width: 100%;
    height: auto;
    display: none;
    margin-top: 10px;
}

.product-option-box-socks {
    background-color: white;
    border: 1px solid #dee2e6;
    padding: 15px;
    margin: 0 auto;
    width: 90%;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

    .product-option-box-socks label {
        justify-content: center;
    }

    .product-option-box-socks .fixed-image {
        max-width: 80px;
        height: auto;
    }

#socks-option .row.justify-content-center {
    display: flex;
    justify-content: center;
    width: 100%;
}

#socks-option .col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
}

@media (max-width: 767.98px) {
    #socks-option .col-12.col-md-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Part B: Secondary Content Styles */
.list-group-item .edit-btn {
    font-size: 0.75rem;
    padding: 0.1rem 0.5rem;
}

.order-summary-item {
    font-size: 0.9rem;
}

    .order-summary-item .edit-link {
        font-size: 0.8rem;
        margin-left: 5px;
        color: #000;
        text-decoration: none;
    }

        .order-summary-item .edit-link:hover {
            text-decoration: underline;
        }

.quantity-dropdown-container {
    position: relative;
}

.quantity-dropdown {
    position: absolute;
    width: 100%;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.quantity-option {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

    .quantity-option:hover {
        background-color: #f8f9fa;
    }

    .quantity-option:last-child {
        border-bottom: none;
    }

    .quantity-option.most-popular:after {
        content: "Most Popular";
        background-color: red;
        color: white;
        font-size: 0.7rem;
        padding: 2px 5px;
        border-radius: 3px;
        margin-left: 10px;
    }

.upload-file-disabled {
    pointer-events: none;
    opacity: 0.6;
    background-color: #e9ecef;
}

.upload-email-label {
    display: flex;
    align-items: flex-start;
}

    .upload-email-label .form-check-input {
        margin-top: 0.25rem;
        flex-shrink: 0;
    }

.upload-email-text-container {
    margin-left: 0.5rem;
}

@media (min-width: 768px) {
    #myCarouselMobile {
        display: none;
    }
}

@media (max-width: 767px) {
    #myCarouselDesktop {
        display: none;
    }
}

.required-symbol {
    color: red;
    font-weight: bold;
    margin-left: 5px;
}
/* Modals (Login/Inquiry) */
#loginRequiredModal .modal-content {
    border-radius: 1rem;
    padding: 2rem;
    text-align: left;
    background-color: #f5f5f5;
}

#loginRequiredModal .modal-header {
    border-bottom: none;
    text-align: center;
    flex-direction: column;
    position: relative;
    padding-top: 0;
    padding-bottom: 0;
}

    #loginRequiredModal .modal-header .btn-close {
        position: absolute;
        top: 0.4rem;
        right: 0.4rem;
    }

#loginRequiredModal .modal-title {
    font-weight: bold;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    width: auto;
}

#loginRequiredModal .modal-body {
    padding: 1rem 0;
}

#loginRequiredModal .form-group {
    margin-bottom: 1rem;
}

#loginRequiredModal .form-label {
    font-weight: normal;
}

#loginRequiredModal .forgot-link {
    font-size: 0.8rem;
    color: var(--blue);
    text-decoration: none;
}

    #loginRequiredModal .forgot-link:hover {
        text-decoration: underline;
    }

#loginRequiredModal .btn-login {
    background-color: #212529;
    color: white;
    font-weight: bold;
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.5rem;
    height: 45px;
    font-size: 1.1rem;
}

#loginRequiredModal .modal-footer {
    border-top: none;
    padding-top: 0;
    justify-content: center;
}

.login-modal-content {
    border-radius: 8px;
    padding: 20px;
}

.login-modal-header {
    border-bottom: none;
    padding-bottom: 0;
}

.login-modal-title {
    font-weight: bold;
    text-align: center;
    width: 100%;
    font-size: 1.75rem;
}

.login-modal-body p {
    font-size: 1rem;
    color: #6c757d;
    text-align: center;
}

.login-modal-body .form-label {
    font-weight: bold;
}

.login-modal-body .form-control {
    border-radius: 5px;
    height: 45px;
}

.sticky-lg-top {
    position: sticky;
    top: 20px;
    align-self: flex-start;
}

.inquiry-modal {
    z-index: 9999 !important;
}

.inquiry-modal .modal-content {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.inquiry-modal .modal-header {
    border-bottom: none;
    padding-bottom: 0;
}

.inquiry-modal .modal-title {
    font-weight: bold;
    text-align: center;
    width: 100%;
}

.inquiry-modal .modal-body .form-label {
    font-weight: bold;
}

.inquiry-modal .modal-body .row .col-md-6,
.inquiry-modal .modal-body .row .col-12 {
    text-align: left;
}

.inquiry-modal .form-container {
    background-color: #f2f2f2;
    padding: 20px;
    border-radius: 8px;
}

.inquiry-modal .modal-footer {
    border-top: none;
    justify-content: center;
    gap: 15px;
}

.inquiry-modal .btn {
    min-width: 150px;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 5px;
}

.inquiry-modal .btn-cancel {
    background-color: #f8f9fa;
    color: #000;
    border: 1px solid #ced4da;
}

.inquiry-modal .btn-submit {
    background-color: #28a745;
    color: #fff;
}

.inquiry-modal .modal-dialog {
    max-width: 600px;
}

.design-name-po-inner-light-gray {
    background-color: #f8f8f8;
    border-radius: 0.25rem;
    padding: 1rem;
}

.design-name-po-outer-white2 {
    border-radius: 0.25rem;
    padding: 1.5rem;
    background-color: white;
}

.container-fluid.p-0 > .row {
    margin-left: 0;
    margin-right: 0;
}

.main-layout-container {
    padding-left: 10%;
    padding-right: 10%;
}

@media (max-width: 768px) {
    .main-layout-container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (min-width: 992px) {
    .main-content-col {
        flex: 0 0 70%;
        max-width: 70%;
    }

    .sidebar-col {
        flex: 0 0 30%;
        max-width: 30%;
    }
}
/* Shipping and Forms */
.shipping-box {
    background-color: #fff;
    padding: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    min-width: 180px;
    height: 45px;
    display: flex;
    align-items: center;
}

    .shipping-box .form-check-label {
        margin-left: 0.5rem;
        display: flex;
        align-items: center;
    }

        .shipping-box .form-check-label span {
            white-space: nowrap;
        }

        .shipping-box .form-check-label .text-muted {
            font-size: 0.8rem;
            margin-left: 5px;
        }

.form-check.custom-align {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .form-check.custom-align .form-check-input {
        margin-top: 0;
    }

#patchesNeededBy {
    position: relative;
}

@media (max-width: 768px) {
    #patchesNeededBy {
        top: 0;
    }
}
/* Aligning all form controls and input groups to the same height */
.form-control,
.form-select,
.input-group-text,
.input-group input {
    height: 45px !important;
}
/* Custom CSS for placeholders */
::placeholder {
    color: #b0b0b0 !important;
    opacity: 1 !important;
}

:-ms-input-placeholder {
    color: #b0b0b0 !important;
}
/* Modals (Thankyou/Order Details) */
.back-button {
    background: none;
    border: none;
    color: #000;
    font-size: 1.5rem;
    cursor: pointer;
}

.breadcrumb-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.modal-body .modal-img {
    max-width: 150px;
    height: auto;
    display: block;
    margin: 0 auto 15px;
    border-radius: 8px;
}

.modal-body p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #555;
}

.modal-body .order-details-table {
    width: 100%;
    margin-top: 15px;
}

    .modal-body .order-details-table th, .modal-body .order-details-table td {
        padding: 5px 0;
        border-bottom: 1px solid #eee;
    }

    .modal-body .order-details-table th {
        text-align: left;
        font-weight: bold;
        color: #333;
        width: 50%;
    }

    .modal-body .order-details-table td {
        text-align: right;
        color: #666;
    }

.modal-content {
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
}

.thankyou-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 1rem;
}

.modal-content .modal-header .btn-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.modal-content .modal-header {
    display: block;
}

.modal-content .modal-title {
    font-weight: bold;
    text-align: center;
    margin-top: 0;
    font-size: 1.5rem;
}

.order-details-image {
    width: 220px;
    height: 220px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.modal-table-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

    .modal-table-row:last-child {
        border-bottom: none;
    }

    .modal-table-row strong {
        font-weight: bold;
        color: #333;
    }

    .modal-table-row span {
        color: #666;
    }

.modal-content {
    background-color: #f5f5f5;
}

.modal-dialog {
    max-width: 600px;
}

.btn-go-homepage {
    background-color: transparent;
    color: black;
    border: 1px solid black;
    width: auto;
    min-width: 150px;
    padding: 8px 16px;
}
/* Reseller Styles */
.reseller-button-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 5px;
}

#resellerYesBtn {
    background-color: black;
    color: white;
    border: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    height: 45px;
    width: 150px;
    transition: background-color 0.3s ease;
}

    #resellerYesBtn.btn-yes-active {
        background-color: #28a745;
    }

    #resellerYesBtn i {
        margin-right: 8px;
    }

#uploadResellerDiv {
    display: none;
    margin-right: auto;
}

.btn-upload-label {
    background-color: var(--blue);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    height: 45px;
    line-height: 1.5;
}

    .btn-upload-label i {
        margin-right: 8px;
    }

.btn-upload-done {
    background-color: #28a745 !important;
    color: white !important;
    border-color: #28a745 !important;
}

    .btn-upload-done i {
        margin-right: 8px;
    }

.view-all-addresses-link {
    color: var(--blue);
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
    padding-left: 15px;
}

    .view-all-addresses-link:hover {
        text-decoration: underline;
    }

/* Saved Addresses Modal Styles */
#thankyouModal {
    z-index: 9999 !important;
}

#savedAddressesModal{
    z-index: 9999 !important;
}

#savedAddressesModal .modal-content {
    background-color: #f5f5f5;
    border-radius: 10px;
    padding: 20px;
    text-align: left;
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: auto;
    z-index: 9999 !important;
}

#savedAddressesModal .modal-header {
    border-bottom: none;
    padding-bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

    #savedAddressesModal .modal-header .modal-title {
        font-weight: bold;
        font-size: 1.5rem;
        text-align: center;
        flex-grow: 1;
        margin-left: 2rem;
    }

#savedAddressesModal .modal-body {
    padding-top: 0;
}

#savedAddressesModal .table-responsive {
    max-height: 400px;
    overflow-y: auto;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

#savedAddressesModal .table {
    width: 100%;
    margin-bottom: 0;
    border-collapse: collapse;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    border-spacing: 0;
}

#savedAddressesModal th,
#savedAddressesModal td {
    white-space: nowrap;
    text-align: center;
    padding: 12px;
    vertical-align: middle;
}

#savedAddressesModal thead th {
    background-color: #f8f9fa;
    position: sticky;
    top: 0;
    z-index: 10;
    font-weight: bold;
    font-size: 1rem;
    border-bottom: 1px solid #dee2e6;
}

#savedAddressesModal .table-hover tbody tr:hover {
    background-color: #f1f1f1;
}

#savedAddressesModal .table tbody tr:last-child td {
    border-bottom: none;
}

#savedAddressesModal .table td, #savedAddressesModal .table th {
    vertical-align: middle;
    font-size: 0.85rem;
    padding: 0.75rem;
    border-top: none;
    border-bottom: 1px solid #dee2e6;
}

#savedAddressesModal .table tbody tr:nth-child(even) {
    background-color: #f8f8f8;
}

#savedAddressesModal .table tbody tr:nth-child(odd) {
    background-color: white;
}

#savedAddressesModal .table td .form-check-input {
    margin-top: 0;
    vertical-align: middle;
}

#savedAddressesModal .table .btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    white-space: nowrap;
}

#savedAddressesModal .table .btn-primary {
    border-color: var(--blue);
    color: white;
}

    #savedAddressesModal .table .btn-primary:hover {
        background-color: #0056b3;
        border-color: #0056b3;
    }

#savedAddressesModal .table .btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

    #savedAddressesModal .table .btn-danger:hover {
        background-color: #c82333;
        border-color: #c82333;
    }

#savedAddressesModal .modal-footer {
    border-top: none;
    justify-content: center;
    padding-top: 0;
}

#savedAddressesModal .btn-save-close {
    background-color: black;
    color: white;
    padding: 10px 30px;
    border-radius: 5px;
    font-weight: bold;
    min-width: 200px;
}

    #savedAddressesModal .btn-save-close:hover {
        background-color: #333;
    }

#savedAddressesModal .modal-dialog {
    max-width: 1100px;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Calendar */
.ui-datepicker {
    z-index: 1100 !important;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border: 1px solid #e2e2e2;
    background-color: #fff;
    opacity: 1 !important;
    width: 100% !important;
    max-width: 300px;
    font-size: 14px;
}

.ui-datepicker-header {
    background-color: transparent !important;
    border: none !important;
    color: #000 !important;
    font-weight: bold;
    padding: 0;
    border-radius: 0 !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ui-datepicker-prev, .ui-datepicker-next {
    border: none !important;
    background-color: transparent !important;
    color: #000 !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    top: 0 !important;
    width: 2rem !important;
    height: 2rem !important;
    position: relative !important;
    margin: 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .ui-datepicker-prev span, .ui-datepicker-next span {
        display: none !important;
    }

    .ui-datepicker-prev:before {
        content: "\f104";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
    }

    .ui-datepicker-next:before {
        content: "\f105";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
    }

.ui-datepicker-title {
    margin: 0 !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    flex-grow: 1;
    text-align: center;
    font-weight: bold;
}

.ui-datepicker-calendar th span {
    color: #999;
    font-weight: normal;
}

.ui-datepicker-calendar th {
    font-weight: normal;
    color: #777;
}

.ui-datepicker td a {
    text-align: center;
    padding: 0.5rem;
    border-radius: 5px;
    color: #000;
    border: none;
    background-color: transparent;
    font-weight: normal;
    transition: all 0.2s ease;
}

.ui-datepicker td.ui-datepicker-today a {
    background-color: black;
    color: white;
    font-weight: bold;
}

.ui-datepicker td.ui-state-highlight a {
    border: 1px solid black;
    background: white;
    color: black;
}

.ui-datepicker td a:hover {
    background-color: #eee;
}

.input-group-text:hover {
    cursor: pointer;
}

.ui-datepicker-trigger {
    display: none;
}

.input-group-text {
    cursor: pointer;
}

/* Modals for Account Existing */
#loginModalExist .modal-content {
    border-radius: 1rem;
    padding: 2rem;
    text-align: left;
}

#loginModalExist .modal-header {
    border-bottom: none;
    text-align: center;
    flex-direction: column;
    position: relative;
}

#loginModalExist .modal-title {
    font-weight: bold;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

#loginModalExist .modal-body {
    padding-top: 1rem;
}

#loginModalExist .form-group {
    margin-bottom: 1rem;
}

#loginModalExist .form-label {
    font-weight: normal;
}

#loginModalExist .forgot-link {
    font-size: 0.8rem;
    color: var(--blue);
    text-decoration: none;
}

    #loginModalExist .forgot-link:hover {
        text-decoration: underline;
    }

#loginModalExist .btn-login {
    background-color: #212529;
    color: white;
    font-weight: bold;
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.5rem;
    height: 45px;
    font-size: 1.1rem;
}

/* Form field */
.form-control,
.form-select,
textarea,
input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"] {
    background-color: #ffffff !important;
    padding: 0.5rem 0.75rem !important;
    margin-bottom: 0.75rem !important;
    height: 45px !important;
}


#instructions {
    min-height: 244px !important;
    height: auto !important;
    line-height: 1.4;
    overflow-y: auto;
}


.design-name-po-inner-light-gray,
.design-name-po-outer-white,
.design-name-po-outer-white2 {
    padding: 1.5rem !important;
}


/* --- Part C: Navbar, Footer, and Shopping Cart (from newcss.css) --- */


/* 1. Header Fixed Position */
.navbar {
    background-color: white !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
}

/* Fixed Sidebar position */
.fixed-sidebar {
    position: sticky !important;
    top: 90px !important;
    align-self: flex-start !important;
    z-index: 1020 !important;
    overflow-y: visible !important;
    min-height: 100%;
}

.row.justify-content-center.mt-3.mx-0 {
    min-height: 120vh; 
    align-items: flex-start;
}

@media (min-width: 768px) {

    .fixed-sidebar {
        position: -webkit-sticky !important;
        position: sticky !important;
    }
}


/* 3. Layout/Alignment  */
.breadcrumb-container {
    margin-top: 30px !important;
    padding-left: 15px;
}

.main-layout-container {
    padding-top: 0 !important;
    margin-top: 80px !important; 
}

.main-content-col {
    margin-top: -10px;
}

.back-arrow-icon {
    font-size: 1.5rem;
    cursor: pointer;
    margin-right: 15px;
}

/* --- New CSS Standard Styles --- */
.navbar-brand {
    margin-left: 15px;
}

.navbar-nav {
    font-weight: 500;
}

.nav-link.custom-nav-link {
    color: black !important;
    transition: color 0.3s ease;
}

    .nav-link.custom-nav-link:hover {
        color: #ea4335 !important;
    }

.right-icons {
    margin-right: 15px;
}

.dropdown-menu {
    border-radius: 0;
}

.dropdown-item:hover {
    background-color: #f1f1f1;
}

.dropdown-toggle::after {
    display: none !important;
}

.dropdown-toggle .dropdown-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
    transform: rotate(90deg);
    margin-left: 5px;
    font-size: 0.8em;
}

.dropdown-toggle[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(0deg);
}

.nav-link.fs-5,
.nav-link .fa-user-circle,
.nav-link .fa-shopping-cart {
    font-size: 1.5rem !important;
}

/* Megamenu */
.dropdown.megamenu .dropdown-menu {
    width: 700px;
    padding: 25px;
    border-radius: 10px;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.megamenu .dropdown-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.megamenu .dropdown-header {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #000;
    text-decoration: none;
}

.megamenu .dropdown-item {
    padding: 5px 0;
    white-space: normal;
    color: black !important;
    transition: color 0.3s ease;
}

    .megamenu .dropdown-item:hover {
        background-color: transparent !important;
        color: #ea4335 !important;
    }

/* Footer Styles */
.footer {
    background-color: #000;
    color: #a7a5a5;
    padding: 40px 0;
    font-size: 15px;
}

    .footer h5 {
        color: #fff;
        font-size: 18px;
        margin-bottom: 20px;
        font-weight: bold;
    }

.footer-branding {
    margin-bottom: 20px;
}

.footer-logo {
    max-width: 150px;
    margin-bottom: 20px;
}

.footer ul {
    list-style: none;
    padding: 0;
}

    .footer ul li {
        margin-bottom: 10px;
    }

        .footer ul li a {
            color: #a7a5a5;
            text-decoration: none;
            transition: color 0.3s ease;
            display: flex;
            align-items: center;
        }

            .footer ul li a:hover {
                color: #ea4335;
            }

            .footer ul li a .fa-chevron-right {
                font-size: 0.7em;
                margin-right: 8px;
                opacity: 0.7;
            }

.footer .social-icons {
    margin-top: 20px;
}

    .footer .social-icons a {
        color: #fff;
        font-size: 1.3rem;
        margin-right: 15px;
        transition: color 0.3s ease;
    }

        .footer .social-icons a:hover {
            color: #ea4335;
        }

.footer .contact-info p {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
}

.footer .contact-info i {
    margin-right: 10px;
    font-size: 1.1em;
    flex-shrink: 0;
    padding-top: 2px;
}

.footer .copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 30px;
    text-align: center;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
}

/* Shopping Cart Styles */
.shopping-cart-container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: #f7f7f7;
    padding: 20px;
    padding-bottom: 20px;
}

.shopping-cart-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.shopping-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #ccc;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

    .shopping-cart-header h2 {
        font-weight: bold;
        margin: 0;
    }

    .shopping-cart-header .back-btn {
        background-color: #fff;
        border: 1px solid #ccc;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 20px;
        color: #333;
    }

        .shopping-cart-header .back-btn:hover {
            background-color: #eee;
        }

.cart-item {
    display: flex;
    align-items: center;
    position: relative;
}

.item-image {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    padding-right: 20px;
}

    .item-image img {
        width: 100px;
        height: auto;
        border-radius: 5px;
    }

.select-all-container input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 15px;
}

.item-image input[type="checkbox"] {
    top: 25px;
    width: 20px;
    height: 20px;
    margin-right: 15px;
}

.item-details {
    flex-grow: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
}

.item-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

    .item-info h5 {
        font-weight: bold;
        font-size: 1.2rem;
        margin-bottom: 0;
    }

    .item-info .edit-link {
        font-size: 0.8rem;
        color: #6c757d;
        text-decoration: underline;
        margin-left: 5px;
    }

.item-info-row {
    display: flex;
    align-items: center;
}

    .item-info-row p {
        margin: 0;
        font-size: 0.9rem;
        color: #555;
        flex-shrink: 0;
        display: flex;
        align-items: center;
    }

.item-info-label {
    min-width: 80px;
    font-weight: bold;
    display: inline-block;
}

.item-info-value {
    margin-left: 10px;
    display: inline-block;
}

    .item-info-value span {
        font-weight: normal;
    }

.item-pricing {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    width: 60%;
}

.price-label {
    font-weight: bold;
    color: #555;
    font-size: 0.9rem;
    text-align: center;
}

.price-value {
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
}

.quantity-control {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}

    .quantity-control input {
        width: 60px;
        text-align: center;
        border: 1px solid #ccc;
        border-radius: 5px;
        padding: 5px;
        font-weight: bold;
        margin-top: 5px;
    }

.delete-btn-group {
    display: flex;
    align-items: center;
}

.delete-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 10px;
}

    .delete-btn:hover {
        color: #dc3545;
    }

.summary-box {
    background-color: #f7f7f7;
    padding: 20px;
    border-radius: 10px;
}

    .summary-box ul {
        list-style: none;
        padding: 0;
    }

    .summary-box li {
        display: flex;
        justify-content: space-between;
        padding: 5px 0;
    }

    .summary-box .total-row {
        font-size: 1.5rem;
        font-weight: bold;
        border-top: 1px solid #ccc;
        padding-top: 15px;
        margin-top: 15px;
        text-align: center;
    }

        .summary-box .total-row .total-text {
            font-size: 1rem;
        }

        .summary-box .total-row .total-value {
            color: #e30613;
            font-size: 1.5rem;
        }

    .summary-box .free-shipping {
        color: #28a745;
        font-weight: bold;
    }

.summary-buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 20px;
}

    .summary-buttons .btn {
        flex-grow: 1;
        padding: 10px;
        font-weight: bold;
    }

    .summary-buttons .btn-green {
        background-color: #28a745;
        color: #fff;
    }

    .summary-buttons .btn-white {
        background-color: #f7f7f7;
        color: #6c757d;
        border: 1px solid #6c757d;
    }

.select-all-container {
    display: flex;
    align-items: center;
}

    .select-all-container label {
        font-weight: bold;
        cursor: pointer;
    }

.horizontal-divider {
    border-top: 1px solid #ccc;
    margin: 20px 0;
}

.item-info p {
    margin-bottom: 0 !important;
}

.item-info .View-More-Link {
    font-size: 0.9rem;
    color: #6c757d;
    text-decoration: underline;
    margin-top: 5px;
    display: inline-block;
}

.select-all-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* --- Media Queries (Consolidated and Finalized) --- */

@media (min-width: 768px) {
    .main-content-area {
        display: flex;
        flex-wrap: wrap;
    }

    .main-content-column {
        flex: 1;
        padding-right: 1.5rem;
    }

    .sidebar-column {
        flex: 0 0 25%;
        max-width: 25%;
    }

    .fixed-sidebar .card {
        margin: 0;
    }

    .item-pricing {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 2rem;
    }

        .item-pricing > div {
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .item-pricing .quantity-control {
            justify-content: center;
        }

        .item-pricing .delete-btn-container {
            display: flex;
            align-items: center;
            justify-content: center;
            height: 100%;
        }
}

@media (min-width: 992px) {
    .navbar-collapse {
        display: flex !important;
    }

    .navbar-nav.center-nav {
        flex-grow: 1;
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
        gap: 30px;
    }

    .right-icons {
        gap: 20px;
    }

    .navbar-toggler {
        display: none;
    }

    .dropdown.megamenu .dropdown-menu {
        left: 45% !important;
        transform: translateX(-50%) !important;
    }

    .mobile-icons-container {
        display: none;
    }
}


@media (max-width: 991px) {
    .dropdown.megamenu .dropdown-menu {
        width: 100%;
        left: 0;
        transform: translateX(0);
        border-radius: 0;
        position: absolute;
        box-shadow: none;
    }

    .navbar-collapse {
        display: none !important;
    }

    .navbar-toggler {
        display: block !important;
    }

    .navbar-brand {
        order: 1;
        margin-left: 0;
    }

    .mobile-icons-container {
        display: flex;
        align-items: center;
        order: 3;
        gap: 5px;
    }

        .mobile-icons-container .nav-link {
            padding: 0 5px;
            font-size: 14px;
        }

        .mobile-icons-container .fa-user-circle,
        .mobile-icons-container .fa-shopping-cart {
            font-size: 1.2rem;
        }

        .mobile-icons-container .dropdown-toggle::after {
            display: none;
        }

    .offcanvas-body {
        padding-top: 1rem;
    }

        .offcanvas-body .navbar-nav {
            flex-direction: column;
            gap: 10px;
        }

        .offcanvas-body .nav-item {
            width: 100%;
        }

        .offcanvas-body .nav-link:hover {
            background-color: transparent !important;
            color: #ea4335 !important;
        }

        .offcanvas-body .megamenu .dropdown-toggle[aria-expanded="true"] {
            color: #ea4335 !important;
        }
}

@media (max-width: 767px) {
    .fixed-sidebar .card {
        margin: 10px;
    }

    .footer .col-md-3 {
        margin-bottom: 30px;
    }

    .footer .contact-info {
        text-align: left;
        padding-left: 15px;
    }

    .footer .footer-branding {
        text-align: center;
    }

    .footer .footer-logo {
        margin: 0 auto 20px;
    }

    .footer .social-icons {
        justify-content: center;
    }

    .mobile-footer-links {
        display: flex;
        justify-content: space-around;
        text-align: center;
        flex-wrap: wrap;
    }

        .mobile-footer-links > div {
            flex-basis: 45%;
            margin-bottom: 20px;
        }

        .mobile-footer-links h5 {
            text-align: center;
        }

        .mobile-footer-links ul {
            text-align: center;
            padding: 0;
        }

        .mobile-footer-links li {
            display: inline-block;
            margin-right: 5px;
        }

            .mobile-footer-links li a .fa-chevron-right {
                display: none;
            }

    .shopping-cart-container {
        padding: 10px;
    }

    .shopping-cart-content {
        padding: 15px;
    }

    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 0;
    }

    .item-image {
        display: flex;
        align-items: center;
        width: 100%;
        margin-bottom: 15px;
        padding-right: 0;
    }

        .item-image img {
            max-width: 80px;
            margin-left: 10px;
        }

        .item-image input[type="checkbox"] {
            top: 0;
            width: 20px;
            height: 20px;
            margin-right: 10px;
        }

    .item-details {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        padding-right: 0;
    }

    .item-info {
        width: 100%;
        gap: 5px;
    }

        .item-info .edit-link {
            display: inline-block !important;
            margin-left: 0 !important;
        }

    .item-pricing {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 15px;
        margin-top: 15px;
    }

        .item-pricing > div {
            width: 100%;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .item-pricing .price-label,
        .item-pricing .price-value {
            text-align: left;
        }

        .item-pricing .quantity-control {
            justify-content: flex-start;
        }

            .item-pricing .quantity-control input {
                margin-top: 0;
            }

    .delete-btn-group .delete-btn {
        position: absolute;
        top: 20px;
        right: 20px;
        padding: 0;
        margin: 0;
    }

    .summary-buttons {
        flex-direction: column;
    }

    .item-info p {
        display: flex;
        align-items: center;
    }

    .select-all-container {
        justify-content: space-between;
    }

    .item-info .item-info-value {
        margin-left: 0;
    }

    .item-info p .fw-bold.me-2 {
        margin-right: 5px;
    }

    .summary-box .total-row {
        flex-direction: row;
        justify-content: space-between;
    }

        .summary-box .total-row .total-text {
            margin-bottom: 0;
        }

        .summary-box .total-row .total-value {
            text-align: right;
        }

    .summary-buttons .btn-white {
        background-color: #f7f7f7;
    }
}
