/* Shared action styles use the homepage course-discovery button as reference. */
:root {
    --ek-action-height: 48px;
    --ek-action-radius: 6px;
    --ek-action-accent: #ffbd45;
    --ek-action-accent-hover: #f5ad2e;
}
body:not(.wp-admin) :is(.tutor-btn, .ct-button, .wp-element-button, .wp-block-button__link, .stk-button, .wpforms-submit, .ek-button-ghost) {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: var(--ek-action-height) !important;
    padding: 12px 24px !important;
    border: 0 !important;
    border-radius: var(--ek-action-radius) !important;
    font-family: var(--theme-font-family, Inter, sans-serif) !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 21px !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    text-decoration: none !important;
    box-shadow: none !important;
    background: var(--theme-palette-color-1) !important;
    color: var(--theme-palette-color-7) !important;
}
body:not(.wp-admin) :is(.tutor-btn, .ct-button, .wp-element-button, .wp-block-button__link, .stk-button, .wpforms-submit, .ek-button-ghost) :is(span, strong) {
    color: inherit;
    text-decoration: none !important;
}
body:not(.wp-admin) :is(.tutor-btn, .ct-button, .wp-element-button, .wp-block-button__link, .stk-button, .wpforms-submit):is(:hover, :focus-visible) {
    background: var(--theme-palette-color-2) !important;
    color: var(--theme-palette-color-7) !important;
}
body:not(.wp-admin) :is(.tutor-btn-ghost, [class*="tutor-btn-link"], .ek-button-ghost, .is-style-ek-ghost > .wp-block-button__link) {
    background: transparent !important;
    color: var(--theme-palette-color-4) !important;
}
body:not(.wp-admin) :is(.tutor-btn-ghost, [class*="tutor-btn-link"], .ek-button-ghost, .is-style-ek-ghost > .wp-block-button__link):is(:hover, :focus-visible) {
    background: var(--theme-palette-color-9) !important;
    color: var(--theme-palette-color-4) !important;
}
body:not(.wp-admin) :is(.tutor-btn-icon, .tutor-learning-header-back .tutor-btn, .tutor-learning-header-toggle-mobile .tutor-btn) {
    width: var(--ek-action-height);
    min-width: var(--ek-action-height);
    padding: 0 !important;
    flex-shrink: 0;
}
body:not(.wp-admin) :is(.ek-button-accent, .is-style-ek-accent > .wp-block-button__link) {
    background: var(--ek-action-accent) !important;
    color: #17212b !important;
}
body:not(.wp-admin) :is(.ek-button-accent, .is-style-ek-accent > .wp-block-button__link):is(:hover, :focus-visible) {
    background: var(--ek-action-accent-hover) !important;
    color: #17212b !important;
}
body:not(.wp-admin) :is(.tutor-btn, .ct-button, .wp-element-button, .wp-block-button__link, .stk-button, .wpforms-submit, .ek-button-ghost):focus-visible {
    outline: 2px solid var(--theme-palette-color-1);
    outline-offset: 3px;
}

/* Button icons share the label color instead of Tutor's independent brand ink. */
body:not(.wp-admin) :is(.tutor-btn, .ct-button, .wp-element-button, .wp-block-button__link, .stk-button, .wpforms-submit, .ek-button-ghost) svg {
    color: inherit !important;
}
body:not(.wp-admin) #tutor-lesson-nav-take-note-btn > svg {
    display: block;
    visibility: visible;
    opacity: 1;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
