/* compliance.css — JP Spare Parts Plugin
 * Extracted from mu-plugins/jp-compliance.php:
 *  - Cookie consent banner styles (wp_footer jp_cc_banner <style> block)
 *  - Footer legal links bar styles (wp_footer jp_legal_bar <style> block)
 * Loaded site-wide via class-assets.php (handle: jps-compliance)
 */

/* ===== Cookie Consent Banner ===== */
.jp-cc {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 99999;
    background: #0f1b2e;
    color: #eaf0f8;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 -6px 24px rgba(0,0,0,.25);
}
.jp-cc-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px 18px;
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}
.jp-cc-txt {
    flex: 1 1 320px;
    margin: 0;
}
.jp-cc-txt a {
    color: #7cc0ff;
    text-decoration: underline;
}
.jp-cc-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.jp-cc-btn {
    border: 0;
    border-radius: 8px;
    padding: 10px 18px;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
}
.jp-cc-accept {
    background: #1a7fd6;
    color: #fff;
}
.jp-cc-essential {
    background: transparent;
    color: #cfe0f5;
    border: 1px solid #3a4a63;
}
html.jp-cc-all .jp-cc,
html.jp-cc-essential .jp-cc {
    display: none;
}

/* ===== Footer Legal Links Bar ===== */
.jp-legal-bar {
    background: #0b1422;
    color: #a8b8cc;
    font-size: 14px;
    line-height: 1.7;
}
.jp-legal-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.jp-legal-links {
    display: flex;
    gap: 26px;
    align-items: center;
    flex-wrap: wrap;
}
.jp-legal-bar a {
    color: #d4dde8;
    text-decoration: none;
    transition: color .2s;
}
.jp-legal-bar a:hover {
    color: #fff;
}
.jp-legal-copy {
    color: #8da3b8;
    font-size: 13px;
}

/* Hide duplicate <h1> in page content on legal pages.
   Templates were fixed but existing DB content still has <h1>.
   The theme already outputs the_title() as the page heading. */
.page-slug-privacy .entry-content > h1:first-child,
.page-slug-terms .entry-content > h1:first-child,
.page-slug-imprint .entry-content > h1:first-child {
    display: none;
}

/* ===== GDPR Catalog-Download Consent Box (gdpr-consent.js) ===== */
.jpc-consent {
    max-width: 700px;
    margin: 14px auto;
    padding: 12px 14px;
    border: 1px solid #2b3a52;
    background: #0f1b2e;
    color: #eaf0f8;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    box-sizing: border-box;
}
.jpc-consent__label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    cursor: pointer;
}
.jpc-consent__check {
    margin-top: 3px;
    flex: 0 0 auto;
}
.jpc-consent__text a {
    color: #7cc0ff;
    text-decoration: underline;
}
.jpc-consent--invalid {
    border-color: #e5534b;
}
.jpc-consent__error {
    margin: 8px 0 0;
    color: #ff8a82;
    font-size: 13px;
}

/* ===== Catalog Download Form (shortcode [jp_catalog]) ===== */
.jpc-catalog-form-wrap {
    max-width: 520px;
    margin: 8px 0;
}
.jpc-catalog-form {
    margin: 0;
    padding: 18px 20px;
    background: #0f1b2e;
    border: 1px solid #2b3a52;
    border-radius: 10px;
    color: #eaf0f8;
    box-sizing: border-box;
}
.jpc-catalog-field {
    margin: 0 0 14px;
}
.jpc-catalog-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}
.jpc-catalog-field .required {
    color: #ff8a82;
}
.jpc-catalog-field input[type="email"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #2b3a52;
    border-radius: 6px;
    background: #0b1422;
    color: #eaf0f8;
    font-size: 14px;
    box-sizing: border-box;
}
.jpc-catalog-field input[type="email"]:focus {
    outline: none;
    border-color: #1a7fd6;
}
.jpc-catalog-form .jpc-consent {
    background: transparent;
    border: 0;
    padding: 0;
    margin: 6px 0 16px;
}
.jpc-catalog-submit-wrap {
    margin: 0;
}
.jpc-catalog-submit {
    background: #1a7fd6;
    color: #fff;
    border: 0;
    border-radius: 6px;
    padding: 12px 22px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}
.jpc-catalog-submit:hover {
    background: #1569b3;
}
.jpc-catalog-success {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    max-width: 520px;
    margin: 8px 0;
    padding: 16px 18px;
    background: #0f1b2e;
    border: 1px solid #1f7a4d;
    border-radius: 8px;
    color: #eaf0f8;
}
.jpc-catalog-success__icon {
    color: #3ddc84;
    font-size: 20px;
    line-height: 1.4;
}
