:root {
    --quote-red: #d80039;
    --quote-red-dark: #bc0032;
    --quote-ink: #303846;
    --quote-ink-deep: #222a35;
    --quote-muted: #7e8794;
    --quote-line: #e9ebef;
    --quote-surface: #f7f8fa;
}

.cart-button.js-quote-cart-open {
    position: relative;
}

.quote-cart-header-count {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border: 2px solid #fff;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--quote-red);
    font-size: .65rem;
    font-weight: 800;
    line-height: 1;
}

.quote-cart-header-count[hidden] {
    display: none !important;
}

.quote-cart-modal .modal-dialog {
    width: min(960px, calc(100% - 32px));
    max-width: 960px;
    margin-right: auto;
    margin-left: auto;
}

.quote-cart-modal .modal-content {
    max-height: min(900px, calc(100vh - 32px));
    overflow: hidden;
    border: 0;
    border-radius: 28px;
    color: var(--quote-ink);
    background: #fff;
    box-shadow: 0 28px 90px rgba(24, 31, 42, .22);
}

.quote-cart-modal .modal-header {
    padding: 34px 40px 20px;
    border: 0;
    align-items: flex-start;
    justify-content: space-between;
}

.quote-cart-eyebrow {
    margin: 0 0 7px;
    color: var(--quote-red);
    font-size: .72rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.quote-cart-title {
    margin: 0;
    color: var(--quote-ink-deep);
    font-size: clamp(1.8rem, 3vw, 2.45rem);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -.045em;
}

.quote-cart-subtitle {
    margin: 10px 0 0;
    color: var(--quote-muted);
    font-size: .9rem;
    line-height: 1.55;
}

.quote-cart-close-group {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--quote-muted);
    font-size: .72rem;
    font-weight: 700;
}

.quote-cart-close {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--quote-red);
    font-size: 1.5rem;
    line-height: 1;
    opacity: 1;
    transition: background-color .2s ease, transform .2s ease;
}

.quote-cart-close:hover {
    color: #fff;
    background-color: var(--quote-red-dark);
    transform: rotate(4deg);
}

.quote-cart-modal .modal-body {
    padding: 0 40px 38px;
    overflow-x: hidden;
}

.quote-cart-feedback {
    margin: 0 0 18px;
    padding: 12px 15px;
    border: 1px solid rgba(236, 0, 61, .2);
    border-radius: 12px;
    color: #9c1538;
    background: #fff2f6;
    font-size: .86rem;
    line-height: 1.5;
}

.quote-cart-feedback.is-success {
    border-color: rgba(32, 132, 78, .2);
    color: #17653a;
    background: #effaf4;
}

.quote-cart-loading {
    min-height: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--quote-muted);
    font-size: .9rem;
}

.quote-cart-loading .spinner-border {
    width: 24px;
    height: 24px;
    border-width: 2px;
    color: var(--quote-red);
}

