/* Better Breeder Institute - Nexus Child Theme Branding */

/* Brand Fonts */
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:wght@600;700&family=Jost:wght@400;500;600;700&display=swap');

:root {
    --primary: #42288d;
    --primary-lifted: #542893;
    --primary-accented: #2f1b72;

    --secondary: #ffb714;
    --secondary-lifted: #fcde99;
    --secondary-accented: #d99a00;

    --notice: #542893;
    --notice-lifted: #42288d;
    --notice-accented: #2f1b72;

    --text: #1f1b2d;
    --text-lifted: #42288d;
    --text-accented: #542893;

    --border: rgba(66, 40, 141, 0.18);
    --border-lifted: rgba(66, 40, 141, 0.28);

    --bg: #ffffff;
    --bg-muted: #f8f6fb;
    --bg-lifted: #f1edf8;

    --rounding-sm: 0.35rem;
    --rounding-md: 0.65rem;
    --rounding-lg: 1rem;
}

/* Global */
body {
    font-family: 'Jost', Arial, sans-serif !important;
    color: var(--text) !important;
    background: var(--bg-lifted) !important;
}

#main-body {
    background: var(--bg-lifted) !important;
}

.primary-content {
    padding-top: 32px;
    padding-bottom: 56px;
}

/* Typography */
h1, h2, h3, h4, h5,
.page-title,
.section-title {
    font-family: 'EB Garamond', Georgia, serif !important;
    color: var(--primary) !important;
    font-weight: 700 !important;
}

p, li, label, input, select, textarea, button {
    font-family: 'Jost', Arial, sans-serif !important;
}

/* Header */
.header,
.navbar-light,
.main-navbar-wrapper {
    background: #ffffff !important;
}

.header {
    border-bottom: 1px solid var(--border) !important;
    box-shadow: 0 4px 18px rgba(66, 40, 141, 0.05);
}

.navbar-brand .logo-img {
    height: 48px !important;
    width: auto !important;
    max-width: 245px !important;
}

.main-navbar-wrapper {
    border-top: 1px solid rgba(66, 40, 141, 0.08) !important;
}

/* Navigation */
.navbar-nav .nav-link,
.navbar-nav a {
    color: var(--text) !important;
    font-weight: 500 !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav a:hover,
.dropdown-item:hover {
    color: var(--primary) !important;
}

/* Search */
.input-group.search .form-control {
    border-color: var(--border) !important;
    border-radius: 10px !important;
}

.input-group.search .btn {
    border-color: var(--border) !important;
    color: var(--primary) !important;
}

/* Cart badge */
.badge-dark,
.badge-primary {
    background-color: var(--primary) !important;
}

/* Breadcrumb */
.master-breadcrumb {
    background: #eee8f8 !important;
    border-top: 1px solid var(--border) !important;
    border-bottom: 1px solid var(--border) !important;
}

.master-breadcrumb .breadcrumb {
    background: transparent !important;
}

.master-breadcrumb,
.master-breadcrumb a,
.breadcrumb-item,
.breadcrumb-item a {
    color: var(--primary) !important;
}

/* Cards, panels, tiles */
.card,
.panel,
.tile,
.tiles .tile,
.product,
.products .product,
#order-standard_cart .product,
#order-standard_cart .summary-container,
#order-standard_cart .view-cart-items,
#order-standard_cart .order-summary {
    background: #ffffff !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--rounding-lg) !important;
    box-shadow: 0 10px 28px rgba(66, 40, 141, 0.08) !important;
}

/* Homepage product cards */
.products .product,
#order-standard_cart .products .product {
    padding: 22px !important;
}

.product-title,
.products .product h3,
.products .product header,
#order-standard_cart .product-title,
#order-standard_cart .products .product header {
    color: var(--primary) !important;
    font-family: 'EB Garamond', Georgia, serif !important;
    font-weight: 700 !important;
}

/* Homepage shortcut icons */
.tiles .tile i,
.tile i,
.home-shortcuts i {
    color: var(--primary) !important;
}

/* Buttons */
.btn-primary,
.btn-success,
.btn-info,
.btn-order-now,
#order-standard_cart .btn-primary,
#order-standard_cart .btn-success,
#order-standard_cart .btn-order-now {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #ffffff !important;
    border-radius: var(--rounding-md) !important;
    font-weight: 600 !important;
}

.btn-primary:hover,
.btn-success:hover,
.btn-info:hover,
.btn-order-now:hover,
#order-standard_cart .btn-primary:hover,
#order-standard_cart .btn-success:hover,
#order-standard_cart .btn-order-now:hover {
    background-color: var(--primary-lifted) !important;
    border-color: var(--primary-lifted) !important;
    color: #ffffff !important;
}

/* Outline/default buttons */
.btn-default,
.btn-outline-primary,
#order-standard_cart .btn-default {
    background: #ffffff !important;
    border-color: var(--primary) !important;
    color: var(--primary) !important;
    border-radius: var(--rounding-md) !important;
    font-weight: 500 !important;
}

.btn-default:hover,
.btn-outline-primary:hover,
#order-standard_cart .btn-default:hover {
    background: var(--primary) !important;
    color: #ffffff !important;
}

/* Forms */
.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
    border-color: var(--border) !important;
    border-radius: var(--rounding-md) !important;
}

.form-control:focus,
input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 0.15rem rgba(66, 40, 141, 0.16) !important;
}

/* Tables */
.table thead th {
    color: var(--primary) !important;
    border-bottom-color: var(--border) !important;
}

.table td,
.table th {
    border-top-color: rgba(66, 40, 141, 0.12) !important;
}

/* Alerts */
.alert-info {
    background: #f1edf8 !important;
    border-color: var(--border) !important;
    color: var(--primary) !important;
}

