﻿#toast-container > div {
    opacity: .9 !important;
}

#toast-container > .toast-error {
    background-color: #BD362F !important;
    color: #fff !important;
    background-image: none !important;
}

#toast-container > .toast-success {
    background-color: #619b28 !important;
    color: #fff !important;
    background-image: none !important;
}

.pdModal .nav-tabs {
    border-bottom: 1px solid var(--color-border);
    flex-wrap: nowrap;
    overflow: visible;
    margin-top: 12px;
    gap: 0;
}

    .pdModal .nav-tabs .nav-link {
        font-size: 13px;
        font-weight: 500;
        color: var(--color-text-secondary);
        border: none;
        border-bottom: 3px solid transparent;
        border-radius: 0;
        padding: 10px 20px;
        white-space: nowrap;
        background: none;
        margin-bottom: -1px;
    }

        .pdModal .nav-tabs .nav-link:hover {
            color: var(--color-primary);
            border-bottom-color: transparent;
            background: none;
        }

        .pdModal .nav-tabs .nav-link.active {
            color: var(--color-primary);
            font-weight: 700;
            border-bottom-color: var(--color-primary);
            background: none;
        }

/* Modal body padding */
.pdModal .modal-body {
    padding: 16px 20px 20px;
    overflow: hidden;
}

/* Tab content scrollable area */
.pdModal .tab-content {
    max-height: 460px;
    min-height: 460px;
    overflow-y: auto;
    overflow-x: auto;
}

.cross-ref-height {
    max-height: 400px;
    overflow-y: auto;
}

.overlay {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-color: rgba(255,255,255,0.6);
    z-index: 9999;
    transition: opacity .15s ease;
}

.loader {
    text-align: center;
    height: 100vh;
    padding-top: 20%;
}

    .loader img {
        height: 50px;
        margin: 0 auto;
    }

.overlay.hide-loader {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.search-dropdown {
    max-height: 300px !important;
    overflow-y: auto;
    position: absolute;
    top: 30px;
}

.word-break {
    word-break: break-all;
}

tr.table-warning {
    --bs-table-bg: #ffff008f !important;
}

.scroll-ship {
    overflow-y: auto;
    max-height: 280px;
}

.input-validation-error {
    border: 2px solid #ff0000 !important;
}



.select2-container--default .select2-selection--single {
    height: 38px;
    padding: 0 10px;
    font-size: 13px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    outline: none;
    color: var(--color-text-primary);
    transition: border-color .15s, box-shadow .15s;
    font-family: inherit;
    line-height: 21;
}

    .select2-container--default .select2-selection--single .select2-selection__arrow {
        height: 36px;
    }

    .select2-container--default .select2-selection--single .select2-selection__rendered {
        line-height: 35px;
    }

select.input-validation-error + span.select2-container .select2-selection {
    border: 2px solid #ff0000 !important;
    border-radius: 4px;
}


.btn-vin-search {
    background: var(--color-primary) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 0 !important;
    height: 36px;
    width: 36px;
    min-width: 36px;
    flex: 0 0 36px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    margin: 0 !important;
    padding: 0 !important;
}

.text-danger {
    color: red !important;
}

/* Anchor each dropdown's container so error text can be positioned relative to it */
.year-width,
.make-width,
.submodel-width,
.engine-width {
    position: relative;
}

    /* Float error messages below the dropdown, styled bolder and bigger */
    .year-width .text-danger,
    .make-width .text-danger,
    .submodel-width .text-danger,
    .engine-width .text-danger {
        position: absolute;
        top: 100%;
        left: 0;
        white-space: nowrap;
        font-size: 13px;
        font-weight: 700;
        line-height: 1.3;
        margin-top: -7px;
        z-index: 5;
    }

/* Reserve enough space below the row so the white toolbar area
   grows to contain the error text (keeps it off the grey bar) */
.d-flex.flex-nowrap.justify-content-center.pt-2 {
    margin-bottom: 30px;
}

.btn-disabled {
    pointer-events: none !important;
    opacity: 50% !important;
}

.order-summary-table {
    width: 100%;
    border-collapse: collapse;
}

    .order-summary-table thead tr {
        background: #1A2A3A;
    }

    .order-summary-table thead th {
        color: #fff;
        font-size: 12.5px;
        font-weight: 600;
        padding: 12px 16px;
        text-align: left;
        white-space: nowrap;
    }

        .order-summary-table thead th:first-child {
            width: 45%;
        }

        .order-summary-table thead th:nth-child(2) {
            width: 12%;
        }

        .order-summary-table thead th:nth-child(3) {
            width: 12%;
        }

        .order-summary-table thead th:nth-child(4) {
            width: 14%;
        }

        .order-summary-table thead th:nth-child(5) {
            width: 17%;
        }

    .order-summary-table tbody tr {
        border-bottom: 1px solid var(--color-border-light);
    }

        .order-summary-table tbody tr:last-child {
            border-bottom: none;
        }

    .order-summary-table tbody td {
        padding: 14px 16px;
        vertical-align: middle;
        font-size: 13px;
        color: var(--color-text-primary);
    }

        .order-summary-table tbody td:nth-child(2) {
            font-size: 12.5px;
            color: var(--color-text-secondary);
        }

        .order-summary-table tbody td:nth-child(3) {
            font-weight: 600;
        }

.order-summary-product-cell {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.order-summary-sub-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-weight: 700;
}

.order-summary-item-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: var(--color-gray-50);
    padding: 4px;
    flex-shrink: 0;
}

