.terek-purchase { margin: 12px 0 18px; }
.terek-purchase [hidden], .terek-purchase-dialog [hidden], .terek-purchase-bar[hidden] { display: none !important; }
.terek-purchase-open { width: 100%; min-height: 44px; margin: 0 0 12px; }
.terek-purchase-terms { margin: 0; }
.terek-purchase-terms li {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: baseline;
    column-gap: 8px;
    position: relative;
    padding-inline-start: 14px;
}
.terek-purchase-terms li::before { position: absolute; inset-inline-start: 0; inset-block-start: .55em; }
.terek-purchase-terms :is(.pa-characteristic__title, .pa-characteristic__val) {
    width: auto;
    margin: 0;
    line-height: 1.4;
}
.terek-purchase-terms .pa-characteristic__title { grid-column: 1; }
.terek-purchase-terms .pa-characteristic__val { grid-column: 2; text-align: end; }
.terek-purchase-terms .pa-characteristic__title { font-weight: 600; }
.terek-purchase-dialog {
    box-sizing: border-box;
    position: fixed;
    inset: 0;
    z-index: 1000001;
    margin: auto;
    width: min(440px, calc(100% - 24px));
    max-height: calc(100% - 24px);
    overflow: auto;
    border: 0;
    border-radius: 8px;
    background: #fff;
    color: #242424;
    padding: clamp(18px, 5vw, 28px);
}
.terek-purchase-backdrop { position: fixed; inset: 0; z-index: 1000000; background: rgb(0 0 0 / 55%); }
html:has(.terek-purchase-dialog[open]) { overflow: hidden; }
.terek-purchase-dialog .form-title { margin: 0 44px 10px 0; font-size: 24px; line-height: 1.2; }
.terek-purchase-summary { line-height: 1.45; overflow-wrap: anywhere; }
.terek-purchase-close {
    position: absolute;
    top: 8px;
    right: 8px;
    min-width: 44px;
    min-height: 44px;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-size: 30px;
}
.terek-purchase-dialog .field > label { display: block; margin-bottom: 4px; }
.terek-purchase-dialog .field { margin-bottom: 12px; }
.terek-purchase-dialog .field p { margin: 0; }
.terek-purchase-dialog input:is([type="text"], [type="tel"]),
.product-card-single_add-to-cart .wpcf7-notify input[type="email"] {
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid #b7b7b7;
    border-radius: 3px;
    font-size: 16px;
    color: #242424;
    background: #fff;
}
.terek-purchase-dialog .wpcf7-list-item, .single-product .wpcf7-notify .wpcf7-list-item { margin-inline-start: 0; }
.terek-purchase-dialog .wpcf7-acceptance label, .single-product .wpcf7-notify .wpcf7-acceptance label {
    display: flex;
    align-items: start;
    gap: 8px;
    font-size: 14px;
    line-height: 1.4;
}
.terek-purchase-dialog .wpcf7-acceptance input[type="checkbox"],
.single-product .wpcf7-notify .wpcf7-acceptance input[type="checkbox"] {
    appearance: auto !important;
    accent-color: #d6000e;
    position: static !important;
    opacity: 1 !important;
    clip: auto !important;
    flex: none;
    width: 19px;
    height: 19px;
    margin: 1px 0 0 !important;
}
.terek-purchase-dialog .wpcf7-list-item-label, .single-product .wpcf7-notify .wpcf7-list-item-label {
    padding: 0 !important;
    min-height: 0 !important;
}
.terek-purchase-dialog .wpcf7-list-item-label::before, .terek-purchase-dialog .wpcf7-list-item-label::after,
.single-product .wpcf7-notify .wpcf7-list-item-label::before, .single-product .wpcf7-notify .wpcf7-list-item-label::after {
    display: none !important;
    content: none !important;
}
.terek-purchase-lookup { min-height: 44px; padding: 0; border: 0; background: none; color: #a8000a; text-decoration: underline; cursor: pointer; }
.terek-purchase-dialog .suggestions-wrapper {
    display: block;
    inline-size: 100%;
    min-inline-size: 0;
}
.terek-purchase-dialog .suggestions-suggestions {
    box-sizing: border-box;
    position: static;
    inline-size: 100%;
    min-inline-size: 0;
    max-inline-size: 100%;
    margin-block-start: 6px;
    border: 1px solid #d7d7d7;
    border-radius: 6px;
    background: #fff;
    overflow-wrap: anywhere;
    line-height: 1.35;
}
.terek-purchase-dialog .suggestions-suggestion {
    min-block-size: 44px;
    padding: 9px 12px;
    border-block-end: 1px solid #e8e8e8;
    color: #242424;
    cursor: pointer;
}
.terek-purchase-dialog .suggestions-selected,
.terek-purchase-dialog .suggestions-suggestion:hover { background: #f8efef; }
.terek-purchase-dialog .suggestions-value { font-weight: 600; }
.terek-purchase-dialog .suggestions-suggestions strong { color: #a8000a; font-weight: 700; }
.terek-purchase-dialog .suggestions-subtext { color: #595959; font-size: 14px; }
.terek-purchase-dialog .suggestions-subtext_inline { min-inline-size: 0; }
.terek-purchase-dialog .suggestions-nowrap { white-space: normal; }
.terek-purchase-dialog :is(.suggestions-hint, .suggestions-promo) {
    padding: 6px 12px;
    color: #595959;
    white-space: normal;
}
.terek-purchase-dialog .suggestions-promo { position: static; text-align: end; }
.terek-purchase-dialog .wpcf7-submit { min-height: 44px; width: 100%; }
.terek-purchase-dialog :focus-visible, .terek-purchase-open:focus-visible, .terek-purchase-bar button:focus-visible {
    outline: 2px solid #a8000a;
    outline-offset: 2px;
}
.terek-purchase-bar { display: none; }
.terek-purchase-bar-cart { border: 1px solid #d6000e; border-radius: 3px; background: #d6000e; color: #fff; }
@media (max-width: 767px) {
    .terek-purchase-bar {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.35fr);
        align-items: center;
        gap: 6px;
        position: fixed;
        inset: auto 0 0;
        z-index: 700;
        padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
        border-top: 1px solid #ddd;
        background: #fff;
        box-shadow: 0 -4px 14px rgb(0 0 0 / 8%);
    }
    .terek-purchase-bar-price { font-size: clamp(13px, 4.2vw, 19px); font-weight: 700; white-space: nowrap; }
    .terek-purchase-bar button {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 0;
        width: 100%;
        min-height: 44px;
        margin: 0;
        padding: 4px 5px;
        font-size: clamp(12px, 3.45vw, 15px);
        line-height: 1.18;
        white-space: normal;
        text-align: center;
    }
}

