/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

/* =========================================================================
   jgwm_form shortcode — public contact form
   ========================================================================= */

.jgwm_form {
    max-width: 640px;
    margin: 0 auto 2em;
    font-size: 1rem;
}

.jgwm_form .jgwm_form_field {
    margin-bottom: 1.2em;
}

.jgwm_form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.3em;
}

.jgwm_form .jgwm_required {
    color: #c00;
}

.jgwm_form input[type="text"],
.jgwm_form input[type="email"],
.jgwm_form textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 0.55em 0.75em;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 1rem;
    line-height: 1.5;
    background: #fff;
    color: #1d2327;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.jgwm_form input[type="text"]:focus,
.jgwm_form input[type="email"]:focus,
.jgwm_form textarea:focus {
    border-color: #1776a6;
    box-shadow: 0 0 0 2px rgba(23, 118, 166, 0.2);
    outline: none;
}

.jgwm_form textarea {
    resize: vertical;
    min-height: 140px;
}

/* Submit button */
.jgwm_form .jgwm_form_submit button {
    display: inline-block;
    padding: 0.6em 1.6em;
    background-color: #368B38;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.jgwm_form .jgwm_form_submit button:hover,
.jgwm_form .jgwm_form_submit button:focus {
    background-color: #2a6e2c;
    outline: none;
}

/* Success message */
.jgwm_form_success {
    padding: 1em 1.2em;
    background-color: #edfaee;
    border: 1px solid #368B38;
    border-left: 4px solid #368B38;
    border-radius: 3px;
    color: #1d4620;
    margin-bottom: 1.5em;
}

/* Error message */
.jgwm_form_error {
    padding: 1em 1.2em;
    background-color: #fdf2f2;
    border: 1px solid #E02222;
    border-left: 4px solid #E02222;
    border-radius: 3px;
    color: #6b1010;
    margin-bottom: 1.2em;
}

.jgwm_form_error p {
    margin: 0.2em 0;
}

/* =========================================================================
   VAT price display — appended to WooCommerce prices
   ========================================================================= */

.jgwm_inc_vat {
    font-size: 0.85em;
    color: #646970;
    white-space: nowrap;
}

/* Honeypot — visually hidden from real users */
.jgwm_hp_field {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* -------------------------------------------------------------------------
 * Options tab — Table of Contents (jgwm_toc_enabled)
 * ---------------------------------------------------------------------- */
.post-toc {
    margin: 0 0 25px;
}

.post-toc ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

.post-toc .toc-level-3 {
    margin-left: 15px;
}

.post-toc .toc-level-4 {
    margin-left: 30px;
}

.toc-back-wrap {
    margin: 0 0 5px;
}

.toc-back-btn {
    font-size: 0.7em;
}

/* -------------------------------------------------------------------------
 * Options tab — Sticky product tabs (jgwm_sticky_product_tabs_enabled)
 * ---------------------------------------------------------------------- */
.jgwm_add_sticky_tabs {
    position: fixed !important;
    top: 61px;
    left: 0;
    right: 0;
    z-index: 9;
    background: #fff;
    box-shadow: 0 0 13px 0 rgba(0, 0, 0, 0.2);
}

.jgwm_add_sticky_tab_no_shadow {
    box-shadow: none !important;
}

.jgwm_add_sticky_tab_move_breadcrumb {
    top: 103px !important;
}

@media (max-width: 768px) {
    .jgwm_add_sticky_tabs {
        position: initial !important;
        width: 100%;
    }
}