.alert-success {
    border-color: rgba(255, 183, 20, 0.35) !important;
}

/* Checkout / cart */
#order-standard_cart {
    font-family: 'Jost', Arial, sans-serif !important;
}

#order-standard_cart h1,
#order-standard_cart h2,
#order-standard_cart h3,
#order-standard_cart .order-summary h2,
#order-standard_cart .order-summary h3 {
    color: var(--primary) !important;
}

#order-standard_cart .cart-body,
#order-standard_cart .summary-container {
    background: #ffffff !important;
}

/* Login/Register/Client area */
.logincontainer,
.client-home-panels .panel,
.client-home-cards .card {
    border-radius: var(--rounding-lg) !important;
    border: 1px solid var(--border) !important;
    box-shadow: 0 10px 28px rgba(66, 40, 141, 0.08) !important;
}

/* Footer */
.footer {
    background: #ffffff !important;
    border-top: 1px solid var(--border) !important;
    color: var(--text) !important;
}

.footer a {
    color: var(--primary) !important;
}

/* Mobile cleanup */
@media (max-width: 767px) {
    .navbar-brand .logo-img {
        height: 40px !important;
        max-width: 210px !important;
    }

    .primary-content {
        padding-top: 22px;
    }

    h1, h2 {
        font-size: 1.65rem !important;
    }
}
/* Better Breeder - Cart CTA button accessibility fix */
button,
a.btn,
.btn,
.btn-primary,
.btn-success,
.btn-order-now {
    text-decoration: none;
}

.btn-primary,
.btn-success,
.btn-order-now,
button[type="submit"],
a[href*="checkout"] {
    color: #ffffff !important;
}

.btn-primary *,
.btn-success *,
.btn-order-now *,
button[type="submit"] *,
a[href*="checkout"] * {
    color: #ffffff !important;
    fill: #ffffff !important;
}
/* Cart page cleanup: hide Estimate Taxes and fix checkout CTA text */
body button#v-5 {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

body button#v-9,
body button#v-9 *,
body button#v-9 svg,
body button#v-9 i {
    color: #ffffff !important;
    fill: #ffffff !important;
    stroke: #ffffff !important;
}

/* Extra fallback for purple cart buttons */
body button[style*="background"],
body .bg-primary,
body .bg-primary *,
body button[class*="bg-primary"],
body button[class*="bg-primary"] * {
    color: #ffffff !important;
    fill: #ffffff !important;
    stroke: #ffffff !important;
}
/* Better Breeder - Hosting plan page spacing */
body[data-phone-cc-input],
body {
    overflow-x: hidden;
}

#order-standard_cart,
#order-standard_cart .products,
#order-standard_cart .product-selection,
#order-standard_cart .products-list,
#order-standard_cart .row {
    box-sizing: border-box;
}

#order-standard_cart .products,
#order-standard_cart .product-selection,
#order-standard_cart .products-list {
    padding-left: 24px !important;
    padding-right: 24px !important;
}

#order-standard_cart .product,
#order-standard_cart .card {
    margin-bottom: 24px !important;
}

/* Desktop spacing between plan cards */
@media (min-width: 768px) {
    #order-standard_cart .products .row,
    #order-standard_cart .product-selection .row {
        margin-left: -12px !important;
        margin-right: -12px !important;
    }

    #order-standard_cart .products .row > div,
    #order-standard_cart .product-selection .row > div {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}

/* Mobile spacing */
@media (max-width: 767px) {
    #order-standard_cart .products,
    #order-standard_cart .product-selection,
    #order-standard_cart .products-list {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}
/* Better Breeder - Standard Cart global spacing fix */

/* Main cart/order form wrapper */
#order-standard_cart {
    max-width: 1180px;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
    box-sizing: border-box;
}

/* Add breathing room inside white content panels */
#order-standard_cart .products,
#order-standard_cart .product-info,
#order-standard_cart .view-cart-items,
#order-standard_cart .checkout,
#order-standard_cart .sub-heading,
#order-standard_cart .field-container,
#order-standard_cart .order-summary,
#order-standard_cart .panel,
#order-standard_cart .card {
    box-sizing: border-box;
}

/* Configure product page spacing */
#order-standard_cart .product-info,
#order-standard_cart .configure-product,
#order-standard_cart .config-product {
    padding-left: 28px !important;
    padding-right: 28px !important;
}

/* Review & Checkout page spacing */
#order-standard_cart .view-cart-items,
#order-standard_cart .checkout-container,
#order-standard_cart .checkout {
    padding-left: 28px !important;
    padding-right: 28px !important;
}

/* Form fields should not touch the panel edges */
#order-standard_cart .form-group,
#order-standard_cart .field-container,
#order-standard_cart .form-control,
#order-standard_cart input,
#order-standard_cart select,
#order-standard_cart textarea {
    box-sizing: border-box;
}

/* Add space between main content and order summary */
#order-standard_cart .row {
    margin-left: -12px !important;
    margin-right: -12px !important;
}

#order-standard_cart .row > div {
    padding-left: 12px !important;
    padding-right: 12px !important;
}

/* Order summary should also have internal padding */
#order-standard_cart .order-summary,
#order-standard_cart .summary-container,
#order-standard_cart .cart-sidebar {
    padding-left: 22px !important;
    padding-right: 22px !important;
}

/* Mobile spacing */
@media (max-width: 767px) {
    #order-standard_cart {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    #order-standard_cart .product-info,
    #order-standard_cart .configure-product,
    #order-standard_cart .config-product,
    #order-standard_cart .view-cart-items,
    #order-standard_cart .checkout-container,
    #order-standard_cart .checkout {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    #order-standard_cart .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    #order-standard_cart .row > div {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}