.order-summary-item-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 2px;
}

.order-summary-thumbnail-carousel .item img,
.order-summary-thumbnail-carousel img {
    width: 60px; /* Reduce width */
    height: 60px; /* Reduce height */
    object-fit: cover;
}

.order-summary-thumbnail-carousel .carousel-control-prev,
.order-summary-thumbnail-carousel .carousel-control-next {
    display: none !important;
}

.order-summary-thumbnail-carousel .carousel-inner, .order-summary-thumbnail-carousel .carousel-item {
    height: 60px;
    width: 60px;
}

.order-summary-qty-input {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    overflow: hidden;
    height: 32px;
}

.order-summary-qty-btn {
    background: #F5F7FA;
    border: none;
    width: 28px;
    height: 100%;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background var(--transition-fast);
}

    .order-summary-qty-btn:hover {
        background: #E0E6ED;
        color: var(--color-primary);
    }

.order-summary-remove-btn {
    background: none;
    border: none;
    font-size: 11.5px;
    font-weight: 600;
    color: #e74c3c;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

    .order-summary-remove-btn:hover {
        color: #c0392b;
    }


.order-summary-qty-input {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    overflow: hidden;
    height: 32px;
}

.order-summary-qty-btn {
    background: #F5F7FA;
    border: none;
    width: 28px;
    height: 100%;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background var(--transition-fast);
}

    .order-summary-qty-btn:hover {
        background: #E0E6ED;
        color: var(--color-primary);
    }

.order-summary-qty {
    width: 36px;
    height: 100%;
    border: none;
    border-left: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    outline: none;
    -moz-appearance: textfield;
}

    .order-summary-qty::-webkit-outer-spin-button, .order-summary-qty::-webkit-inner-spin-button {
        -webkit-appearance: none;
    }

.saved-cart-table {
    width: 100%;
    border-collapse: collapse;
}

    .saved-cart-table thead tr {
        background: #1A2A3A;
    }

    .saved-cart-table thead th {
        color: #fff;
        font-size: 12.5px;
        font-weight: 600;
        padding: 12px 16px;
        text-align: left;
        white-space: nowrap;
    }

    /*        .cart-table thead th:first-child {
            width: 45%;
        }

        .cart-table thead th:nth-child(2) {
            width: 12%;
        }

        .cart-table thead th:nth-child(3) {
            width: 12%;
        }

        .cart-table thead th:nth-child(4) {
            width: 14%;
        }

        .cart-table thead th:nth-child(5) {
            width: 17%;
        }*/

    .saved-cart-table tbody tr {
        border-bottom: 1px solid var(--color-border-light);
    }

        .saved-cart-table tbody tr:last-child {
            border-bottom: none;
        }

    .saved-cart-table tbody td {
        padding: 14px 16px;
        vertical-align: middle;
        font-size: 13px;
        color: var(--color-text-primary);
    }

/*    .saved-cart-table tbody td:nth-child(2) {
        font-size: 12.5px;
        color: var(--color-text-secondary);
    }

    .saved-cart-table tbody td:nth-child(3) {
        font-weight: 600;
    }*/

.saved-cart-remove-btn {
    background: none;
    border: none;
    font-size: 11.5px;
    font-weight: 600;
    color: #e74c3c;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

    .saved-cart-remove-btn:hover {
        color: #c0392b;
    }

.saved-cart-qty-input {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    overflow: hidden;
    height: 32px;
}

.saved-cart-qty-btn {
    background: #F5F7FA;
    border: none;
    width: 28px;
    height: 100%;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background var(--transition-fast);
}

    .saved-cart-qty-btn:hover {
        background: #E0E6ED;
        color: var(--color-primary);
    }

.saved-cart-qty {
    width: 36px;
    height: 100%;
    border: none;
    border-left: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    outline: none;
    -moz-appearance: textfield;
}

    .saved-cart-qty::-webkit-outer-spin-button, .saved-cart-qty::-webkit-inner-spin-button {
        -webkit-appearance: none;
    }

.scroll-shipAddress {
    overflow-y: auto;
    max-height: 635px;
}

.suggest-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: #fff;
    border: 1px solid #1e4f98;
    color: #1e4f98;
    border-radius: 999px;
    padding: .20rem .5rem;
    font-size: .82rem;
    font-weight: 500;
}

    .suggest-chip:hover {
        background: #EAF2FB;
    }

/* Scan button */
.header-search .btn-scan {
    background: #fff;
    border: 1px solid #ced4da;
    border-left: 0;
    color: #0d47a1;
    padding: 0 12px;
    min-width: 44px;
}

    .header-search .btn-scan:hover {
        background: #f1f4f9;
    }

/* Camera area */
.scan-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #000;
    border-radius: 6px;
    overflow: hidden;
}

    .scan-wrap video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.scan-guide {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 35%;
    transform: translate(-50%, -50%);
    border: 2px solid #fff;
    border-radius: 8px;
    box-shadow: 0 0 0 999px rgba(0, 0, 0, .35);
    pointer-events: none;
}

/* Lighter backdrop for the scanner only */
body.scan-open .modal-backdrop.show {
    opacity: 0.35;
}

/* Phones: full-screen camera */
@media (max-width: 575.98px) {
    #scanModal .modal-body {
        flex: 1 1 auto;
    }

    #scanModal .scan-wrap {
        aspect-ratio: auto;
        flex: 1 1 auto;
        min-height: 300px;
        border-radius: 0;
    }
}