/*
Theme Name: Chaplin Child
Theme URI: https://github.com/nilslockean/
Version: 1.0.3
Description: Ett Chaplin Child Theme anpassat för Sparbanken Skåne Seniorklubb Finn.
Author: Nils Lockean
Author URI: https://github.com/nilslockean/
template: chaplin
*/

:root {
    --site-logo-orange: #DD7700;
    --mkk-green: #393;
    --mkk-red: #e44;
    --body-font-weight: 500;
}

body {
    font-weight: var(--body-font-weight);
}

.entry-header .entry-title + .intro-text {
    font-weight: var(--headings-weight);
    border-left: 3px solid var(--site-logo-orange);
    border-left: 3px solid rgba(currentColor, 0.5);
    padding-left: 2rem;
}

.section-inner:not(.fade-block) .entry-title + .intro-text {
    margin-top: 5rem;
}

.theme-credits {
    display: none;
}

a.site-logo-link {
    color: inherit;
}

.site-logo-text {
    fill: currentColor;
}
.site-logo-orange {
    fill: var(--site-logo-orange);
}

.overlay-header .header-inner:not(.is-sticky) .site-logo {
    --site-logo-orange: #f90;
}

.header-inner.is-sticky .site-logo {
    height: 75px;
    width: auto;
}

.op-overview-shortcode {
    background: #f6f6f6;
    padding: 1.5rem 2rem;
}

span.op-period-time {
    display: inline;
}

.op-list-overview .highlighted, tr.op-row-day.highlighted td, tr.op-row-day.highlighted th, span.op-closed, span.op-open {
    color: inherit;
}

.edit-hours-link {
    margin-top: 1rem;
    display: inline-block;
}

.op-list-holidays {
    background: #fee;
    padding: 0 1rem;
}

.op-list-holidays:not(:empty)::before {
    content: "Avvikelser:";
    font-weight: bold;
    background: white;
    display: block;
    margin: 0 -1rem;
    padding-bottom: 10px;
}

.op-list-holidays dt {
    padding-top: 0.5rem;
}

.op-list-holidays dd, .op-list-holidays dt + dd {
    padding-bottom: 0.5rem;
    margin-left: 0;
    margin-top: 0;
}

 .op-list-holidays dd + dt {
    margin-top: 0;
 }

.op-list-holidays dt:not(:first-child) {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.op-list-holidays dt.highlighted::after {
    content: " (idag)";
}

.op-list-holidays .highlighted {
    color: inherit;
    padding-left: 1rem;
    margin-left: -1rem;
    margin-right: -1rem;
    border-left: 4px solid red;
}

/* Card symbols in main nav */

.menu-item.card a::before {
    content: "";
    width: 1em;
    height: 0.67em;
    display: inline-block;
    border-radius: 2px;
    margin-right: 1rem;
}

.menu-item.green.card a::before {
    background: var(--mkk-green);
}

.menu-item.red.card a::before {
    background: var(--mkk-red);
}

/* Polylang language switcher */
.menu-item.lang-item img {
    display: inline-block;
    margin-right: .5rem;
}

/* Lists */
ol, ul.wp-block-navigation__container {
    counter-reset: mkk-counter;
    list-style: none;
    padding-left: 4rem;
}

ol li,
ul.wp-block-navigation__container li {
    margin: 0 0 1rem 0;
    counter-increment: mkk-counter;
    position: relative;
    line-height: 32px;
}

ol li::before,
ul.wp-block-navigation__container li:before {
    --size: 32px;

    content: counter(mkk-counter);
    color: #000;
    font-size: 1.5rem;
    font-weight: bold;
    position: absolute;
    left: calc(-1 * var(--size) - 10px);
    line-height: var(--size);
    width: var(--size);
    height: var(--size);
    top: 0;
    background: #f90;
    border-radius: 50%;
    text-align: center;
}

select {
    padding: 1rem;
}

input[type=text], input[type=password], input[type=email], input[type=url], input[type=date], input[type=month], input[type=time], input[type=datetime], input[type=datetime-local], input[type=week], input[type=number], input[type=search], input[type=tel], input[type=color], textarea {
  background: #fff;
}

/* Events Magager */

/* List view */
.em-list {
    margin-bottom: 2rem;
}

.em-list .em-event {
    padding: 2rem;
    background: var(--light-background-color);
    /* border-left: .5rem solid var(--default-border); */
}

.em-list .em-event + .em-event {
    margin-top: 2rem;
}

.em-list .em-item-title {
    margin-top: 0;
}

.em-list .em-item-title a {
    color: var(--wp--preset--color--headings);
    text-decoration: none;
}

.em-list .em-item-title a:hover, .em-list .em-item-title a:focus, .em-list .em-item-title a:active {
    /* color: var(--wp--preset--color--headings); */
    text-decoration: underline;
}

.em-list .em-item-actions {
    margin-top: 2rem;
}

/* Single event */

.event .entry-content {
    max-width: none;
}

.event section {
    padding: 0;
}

.em-booking-message, .em-waitlist-booking-cancel .em-notice  {
    --background: var(--light-background-color);
    padding: 2rem;
    background: var(--background);
}

.em-booking-message p:last-child {
    margin-bottom: 0;
}

.em-booking-message.em-booking-message-error, .em-waitlist-booking-cancel .em-notice.em-notice-error {
    --background: #f8d7da;
}

.em-booking-message.em-booking-message-success, .em-waitlist-booking-cancel .em-notice.em-notice-success {
    --background: #d1e7dd;
}

.em-waitlist-booking-cancel .em-booking-message {
    --background: #cfe2ff;
    margin-bottom: 2rem;
}

.em-waitlist-booking-cancel button .loading-content {
    display: none;
}

.em-waitlist-booking-cancel li.em-notice {
    list-style: none;
    margin: 0;
}

.em-event .em-booking-buttons {
    margin-top: 2rem;
}

.em-event .em-booking-submit {
    min-width: 50%;
}

/* Booking form */
.em-tickets thead {
    background: var(--light-background-color);
}

.em-tickets .em-bookings-ticket-table-price {
    white-space: nowrap;
}

.em-tickets .em-ticket-bookings {
    background: #def;
}

.em-tickets td, .em-tickets th {
    padding: 2rem;
}

.em-tickets .em-ticket-bookings input {
    background: #fff;
}

.em-event-booking-form .em-login {
    display: none;
}

/* FAQ */
.meow-faq-block label {
    font-size: inherit;
}
.meow-faq-block label.inline, .meow-faq-block input[type="checkbox"] + label {
    font-weight: var(--body-font-weight);
}
.meow-faq-block .meow-tab-answer {
    color: inherit;
}