/* Responso frontend – LWT integration */
.responso_product_question,
.responso_form__box {
    --responso-blue: var(--blue, #4A95D5);
    --responso-dark: var(--dark-grey, #293033);
    --responso-border: var(--grey, #E3E3E3);
    --responso-muted: var(--grey-2, #8B9296);
    --responso-bg: var(--white, #fff);
    box-sizing: border-box;
    font-family: inherit;
}

/* Align the product inquiry with the native LWT add-to-cart block. */
.single--product-top-right .responso_product_question {
    padding: 0 40px;
    margin: -10px 0 32px;
}

.responso_product_form__button {
    appearance: none;
    -webkit-appearance: none;
    width: auto;
    min-height: 40px;
    margin: 0;
    padding: 4px 14px 4px 5px;
    border: 1px solid var(--responso-dark) !important;
    border-radius: 999px;
    background: transparent !important;
    color: var(--responso-dark) !important;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font: inherit;
    font-size: 14px;
    line-height: 1.15;
    font-weight: 400;
    text-decoration: none;
    cursor: pointer;
    box-shadow: none !important;
    transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}

.responso_product_form__button:hover,
.responso_product_form__button:focus-visible,
.responso_product_form__button[aria-expanded="true"] {
    border-color: var(--responso-blue) !important;
    color: var(--responso-blue) !important;
    background: transparent !important;
}

.responso_product_form__button:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--responso-blue) 30%, transparent);
    outline-offset: 3px;
}

.responso_product_form__button-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, #4A95D5 0%, #0075C4 100%);
}

.responso_product_form__button-text {
    white-space: nowrap;
}

.responso_product_form__button-chevron {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s ease;
}

.responso_product_form__button[aria-expanded="true"] .responso_product_form__button-chevron {
    transform: rotate(180deg);
}

.responso_form__box {
    width: 100%;
    margin-top: 14px;
    padding: 20px;
    border: 1px solid var(--responso-border);
    border-radius: 14px;
    background: var(--responso-bg);
}

.responso_form__box--hidden {
    display: none;
}

.responso_form__header {
    margin: 0 0 8px;
    color: var(--responso-dark);
    font-size: 18px;
    line-height: 1.3;
    font-weight: 600;
}

.responso_form__text {
    margin: 0 0 16px;
    color: var(--responso-dark);
    font-size: 14px;
    line-height: 1.5;
}

.responso_form__text p {
    margin: 0 0 8px;
}

.responso_form__text p:last-child {
    margin-bottom: 0;
}

.responso_form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    width: 100%;
    margin: 0;
}

.responso_form__col {
    min-width: 0;
    margin: 0;
}

.responso_form__col--fullwidth,
.responso_form__actions {
    grid-column: 1 / -1;
}

.responso_form__label {
    display: block;
    width: 100%;
    margin: 0 0 6px;
    color: var(--responso-dark);
    font-size: 13px;
    line-height: 1.3;
}

.responso_form__input,
.responso_form__select,
.responso_form__textarea {
    appearance: none;
    -webkit-appearance: none;
    width: 100% !important;
    max-width: none !important;
    min-height: 44px;
    margin: 0 !important;
    padding: 10px 12px !important;
    box-sizing: border-box !important;
    border: 1px solid var(--responso-border) !important;
    border-radius: 9px !important;
    background-color: #fff !important;
    color: var(--responso-dark) !important;
    font: inherit !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
    box-shadow: none !important;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.responso_form__input::placeholder,
.responso_form__textarea::placeholder {
    color: var(--responso-muted);
    opacity: 1;
}

.responso_form__input:focus,
.responso_form__select:focus,
.responso_form__textarea:focus {
    border-color: var(--responso-blue) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--responso-blue) 12%, transparent) !important;
}

.responso_form__textarea {
    min-height: 112px;
    resize: vertical;
}

.responso_form__select {
    padding-right: 36px !important;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1.5 5 5 5-5' fill='none' stroke='%23293033' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 12px 8px !important;
}

.responso_form__acceptance {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--responso-dark);
    font-size: 12px;
    line-height: 1.45;
    cursor: pointer;
}

.responso_form__acceptance input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 1px 0 0;
    flex: 0 0 16px;
    accent-color: var(--responso-blue);
}

.responso_form__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-top: 2px;
}

.responso_form__submit {
    appearance: none;
    -webkit-appearance: none;
    min-height: 38px;
    margin: 0;
    padding: 0 22px;
    border: 1px solid var(--responso-dark) !important;
    border-radius: 999px;
    background: transparent !important;
    color: var(--responso-dark) !important;
    font: inherit;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    box-shadow: none !important;
    transition: border-color .2s ease, color .2s ease, opacity .2s ease;
}

.responso_form__submit:hover,
.responso_form__submit:focus-visible {
    border-color: var(--responso-blue) !important;
    color: var(--responso-blue) !important;
}

.responso_form__submit:disabled {
    opacity: .55;
    cursor: wait;
}

.responso_form__footer {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    margin-left: auto;
    color: var(--responso-muted);
    font-size: 11px;
    line-height: 1;
}

.responso_form .footer_url {
    display: inline-flex;
    align-items: center;
    outline: none;
}

.responso_form .footer_img {
    display: block;
    width: auto;
    height: 16px;
    max-width: 100%;
    border: 0;
    outline: none;
}

.responso_form__info {
    display: none;
    margin: 0 0 14px;
    padding: 10px 12px;
    border: 1px solid var(--responso-border);
    border-radius: 9px;
    background: #f7f8f8;
    color: var(--responso-dark);
    font-size: 13px;
    line-height: 1.4;
}

.responso_form__info--success {
    border-color: #b8e8c1;
    background: #f2fbf4;
    color: #277739;
}

.responso_form__info--fail {
    border-color: #f2c2c2;
    background: #fff5f5;
    color: #a22c2c;
}

@media (max-width: 1919.98px) {
    .single--product-top-right .responso_product_question { padding: 0 35px; }
}

@media (max-width: 1599.98px) {
    .single--product-top-right .responso_product_question { padding: 0 30px; }
    .responso_product_form__button { min-height: 35px; font-size: 13px; }
    .responso_product_form__button-icon { width: 24px; height: 24px; flex-basis: 24px; }
    .responso_product_form__button-icon svg { width: 16px; height: 16px; }
}

@media (max-width: 1365.98px) {
    .single--product-top-right .responso_product_question { padding: 0 25px; }
}

@media (max-width: 767.98px) {
    .single--product-top-right .responso_product_question {
        padding: 0 20px;
        margin: 0 0 22px;
    }
    .responso_product_form__button {
        min-height: 38px;
        font-size: 14px;
    }
    .responso_product_form__button-icon {
        width: 26px;
        height: 26px;
        flex-basis: 26px;
    }
    .responso_form__box {
        padding: 16px;
        border-radius: 10px;
    }
    .responso_form {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .responso_form__col--fullwidth,
    .responso_form__actions {
        grid-column: 1;
    }
    .responso_form__actions {
        align-items: flex-start;
        flex-direction: column;
    }
    .responso_form__footer {
        margin-left: 0;
    }
}

/* Off-screen honeypot: available to basic bots, invisible and non-interactive to users. */
.responso_form__honeypot {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
