.stitch-quote {
    --q: #3a1112;
    --ql: #7e413a;
    --gold: #f6be4e;
    max-width: 980px;
    margin: 24px auto;
    padding: 20px;
    border-radius: 10px;
    background: #3a1112;
    color: #fff;
    font-family: Arial, sans-serif
}

.stitch-quote * {
    box-sizing: border-box
}

.stitch-quote__head,
.stitch-quote__panel header {
    display: flex;
    align-items: center;
    gap: 12px
}

.stitch-quote__head {
    padding: 0 6px 14px
}

.stitch-quote h2,
.stitch-quote h3 {
    margin: 0;
    text-transform: uppercase;
    font-weight: 500;
}

.stitch-quote h2 {
    font-size: 18px
}

.stitch-quote h3 {
    font-size: 14px
}

.stitch-quote p {
    margin: 3px 0;
    color: #d4b9b5;
    font-size: 12px
}

.stitch-quote__step {
    display: grid;
    place-items: center;
    flex: 0 0 29px;
    width: 29px;
    height: 29px;
    border-radius: 50%;
    background: var(--gold);
    color: #381112;
    font-weight: 800;
    font-size: 16px
}

.stitch-quote__add,
.stitch-quote__submit {
    border: 0;
    border-radius: 4px;
    background: #f7ca69;
    color: #281011;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer
}

.stitch-quote__add {
    margin-left: auto;
    padding: 13px 19px;
    font-size: 12px;
    letter-spacing: 1px;
}

.stitch-quote__items {
    overflow: hidden;
    border: 1px solid var(--ql);
    border-radius: 5px
}

.stitch-quote-item {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr) auto 36px;
    align-items: center;
    gap: 12px;
    min-height: 70px;
    padding: 7px 12px;
    border-bottom: 1px solid #63302e
}

.stitch-quote-item:last-child {
    border: 0
}

.stitch-quote-item img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    border-radius: 4px;
    background: #fff
}

.stitch-quote-item strong,
.stitch-quote-item small {
    display: block
}

.stitch-quote-item strong {
    font-size: 14px
}

.stitch-quote-item small {
    margin-top: 4px;
    color: #d6bdb8;
    font-size: 11px
}

.stitch-quote-item__qty {
    display: flex;
    align-items: center;
    border: 1px solid var(--ql);
    border-radius: 4px
}

.stitch-quote-item__qty button {
    width: 33px;
    height: 33px;
    border: 0;
    background: transparent;
    color: #f9d17d;
    font-size: 19px;
    cursor: pointer
}

.stitch-quote-item__qty b {
    min-width: 32px;
    text-align: center;
    font-size: 13px
}

.stitch-quote-item__remove {
    border: 0;
    background: transparent;
    color: #f8d384;
    cursor: pointer;
    font-size: 0
}

.stitch-quote-item__remove:after {
    content: '🗑';
    font-size: 18px
}

.stitch-quote__another {
    width: 100%;
    margin-top: 9px;
    padding: 10px;
    border: 1px dashed #a35a47;
    border-radius: 5px;
    background: transparent;
    color: #f4cb7c;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer
}

.stitch-quote__grid {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 10px;
    margin-top: 10px
}

.stitch-quote__panel {
    padding: 14px;
    border: 1px solid var(--ql);
    border-radius: 6px;
    background: #351011
}

.stitch-quote__upload {
    position: relative;
    display: grid;
    place-items: center;
    gap: 8px;
    min-height: 168px;
    margin-top: 12px;
    border: 1px dashed #ca925d;
    border-radius: 5px;
    text-align: center;
    cursor: pointer
}

.stitch-quote__upload input {
    position: absolute;
    opacity: 0;
    inset: 0;
    cursor: pointer
}

.stitch-quote__upload-icon {
    font-size: 39px;
    color: #f5cc7c
}

.stitch-quote__upload strong {
    font-size: 13px
}

.stitch-quote__upload small {
    color: #d1b7b1;
    line-height: 1.8
}

.stitch-quote__upload.is-uploaded {
    border-style: solid;
    border-color: #f6be4e;
    background: #51271d
}

.stitch-quote__upload.is-uploaded .stitch-quote__upload-icon {
    font-size: 30px
}

.stitch-quote__label {
    margin-top: 14px !important;
    color: #fff !important;
    font-size: 12px !important
}

.stitch-quote__positions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    margin-top: 8px
}

.stitch-quote__positions button {
    min-height: 58px;
    border: 1px solid var(--ql);
    border-radius: 4px;
    background: transparent;
    color: #e7cec7;
    font-size: 11px;
    cursor: pointer
}

.stitch-quote__positions button span {
    display: block;
    margin-bottom: 4px;
    font-size: 18px
}

.stitch-quote__positions button.is-selected {
    border-color: var(--gold);
    background: #5a2b1d;
    color: #f8d487
}

.stitch-quote__names {
    margin-bottom: 7px !important
}

.stitch-quote__radio {
    margin-right: 16px;
    color: #fff;
    font-size: 11px
}

.stitch-quote__radio input {
    accent-color: var(--gold)
}

.stitch-quote__notes,
.stitch-quote__customer {
    margin-top: 10px
}

