/* Ryjik info pages (delivery, returns, etc.) */

.page-content .ryjik-tariff-table,
.page-content .ryjik-info-section,
.page-content .ryjik-contact-card {
    margin-left: auto;
    margin-right: auto;
    max-width: 920px;
}

/* Override core Gutenberg .has-large-font-size (32px) */
.page-content .has-large-font-size {
    font-size: 1.15rem !important;
    line-height: 1.55 !important;
    margin: 1.5rem 0 2rem !important;
}

/* Page hero H1 (theme renders it inside .title-section, not .page-content) */
.page .title-section .title-section-title h1 {
    font-size: 1.625rem;
    line-height: 1.25;
    margin: 0;
}
@media (max-width: 1024px) {
    .page .title-section .title-section-title h1 { font-size: 1.5rem; }
}
@media (max-width: 720px) {
    .page .title-section .title-section-title h1 { font-size: 1.25rem; }
}

/* Tariff summary table */
.ryjik-tariff-table {
    margin: 0 auto 3rem;
    max-width: 920px;
}
.ryjik-tariff-table table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 10px;
    overflow: hidden;
    font-size: 1rem;
}
.ryjik-tariff-table thead th {
    background: var(--ryjik-main, #f97316);
    color: #fff;
    text-align: left;
    padding: .85rem 1rem;
    font-weight: 600;
    letter-spacing: .01em;
}
.ryjik-tariff-table tbody td {
    padding: .85rem 1rem;
    border-top: 1px solid rgba(0,0,0,.07);
    vertical-align: top;
}
.ryjik-tariff-table tbody tr:first-child td {
    border-top: 0;
}
.ryjik-tariff-table tbody tr:nth-child(even) td {
    background: rgba(249,115,22,.04);
}
.ryjik-tariff-table tbody td:first-child {
    font-weight: 600;
    white-space: nowrap;
}

/* Section card */
.ryjik-info-section {
    padding: 2rem 0 1rem;
    border-top: 1px solid rgba(0,0,0,.08);
    margin-top: 2rem;
}
.ryjik-info-section h2.wp-block-heading,
.ryjik-info-section > h2 {
    position: relative;
    padding-left: .9rem;
    margin: 0 0 1.5rem;
    font-size: 1.6rem;
    line-height: 1.2;
}
.ryjik-info-section h2.wp-block-heading::before,
.ryjik-info-section > h2::before {
    content: "";
    position: absolute;
    left: 0; top: .25em; bottom: .25em;
    width: 4px;
    border-radius: 2px;
    background: var(--ryjik-main, #f97316);
}
.ryjik-info-section h3 {
    font-size: 1.15rem;
    margin: 2rem 0 .75rem;
}
.ryjik-info-section > h3:first-of-type,
.ryjik-info-section > .wp-block-columns + h3 {
    margin-top: 2.5rem;
}

/* Columns inside section — force flex (theme doesn't load wp-block-library) */
.ryjik-info-section .wp-block-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    margin: 1rem 0 2rem;
}
.ryjik-info-section .wp-block-column {
    flex: 1 1 0;
    min-width: 0;
}
.ryjik-info-section .wp-block-column > h3:first-child {
    margin-top: 0;
}

/* Lists */
.ryjik-info-section ul,
.ryjik-info-section ol {
    padding-left: 1.5rem;
    margin: .75rem 0 1.25rem;
}
.ryjik-info-section li {
    margin: .55rem 0;
    line-height: 1.6;
}
.ryjik-info-section li:first-child { margin-top: 0; }
.ryjik-info-section li:last-child  { margin-bottom: 0; }

@media (max-width: 720px) {
    .ryjik-info-section .wp-block-columns {
        flex-direction: column;
        gap: 1.25rem;
        margin: .75rem 0 1.5rem;
    }
    .ryjik-info-section .wp-block-column { margin-bottom: .75rem; }
    .ryjik-info-section h3 { margin: 1.5rem 0 .5rem; }
}

/* FAQ accordion */
.ryjik-faq {
    margin: .5rem 0 1rem;
}
.ryjik-faq-item {
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 10px;
    margin: .6rem 0;
    background: #fff;
    overflow: hidden;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.ryjik-faq-item[open] {
    border-color: rgba(249,115,22,.35);
    box-shadow: 0 1px 3px rgba(249,115,22,.08);
}
.ryjik-faq-item > summary {
    list-style: none;
    cursor: pointer;
    padding: 1rem 3rem 1rem 1.25rem;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.4;
    position: relative;
    color: inherit;
    user-select: none;
}
.ryjik-faq-item > summary::-webkit-details-marker { display: none; }
.ryjik-faq-item > summary::after {
    content: "";
    position: absolute;
    right: 1.25rem;
    top: 50%;
    width: .55rem;
    height: .55rem;
    border-right: 2px solid var(--ryjik-main, #f97316);
    border-bottom: 2px solid var(--ryjik-main, #f97316);
    transform: translateY(-70%) rotate(45deg);
    transition: transform .2s ease;
}
.ryjik-faq-item[open] > summary::after {
    transform: translateY(-30%) rotate(-135deg);
}
.ryjik-faq-item > summary:hover {
    color: var(--ryjik-main, #f97316);
}
.ryjik-faq-answer {
    padding: 0 1.25rem 1.1rem;
    line-height: 1.65;
    color: rgba(0,0,0,.78);
}
.ryjik-faq-answer > *:first-child { margin-top: 0; }
.ryjik-faq-answer > *:last-child  { margin-bottom: 0; }
.ryjik-faq-answer p { margin: .6rem 0; }
.ryjik-faq-answer ul,
.ryjik-faq-answer ol {
    padding-left: 1.4rem;
    margin: .5rem 0 .75rem;
}
.ryjik-faq-answer li { margin: .35rem 0; line-height: 1.6; }
.ryjik-faq-answer a {
    color: var(--ryjik-main, #f97316);
    font-weight: 600;
}
.ryjik-faq-answer a:hover {
    color: var(--ryjik-main-hover, #ea580c);
}

@media (max-width: 720px) {
    .ryjik-faq-item > summary {
        font-size: .98rem;
        padding: .85rem 2.5rem .85rem 1rem;
    }
    .ryjik-faq-item > summary::after { right: 1rem; }
    .ryjik-faq-answer { padding: 0 1rem 1rem; }
}

/* Contact card */
.page-content .ryjik-contact-card {
    margin-top: 3rem !important;
    margin-bottom: 5rem !important;
    padding: 1.75rem 2rem;
    background: rgba(249,115,22,.06);
    border: 1px solid rgba(249,115,22,.2);
    border-radius: 12px;
}
.page-content > .ryjik-contact-card:last-child,
.page-content .post-content-wrap > .ryjik-contact-card:last-child {
    margin-bottom: 5rem !important;
}
.ryjik-contact-card h2.wp-block-heading,
.ryjik-contact-card > h2 {
    margin: 0 0 1rem;
    font-size: 1.4rem;
}
.ryjik-contact-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .35rem 2rem;
}
.ryjik-contact-card li {
    margin: 0;
    line-height: 1.7;
}
.ryjik-contact-card a {
    font-weight: 600;
    color: var(--ryjik-main, #f97316);
}
.ryjik-contact-card a:hover {
    color: var(--ryjik-main-hover, #ea580c);
}

@media (max-width: 720px) {
    .page-content .has-large-font-size {
        font-size: 1rem !important;
        line-height: 1.5 !important;
        margin: 1rem 0 1.5rem !important;
    }
    .ryjik-tariff-table table { font-size: .9rem; }
    .ryjik-tariff-table thead th,
    .ryjik-tariff-table tbody td { padding: .65rem .75rem; }
    .ryjik-info-section { padding: 1.5rem 0 .5rem; }
    .ryjik-info-section > h2 { font-size: 1.35rem; }
    .page-content .ryjik-contact-card {
        padding: 1.25rem 1.25rem;
        margin-top: 2rem !important;
        margin-bottom: 3rem !important;
    }
    .page-content > .ryjik-contact-card:last-child,
    .page-content .post-content-wrap > .ryjik-contact-card:last-child {
        margin-bottom: 3rem !important;
    }
    .ryjik-contact-card ul { flex-direction: column; gap: .5rem; }
}
