:root {
    --quote-primary-blue: #0080fd;
    --quote-active-blue: #2495ff;
    --quote-icon-color: #fff;
    --quote-header-button-size: 44px;
    --quote-mobile-reserve: 87px;
}

.header-wrap__meta .quote-header-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: var(--quote-header-button-size);
    height: var(--quote-header-button-size);
    position: relative;
    border-radius: 0;
    color: var(--quote-icon-color);

    &:hover {
        background-color: #0080fd61;
    }
}

.quote-icon {
    margin-left: -8px;
    max-width: 22px;
}


.quote-header-toggle[aria-expanded="true"] {
    background: var(--quote-primary-blue);
}

.quote-header-toggle .quote-icon path {
    fill: none;
}

.quote-header-toggle > span,
.quote-edge-toggle > [data-equipment-cart-counter] {
    position: absolute;
    top: 16px;
    bottom: 0;
    right: 4px;
    display: grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    padding: 0 3px;
    border-radius: 12px;
    background: #ffffff;
    color: #111111;
    border: 1px solid var(--quote-primary-blue);
    font-size: 10px;
}

.quote-edge-toggle > [data-equipment-cart-counter] {
    right: 5px;
    top: auto;
    bottom: 12px;
}

.quote-shell {
    position: fixed;
    z-index: 100010;
    top: 0;
    bottom: 0;
    right: var(--quote-side-offset);
    width: min(var(--quote-panel-max-width), calc(100% - var(--quote-side-offset) - var(--quote-side-button-size)));
    transform: translateX(100%);
    transition: transform var(--quote-panel-slide-duration) ease;
    pointer-events: none;
}

.quote-shell.is-open {
    transform: translateX(0);
}

.quote-edge-toggle {
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    width: max-content;
    min-width: var(--quote-side-button-size);
    height: var(--quote-side-button-size);
    display: flex;
    align-items: center;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: var(--quote-primary-blue);
    color: var(--quote-icon-color);
    cursor: pointer;
    pointer-events: auto;
    z-index: -1;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.quote-edge-toggle > .quote-icon {
    flex: 0 0 22px;
    margin: 0 calc((var(--quote-side-button-size) - 22px) / 2);
}

.quote-shell.is-open .quote-edge-toggle {
    background: var(--quote-active-blue);
}

.quote-edge-toggle__hint {
    order: -1;
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: var(--quote-icon-color);
    opacity: 0;
    transition: max-width var(--quote-hint-animation-duration), padding var(--quote-hint-animation-duration), opacity var(--quote-hint-animation-duration);
    pointer-events: none;
}

.quote-edge-toggle:hover .quote-edge-toggle__hint,
.quote-edge-toggle:focus-visible .quote-edge-toggle__hint {
    opacity: 1;
    max-width: 20em;
    padding: 0 0 0 14px;
    text-transform: uppercase;
}

.quote-panel {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--quote-panel-background);
    border: 0;
    outline: 0;
    pointer-events: auto;
    padding: 0;
    box-sizing: border-box;
}

.quote-panel__body {
    flex: 1;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    padding: 0 16px 12px 20px;
}

.quote-panel[hidden] {
    display: none;
}

.quote-panel__header {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 2;
    min-height: 68px;
    margin: 0;
    padding: 0 20px;
    background: #3f3f3f;
    color: #fff;
    box-sizing: border-box;
}

.quote-panel__header h2 {
    margin: 0;
    font: inherit;
    font-size: 20px;
    font-weight: 400;
}

.quote-panel__close {
    background: transparent;
    border: 0;
    padding: 10px 0 10px 10px;
    font: inherit;
    font-size: 28px;
    color: inherit;
    cursor: pointer;
}

.quote-panel-backdrop {
    position: fixed;
    z-index: 100009;
    inset: 0;
    background: var(--quote-overlay-color);
    opacity: var(--quote-overlay-alpha);
}

.quote-panel-backdrop[hidden] {
    display: none;
}

.quote-panel .container {
    padding: 0;
    width: 100%;
    max-width: none;
}

.quote-panel .cart {
    margin: 0;
    padding: 0;
}

.quote-panel .cart-wrap {
    margin: 0;
}

.quote-panel .cart-wrap__loader:not([hidden]) {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 127px;
    gap: 8px;
    margin: 20px 0;
}