.stitch-quote__notes textarea {
    width: 100%;
    height: 54px;
    margin-top: 12px;
    padding: 12px;
    border: 1px solid var(--ql);
    border-radius: 4px;
    background: #321011;
    color: #fff;
    font: inherit;
    font-size: 12px;
    resize: vertical
}

.stitch-quote__customer-fields {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 13px
}

.stitch-quote__customer-fields label {
    display: grid;
    gap: 6px;
    color: #fff;
    font-size: 12px;
    font-weight: 700
}

.stitch-quote__customer-fields input {
    width: 100%;
    height: 38px;
    padding: 8px 10px;
    border: 1px solid var(--ql);
    border-radius: 4px;
    background: #321011;
    color: #fff;
    font: inherit
}

.stitch-quote__customer-fields input:focus,
.stitch-quote__notes textarea:focus {
    outline: 2px solid var(--gold);
    outline-offset: 1px
}

.stitch-quote__submit {
    width: 100%;
    margin-top: 10px;
    padding: 16px;
    font-size: 15px
}

.stitch-quote__submit span {
    margin-left: 25px;
    font-size: 23px
}

.stitch-quote__message {
    min-height: 18px;
    text-align: center;
    color: #f8d384 !important
}

.stitch-quote__empty {
    padding: 18px !important;
    text-align: center
}

.stitch-quote__loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    grid-column: 1 / -1
}

.stitch-quote__loading span {
    width: 18px;
    height: 18px;
    border: 2px solid #ead7ce;
    border-top-color: #a94d25;
    border-radius: 50%;
    animation: stitchQuoteSpin .75s linear infinite
}

@keyframes stitchQuoteSpin {
    to {
        transform: rotate(360deg)
    }
}

.stitch-quote-modal[hidden] {
    display: none
}

.stitch-quote-modal {
    position: fixed;
    z-index: 99999;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 18px
}

.stitch-quote-modal__shade {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .7)
}

.stitch-quote-modal__dialog {
    position: relative;
    width: min(720px, 100%);
    max-height: 85vh;
    overflow: auto;
    padding: 26px;
    border-radius: 10px;
    background: #fff7f2;
    color: #2d1515
}

.stitch-quote-modal__dialog h2 {
    margin: 0
}

.stitch-quote-modal__dialog p {
    color: #765d58
}

.stitch-quote-modal__close {
    position: absolute;
    top: 8px;
    right: 12px;
    border: 0;
    background: transparent;
    font-size: 28px;
    cursor: pointer
}

.stitch-quote-modal input {
    width: 100%;
    padding: 12px;
    border: 1px solid #d9bdb4;
    border-radius: 5px
}

.stitch-quote-modal__products {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 15px
}

.stitch-quote-product {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px;
    border: 1px solid #ead7ce;
    border-radius: 6px;
    background: #fff;
    text-align: left
}

.stitch-quote-product img {
    width: 57px;
    height: 57px;
    object-fit: contain
}

.stitch-quote-product span {
    display: grid;
    gap: 4px;
    flex: 1
}

.stitch-quote-product small {
    color: #806964
}

.stitch-quote-product b {
    color: #a94d25;
    font-size: 25px
}

.stitch-quote-product button {
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #f6be4e;
    color: #321112;
    font-size: 24px;
    font-weight: 800;
    cursor: pointer
}

.stitch-quote-product__variation {
    width: 100%;
    margin-top: 4px;
    padding: 8px;
    border: 1px solid #d9bdb4;
    border-radius: 4px;
    background: #fff;
    color: #321112;
    font: inherit;
    font-size: 12px
}

body.stitch-quote-modal-open {
    overflow: hidden
}

.stitch-quote-thanks[hidden] {
    display: none
}

.stitch-quote-thanks {
    position: fixed;
    z-index: 100000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 18px
}

.stitch-quote-thanks__shade {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .72)
}

.stitch-quote-thanks__dialog {
    position: relative;
    width: min(420px, 100%);
    padding: 34px 28px 28px;
    border: 1px solid #7e413a;
    border-radius: 10px;
    background: #3a1112;
    color: #fff;
    text-align: center;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .38)
}

.stitch-quote-thanks__close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 30px;
    height: 30px;
    border: 0;
    background: transparent;
    color: #f9d17d;
    font-size: 28px;
    line-height: 1;
    cursor: pointer
}

.stitch-quote-thanks__icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #f6be4e;
    color: #351011;
    font-size: 30px;
    font-weight: 800
}

.stitch-quote-thanks h2 {
    margin: 0 0 10px;
    text-transform: uppercase;
    font-size: 24px
}

.stitch-quote-thanks p {
    margin: 0 auto 22px;
    max-width: 310px;
    color: #e5c9c2;
    font-size: 14px;
    line-height: 1.6
}

.stitch-quote-thanks__button {
    min-width: 140px;
    padding: 12px 24px;
    border: 0;
    border-radius: 4px;
    background: #f7ca69;
    color: #281011;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer
}

@media(max-width:620px) {
    .stitch-quote {
        padding: 10px
    }

    .stitch-quote__add {
        padding: 11px;
        font-size: 10px
    }

    .stitch-quote__grid,
    .stitch-quote__customer-fields {
        grid-template-columns: 1fr
    }

    .stitch-quote-modal__products {
        grid-template-columns: 1fr
    }

    .stitch-quote__positions {
        grid-template-columns: repeat(2, 1fr)
    }
}