.quote-cart-products-heading {
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.quote-cart-products-heading h3,
.quote-cart-form-heading h3 {
    margin: 0;
    color: var(--quote-ink-deep);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.quote-cart-clear {
    padding: 3px 0;
    border: 0;
    color: var(--quote-muted);
    background: transparent;
    font-size: .78rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.quote-cart-clear:hover {
    color: var(--quote-red);
}

.quote-cart-items {
    max-height: min(350px, 38vh);
    padding-right: 8px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: #cfd3d9 transparent;
    scrollbar-width: thin;
}

.quote-cart-item {
    position: relative;
    padding: 18px;
    border: 1px solid var(--quote-line);
    border-radius: 18px;
    display: grid;
    grid-template-columns: 148px minmax(0, 1fr) auto;
    align-items: center;
    gap: 22px;
    background: #fff;
}

.quote-cart-item + .quote-cart-item {
    margin-top: 12px;
}

.quote-cart-item.is-busy {
    opacity: .58;
    pointer-events: none;
}

.quote-cart-item-media {
    display: block;
    aspect-ratio: 440 / 320;
    overflow: hidden;
    border-radius: 14px;
    background: #eef0f3;
}

.quote-cart-item-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.quote-cart-item-content {
    min-width: 0;
}

.quote-cart-item-topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.quote-cart-item-name {
    margin: 0;
    color: var(--quote-ink-deep);
    font-size: 1.04rem;
    font-weight: 700;
    line-height: 1.35;
}

.quote-cart-item-name a {
    color: inherit;
    text-decoration: none;
}

.quote-cart-item-name a:hover {
    color: var(--quote-red);
}

.quote-cart-remove {
    flex: 0 0 auto;
    padding: 1px 0;
    border: 0;
    color: var(--quote-red);
    background: transparent;
    font-size: .75rem;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.quote-cart-pills {
    margin-top: 13px;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.quote-cart-pill {
    max-width: 100%;
    padding: 6px 10px;
    border: 1px solid #e4e6ea;
    border-radius: 999px;
    overflow: hidden;
    color: #606977;
    background: #f8f9fa;
    font-size: .7rem;
    font-weight: 600;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quote-cart-pill--code {
    border-color: rgba(236, 0, 61, .14);
    color: #a3193d;
    background: #fff3f6;
}

.quote-cart-item-quantity {
    min-width: 112px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.quote-cart-item-quantity-label {
    color: var(--quote-muted);
    font-size: .7rem;
    font-weight: 600;
}

.quote-cart-quantity-control {
    height: 40px;
    border: 1px solid #d9dde3;
    border-radius: 999px;
    display: grid;
    grid-template-columns: 38px 38px 38px;
    align-items: center;
    overflow: hidden;
    background: #fff;
}

.quote-cart-quantity-button {
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    display: grid;
    place-items: center;
    color: var(--quote-ink);
    background: transparent;
    font-size: 1rem;
    font-weight: 700;
}

.quote-cart-quantity-button:hover:not(:disabled) {
    color: var(--quote-red);
    background: #fff2f6;
}

.quote-cart-quantity-button:disabled {
    color: #c3c7cd;
    cursor: not-allowed;
}

.quote-cart-quantity-value {
    width: 38px;
    padding: 0;
    border: 0;
    color: var(--quote-ink-deep);
    background: transparent;
    font-size: .83rem;
    font-weight: 700;
    text-align: center;
    pointer-events: none;
    outline: 0;
}

.quote-cart-separator {
    height: 2px;
    margin: 28px 0 25px;
    border-radius: 999px;
    background: var(--quote-red);
}

.quote-cart-form-heading {
    margin-bottom: 18px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.quote-cart-form-heading p {
    margin: 0;
    color: var(--quote-muted);
    font-size: .76rem;
    line-height: 1.45;
}

.quote-cart-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.quote-cart-field label {
    margin: 0 0 7px 2px;
    display: block;
    color: var(--quote-ink);
    font-size: .75rem;
    font-weight: 700;
}

.quote-cart-field label > span:not(.quote-cart-optional) {
    color: var(--quote-red);
}

.quote-cart-optional {
    margin-left: 4px;
    color: #a0a6af;
    font-size: .65rem;
    font-weight: 500;
}

.quote-cart-field .form-control {
    min-height: 48px;
    padding: 11px 14px;
    border: 1px solid #dfe2e7;
    border-radius: 12px;
    color: var(--quote-ink-deep);
    background: #fff;
    font-size: .85rem;
    box-shadow: none;
}

.quote-cart-field .form-control:focus {
    border-color: var(--quote-red);
    box-shadow: 0 0 0 4px rgba(236, 0, 61, .08);
}

.quote-cart-field .form-control.is-invalid,
.quote-cart-form.was-validated .form-control:invalid {
    border-color: var(--quote-red);
    background-image: none;
}

.quote-cart-field .invalid-feedback {
    margin-left: 2px;
    color: #ae1f45;
    font-size: .69rem;
}

.quote-cart-submit-row {
    margin-top: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.quote-cart-submit-row > p {
    margin: 0;
    color: #9ba1aa;
    font-size: .7rem;
}

.quote-cart-submit-row > p span {
    color: var(--quote-red);
}

.quote-cart-submit,
.quote-cart-browse,
.quote-cart-success-close {
    min-height: 50px;
    padding: 13px 24px;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #fff;
    background: var(--quote-red);
    font-size: .82rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 12px 25px rgba(236, 0, 61, .2);
    transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.quote-cart-submit:hover:not(:disabled),
.quote-cart-browse:hover,
.quote-cart-success-close:hover {
    color: #fff;
    background: var(--quote-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(236, 0, 61, .28);
}

.quote-cart-submit:disabled {
    opacity: .58;
    cursor: wait;
}

.quote-cart-submit-spinner {
    width: 17px;
    height: 17px;
    border-width: 2px;
    display: none;
}

.quote-cart-submit.is-busy .quote-cart-submit-spinner {
    display: inline-block;
}

.quote-cart-submit.is-busy > svg {
    display: none;
}

.quote-cart-empty,
.quote-cart-success {
    min-height: 330px;
    padding: 46px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.quote-cart-empty-icon,
.quote-cart-success-icon {
    width: 76px;
    height: 76px;
    margin-bottom: 20px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--quote-red);
    background: #fff1f5;
}

.quote-cart-empty h3,
.quote-cart-success h3 {
    margin: 0;
    color: var(--quote-ink-deep);
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.025em;
}

.quote-cart-empty p,
.quote-cart-success > p:not(.quote-cart-eyebrow):not(.quote-cart-reference) {
    max-width: 480px;
    margin: 11px 0 22px;
    color: var(--quote-muted);
    font-size: .87rem;
    line-height: 1.6;
}

.quote-cart-reference {
    margin: -7px 0 22px;
    padding: 8px 13px;
    border-radius: 999px;
    color: var(--quote-ink);
    background: var(--quote-surface);
    font-size: .76rem;
    font-weight: 700;
}

.quote-cart-notice {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1100;
    width: min(430px, calc(100% - 32px));
    min-height: 66px;
    padding: 12px 12px 12px 15px;
    border: 1px solid rgba(32, 40, 52, .08);
    border-left: 4px solid var(--quote-red);
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 11px;
    color: var(--quote-ink);
    background: #fff;
    box-shadow: 0 20px 55px rgba(20, 28, 38, .2);
}

.quote-cart-notice.is-error {
    border-left-color: #b42318;
}

.quote-cart-notice-icon {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--quote-red);
    background: #fff1f5;
}

.quote-cart-notice.is-error .quote-cart-notice-icon {
    color: #b42318;
    background: #fff1f0;
}

.quote-cart-notice-message {
    min-width: 0;
    flex: 1 1 auto;
    font-size: .84rem;
    font-weight: 700;
    line-height: 1.35;
}

.quote-cart-notice-view {
    flex: 0 0 auto;
    padding: 8px 12px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: var(--quote-red);
    font-size: .7rem;
    font-weight: 700;
}

.quote-cart-notice-close {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #878e98;
    background: transparent;
    font-size: 1.2rem;
    line-height: 1;
}

.quote-cart-notice-close:hover {
    color: var(--quote-ink-deep);
    background: var(--quote-surface);
}

.quote-cart-modal [hidden],
.quote-cart-notice[hidden] {
    display: none !important;
}

.quote-cart-modal button:focus-visible,
.quote-cart-modal a:focus-visible,
.quote-cart-notice button:focus-visible {
    outline: 3px solid rgba(236, 0, 61, .25);
    outline-offset: 3px;
}

.pd4-action-button.js-quote-cart-add[aria-disabled="true"],
.pd4-action-button.js-quote-cart-add.ef-add-cart-disabled {
    opacity: .54;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.pd4-action-button.is-busy {
    opacity: .66;
    cursor: wait;
}

@media (max-width: 767.98px) {
    .quote-cart-modal .modal-dialog {
        width: min(720px, calc(100% - 24px));
        margin-top: 12px;
        margin-bottom: 12px;
    }

    .quote-cart-modal .modal-content {
        max-height: calc(100vh - 24px);
        border-radius: 22px;
    }

    .quote-cart-modal .modal-header {
        padding: 26px 24px 17px;
    }

    .quote-cart-modal .modal-body {
        padding: 0 24px 28px;
    }

    .quote-cart-item {
        grid-template-columns: 112px minmax(0, 1fr);
        gap: 16px;
    }

    .quote-cart-item-quantity {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
    }

    .quote-cart-fields {
        grid-template-columns: 1fr 1fr;
    }

    .quote-cart-field:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 575.98px) {
    .quote-cart-modal .modal-dialog {
        width: calc(100% - 16px);
        margin-top: 8px;
        margin-bottom: 8px;
    }

    .quote-cart-modal .modal-content {
        max-height: calc(100vh - 16px);
        border-radius: 18px;
    }

    .quote-cart-modal .modal-header {
        padding: 23px 18px 15px;
    }

    .quote-cart-modal .modal-body {
        padding: 0 18px 22px;
    }

    .quote-cart-subtitle {
        padding-right: 10px;
    }

    .quote-cart-close {
        width: 38px;
        height: 38px;
    }

    .quote-cart-items {
        max-height: 39vh;
        padding-right: 4px;
    }

    .quote-cart-item {
        padding: 13px;
        grid-template-columns: 92px minmax(0, 1fr);
        gap: 13px;
        border-radius: 15px;
    }

    .quote-cart-item-topline {
        display: block;
    }

    .quote-cart-remove {
        margin-top: 7px;
    }

    .quote-cart-pills {
        margin-top: 9px;
        gap: 5px;
    }

    .quote-cart-pill {
        padding: 5px 8px;
        font-size: .64rem;
    }

    .quote-cart-item-quantity {
        justify-content: space-between;
    }

    .quote-cart-form-heading,
    .quote-cart-submit-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .quote-cart-fields {
        grid-template-columns: 1fr;
    }

    .quote-cart-field:last-child {
        grid-column: auto;
    }

    .quote-cart-submit {
        width: 100%;
    }

    .quote-cart-notice {
        top: 12px;
        right: 12px;
        width: calc(100% - 24px);
        padding-left: 12px;
    }

    .quote-cart-notice-view {
        padding: 7px 9px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .quote-cart-modal *,
    .quote-cart-notice,
    .pd4-action-button.js-quote-cart-add {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