.quote-panel .cart-wrap__list {
    margin: 20px 0 0;
}

.quote-panel .cart-wrap__list .item {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
    min-height: 127px;
    padding: 20px 10px;
    margin: 0 0 22px;
    box-sizing: border-box;
}

.quote-panel .cart-wrap__list .item-meta {
    flex: 1;
    flex-direction: row;
    width: auto;
    min-width: 0;
    margin: 0;
    position: relative;
    top: -4px;
}

.quote-panel .cart-wrap__list .item-meta__image {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
    margin: 0 10px 0 0;
}

.quote-panel .cart-wrap__list .item-meta__content {
    min-width: 0;
    text-align: left;
    overflow-wrap: anywhere;
}

.quote-panel .cart-wrap__list .item-meta__content--title {
    font-size: 17px;
    line-height: 25px;
    margin-bottom: 10px;
}

.quote-panel .cart-wrap__list .item-meta__content--category {
    margin: 0;
}

.quote-panel .item-meta__content--status {
    display: none;
}

.quote-panel .cart-wrap__list .item-actions {
    flex: 0 0 104px;
    flex-direction: row;
    width: 104px;
    max-width: none;
    justify-content: space-between;
    margin: 0;
}

.quote-panel .cart-wrap__list .item-actions__qty {
    margin: 0;
    position: relative;
    left: 1px;
}

.quote-panel .cart-wrap__list .item-actions__qty--button {
    width: 24px;
    height: 25px;
}

.quote-panel .cart-wrap__list [data-cart-qty-input] {
    width: 24px;
    min-width: 0;
    padding: 0;
    text-align: center;
}

.quote-panel .item-actions__remove {
    position: relative;
    left: -3px;
}

.quote-panel .item-actions__remove svg {
    width: 16px;
    height: 18px;
}

.quote-panel .item-actions__remove path {
    fill: #ff3333;
}

.quote-panel .cart-wrap__pay {
    flex-direction: row;
    min-height: 121px;
    padding: 10px;
    margin: 0;
    box-sizing: border-box;
}

.quote-panel .cart-wrap__pay--icon {
    flex: 0 0 80px;
}

.quote-panel .cart-wrap__pay--content {
    min-width: 0;
    margin: 0;
}

.quote-panel .cart-wrap__pay--content-title {
    margin-bottom: 8px;
}

.quote-panel .cart-wrap__pay--content-text {
    color: #000;
}

.quote-panel .checkout {
    padding: 0;
    margin: 20px 0 0;
}

.quote-panel button,
.quote-panel input:not([type="radio"]),
.quote-panel textarea,
.quote-panel select,
.quote-panel .codedropz-upload-handler,
.quote-panel .dnd-upload-status .dnd-upload-details .dnd-progress-bar {
    border-radius: 0;
}

.quote-panel .checkout-wrap {
    margin: 0;
    display: block;
}

.quote-panel .checkout-wrap .row,
.quote-panel .checkout-wrap .row-second {
    width: 100%;
    max-width: none;
    margin: 0 0 10px;
}

.quote-panel input:not([type="checkbox"], [type="radio"], [type="submit"]),
.quote-panel textarea,
.quote-panel select {
    max-width: 100%;
    box-sizing: border-box;
}

.quote-panel .checkout-wrap .row-flex p {
    display: block;
}

.quote-panel .checkout-wrap .row-flex .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.quote-panel .wpcf7-form-control-wrap {
    min-width: 0;
}

.quote-panel .checkout .wpcf7-text,
.quote-panel .checkout .wpcf7-textarea,
.quote-panel .checkout select {
    border: 1px solid transparent;
    padding: 19.5px 16px 17.5px;
    font-size: 15px;
    line-height: 16px;
}

.quote-panel .checkout .wpcf7-text {
    height: 55px;
}

.quote-panel .checkout .wpcf7-textarea {
    padding-top: 19px;
    height: 140px;
}

.quote-panel .checkout .wpcf7-text:focus,
.quote-panel .checkout .wpcf7-textarea:focus,
.quote-panel .checkout select:focus {
    border-color: var(--quote-primary-blue);
}

.quote-panel .checkout .wpcf7-not-valid {
    border-color: #dc3232;
}

.quote-panel .custom-privacy .wpcf7-list-item-label {
    line-height: 18px;
}

