.single-product .summary .hsple-inquiry-wrap {
    clear: both;
    margin: 28px 0 0;
}

.single-product .hsple-inquiry-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    max-width: 100%;
    padding: 14px 32px;
    border: 1px solid var(--hsple-inquiry-color, #1f5f50);
    border-radius: 6px;
    background: var(--hsple-inquiry-color, #1f5f50);
    color: #fff;
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    white-space: normal;
    cursor: pointer;
    transition: filter 0.2s ease;
}

.single-product .hsple-inquiry-trigger:hover,
.single-product .hsple-inquiry-trigger:focus-visible {
    background: var(--hsple-inquiry-color, #1f5f50);
    color: #fff;
    filter: brightness(0.9);
}

.single-product .hsple-inquiry-trigger:focus-visible,
#hsple-inquiry-modal .hsple-inquiry-close:focus-visible {
    outline: 3px solid var(--hsple-inquiry-color, #1f5f50);
    outline-offset: 3px;
}

html.hsple-inquiry-open,
html.hsple-inquiry-open body {
    overflow: hidden !important;
}

#hsple-inquiry-modal,
#hsple-inquiry-modal * {
    box-sizing: border-box;
}

#hsple-inquiry-modal[hidden] {
    display: none !important;
}

#hsple-inquiry-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow: auto;
    isolation: isolate;
}

#hsple-inquiry-modal .hsple-inquiry-backdrop {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: rgba(15, 23, 20, 0.6);
}

#hsple-inquiry-modal .hsple-inquiry-panel {
    position: relative;
    width: 100%;
    max-width: 640px;
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
    margin: auto;
    padding: 32px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 12px;
    background: #fff;
    color: #222;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.22);
}

#hsple-inquiry-modal .hsple-inquiry-close {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    min-width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f1f5f3;
    color: #333;
    font-family: Arial, sans-serif;
    font-size: 28px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
}

#hsple-inquiry-modal .hsple-inquiry-close:hover {
    background: #e4ebe7;
    color: #111;
}

#hsple-inquiry-modal #hsple-inquiry-title {
    margin: 0 36px 8px 0;
    padding: 0;
    color: #172a23;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

#hsple-inquiry-modal .hsple-inquiry-product {
    margin: 0 0 24px;
    color: #63716b;
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

#hsple-inquiry-modal .hsple-inquiry-form {
    min-width: 0;
}

@media (max-width: 600px) {
    .single-product .hsple-inquiry-trigger {
        width: 100%;
    }

    #hsple-inquiry-modal {
        padding: 12px;
    }

    #hsple-inquiry-modal .hsple-inquiry-panel {
        max-height: calc(100vh - 24px);
        max-height: calc(100dvh - 24px);
        padding: 24px 20px;
        border-radius: 10px;
    }

    #hsple-inquiry-modal #hsple-inquiry-title {
        font-size: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .single-product .hsple-inquiry-trigger {
        transition: none;
    }
}
