/*
Theme Name:   OceanWP Child
Theme URI:    https://nc-whiskey.com
Description:  Child theme for OceanWP
Author:       Win Pratt
Template:     oceanwp
Version:      1.0.0
*/

/*
 * Fix: OceanWP 4.1.5 applies its generic .button styles (background, font-size,
 * padding, text-transform, letter-spacing, line-height) to any element with
 * class="button". The api_ref shortcode renders Kadence advanced buttons with
 * both .kt-button and .button on the same anchor, so OceanWP's rule stomps on
 * Kadence's styles. Additionally, Kadence's current frontend CSS only centers
 * .kb-buttons-wrap, not the older .kt-btns-wrap class the shortcode outputs.
 */

/* Fix 1: Center the button group wrapper. Kadence's current frontend CSS only
   targets .kb-buttons-wrap; the shortcode outputs the older .kt-btns-wrap. */
.wp-block-kadence-advancedbtn.kt-btns-wrap,
.wp-block-kadence-advancedbtn .kt-btns-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

/* Fix 2: Reset OceanWP 4.1.5's newly-aggressive .button overrides for Kadence
   buttons. We intentionally do NOT set background-color or color here —
   the button color is controlled by OceanWP Customizer (Appearance > Customize >
   Theme Options > Buttons), which outputs inline CSS that we'd override. */
.wp-block-kadence-advancedbtn a.kt-button.button,
.kt-btns-wrap a.kt-button.button {
    padding: 0.4em 1em;
    font-size: 1.125rem;
    text-transform: none;
    letter-spacing: normal;
    line-height: normal;
    font-weight: normal;
    border-radius: 3px;
}
