/* Stand-ins for Flatsome's layout shortcodes ([section] [row] [col] [gap] [title]).
   Scoped with .rdpt-fc so it never touches the theme's own .row/.col uses. */
.section.rdpt-fc { position: relative; width: 100%; padding: 30px 0; }
.section.rdpt-fc > .section-content { position: relative; width: 100%; }

.row.rdpt-fc {
    display: flex;
    flex-flow: row wrap;
    width: 100%;
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}
.row.rdpt-fc.row-full-width { max-width: 100%; }
.row.rdpt-fc.align-middle { align-items: center; }
.row.rdpt-fc.align-bottom { align-items: flex-end; }
.row.rdpt-fc.align-equal { align-items: stretch; }
.row.rdpt-fc.align-center { justify-content: center; }
.row.rdpt-fc.align-right { justify-content: flex-end; }

.row.rdpt-fc > .col {
    position: relative;
    box-sizing: border-box;
    flex: 0 0 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0 15px 30px;
}
.row.rdpt-fc.row-small > .col { padding: 0 9.8px 19.6px; }
.row.rdpt-fc.row-large > .col { padding: 0 30px 30px; }
.row.rdpt-fc.row-collapse > .col { padding: 0; }
.row.rdpt-fc > .col > .col-inner { position: relative; width: 100%; box-sizing: border-box; }
.row.rdpt-fc .row.rdpt-fc { width: auto; margin-left: -15px; margin-right: -15px; }
.row.rdpt-fc .row.rdpt-fc.row-small { margin-left: -9.8px; margin-right: -9.8px; }
.row.rdpt-fc .row.rdpt-fc.row-collapse { margin-left: 0; margin-right: 0; }

.rdpt-fc .text-center, .col-inner.text-center { text-align: center; }
.rdpt-fc .text-left, .col-inner.text-left { text-align: left; }
.rdpt-fc .text-right, .col-inner.text-right { text-align: right; }

/* 12-column widths: small ≤549px, medium 550–849px, large ≥850px. */
.row.rdpt-fc > .small-1 { flex-basis: 8.3333%; max-width: 8.3333%; }
.row.rdpt-fc > .small-2 { flex-basis: 16.6667%; max-width: 16.6667%; }
.row.rdpt-fc > .small-3 { flex-basis: 25%; max-width: 25%; }
.row.rdpt-fc > .small-4 { flex-basis: 33.3333%; max-width: 33.3333%; }
.row.rdpt-fc > .small-5 { flex-basis: 41.6667%; max-width: 41.6667%; }
.row.rdpt-fc > .small-6 { flex-basis: 50%; max-width: 50%; }
.row.rdpt-fc > .small-7 { flex-basis: 58.3333%; max-width: 58.3333%; }
.row.rdpt-fc > .small-8 { flex-basis: 66.6667%; max-width: 66.6667%; }
.row.rdpt-fc > .small-9 { flex-basis: 75%; max-width: 75%; }
.row.rdpt-fc > .small-10 { flex-basis: 83.3333%; max-width: 83.3333%; }
.row.rdpt-fc > .small-11 { flex-basis: 91.6667%; max-width: 91.6667%; }
.row.rdpt-fc > .small-12 { flex-basis: 100%; max-width: 100%; }
@media (min-width: 550px) {
    .row.rdpt-fc > .medium-1 { flex-basis: 8.3333%; max-width: 8.3333%; }
    .row.rdpt-fc > .medium-2 { flex-basis: 16.6667%; max-width: 16.6667%; }
    .row.rdpt-fc > .medium-3 { flex-basis: 25%; max-width: 25%; }
    .row.rdpt-fc > .medium-4 { flex-basis: 33.3333%; max-width: 33.3333%; }
    .row.rdpt-fc > .medium-5 { flex-basis: 41.6667%; max-width: 41.6667%; }
    .row.rdpt-fc > .medium-6 { flex-basis: 50%; max-width: 50%; }
    .row.rdpt-fc > .medium-7 { flex-basis: 58.3333%; max-width: 58.3333%; }
    .row.rdpt-fc > .medium-8 { flex-basis: 66.6667%; max-width: 66.6667%; }
    .row.rdpt-fc > .medium-9 { flex-basis: 75%; max-width: 75%; }
    .row.rdpt-fc > .medium-10 { flex-basis: 83.3333%; max-width: 83.3333%; }
    .row.rdpt-fc > .medium-11 { flex-basis: 91.6667%; max-width: 91.6667%; }
    .row.rdpt-fc > .medium-12 { flex-basis: 100%; max-width: 100%; }
}
@media (min-width: 850px) {
    .row.rdpt-fc > .large-1 { flex-basis: 8.3333%; max-width: 8.3333%; }
    .row.rdpt-fc > .large-2 { flex-basis: 16.6667%; max-width: 16.6667%; }
    .row.rdpt-fc > .large-3 { flex-basis: 25%; max-width: 25%; }
    .row.rdpt-fc > .large-4 { flex-basis: 33.3333%; max-width: 33.3333%; }
    .row.rdpt-fc > .large-5 { flex-basis: 41.6667%; max-width: 41.6667%; }
    .row.rdpt-fc > .large-6 { flex-basis: 50%; max-width: 50%; }
    .row.rdpt-fc > .large-7 { flex-basis: 58.3333%; max-width: 58.3333%; }
    .row.rdpt-fc > .large-8 { flex-basis: 66.6667%; max-width: 66.6667%; }
    .row.rdpt-fc > .large-9 { flex-basis: 75%; max-width: 75%; }
    .row.rdpt-fc > .large-10 { flex-basis: 83.3333%; max-width: 83.3333%; }
    .row.rdpt-fc > .large-11 { flex-basis: 91.6667%; max-width: 91.6667%; }
    .row.rdpt-fc > .large-12 { flex-basis: 100%; max-width: 100%; }
}

