#fujiPeModal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
}
#fujiPeModal.is-open { display: block; }
.fuji-pe-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55);
}
.fuji-pe-dialog {
    position: relative;
    width: min(560px, calc(100% - 32px));
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    margin: 20px auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    z-index: 2;
}
.fuji-pe-body { padding: 32px; }
.fuji-pe-close {
    position: absolute;
    top: 12px;
    right: 14px;
    border: 0;
    background: transparent;
    font-size: 30px;
    line-height: 1;
    color: #333;
    cursor: pointer;
}
.fuji-pe-body h2 {
    margin: 0 35px 8px 0;
    font-size: 28px;
    line-height: 1.3;
    color: #222;
}
.fuji-pe-muted {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
}
.fuji-pe-product {
    padding: 14px 16px;
    margin: 18px 0;
    border-radius: 12px;
    background: #f8f8f8;
}
.fuji-pe-product strong {
    display: block;
    color: #222;
    margin-bottom: 5px;
}
.fuji-pe-product span {
    color: #7a5a32;
    font-size: 14px;
}
.fuji-pe-field { margin-bottom: 16px; }
.fuji-pe-field label {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}
.fuji-pe-field label span { color: #c00; }
.fuji-pe-field input {
    min-height: 48px;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    border: 1px solid #ced4da;
    border-radius: 12px;
    font-size: 15px;
    color: #333;
    background: #fff;
}
.fuji-pe-field input:focus {
    border-color: #cca471;
    box-shadow: 0 0 6px rgba(204,164,113,.3);
    outline: none;
}
.fuji-pe-phone { display: flex; }
.fuji-pe-phone > span {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 0 13px;
    border: 1px solid #ced4da;
    border-right: 0;
    border-radius: 12px 0 0 12px;
    background: #f8f8f8;
    font-size: 14px;
    white-space: nowrap;
}
.fuji-pe-phone input { border-radius: 0 12px 12px 0; }
.fuji-pe-error {
    display: none;
    margin-top: 5px;
    color: #dc3545;
    font-size: 13px;
}
.fuji-pe-error.is-visible { display: block; }
#fujiPeSubmit {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: #fff;
    background: #cca471;
    border: 0;
    border-radius: 30px;
    cursor: pointer;
}
#fujiPeSubmit:disabled { opacity: .65; cursor: wait; }
.fuji-pe-result {
    display: none;
    margin-top: 15px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
}
.fuji-pe-result.is-visible { display: block; }
.fuji-pe-result.success { background: #edf8ef; color: #1d6b2b; }
.fuji-pe-result.error { background: #fff0f0; color: #a40000; }
.fuji-pe-honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.fuji-pe-enquire-button { cursor: pointer; }
.fuji-pe-single-button { margin-top: 10px; }
@media (max-width: 576px) {
    .fuji-pe-body { padding: 24px 20px; }
    .fuji-pe-body h2 { font-size: 24px; }
    .fuji-pe-field input, .fuji-pe-phone > span, #fujiPeSubmit { min-height: 46px; }
}

body.fuji-pe-no-scroll { overflow: hidden; }
.fuji-pe-invalid { border-color: #dc3545 !important; }

/* v1.0.2 Elementor product action shortcode */
.fuji-pe-product-action {
    width: 100%;
    margin: 0;
}
.fuji-pe-product-action .fuji-pe-action-button {
    width: 100%;
    min-height: 66px;
    margin: 0;
    padding: 14px 24px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #292929;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: opacity .2s ease, transform .2s ease;
}
.fuji-pe-product-action .fuji-pe-action-button:hover {
    opacity: .92;
}
.fuji-pe-product-action .fuji-pe-action-button:active {
    transform: translateY(1px);
}
.fuji-pe-product-action .fuji-pe-action-disabled,
.fuji-pe-product-action .fuji-pe-action-button:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
}
.fuji-pe-product-action .fuji-pe-enquire-button {
    background: #9a641d;
    color: #fff;
}
.fuji-pe-action-icon {
    display: inline-block;
    margin-left: 10px;
    font-size: 15px;
    vertical-align: 1px;
}
@media (max-width: 576px) {
    .fuji-pe-product-action .fuji-pe-action-button {
        min-height: 56px;
        font-size: 16px;
    }
}

/* v1.0.5: isolate the shortcode action from Elementor linked containers. */
.fuji-pe-product-action {
    position: relative;
    z-index: 20;
    isolation: isolate;
}
.fuji-pe-product-action .fuji-pe-action-button {
    position: relative;
    z-index: 21;
    pointer-events: auto;
}

/* v1.0.6: render Enquire outside Elementor's DOM tree to avoid linked-wrapper clicks. */
.fuji-pe-action-portal-placeholder {
    width: 100%;
    min-height: 66px;
}
.fuji-pe-action-portal {
    position: absolute !important;
    z-index: 2147483000 !important;
    margin: 0 !important;
    padding: 14px 24px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #9a641d !important;
    color: #fff !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    text-align: center !important;
    cursor: pointer !important;
    pointer-events: auto !important;
}
@media (max-width: 576px) {
    .fuji-pe-action-portal-placeholder { min-height: 56px; }
    .fuji-pe-action-portal { font-size: 16px !important; }
}
