/*
 * Plugin compatibility rules.
 * These selectors are intentionally specific and isolated so the theme does not recolor every
 * paragraph, label, list item, or modal created by plugins.
 */

/* Contact Form 7 */
body.cg-theme-430 .cg-main .wpcf7 form { display: grid; gap: 16px; }
body.cg-theme-430 .cg-main .wpcf7 p { margin: 0 0 15px; }
body.cg-theme-430 .cg-main .wpcf7 label { display: grid; gap: 7px; color: #1f2937; font-weight: 800; }
body.cg-theme-430 .cg-main .wpcf7 input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
body.cg-theme-430 .cg-main .wpcf7 textarea,
body.cg-theme-430 .cg-main .wpcf7 select {
    width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #cfd9d2; border-radius: 9px;
    background: #fff; color: #111827; box-shadow: none;
}
body.cg-theme-430 .cg-main .wpcf7 textarea { min-height: 150px; resize: vertical; }
body.cg-theme-430 .cg-main .wpcf7 input:focus,
body.cg-theme-430 .cg-main .wpcf7 textarea:focus,
body.cg-theme-430 .cg-main .wpcf7 select:focus { border-color: #39b54a; outline: 3px solid rgba(57,181,74,.17); }
body.cg-theme-430 .cg-main .wpcf7 input[type="submit"] {
    min-height: 48px; padding: 12px 22px; border: 0; border-radius: 9px; cursor: pointer;
    background: linear-gradient(135deg, #39b54a, #27953a); color: #041006; font-weight: 900;
}
body.cg-theme-430 .cg-main .wpcf7-response-output { margin: 15px 0 0; padding: 13px 15px; border-radius: 8px; }

/* CookieAdmin preference modal contrast. Scoped only to the plugin modal. */
body.cg-theme-430 .cookieadmin_cookie_modal label.stitle,
body.cg-theme-430 #cookieadmin_cookie_modal label.stitle {
    color: #1f2937 !important;
    -webkit-text-fill-color: #1f2937 !important;
    opacity: 1 !important;
    font-weight: 800 !important;
}
body.cg-theme-430 .cookieadmin_cookie_modal label.cookieadmin_remark,
body.cg-theme-430 .cookieadmin_cookie_modal label.cookieadmin_act,
body.cg-theme-430 #cookieadmin_cookie_modal label.cookieadmin_remark,
body.cg-theme-430 #cookieadmin_cookie_modal label.cookieadmin_act {
    color: #1d4ed8 !important;
    -webkit-text-fill-color: #1d4ed8 !important;
    opacity: 1 !important;
    font-weight: 800 !important;
}
body.cg-theme-430 .cookieadmin_cookie_modal #cookieadmin_preference,
body.cg-theme-430 .cookieadmin_cookie_modal #cookieadmin_preference *,
body.cg-theme-430 #cookieadmin_cookie_modal #cookieadmin_preference,
body.cg-theme-430 #cookieadmin_cookie_modal #cookieadmin_preference * {
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
    opacity: 1 !important;
}

/* Keep Pagelayer and OpsDesk public components free to use their own component styles. */
body.cg-theme-430 .pagelayer-row,
body.cg-theme-430 .pagelayer-col,
body.cg-theme-430 [class*="opsdesk"],
body.cg-theme-430 [class*="cg-opsdesk"] {
    --cg-theme-inherit-only: initial;
}