.quote-panel .custom-privacy .wpcf7-list-item-label::after {
    border-radius: 0;
}

.quote-panel .cf7-recaptcha-consent {
    margin-top: 17px;
    font-size: 14.5px;
    line-height: 18px;
    color: #666;
}

.quote-panel .cf7-recaptcha-consent label {
    gap: 5px;
    margin-left: -3px;
}

.quote-panel .cf7-recaptcha-consent input[type="checkbox"] {
    appearance: none;
    flex-basis: 22px;
    width: 22px;
    height: 22px;
    margin: 0;
    padding: 0;
    border: 1px solid #000;
    background: transparent;
}

.quote-panel .cf7-recaptcha-consent input[type="checkbox"]:checked {
    background: #424242 url("../img/main/check.svg") center no-repeat;
}

.quote-panel .cf7-recaptcha-consent a {
    color: inherit;
}

.quote-panel .checkout-wrap .row .wpcf7-submit {
    display: block;
    width: max-content;
    max-width: 100%;
    margin: 44px auto 0;
    padding: 17px 35.5px;
}

.quote-panel .checkout-wrap .row-second {
    margin-bottom: 8px;
}

.quote-panel .checkout .wpcf7-spinner {
    display: block;
    margin: 0 auto;
}

.quote-panel form:not(.submitting) .wpcf7-spinner {
    height: 0;
}

.quote-panel .cart-wrap__empty h2,
.quote-panel .cart-success-message h2 {
    font-size: 20px;
    overflow-wrap: anywhere;
}

.quote-panel__continue {
    margin-top: 8px;
    text-align: center;
}

.quote-panel__continue button {
    background: none;
    border: 0;
    padding: 5px 8px 3px;
    color: var(--quote-primary-blue);
    cursor: pointer;
    font: inherit;
}

.quote-panel__continue p {
    margin: 0;
    font-size: 12px;
}

.quote-shell :focus-visible {
    outline: 2px solid var(--quote-primary-blue);
    outline-offset: 2px;
}

.quote-mobile .footer {
    padding-bottom: calc(max(var(--quote-mobile-reserve), var(--quote-mobile-button-size) + var(--quote-mobile-button-offset) + 16px) + env(safe-area-inset-bottom, 0px));
}

.quote-mobile .quote-shell {
    inset: 0;
    width: 100%;
    transform: none;
    transition: none;
}

.quote-mobile .quote-panel {
    border: 0;
    transform: translateY(100%);
    transition: transform var(--quote-panel-slide-duration) ease;
    padding-bottom: calc(max(var(--quote-mobile-reserve), var(--quote-mobile-button-size) + var(--quote-mobile-button-offset) + 16px) + env(safe-area-inset-bottom, 0px));
}

.quote-mobile .quote-shell.is-open .quote-panel {
    transform: translateY(0);
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}

.quote-mobile .quote-shell.is-open .quote-edge-toggle,
body:has(> .quote-shell.is-open) .cky-btn-revisit-wrapper {
    display: none;
}

.quote-mobile .quote-edge-toggle {
    position: fixed;
    top: auto;
    bottom: calc(var(--quote-mobile-button-offset) + env(safe-area-inset-bottom, 0px));
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: var(--quote-mobile-button-size);
    height: var(--quote-mobile-button-size);
    min-width: 0;
    border-radius: 0;
    z-index: 3;
}

.quote-mobile .quote-edge-toggle__hint {
    display: none;
}

.quote-mobile .quote-edge-toggle > .quote-icon {
    margin: 0 auto;
}

.quote-panel__body::-webkit-scrollbar {
    width: 4px;
}

.quote-panel__body::-webkit-scrollbar-thumb {
    background: #d3d3d3;
    border-radius: 0;
}

@media (max-width: 420px) {
    .quote-panel .cart-wrap__list .item-meta__image {
        flex-basis: 60px;
        width: 60px;
        height: 60px;
    }

    .quote-panel .cart-wrap__list .item-meta__content--title {
        font-size: 15px;
        line-height: 21px;
    }

    .quote-panel .cart-wrap__pay--icon {
        flex-basis: 60px;
    }

    .quote-panel .cart-wrap__pay--icon svg {
        width: 60px;
        height: 60px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .quote-shell,
    .quote-mobile .quote-panel {
        transition-duration: min(140ms, var(--quote-panel-slide-duration));
    }
}
