/*
Theme Name: Ollie Child
Theme URI: https://olliewp.com
Author: Mike McAlister
Author URI: https://olliewp.com
Description: A child theme for the Ollie block theme. Download the free Ollie theme at OllieWP.com.
Requires at least: 6.0
Tested up to: 6.2
Requires PHP: 5.7
Version: 0.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: ollie
Text Domain: ollie-child
Tags: blog, entertainment, portfolio, grid-layout, one-column, two-columns, three-columns, four-columns, wide-blocks, accessibility-ready, block-patterns, block-styles, custom-logo, custom-menu, editor-style, featured-images, full-site-editing, full-width-template, rtl-language-support, style-variations, template-editing, theme-options, translation-ready, 
*/

html {
    font-size: 16px; /* rem */
}

body {
    font-size: inherit;
}

body.front-end {
    --wp--preset--color--main: #110d0a;
    --wp--preset--color--main-accent: #110d0a;
}

.wp-site-blocks .wp-block-group {
    background: none;
}

/* Buttons */
.button,
.wp-block-button .wp-block-button__link {
    padding: 5px 15px;
    font-size: var(--wp--preset--font-size--x-small);
    text-decoration: none !important;

    font-family: var(--wp--preset--font-family--gotham);
    font-weight: 700;
    line-height: 2;

    background: var(--wp--preset--color--custom-black);
    color: var(--wp--preset--color--custom-white);
    cursor: pointer;

    border-radius: 50px;
}

.button.button-small {
    padding: 3px 10px;
    font-size: 14px;
    line-height: 1.2;
}

.button:not(.button-outline),
.wp-block-button:not(.is-style-outline) .wp-block-button__link {
    border: none;
}

.button:hover,
.button:focus-visible,
.wp-block-button .wp-block-button__link:hover,
.wp-block-button .wp-block-button__link:focus-visible {
    text-decoration: none;
    background: #454545;
    color: var(--wp--preset--color--custom-white);
}

.button[disabled],
.button.disabled,
.wp-block-button .wp-block-button__link[disabled],
.wp-block-button .wp-block-button__link.disabled {
    background: var(--wp--preset--color--custom-gray) !important;
    color: var(--wp--preset--color--custom-black) !important;
    opacity: 0.5;
    cursor: not-allowed;
}

/* -- Secondary button */
.button.button-secondary,
.wp-block-button.is-style-secondary-button .wp-block-button__link {
    background: var(--wp--preset--color--custom-gray);
    color: var(--wp--preset--color--custom-black);
}

.button.button-secondary:where(:hover, :focus-visible),
.wp-block-button.is-style-secondary-button .wp-block-button__link:where(:hover, :focus-visible) {
    background: #dcdcd2;
    color: var(--wp--preset--color--custom-black);
}

/* -- Outline button */
.button.button-outline,
.wp-block-button.is-style-outline .wp-block-button__link {
    border: 2px solid;
    background: transparent;
    color: var(--wp--preset--color--custom-black);
}

.button.button-outline:where(:hover, :focus-visible),
.wp-block-button.is-style-outline .wp-block-button__link:where(:hover, :focus-visible) {
    border: 2px solid;
    background: var(--wp--preset--color--custom-gray);
    color: var(--wp--preset--color--custom-black);
}

/* End: Buttons */

/* Top Search */
.bb-header-search {
    padding-top: 15px;
    padding-bottom: 15px;
}

@media ( max-width: 768px ) {
    .bb-header-search {
        padding-left: 25px;
        padding-right: 50px;
    }
}

/* End: Top Search */

/* Breadcrumbs */
body .is-layout-flex .wp-block-rs-utility-blocks-breadcrumbs {
    background-color: #ecece3;
    padding: 10px 20px;
    display: inline-flex;
}

/* End: Breadcrumbs */

/* Button Row */
.bb-button-row {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: var(--wp--preset--spacing--small);
    margin-top: var(--wp--preset--spacing--medium);
}

/* End: Button Row */

/* CRM Form and Fields */
body .crm-all-fields.is-layout-flex {
    display: flex;
    gap: 0;
    flex-direction: column;
    align-items: stretch;
}

body .crm-field-wrapper {
    border-top: 1px solid #dadacf;
    border-left: 1px solid #dadacf;
    border-right: 1px solid #dadacf;
    padding: 7px 10px;
    margin: 0;
    font-size: var(--wp--preset--font-size--x-small);
    position: relative;
    gap: 8px;
}

@media ( min-width: 860px ) {
    body .crm-field-wrapper {
        display: grid;
        grid-template-columns: 150px auto;
        align-items: stretch !important;
    }
}


@media ( max-width: 859.9px ) {
    body .crm-field-wrapper {
        display: block;
    }
}

body .crm-field-wrapper:last-of-type {
    border-bottom: 1px solid #dadacf;
}

body .crm-field-label {
    max-width: 200px;
    width: 100%;
    font-weight: 500;
}

body .crm-field-wrapper a:not(.crm-field-edit-link) {
    text-decoration-thickness: 1px;
}

.wp-site-blocks main.wp-block-group .bb-section--post-relationships .crm-field-wrapper {
    background-color: #ecece3;
    border: none !important;
    padding: 20px !important;
    margin-bottom: 20px !important;
}

.wp-site-blocks main.wp-block-group .bb-section--post-relationships .crm-field-wrapper .crm-field-edit-link {
    top: 20px !important;
}

/* End: CRM Form and Fields */

/* Single posts and post creation pages */
.bb-section--title .bb-title-row {
    margin-top: 40px !important;
}

/* End: Single posts and post creation pages */

.bb-nav-items {
    max-height: calc(100% - 30px);
    overflow-y: auto;
}


/* Remove BB Side Nav */
body:not(.page-id-18).user-not-logged-in {
    padding-left: 0;
}

body:not(.page-id-18).user-not-logged-in .bb-side-nav {
    display: none;
}