
.hmns-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    min-width: 4.5rem;
    height: 0.9rem;
    border-radius: var(--button-radius);
}
@media screen and (min-width: 768px) {
    .hmns-btn {
        min-width: 7rem;
        height: 1.25rem;
        border-radius: var(--button-radius);
    }
}
@media screen and (min-width: 1280px) {
    .hmns-btn {
        min-width: 10.15rem;
        height: 1.65rem;
        border-radius: var(--button-radius);
    }
}
.hmns-btn-primary {
    background-color: var(--c-red);
    color: #fff;
    font-size: 0.65rem;
    font-weight: bold;
    border: none;
}
@media screen and (min-width: 768px) {
    .hmns-btn-primary {
        font-size: 0.85rem;
    }
}
@media screen and (min-width: 1280px) {
    .hmns-btn-primary {
        font-size: 1.2rem;
    }
}
.hmns input,
.hmns textarea {
    background-color: #fff;
    color: #000;
    font-size: 0.6rem;
    padding: 0.25rem 0.6rem;
    line-height: 1;
}
@media screen and (min-width: 1280px) {
    .hmns input,
    .hmns textarea {
        font-size: 0.9rem;
    }
}
.hmns input[type=checkbox] {
    display: none;
}
.hmns input[type=checkbox]:checked + .hmns-checkbox {
    background-color: var(--c-red);
    border-color: var(--c-red);
}
.hmns-checkbox {
    width: 0.3rem;
    height: 0.3rem;
    border: 0.1rem solid var(--c-border);
    display: inline-flex;
    flex-shrink: 0;
}
@media screen and (min-width: 1280px) {
    .hmns-checkbox {
        width: 0.7rem;
        height: 0.7rem;
    }
}
.hmns-mobile-form.mx-auto {
    margin: 0 auto;
    max-width: 620px;
    padding: 32px;
    background-color: var(--c-bg-light);
    border-radius: 24px;
}
.hmns-mobile-form form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
}
@media screen and (min-width: 1280px) {
    .hmns-mobile-form form {
        gap: 0.75rem;
    }
}
.hmns-mobile-form img[alt=icon] {
    width: 1.3rem;
    height: 1.05rem;
}
.hmns-mobile-form .hmns-btn {
    padding: 0.375rem 1rem;
    align-self: flex-start;
}
.hmns-inline-form {
    background-color: var(--c-bg-light);
    margin: 64px auto;
    padding: 32px 0;
}
.hmns-mobile-form .hmns-form-checkboxes {
    font-size: 0.45rem;
}
.hmns-mobile-form .hmns-form-checkboxes label {
    display: flex;
    gap: 0.25rem;
}
@media screen and (min-width: 1280px) {
    .hmns-mobile-form .hmns-form-checkboxes {
        font-size: 0.75rem;
    }
}
.input-photos__input, .input-docs__input {
    display: none;
}
.input-docs__item {color:#9aa2ae;font-size:0.8em;line-height:2em;}
.input-docs__item_title {width:300px;}
.input-docs__item_remove {margin-left:20px;cursor:pointer;color:#E54137;}
.input-docs__item_remove:hover {margin-left:20px;cursor:pointer;color:#D01C11;}
.errors {font-size:0.9em;color:red;margin: 0px 0 0px 0px;font-weight:600;}
.success {font-size:0.9em;margin: 0px 0 20px 0px;display:none;}
.hmns-inline-form .hmns-captcha {margin: 0 0 20px;}
.hmns-inline-form .hmns-captcha__label {display:block;margin:0 0 8px;font-size:0.8rem;}
.hmns-inline-form .hmns-captcha__fields {display:flex;align-items:center;gap:12px;flex-wrap:wrap;}
.hmns-inline-form .hmns-captcha__image {display:block;width:180px;height:40px;object-fit:contain;}
.hmns-inline-form .hmns-captcha__input.hmns-field-text__input {width:180px;margin:0;}
.field-checkbox__name-text {color:#9aa2ae;font-size:0.9em;}
.product-row-form{
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-bottom:10px;
    margin:10px 0 10px 0;
}
.product-del-form {padding-right:0!important; text-align:right!important;}
.order_title {margin:20px 0;font-weight: 500;}
.product_total {margin-bottom:20px;text-align:right;font-weight: 500;}
.product_name {font-size:0.8em;}
.quantity_block {margin-top:-6px;display: inline-flex;}
.quantity {width:20px;border:0;text-align:center;outline:none;}
.quantity_block .min, .quantity_block .plus {margin:0 8px;cursor:pointer;font-size:1.2em;}
.quantity_block .min:hover, .quantity_block .plus:hover {color:#E54137;}

.hmns .hmns-btn-primary {
    line-height: 0;
    background-color: var(--c-red);
    color: #fff;
}
.hmns-inline-form .hmns-field-actions .hmns-btn-primary {
    height: auto;
    padding: 10px 12px;
    line-height: 1.2;
    font-size: 14px;
}
@media screen and (min-width: 768px) {
    .hmns-inline-form .hmns-field-actions .hmns-btn-primary {
        font-size: 16px;
    }
}
@media screen and (min-width: 1280px) {
    .hmns-inline-form .hmns-field-actions .hmns-btn-primary {
        font-size: 18px;
    }
}
.hmns input.form-control, .hmns textarea.form-control {
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
    height: unset;
    width: 100%;
}
.hmns input.form-control + .hmns input.form-control,
.hmns input.form-control + .hmns textarea.form-control,
.hmns textarea.form-control + .hmns input.form-control,
.hmns textarea.form-control + .hmns textarea.form-control {
    margin-top: 0;
}
.hmns input.form-control:not([readonly]):not([disabled]):hover,
.hmns input.form-control:not([readonly]):not([disabled]):focus,
.hmns input.form-control:not([readonly]):not([disabled]):active,
.hmns textarea.form-control:not([readonly]):not([disabled]):hover,
.hmns textarea.form-control:not([readonly]):not([disabled]):focus,
.hmns textarea.form-control:not([readonly]):not([disabled]):active {
    background: transparent;
    box-shadow: none;
    outline: none;
    border: none;
    border-bottom: 1px solid var(--c-font);
}
.hmns input.form-control, .hmns textarea.form-control {
    padding: 0.2rem 0.6rem;
    font-size: 0.8rem;
    line-height: 1.2rem;
    border-bottom: 1px solid var(--c-font);
    background-color: transparent;
    color: var(--c-font);
}
.hmns textarea.form-control {
    min-height: 120px;
    resize: vertical;
}
.hmns .checkbox-container {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.4rem;
    cursor: pointer;
    line-height: 1.2;
}
.hmns .checkbox {
    width: 1rem;
    height: 1rem;
    border: 0.1rem solid var(--c-border);
    display: inline-flex;
    flex-shrink: 0;
}
@media screen and (min-width: 1280px) {
    .hmns .checkbox {
        width: 1rem;
        height: 1rem;
    }
}
.hmns input[type=checkbox]:checked + .checkbox {
    background-image: url("/local/lib/dist/icons/checkbox-input.svg");
    background-size: contain;
    background-position: center;
    background-color: var(--c-red);
    border-color: var(--c-red);
}
.hmns-inline-form .form_title {
    margin-bottom: 12px !important;
    color: var(--c-font);
}
.hmns-inline-form .hmns-form-checkboxes {
    font-size: 0.8rem;
}
.hmns-inline-form .hmns-field-actions {
    margin-top: 8px;
}

@media only screen and (max-width: 692px){
    .hmns-mobile-form {
        padding: 24px;
    }
    .hmns-inline-form {
        padding: 24px 0;
    }
	.product-row-form {
		display: grid;
		grid-template-columns: 80px 1fr 100px 40px;
		grid-template-rows: auto auto;
		grid-template-areas: "thumb name name name" "price price counter del";
		gap: 20px;
		align-items: center;
        padding: 0;
	}
    .product-row-form + .product-row-form {
        border-top: 1px solid #ccc;
        padding: 10px 0 0;
    }
	.product-row-thumb-form {
		grid-area: thumb;
        aspect-ratio: 1/1;
	}
    .product-row-thumb-form img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
	.modal__message {
	    max-width: 100%!important;
	    width: 100%;
	}
	.product_name {grid-area: name; width: auto; text-align:left; padding: 0;}
	.product_price {grid-area: price; width: auto; padding: 0; text-align:left;white-space:nowrap; justify-self: start;}
	.product-del-form {grid-area: del; width: auto !important; margin: 0 !important; padding: 0; text-align:center;margin-top:0;cursor:pointer;justify-self: end;}
	.quantity_block {grid-area: counter; width: auto; justify-content: center;}
}


body.theme-dark .hmns-inline-form,
body.theme-light .hmns-inline-form {
    background-color: var(--c-bg-dark);
}
