.mm-box-office-chart {
    overflow: hidden;
    margin: 0 0 1.5em;
    background: #efb428;
    color: #111111;
}

.mm-box-office-chart__heading {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 8px 15px 6px;
    background: #540439;
    color: #ffffff;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.5;
    text-transform: uppercase;
}

.mm-box-office-chart__table-wrap {
    width: 100%;
}

.mm-box-office-chart__table {
    width: 100%;
    margin: 0;
    border: 0;
    border-collapse: collapse;
    table-layout: fixed;
    background: transparent;
    color: #111111;
}

.mm-box-office-chart__table th,
.mm-box-office-chart__table td {
    border: 0;
    background: transparent;
}

.mm-box-office-chart__table thead th {
    padding: 9px 8px 7px;
    border-bottom: 2px solid rgba(84, 4, 57, 0.75);
    color: #4b390d;
    font-size: 10px;
    font-weight: 900;
    line-height: 1.15;
    text-align: left;
    text-transform: uppercase;
    vertical-align: bottom;
}

.mm-box-office-chart__table thead .mm-box-office-chart__position {
    width: 44px;
    text-align: center;
}

.mm-box-office-chart__table thead .mm-box-office-chart__money {
    width: 108px;
    text-align: right;
}

.mm-box-office-chart__table tbody th,
.mm-box-office-chart__table tbody td {
    padding: 9px 8px;
    border-bottom: 1px solid rgba(84, 4, 57, 0.22);
    font-size: 15px;
    line-height: 1.25;
    vertical-align: middle;
}

.mm-box-office-chart__table tbody tr:last-child th,
.mm-box-office-chart__table tbody tr:last-child td {
    border-bottom: 0;
}

.mm-box-office-chart__rank {
    font-size: 16px;
    font-weight: 900;
    text-align: center;
}

.mm-box-office-chart__previous {
    color: #4b390d;
    font-weight: 700;
    text-align: center;
}

.mm-box-office-chart__film {
    overflow-wrap: anywhere;
    font-weight: 800;
}

.mm-box-office-chart__money {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

.mm-box-office-chart__new {
    display: inline-block;
    margin: 0 0.45em 0 0;
    padding: 2px 5px 1px;
    border-radius: 2px;
    background: #cf2e2e;
    color: #ffffff;
    font-size: 10px;
    font-weight: 900;
    line-height: 1.4;
    text-transform: uppercase;
    vertical-align: 0.08em;
}

/*
 * Existing box-office Group blocks relied on WordPress's former default Group
 * padding. Restore that spacing only after the renderer has positively marked
 * a Group whose first heading contains "Box Office".
 */
.entry-content .inner-entry-content .mm-box-office-chart--legacy {
    box-sizing: border-box;
    overflow: hidden;
    align-items: stretch;
    gap: 0;
    padding: 0 20px 18px;
}

.entry-content .inner-entry-content .mm-box-office-chart--legacy > .wp-block-heading:first-child {
    box-sizing: border-box;
    align-self: stretch;
    display: block;
    width: auto;
    margin: 0 -20px 16px;
}

.entry-content .inner-entry-content .mm-box-office-chart--legacy > .wp-block-paragraph {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
}

.mm-box-office-chart-notice {
    padding: 12px;
    border: 1px dashed #757575;
}

.mm-box-office-archive__filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
    margin: 0 0 20px;
    padding: 16px;
    background: #f3eef8;
    border-left: 5px solid #540439;
}

.mm-box-office-archive__filters label {
    display: grid;
    gap: 4px;
    margin: 0;
    color: #2b1230;
    font-weight: 700;
}

.mm-box-office-archive__filters select,
.mm-box-office-archive__filters input[type="submit"] {
    min-height: 42px;
    padding: 7px 10px;
    border: 1px solid #6f6f6f;
    border-radius: 2px;
    background: #ffffff;
    color: #111111;
    font: inherit;
}

.mm-box-office-archive__filters input[type="submit"] {
    border-color: #540439;
    background: #540439;
    color: #ffffff;
    font-weight: 800;
    cursor: pointer;
}

.mm-box-office-archive__chart {
    margin: 0 0 12px;
    border: 1px solid #d7c6e8;
    background: #ffffff;
}

.mm-box-office-archive__chart > summary {
    padding: 12px 15px;
    background: #540439;
    color: #ffffff;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.5;
    text-transform: uppercase;
    cursor: pointer;
}

.mm-box-office-archive__chart > .mm-box-office-chart {
    margin-bottom: 0;
}

@media only screen and (max-width: 600px) {
    .mm-box-office-chart__heading {
        padding-right: 12px;
        padding-left: 12px;
        font-size: 15px;
    }

    .mm-box-office-chart__table thead th {
        padding: 7px 3px 6px;
        font-size: 8px;
        line-height: 1.05;
        text-align: center;
    }

    .mm-box-office-chart__table thead .mm-box-office-chart__position {
        width: 32px;
    }

    .mm-box-office-chart__table thead .mm-box-office-chart__film-heading {
        padding-left: 5px;
        text-align: left;
    }

    .mm-box-office-chart__table thead .mm-box-office-chart__money {
        width: 65px;
        text-align: center;
        white-space: normal;
    }

    .mm-box-office-chart__table tbody th,
    .mm-box-office-chart__table tbody td {
        padding: 8px 3px;
        font-size: 12px;
        line-height: 1.2;
    }

    .mm-box-office-chart__rank {
        font-size: 13px;
    }

    .mm-box-office-chart__film {
        padding-left: 5px !important;
    }

    .mm-box-office-chart__money {
        font-size: 11px !important;
    }

    .mm-box-office-chart__new {
        display: table;
        margin: 0 0 3px;
        padding: 1px 4px;
        font-size: 8px;
    }

    .mm-box-office-archive__filters {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        padding: 12px;
    }

    .mm-box-office-archive__filters label,
    .mm-box-office-archive__filters select {
        box-sizing: border-box;
        width: 100%;
        min-width: 0;
    }

    .mm-box-office-archive__filters input[type="submit"] {
        width: 100%;
    }

    .entry-content .inner-entry-content .mm-box-office-chart--legacy {
        padding-right: 14px;
        padding-bottom: 14px;
        padding-left: 14px;
    }

    .entry-content .inner-entry-content .mm-box-office-chart--legacy > .wp-block-heading:first-child {
        margin-right: -14px;
        margin-bottom: 12px;
        margin-left: -14px;
    }
}
