.tco-maria-availability {
    --tco-ma-burgundy: #800020;
    --tco-ma-ink: #17100a;
    --tco-ma-muted: #6f655b;
    --tco-ma-line: #eadfca;
    --tco-ma-gold: #c8a45d;
    --tco-ma-soft: #fbfaf7;
    width: 100%;
    margin: 0 auto;
    color: var(--tco-ma-ink);
    font-family: "Roboto", Arial, sans-serif;
}

.tco-ma-hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    padding: 34px 36px;
    border-radius: 8px 8px 0 0;
    background: #1d1713;
    color: #fff;
    border-bottom: 2px solid var(--tco-ma-gold);
}

.tco-ma-logo {
    width: 96px;
    height: auto;
    display: block;
}

.tco-ma-hero span,
.tco-ma-panel-head span {
    display: block;
    margin: 0 0 8px;
    color: var(--tco-ma-gold);
    font-family: "Roboto Condensed", Arial, sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.tco-ma-hero h2,
.tco-ma-panel-head h3 {
    margin: 0;
    font-family: "Roboto Slab", Georgia, serif;
    line-height: 1.2;
}

.tco-ma-hero h2 {
    color: #ffffff !important;
    font-size: clamp(28px, 4vw, 44px);
}

.tco-ma-hero p,
.tco-ma-panel-head p,
.tco-ma-actions p {
    margin: 10px 0 0;
    color: rgba(255,255,255,.72);
    line-height: 1.65;
}

.tco-ma-status {
    margin: 18px 0;
    padding: 12px 16px;
    border-radius: 6px;
    border: 1px solid rgba(31,104,71,.28);
    background: #f1f8f4;
    color: #1f6847;
    font-weight: 700;
}

.tco-ma-form {
    display: grid;
    gap: 18px;
    padding: 22px;
    border: 1px solid var(--tco-ma-line);
    border-top: 0;
    border-radius: 0 0 8px 8px;
    background: #fff;
    box-shadow: 0 14px 40px rgba(0,0,0,.08);
}

.tco-ma-panel {
    padding: 22px;
    border: 1px solid var(--tco-ma-line);
    border-radius: 8px;
    background: var(--tco-ma-soft);
}

.tco-ma-panel-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: end;
    margin-bottom: 18px;
}

.tco-ma-panel-head--compact {
    align-items: center;
    margin-bottom: 0;
}

.tco-ma-panel-head--compact p {
    max-width: 560px;
}

.tco-ma-panel--exceptions {
    background: #fffdf9;
}

.tco-ma-exception-editor {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--tco-ma-line);
}

.tco-ma-panel-head h3 {
    font-size: 23px;
}

.tco-ma-panel-head p,
.tco-ma-actions p {
    max-width: 430px;
    color: var(--tco-ma-muted);
    font-size: 14px;
}

.tco-ma-week {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 10px;
}

.tco-ma-day {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--tco-ma-line);
    border-radius: 8px;
    background: #fff;
}

.tco-ma-day.is-enabled {
    border-color: rgba(128,0,32,.34);
    box-shadow: inset 0 0 0 1px rgba(128,0,32,.08);
}

.tco-ma-toggle {
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    font-weight: 800;
}

.tco-ma-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.tco-ma-toggle span {
    width: 34px;
    height: 20px;
    border-radius: 999px;
    background: #d8d0c3;
    position: relative;
    transition: background .18s ease;
}

.tco-ma-toggle span::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    transition: transform .18s ease;
}

.tco-ma-toggle input:checked + span {
    background: var(--tco-ma-burgundy);
}

.tco-ma-toggle input:checked + span::before {
    transform: translateX(14px);
}

.tco-ma-times {
    display: grid;
    gap: 8px;
}

.tco-ma-interval,
.tco-ma-add {
    display: grid;
    gap: 10px;
}

.tco-ma-interval {
    grid-template-columns: 1fr 1fr 32px;
    align-items: end;
}

.tco-ma-interval label,
.tco-ma-add label {
    display: grid;
    gap: 5px;
    color: var(--tco-ma-muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.tco-ma-interval input,
.tco-ma-add input,
.tco-ma-add select {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--tco-ma-line);
    border-radius: 6px;
    background: #fff;
    color: var(--tco-ma-ink);
    padding: 8px 10px;
    font: inherit;
    box-sizing: border-box;
}

.tco-ma-add select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--tco-ma-burgundy) 50%), linear-gradient(135deg, var(--tco-ma-burgundy) 50%, transparent 50%);
    background-position: calc(100% - 18px) 18px, calc(100% - 12px) 18px;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 34px;
}

.tco-ma-add-interval,
.tco-ma-remove-interval {
    border: 1px solid rgba(128,0,32,.18);
    background: rgba(128,0,32,.06);
    color: var(--tco-ma-burgundy);
    cursor: pointer;
    font-family: "Roboto Condensed", Arial, sans-serif;
    font-weight: 800;
}

.tco-ma-add-interval {
    min-height: 36px;
    border-radius: 999px;
}

.tco-ma-remove-interval {
    width: 32px;
    height: 42px;
    border-radius: 8px;
    font-size: 18px;
    line-height: 1;
}

.tco-ma-add {
    grid-template-columns: 1fr 1fr 1.25fr .75fr .75fr auto;
    align-items: end;
    margin-bottom: 16px;
}

.tco-ma-toggle-exceptions {
    white-space: nowrap;
}

.tco-ma-secondary,
.tco-ma-primary,
.tco-ma-exception button {
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-family: "Roboto Condensed", Arial, sans-serif;
    font-weight: 800;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.tco-ma-secondary,
.tco-ma-primary {
    min-height: 44px;
    padding: 12px 22px;
}

.tco-ma-secondary {
    background: #1d1713;
    color: #fff;
}

.tco-ma-primary {
    background: var(--tco-ma-burgundy);
    color: #fff;
    min-width: 240px;
}

.tco-ma-secondary:hover,
.tco-ma-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0,0,0,.14);
}

.tco-ma-exceptions {
    display: grid;
    gap: 10px;
}

.tco-ma-empty {
    margin: 0;
    padding: 16px;
    border: 1px dashed var(--tco-ma-line);
    border-radius: 8px;
    color: var(--tco-ma-muted);
}

.tco-ma-exception {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--tco-ma-line);
    border-radius: 8px;
    background: #fff;
}

.tco-ma-exception strong,
.tco-ma-exception span {
    display: block;
}

.tco-ma-exception span {
    margin-top: 4px;
    color: var(--tco-ma-muted);
    font-size: 13px;
}

.tco-ma-exception button {
    padding: 9px 14px;
    background: rgba(128,0,32,.08);
    color: var(--tco-ma-burgundy);
}

.tco-ma-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

@media (max-width: 980px) {
    .tco-ma-week,
    .tco-ma-add {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .tco-ma-hero,
    .tco-ma-form,
    .tco-ma-panel {
        padding: 20px;
    }

    .tco-ma-panel-head,
    .tco-ma-actions,
    .tco-ma-exception {
        display: grid;
    }

    .tco-ma-panel-head--compact {
        align-items: stretch;
    }

    .tco-ma-week,
    .tco-ma-add,
    .tco-ma-interval {
        grid-template-columns: 1fr;
    }

    .tco-ma-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .tco-ma-logo {
        margin: 0 auto;
        width: 86px;
    }

    .tco-ma-primary,
    .tco-ma-secondary {
        width: 100%;
    }
}
