/* EUobserver CRM-specific styles */

/* ==========================================================================
   Bootstrap overrides
   ========================================================================== */

.page-header {
    margin: 0 0 20px;
}

h1 {
    font-size: var(--wp--preset--font-size--x-large);
    margin-top: var(--wp--preset--spacing--40);
}

h2 {
    font-size: var(--wp--preset--font-size--large);
    margin-top: var(--wp--preset--spacing--30);
}

h4 {
    font-size: var(--wp--preset--font-size--medium);
    margin-top: var(--wp--preset--spacing--20);
}

/* ==========================================================================
   Account Layout - Menu + Content Side by Side
   ========================================================================== */

.eocrm-account-layout {
    display: flex;
    gap: var(--wp--preset--spacing--50);
    width: 100%;
    font-size: var(--wp--preset--font-size--small);
}

@media (max-width: 900px) {
    .eocrm-account-layout {
        flex-direction: column;
    }
}

/* ==========================================================================
   Frontend Menu Styles
   ========================================================================== */

.eocrm-account-menu {
    display: flex;
    flex-direction: column;
    gap: var(--wp--preset--spacing--30);
    flex-shrink: 0;
    width: 250px;
}

@media (max-width: 900px) {
    .eocrm-account-menu {
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
    }
}

/* Hide the separators - they cause line breaks */
.eocrm-account-menu .menu-separator {
    display: none;
}

/* Style menu items as buttons - no border */
.eocrm-account-menu .menu-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-width: 160px;
    padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--50);
    background-color: var(--wp--preset--color--white);
    color: var(--wp--preset--color--black);
    font-family: var(--wp--preset--font-family--sans);
    font-size: var(--wp--preset--font-size--medium);
    text-decoration: none;
    border: none;
    border-radius: var(--wp--preset--spacing--30);
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .eocrm-account-menu .menu-item {
        width: auto;
        flex: 0 0 auto;
    }
}

.eocrm-account-menu .menu-item:hover {
    background-color: var(--wp--preset--color--grey-2);
}

/* Active state - red-ish text on light red background */
.eocrm-account-menu .menu-item strong {
    font-weight: inherit;
}

.eocrm-account-menu .menu-item:has(strong),
.eocrm-account-menu .menu-item.active {
    background-color: var(--wp--preset--color--orange-fade);
    color: var(--wp--preset--color--orange);
}

/* Icon styling within menu items */
.eocrm-account-menu .menu-item i {
    margin-right: var(--wp--preset--spacing--30);
}

/* ==========================================================================
   Account Content Area
   ========================================================================== */

.eocrm-account-content {
    flex: 1;
    min-width: 0;
    padding: var(--wp--preset--spacing--50);
    border: 1px solid var(--wp--preset--color--border);
    border-radius: var(--wp--preset--spacing--30);
    background-color: var(--wp--preset--color--white);
}

@media (max-width: 900px) {
    .eocrm-account-content {
        padding: var(--wp--preset--spacing--40);
    }
}

.eocrm-account-content table,
.eocrm-account-content .form-control {
    font-size: var(--wp--preset--font-size--small);
    line-height: var(--wp--custom--line-height--default);
}

.eocrm-account-content a {
    color: var(--wp--preset--color--orange);
    text-decoration: underline
}

.eocrm-account-content a:focus-visible,.eo-paywall a:hover {
    color: var(--wp--preset--color--orange-hover)
}

.eocrm-account-content .sign-sso-google {
    color: #fff;
}

/* ==========================================================================
   Button Styles
   ========================================================================== */

a.btn-primary,
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--wp--preset--color--black);
    color: var(--wp--preset--color--white);
    border: none;
    border-radius: 8888px;
    height: var(--wp--preset--font-size--x-large);
    padding: 0 var(--wp--preset--spacing--50);
    font-family: var(--wp--preset--font-family--sans);
    font-size: var(--wp--preset--font-size--small);
    line-height: var(--wp--custom--line-height--default);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

a.btn-primary:hover,
a.btn-primary:focus,
.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--wp--preset--color--navy-hover);
    color: var(--wp--preset--color--white);
    text-decoration: none;
}

a.btn-danger,
a.btn-warning,
.btn-danger,
.btn-warning {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--wp--preset--color--orange);
    color: var(--wp--preset--color--white);
    border: none;
    border-radius: 8888px;
    height: var(--wp--preset--font-size--x-large);
    padding: 0 var(--wp--preset--spacing--50);
    font-family: var(--wp--preset--font-family--sans);
    font-size: var(--wp--preset--font-size--small);
    line-height: var(--wp--custom--line-height--default);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

a.btn-danger:hover,
a.btn-danger:focus,
a.btn-warning:hover,
a.btn-warning:focus,
.btn-danger:hover,
.btn-danger:focus,
.btn-warning:hover,
.btn-warning:focus {
    background-color: var(--wp--preset--color--orange-hover);
    color: var(--wp--preset--color--white);
    text-decoration: none;
}

a.btn-default,
.btn-default {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--wp--preset--color--white);
    color: var(--wp--preset--color--black);
    border: 1px solid var(--wp--preset--color--black);
    border-radius: 8888px;
    height: var(--wp--preset--font-size--x-large);
    padding: 0 var(--wp--preset--spacing--50);
    font-family: var(--wp--preset--font-family--sans);
    font-size: var(--wp--preset--font-size--small);
    line-height: var(--wp--custom--line-height--default);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

a.btn-default:hover,
a.btn-default:focus,
.btn-default:hover,
.btn-default:focus {
    background-color: var(--wp--preset--color--grey-2);
    color: var(--wp--preset--color--black);
    text-decoration: none;
}

a.btn-success,
.btn-success {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgb(22, 163, 74);
    color: var(--wp--preset--color--white);
    border: none;
    border-radius: 8888px;
    height: var(--wp--preset--font-size--x-large);
    padding: 0 var(--wp--preset--spacing--50);
    font-family: var(--wp--preset--font-family--sans);
    font-size: var(--wp--preset--font-size--small);
    line-height: var(--wp--custom--line-height--default);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

a.btn-success:hover,
a.btn-success:focus,
.btn-success:hover,
.btn-success:focus {
    background-color: rgb(21, 128, 61);
    color: var(--wp--preset--color--white);
    text-decoration: none;
}

/* ==========================================================================
   Checkbox Styles
   ========================================================================== */

.checkbox {
    display: flex;
    align-items: center;
    margin-bottom: var(--wp--preset--spacing--40);
}

.checkbox label {
    display: flex;
    align-items: center;
    gap: var(--wp--preset--spacing--30);
    cursor: pointer;
    font-family: var(--wp--preset--font-family--sans);
    font-size: var(--wp--preset--font-size--small);
    color: var(--wp--preset--color--black);
}

.checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid var(--wp--preset--color--black);
    border-radius: 3px;
    background-color: var(--wp--preset--color--white);
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

.checkbox input[type="checkbox"]:checked {
    background-color: var(--wp--preset--color--black);
}

.checkbox input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid var(--wp--preset--color--white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