.gap-element { display: block; width: 100%; }

.section-title-container.rdpt-fc { max-width: 1080px; margin: 0 auto 1.5em; padding: 0 15px; box-sizing: border-box; }
.rdpt-fc .section-title {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0;
    font-size: 1.05rem;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.rdpt-fc .section-title b { display: block; flex: 1; height: 2px; background: currentColor; opacity: .1; }
.rdpt-fc .section-title-normal b:first-child { display: none; }
.rdpt-fc .section-title-normal .section-title-main { padding-right: 15px; }
.rdpt-fc .section-title-center .section-title-main,
.rdpt-fc .section-title-bold-center .section-title-main { padding: 0 15px; text-align: center; }
.rdpt-fc .section-title-bold .section-title-main,
.rdpt-fc .section-title-bold-center .section-title-main { border: 2px solid currentColor; padding: .3em .8em; }

/* Blank page templates: content only, edge to edge. */
body.rdpt-blank-template .site-content { max-width: none; padding-left: 0; padding-right: 0; }
body.rdpt-blank-template .site-main { padding-top: 0; padding-bottom: 0; }
body.rdpt-landing-page { margin: 0; }
body.rdpt-landing-page .rdpt-landing-main { display: block; width: 100%; }

/* The theme underlines its own .section-title; the stand-in draws side rules instead. */
.rdpt-fc .section-title { border: 0; padding: 0; }

/* Blank templates carry plugin-built forms that expect full-width fields. */
body.rdpt-blank-template .rdpt-fc form input[type="text"],
body.rdpt-blank-template .rdpt-fc form input[type="email"],
body.rdpt-blank-template .rdpt-fc form input[type="tel"],
body.rdpt-blank-template .rdpt-fc form input[type="url"],
body.rdpt-blank-template .rdpt-fc form input[type="number"],
body.rdpt-blank-template .rdpt-fc form select,
body.rdpt-blank-template .rdpt-fc form textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-bottom: 1em;
}

/* Flatsome's light tables (plugin output inside builder columns relies on them):
   no outer box, a hairline under each row, compact cells. */
.rdpt-fc table { width: 100%; max-width: 100%; margin-bottom: 1em; border: 0; border-collapse: collapse; background: none; box-shadow: none; }
.rdpt-fc table th,
.rdpt-fc table td { padding: .5em; border: 0; border-bottom: 1px solid rgba(0, 0, 0, .08); background: none; font-size: .9em; line-height: 1.3; }
.rdpt-fc table td:first-child, .rdpt-fc table th:first-child { padding-left: 0; }
.rdpt-fc table td:last-child, .rdpt-fc table th:last-child { padding-right: 0; }
.rdpt-fc img { max-width: 100%; height: auto; }
