/* Bookingkalender — Mudder og Mocca */

.mmc-booking {
    --mmc-green: #27352a;
    --mmc-mokka: #8a8371;
    --mmc-sand: #c7b88e;
    --mmc-light: #f4f2ec;
    --mmc-border: #ddd8cc;
    max-width: 60rem;
}

.mmc-booking .mmc-notice {
    border-radius: 6px;
    margin: 0 0 1rem;
    padding: 0.75rem 1rem;
}

.mmc-booking .mmc-notice--info {
    background: var(--mmc-light);
    border-left: 4px solid var(--mmc-mokka);
}

.mmc-booking .mmc-notice--success {
    background: #eef4ee;
    border-left: 4px solid var(--mmc-green);
}

.mmc-booking .mmc-notice--error {
    background: #f9eeec;
    border-left: 4px solid #a94434;
}

.mmc-days {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.mmc-day {
    background: #fff;
    border: 1px solid var(--mmc-border);
    border-radius: 999px;
    color: var(--mmc-green);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0.35rem 0.9rem;
}

.mmc-day.is-active {
    background: var(--mmc-green);
    border-color: var(--mmc-green);
    color: #fff;
}

.mmc-headline {
    font-weight: 600;
    margin: 0 0 0.5rem;
    text-transform: capitalize;
}

.mmc-grid-wrap {
    overflow-x: auto;
}

.mmc-grid {
    border-collapse: collapse;
    min-width: 34rem;
    width: 100%;
}

.mmc-grid th,
.mmc-grid td {
    border: 1px solid var(--mmc-border);
    padding: 0.25rem;
    text-align: center;
}

.mmc-grid thead th {
    background: var(--mmc-green);
    color: #fff;
    font-size: 0.85rem;
    padding: 0.5rem 0.25rem;
}

.mmc-grid tbody th {
    background: var(--mmc-light);
    font-size: 0.85rem;
    font-variant-numeric: tabular-nums;
    padding: 0.4rem 0.6rem;
    white-space: nowrap;
}

.mmc-slot {
    border: 0;
    border-radius: 4px;
    cursor: pointer;
    display: block;
    font-size: 0.8rem;
    min-height: 2.1rem;
    padding: 0.3rem 0.5rem;
    width: 100%;
}

.mmc-slot.is-free {
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--mmc-sand);
    color: var(--mmc-green);
}

.mmc-slot.is-free:hover,
.mmc-slot.is-selected {
    background: var(--mmc-sand);
    color: var(--mmc-green);
}

.mmc-slot.is-busy {
    background: var(--mmc-mokka);
    color: #fff;
    cursor: not-allowed;
    opacity: 0.75;
}

.mmc-slot.is-mine {
    background: var(--mmc-green);
    color: #fff;
    cursor: default;
}

.mmc-slot.is-off {
    background: var(--mmc-light);
    cursor: not-allowed;
}

.mmc-form {
    background: var(--mmc-light);
    border: 1px solid var(--mmc-border);
    border-radius: 8px;
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
}

.mmc-form h3 {
    margin: 0 0 0.75rem;
}

.mmc-form label {
    display: block;
    font-weight: 600;
    margin: 0.75rem 0 0.25rem;
}

.mmc-form select,
.mmc-form textarea {
    border: 1px solid var(--mmc-border);
    border-radius: 4px;
    max-width: 100%;
    padding: 0.4rem 0.6rem;
}

.mmc-form textarea {
    width: 100%;
}

.mmc-clay-input {
    border: 1px solid var(--mmc-border);
    border-radius: 4px;
    padding: 0.4rem 0.6rem;
}

.mmc-form .mmc-clay-heading {
    font-weight: 600;
    margin: 0.9rem 0 0.1rem;
}

.mmc-form .mmc-clay-type {
    font-size: 0.88rem;
    font-weight: 500;
    margin: 0.5rem 0 0.2rem;
}

.mmc-form-actions {
    margin-top: 1rem;
}

.mmc-btn {
    background: #fff;
    border: 1px solid var(--mmc-border);
    border-radius: 6px;
    color: var(--mmc-green);
    cursor: pointer;
    padding: 0.5rem 1.1rem;
}

.mmc-btn--primary {
    background: var(--mmc-green);
    border-color: var(--mmc-green);
    color: #fff;
}

.mmc-btn--primary:hover {
    background: #1c2620;
}

.mmc-btn--small {
    font-size: 0.8rem;
    padding: 0.25rem 0.7rem;
}

.mmc-mine {
    margin-top: 2rem;
}

.mmc-mine ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mmc-mine li {
    align-items: center;
    border-bottom: 1px solid var(--mmc-border);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.mmc-muted {
    color: var(--mmc-mokka);
    font-weight: 400;
}

/* Introkursus */

.mmc-intro-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mmc-intro-item {
    align-items: center;
    border-bottom: 1px solid var(--mmc-border);
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
    padding: 0.75rem 0;
}

.mmc-intro-when {
    text-transform: capitalize;
}

.mmc-intro-free {
    color: var(--mmc-mokka);
    font-size: 0.9rem;
}

.mmc-intro-form {
    display: inline;
    margin: 0;
}

/* Kurser og begivenheder */

.mmc-course-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mmc-course-item {
    align-items: center;
    border-bottom: 1px solid var(--mmc-border);
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    padding: 0.9rem 0;
}

.mmc-course-item .mmc-course-text {
    flex: 1;
    min-width: 14rem;
}

.mmc-course-thumb {
    border-radius: 12px;
    display: block;
    height: 72px;
    object-fit: cover;
    width: 72px;
}

.mmc-course-name {
    color: var(--mmc-green);
    text-decoration: none;
}

.mmc-course-when {
    color: var(--mmc-mokka);
    text-transform: capitalize;
}

.mmc-course-buy {
    align-items: center;
    display: flex;
    gap: 0.75rem;
}

.mmc-course-price {
    font-weight: 600;
}

.mmc-course-info {
    background: var(--mmc-light, #f4f2ec);
    border-left: 4px solid var(--mmc-sand, #c7b88e);
    border-radius: 6px;
    margin: 1rem 0;
    padding: 0.9rem 1.1rem;
}

.mmc-course-info p {
    margin: 0.25rem 0;
}

.mmc-course-rules summary {
    cursor: pointer;
    font-weight: 600;
}
