/*
Theme Name:  Happy Nectar
Version:     1.0.0
Template:    nectar-blocks-theme
Description: Custom theme by Happy Design Co.
Theme URI:   https://happydesigncompany.com
Author:      Happy Design Co.
Author URI:  https://happydesigncompany.com
Text Domain: happy-nectar
*/

/*-------------------------------------------------------------------------*/
/* Note: The theme CSS files are loaded through the /css/ folder.
/*-------------------------------------------------------------------------*/

/* ---------------------------------------------------------------------- *
 * DISABLED 2026-09-21 — stale hardcoded form-ID rules.
 *
 * These were written for a single-field inline newsletter form that was ID 10
 * on some other happynectar site (borderless input, 1.25em type, coloured
 * placeholder). They arrived with this child theme rather than being written
 * for The Railway District.
 *
 * On THIS site form 10 is now the Holiday Kickoff Cookie Crawl ticket form, so
 * `#gform_fields_10 { display:flex }` was collapsing all eight of its fields
 * into a single row with the labels colliding. Form 12 does not exist here at
 * all. Kept rather than deleted in case the newsletter form comes back — if it
 * does, re-target these on that form's real ID, not on the number 10.
 *
 * A hardcoded #gform_*_<id> selector in a shared child theme is a trap: form
 * IDs are per-site and get reused by whatever is created next.
 * ---------------------------------------------------------------------- */
/*
#gform_fields_10 {
	gap:0px;
    display:flex;
    align-items: flex-start;
}

#field_10_1 {
    flex:auto;
}

@media screen and (max-width:499px) {
    #gform_submit_button_10 {
        padding-left: 1em !important;
        padding-right: 1em !important;
    }
}
#input_10_1 {
    border:none;
    box-shadow:none;
	border-radius: 0px;
	font-size:1.25em;
	line-height:1.5;
    font-family: 'Family';
}

#input_10_1::placeholder {
    color:var(--accentLight);
}
*/

.gform_confirmation_message {
    border-radius: 0px;
    padding: .75em 1em;
    font-size: .9em;
    line-height: 1.2;
    text-align: center;
    border: 2px solid var(--accentLight);
    color: var(--accentLight);
    background: var(--dark);
}

/* #gform_submit_button_12:hover — form 12 does not exist on this site (see note above) */

.gform-theme--framework .gfield_list_group_item::before, .gform-theme--framework .gform-field-label:where(:not([class*=gform-field-label--type-]))
{
    --gf-ctrl-label-font-family-primary: 'Figtree';
    --gf-ctrl-label-font-weight-primary: 400;
    --gf-ctrl-label-letter-spacing-primary: .2em;
	--gf-radius: 0px;
    text-transform:uppercase;
}

.gform-theme--framework .gfield:where(.gfield--type-multiselect,.gfield--input-type-multiselect) .chosen-container-multi:where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)), .gform-theme--framework .gfield:where(.gfield--type-select,.gfield--input-type-select) .chosen-search input[type=text]:where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)), .gform-theme--framework .gfield:where(.gfield--type-select,.gfield--input-type-select) .chosen-single:where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)), .gform-theme--framework .gform-theme-field-control:where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)), .gform-theme--framework select:where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)), .gform-theme--framework select[multiple]:where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)), .gform-theme--framework textarea:where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)), .gform-theme--framework.gform-theme.gform_wrapper .button:where(:not(.gform-theme-no-framework)):where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)), .gform-theme--framework.gform-theme.gform_wrapper .gform-theme-button:where(:not(.gform-theme-no-framework)):where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)), .gform-theme--framework.gform-theme.gform_wrapper :where(:not(.mce-splitbtn))>button:not([id*=mceu_]):not(.mce-open):where(:not(.gform-theme-no-framework)):where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)), .gform-theme--framework.gform-theme.gform_wrapper button.button:where(:not(.gform-theme-no-framework)):where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)), .gform-theme--framework.gform-theme.gform_wrapper input:is([type=submit],[type=button],[type=reset]).button:where(:not(.gform-theme-no-framework)):where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)), .gform-theme--framework.gform-theme.gform_wrapper input:is([type=submit],[type=button],[type=reset]):where(:not(.gform-theme-no-framework)):where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)), .gform-theme--framework.gform-theme.gform_wrapper input[type=submit].button.gform_button:where(:not(.gform-theme-no-framework)):where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)) {
    font-family: 'Figtree';
    font-weight: 400;
    letter-spacing: .2em;
    text-transform:uppercase;
}

body[data-form-b-style="default"] .container-wrap input[type=submit], body[data-form-b-style="regular"] .container-wrap input[type=submit], body[data-form-b-style="regular"] .container-wrap button[type=submit]:not(.search-widget-btn), body[data-form-b-style="see-through"] .container-wrap input[type=submit], body[data-form-b-style="see-through"] .container-wrap button[type=submit]:not(.search-widget-btn), .wc-proceed-to-checkout .button.checkout-button, .woocommerce #order_review #payment #place_order, body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button, .woocommerce-page button[type="submit"].single_add_to_cart_button, body[data-form-b-style="regular"].woocommerce-page .container-wrap button[type=submit].single_add_to_cart_button, .nectar-post-grid-wrap .load-more, .row .wpforms-form button[type="submit"] {
    padding-top: .75em !important;
    padding-bottom: .75em !important;
    padding-right: 2em !important;
    padding-left: 2em !important;
}

.gform-theme--api, .gform-theme--framework {
    --gf-color-danger: #ff4d4d;
    --gf-color-danger-rgb: 255, 77, 77;
}

@media screen and (max-width:767px) {
    .gform-theme--foundation .gform_fields {
        --gf-form-gap-y: 16px;
    }
}

:root {
    --nectar-dropdown-padding: 18px;
    --nectar-dropdown-link-padding: 8px 16px;
}
/* ---- Buttons sit on one line, tightly (2026-09-23) ----------------------
   Lives here, not in the plugin's rd.css, because rd.css is enqueued lazily —
   only on pages that render Railway District content. A form page such as
   /business-information/ never loads it, so the same rule put there silently
   misses every Gravity Forms submit on the site. This file is enqueued on
   every page by the child theme.

   Three .gform_wrapper classes, and yes that is deliberate. The parent theme's
   winning selector is

     body[data-form-b-style="regular"] .container-wrap button[type="submit"]:not(.search-widget-btn)

   which is (0,4,2) — the :not() contributes its argument's class. Two classes
   only reached (0,4,1) and lost on the element count, which is exactly how this
   looked like "the rule isn't applying" rather than "the rule is losing".
   Three takes it to (0,5,1), which wins on the class count outright. */
.container-wrap .gform_wrapper.gform_wrapper.gform_wrapper button[type="submit"],
.container-wrap .gform_wrapper.gform_wrapper.gform_wrapper input[type="submit"],
.container-wrap .gform_wrapper.gform_wrapper.gform_wrapper .gform_button,
.container-wrap .gform_wrapper.gform_wrapper.gform_wrapper button.gform_button_select_files,
.container-wrap .gform_wrapper.gform_wrapper.gform_wrapper .gform-theme-button {
    line-height: 1;
}
