.hcs-rm {
    width: 100%;
    color: #20242a;
}

.hcs-rm * {
    box-sizing: border-box;
}

.hcs-rm__intro {
    margin-bottom: 24px;
}

.hcs-rm__intro h2 {
    margin: 0 0 10px;
    font-size: 28px;
    line-height: 1.2;
}

.hcs-rm__intro p {
    margin: 0;
    color: #59616d;
    line-height: 1.55;
}

.hcs-rm__lookup,
.hcs-rm__request {
    display: grid;
    gap: 18px;
}

.hcs-rm__lookup {
    margin-bottom: 28px;
}

.hcs-rm__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.hcs-rm label {
    display: grid;
    gap: 7px;
    font-weight: 600;
}

.hcs-rm label span,
.hcs-rm__field span {
    font-size: 14px;
}

.hcs-rm input[type="text"],
.hcs-rm input[type="email"],
.hcs-rm select,
.hcs-rm textarea {
    width: 100%;
    min-height: 44px;
    border: 1px solid #d8dde5;
    border-radius: 6px;
    padding: 10px 12px;
    background: #fff;
    color: #20242a;
    font: inherit;
}

.hcs-rm textarea {
    min-height: 96px;
    resize: vertical;
}

.hcs-rm button {
    justify-self: start;
    min-height: 44px;
    border: 0;
    border-radius: 6px;
    padding: 0 18px;
    background: var(--hcs-rm-button-color, #1d5c57);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.hcs-rm button:disabled {
    opacity: .6;
    cursor: wait;
}

.hcs-rm__summary {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    padding: 14px 16px;
    border: 1px solid #d8dde5;
    border-radius: 6px;
    background: #f7f9fb;
}

.hcs-rm__product {
    display: grid;
    gap: 14px;
    margin-bottom: 12px;
    border: 1px solid #d8dde5;
    border-radius: 6px;
    padding: 14px;
    background: #fff;
}

.hcs-rm__product-main {
    grid-template-columns: auto 56px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.hcs-rm__product-main img,
.hcs-rm__placeholder {
    width: 56px;
    height: 56px;
    border-radius: 6px;
    object-fit: cover;
    background: #edf1f5;
}

.hcs-rm__product-main strong,
.hcs-rm__product-main small {
    display: block;
}

.hcs-rm__product-main small {
    margin-top: 3px;
    color: #697380;
    font-weight: 400;
}

.hcs-rm__product-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding-left: 88px;
}

.hcs-rm__product-options[hidden],
.hcs-rm__request[hidden] {
    display: none;
}

.hcs-rm__field {
    grid-column: 1 / -1;
}

.hcs-rm__privacy {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    font-weight: 400;
    line-height: 1.5;
}

.hcs-rm__privacy input {
    margin-top: 4px;
}

.hcs-rm__message {
    margin-top: 18px;
    min-height: 22px;
    font-weight: 600;
}

.hcs-rm__message--info {
    color: #315f8f;
}

.hcs-rm__message--success {
    color: var(--hcs-rm-success-color, #1d6b45);
}

.hcs-rm__message--error {
    color: #b42318;
}

.hcs-rm-notice {
    padding: 14px 16px;
    border-left: 4px solid #b42318;
    background: #fff2f0;
}

@media (max-width: 700px) {
    .hcs-rm__grid,
    .hcs-rm__product-options {
        grid-template-columns: 1fr;
    }

    .hcs-rm__product-options {
        padding-left: 0;
    }

    .hcs-rm__product-main {
        grid-template-columns: auto 48px minmax(0, 1fr);
    }

    .hcs-rm__product-main img,
    .hcs-rm__placeholder {
        width: 48px;
        height: 48px;
    }
}
