/* Read-more content blocks — shared by ReadMore*.ascx controls */

.rm-footer-wrap {
    margin-bottom: 20px;
}

.rm-footer {
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(36, 39, 44, 0.06);
    overflow: hidden;
}

.rm-footer--hero {
    margin-bottom: 12px;
}

.rm-footer--plain {
    border: none;
    box-shadow: none;
    background: transparent;
}

.rm-footer__inner {
    padding: 20px 22px;
}

.rm-footer--plain .rm-footer__inner {
    padding: 16px 0;
}

.rm-footer__heading {
    margin: 0 0 14px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #24272c;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.rm-footer__heading--page {
    font-size: 1.375rem;
}

.rm-footer__subheading {
    margin: 20px 0 12px;
    font-size: 1.125rem;
    font-weight: 700;
    color: #24272c;
    line-height: 1.35;
}

.rm-footer__meta {
    margin: 0 0 10px;
    font-size: 12px;
    color: #888;
    line-height: 1.4;
}

.rm-footer__preview,
.rm-footer__full,
.rm-footer__content {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.7;
}

.rm-footer__preview p,
.rm-footer__full p,
.rm-footer__content p {
    margin: 0 0 12px;
}

.rm-footer__preview p:last-child,
.rm-footer__full p:last-child,
.rm-footer__content p:last-child {
    margin-bottom: 0;
}

.rm-footer__preview a,
.rm-footer__full a,
.rm-footer__content a {
    color: #c92127;
    text-decoration: none;
    font-weight: 500;
}

.rm-footer__preview a:hover,
.rm-footer__full a:hover,
.rm-footer__content a:hover {
    text-decoration: underline;
}

.rm-footer__preview h2,
.rm-footer__full h2,
.rm-footer__content h2,
.rm-footer__preview h3,
.rm-footer__full h3,
.rm-footer__content h3 {
    font-size: 16px;
    font-weight: 700;
    color: #24272c;
    margin: 16px 0 8px;
    line-height: 1.35;
}

.rm-footer__preview ul,
.rm-footer__full ul,
.rm-footer__content ul,
.rm-footer__preview ol,
.rm-footer__full ol,
.rm-footer__content ol {
    margin: 0 0 12px;
    padding-left: 20px;
}

.rm-footer__preview li,
.rm-footer__full li,
.rm-footer__content li {
    margin-bottom: 6px;
}

.rm-footer__preview table,
.rm-footer__full table,
.rm-footer__content table,
.rm-footer__table-wrap table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 13px;
}

.rm-footer__preview table th,
.rm-footer__full table th,
.rm-footer__content table th,
.rm-footer__table-wrap table th {
    background: #f8f9fb;
    font-weight: 600;
    color: #24272c;
    text-align: left;
    padding: 10px 12px;
    border: 1px solid #e8ecf0;
}

.rm-footer__preview table td,
.rm-footer__full table td,
.rm-footer__content table td,
.rm-footer__table-wrap table td {
    padding: 10px 12px;
    border: 1px solid #e8ecf0;
    vertical-align: top;
}

.rm-footer__full {
    display: none;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f2f5;
}

.rm-footer.is-expanded .rm-footer__full {
    display: block;
}

.rm-footer__preview--full {
    display: block;
}

.rm-footer__actions {
    margin-top: 12px;
    padding-top: 4px;
}

.rm-footer__toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: none;
    background: none;
    color: #c92127;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    line-height: 1.4;
    transition: color 0.15s;
}

.rm-footer__toggle:hover,
.rm-footer__toggle:focus {
    color: #a81b20;
    text-decoration: underline;
    outline: none;
}

.rm-footer__toggle::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-top: -3px;
    transition: transform 0.2s ease;
}

.rm-footer.is-expanded .rm-footer__toggle::after {
    transform: rotate(-135deg);
    margin-top: 3px;
}

.rm-footer__table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 8px;
}

/* Price list accordion (ReadMoreCategories) */
.rm-footer__price-section {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f0f2f5;
}

.rm-footer__price-accordion .panel {
    border: 1px solid #f0f2f5;
    border-radius: 10px;
    overflow: hidden;
    margin: 0;
}

.rm-footer__price-accordion .acod-head {
    margin: 0;
    padding: 0;
}

.rm-footer__price-accordion .acod-title {
    margin: 0;
}

.rm-footer-section .rm-footer__price-accordion .acod-head a {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 16px !important;
    border: 0 !important;
    border-radius: 0 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #24272c !important;
    text-decoration: none !important;
    background: #fafbfc;
}

.rm-footer-section .rm-footer__price-accordion .acod-head a:hover,
.rm-footer-section .rm-footer__price-accordion .acod-head a:focus {
    color: #c92127 !important;
    background: #f3f4f6;
}

.rm-footer-section .rm-footer__price-accordion .acod-head a::after {
    font-family: inherit !important;
    content: "" !important;
    position: static !important;
    float: none !important;
    width: 8px;
    height: 8px;
    margin: 0;
    border-right: 2px solid #6b7280;
    border-bottom: 2px solid #6b7280;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.rm-footer-section .rm-footer__price-accordion .acod-head a:not(.collapsed)::after {
    transform: rotate(-135deg);
}

.rm-footer__price-accordion .acod-body {
    border-top: 1px solid #f0f2f5;
    border-left: 0;
    border-right: 0;
    margin-top: 0;
}

.rm-footer__price-accordion .acod-content {
    padding: 0 !important;
}

@media (max-width: 767px) {
    .rm-footer__inner {
        padding: 16px;
    }

    .rm-footer__heading {
        font-size: 1.125rem;
    }

    .rm-footer__heading--page {
        font-size: 1.25rem;
    }

    .rm-footer:not(.is-expanded) .rm-footer__preview:not(.rm-footer__preview--full) {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

@media (min-width: 768px) {
    .rm-footer__preview table,
    .rm-footer__full table,
    .rm-footer__content table,
    .rm-footer__table-wrap table {
        display: table;
    }
}
