:is(.kingmi-quote-nav-count, .kingmi-quote-feedback, .kingmi-quote-feedback a)[hidden] {
    display: none;
}

.kingmi-demo-headlinks .kingmi-quote-nav {
    padding-inline: 12px;
    border-color: #d9aa4e;
    background: #f5c563;
    color: #1a202b;
}

.kingmi-demo-headlinks .kingmi-quote-nav:is(:hover, [aria-current="page"]) {
    background: #ffda88;
}

.kingmi-quote-nav-count {
    min-width: 17px;
    padding: 2px 4px;
    border-radius: 10px;
    background: #1a202b;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
}

.kingmi-demo-headlinks .kingmi-quote-cart-icon {
    display: none;
}

@media (max-width: 960px) {
    .kingmi-demo-sticky-actions .kingmi-quote-nav-label {
        display: none;
    }
}

@media (min-width: 671px) and (max-width: 900px) {
    .kingmi-demo-headrow {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px 16px;
        min-height: 0;
        padding-block: 10px 12px;
    }

    .kingmi-demo-headrow .kingmi-demo-search {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .kingmi-demo-headrow .kingmi-demo-headlinks {
        grid-column: 2;
        grid-row: 1;
    }
}

@media (max-width: 670px) {
    .kingmi-demo-headlinks .kingmi-quote-nav {
        gap: 4px;
        min-width: 38px;
        padding-inline: 6px;
    }
}

@media (max-width: 480px) {
    .kingmi-quote-nav-label,
    .kingmi-demo-headlinks .kingmi-quote-cart-label {
        display: none;
    }

    .kingmi-demo-headlinks .kingmi-demo-cart {
        gap: 4px;
        min-width: 38px;
        padding-inline: 6px;
    }

    .kingmi-demo-headlinks .kingmi-quote-cart-icon {
        display: inline-block;
    }
}

.kingmi-quote-add {
    margin: 0;
}

.kingmi-quote-add-button,
.kingmi-quote-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    padding: 8px 13px;
    border: 1px solid #dbbd80;
    border-radius: 7px;
    background: #fff8e8;
    color: #503605;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    text-decoration: none;
    white-space: normal;
}

:is(.kingmi-quote-add-button, .kingmi-quote-button):hover {
    border-color: #a97825;
    background: #fcecc7;
    color: #3b2805;
    text-decoration: none;
}

:is(.kingmi-quote-add-button, .kingmi-quote-button):disabled {
    opacity: .65;
    cursor: wait;
}

.km-shelf-card .kingmi-quote-add {
    margin: 0 8px 8px;
}

:is(.km-shelf-card, .km-category-card, .product-item-details) .kingmi-quote-add-button {
    width: 100%;
    min-height: 38px;
    font-size: clamp(12px, 1vw, 14px);
}

.km-category-card .kingmi-quote-add {
    margin-top: auto;
    padding-top: 4px;
}

.product-item-details .kingmi-quote-add {
    margin-top: 6px;
}

.kingmi-product-price-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px 14px;
    min-width: 0;
}

.kingmi-product-price-main {
    display: grid;
    flex: 1 1 235px;
    gap: 7px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.kingmi-product-layout--v2 .kingmi-product-price-main > .kingmi-product-vat {
    margin-top: 0;
}

.kingmi-product-price-actions > .kingmi-quote-add--detail {
    flex: 0 0 auto;
    max-width: 100%;
}

.kingmi-quote-add--detail .kingmi-quote-add-button {
    max-width: 100%;
    min-height: 44px;
    padding-inline: 16px;
    background: #faedcb;
    font-size: 15px;
}

.kingmi-quote-add--detail .kingmi-quote-add-button:hover {
    background: #f6e4b6;
}

.kingmi-quote-feedback {
    position: fixed;
    z-index: 1060;
    bottom: 20px;
    left: 50%;
    display: flex;
    align-items: center;
    gap: 12px;
    width: max-content;
    max-width: min(510px, calc(100% - 24px));
    padding: 9px 11px 9px 15px;
    transform: translateX(-50%);
    border: 1px solid #b88a3d;
    border-radius: 10px;
    background: #1a202b;
    box-shadow: 0 8px 30px #12192635;
    color: #fff;
    font-size: 14px;
}

.kingmi-quote-feedback p {
    min-width: 0;
    margin: 0;
}

.kingmi-quote-feedback a {
    flex-shrink: 0;
    color: #ffda88;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.kingmi-quote-feedback button {
    align-self: center;
    width: 32px;
    min-width: 32px;
    min-height: 32px;
    padding: 0;
    border: 1px solid #ffffff45;
    border-radius: 6px;
    background: transparent;
    color: #fff;
    font-size: 22px;
    line-height: 1;
}

.kingmi-quote-feedback--error {
    border-color: #ef937a;
}

.kingmi-quote.container-fluid {
    --quote-ink: #182234;
    --quote-muted: #505b6c;
    --quote-line: #e1ddd4;
    width: 100%;
    max-width: var(--kingmi-demo-max-width, 1320px);
    margin-inline: auto;
    padding: clamp(15px, 2.3vw, 28px) var(--kingmi-demo-gutter, 16px) clamp(24px, 4vw, 48px);
    color: var(--quote-ink);
}

.kingmi-quote__heading {
    margin-bottom: 16px;
    padding: clamp(16px, 3vw, 30px);
    border: 1px solid #e7d7b5;
    border-left: 4px solid #dba944;
    border-radius: 12px;
    background: linear-gradient(105deg, #fff6df, #fffdf8);
}

.kingmi-quote__heading h1 {
    margin: 0 0 6px;
    color: var(--quote-ink);
    font-size: clamp(27px, 4vw, 39px);
    font-weight: 800;
    line-height: 1.16;
}

.kingmi-quote__heading p {
    margin: 0;
    color: var(--quote-muted);
}

.kingmi-quote__notice {
    margin: 0 0 16px;
    padding: 12px 16px;
    border: 1px solid #b8d6bd;
    border-radius: 9px;
    background: #edf8ee;
    color: #214d35;
}

.kingmi-quote__notice--error {
    border-color: #e8b9aa;
    background: #fff1ed;
    color: #862f1e;
}

.kingmi-quote__notice p {
    margin: 0;
}

.kingmi-quote__notice p + p {
    margin-top: 4px;
}

.kingmi-quote__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(12px, 2vw, 20px);
    margin: 0;
}

.kingmi-quote__panel {
    min-width: 0;
    padding: clamp(14px, 2vw, 23px);
    border: 1px solid var(--quote-line);
    border-radius: 12px;
    background: #fff;
}

.kingmi-quote__panel h2 {
    margin: 0 0 15px;
    padding-bottom: 11px;
    border-bottom: 1px solid var(--quote-line);
    color: var(--quote-ink);
    font-size: clamp(18px, 2vw, 21px);
    font-weight: 800;
}

.kingmi-quote__panel h2 span {
    color: var(--quote-muted);
    font-size: .78em;
}

.kingmi-quote__items {
    display: grid;
    gap: 8px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}

.kingmi-quote__item {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 70px auto;
    align-items: center;
    gap: 12px;
    padding: 9px;
    border: 1px solid #e8e4dc;
    border-radius: 9px;
}

.kingmi-quote__image {
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    border-radius: 6px;
    background: #f6f5f2;
    color: #71521a;
    font-size: 24px;
    overflow: hidden;
}

.kingmi-quote__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.kingmi-quote__item-info {
    display: grid;
    justify-items: start;
    gap: 5px;
}

.kingmi-quote__item-name {
    color: var(--quote-ink);
    font-weight: 700;
    overflow-wrap: anywhere;
}

.kingmi-quote__dpi {
    padding: 2px 6px;
    border-radius: 4px;
    background: #edf0f6;
    color: #2b476a;
    font-size: 12px;
    font-weight: 700;
}

.kingmi-quote__quantity, .kingmi-quote__field {
    display: grid;
    gap: 5px;
    min-width: 0;
    margin: 0;
    color: var(--quote-ink);
    font-size: 14px;
    font-weight: 700;
}

.kingmi-quote__quantity {
    font-size: 12px;
}

.kingmi-quote :is(input:not([type="hidden"]), textarea) {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 40px;
    margin: 0;
    padding: 8px;
    border: 1px solid #bfc2c8;
    border-radius: 6px;
    background: #fff;
    color: var(--quote-ink);
    font-size: 16px;
    font-weight: 400;
}

.kingmi-quote textarea {
    resize: vertical;
}

.kingmi-quote__remove {
    align-self: end;
    min-height: 40px;
    padding: 4px 6px;
    border: 0;
    border-radius: 6px;
    background: #fff;
    color: #8a3020;
    font-size: 13px;
    font-weight: 650;
    white-space: nowrap;
}

.kingmi-quote__remove:hover {
    background: #fff1ed;
}

.kingmi-quote__list-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-between;
}

.kingmi-quote__fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.kingmi-quote__field--full {
    grid-column: 1 / -1;
}

.kingmi-quote__field span span {
    color: #903c23;
}

.kingmi-quote-button--primary {
    border-color: #c59a43;
    background: #f5c563;
    color: #1a202b;
}

.kingmi-quote-button--primary:hover {
    background: #ffda88;
}

.kingmi-quote__submit {
    width: 100%;
    margin-top: 15px;
}

.kingmi-quote__empty {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: clamp(20px, 4vw, 38px) 12px;
    border: 1px dashed #d8c49a;
    border-radius: 8px;
    background: #fffdf7;
    color: var(--quote-muted);
    text-align: center;
}

.kingmi-quote__empty i {
    color: #84601f;
    font-size: 28px;
}

.kingmi-quote__empty p {
    max-width: 390px;
    margin: 0;
}

:is(.kingmi-quote, .kingmi-quote-add) :is(a, button, input, textarea):focus-visible {
    outline: 2px solid #816024;
    outline-offset: 2px;
}

@media (max-width: 800px) {
    .kingmi-quote__layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 490px) {
    .kingmi-quote__item {
        grid-template-columns: 52px minmax(0, 1fr) auto;
        gap: 8px;
    }

    .kingmi-quote__image {
        width: 52px;
        height: 52px;
    }

    .kingmi-quote__item-info {
        grid-column: 2 / -1;
    }

    .kingmi-quote__quantity {
        grid-column: 2;
        max-width: 85px;
    }

    .kingmi-quote__remove {
        grid-column: 3;
    }

    .kingmi-quote__fields {
        grid-template-columns: 1fr;
    }
}
