:root {
    --max-width: 1100px;
}

html, body {
    min-height: 100%;
    line-height: 1.4;
}

.layout {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.header__top {
    background: #088edd;
    padding: 5px 10px;
}
.header__top a {
    color: white;
}

.header__top-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    min-height: 32px;
}

.header__top-content-nav {
    text-align: center;
    width: 100%;
}

.header__top-content-nav-item {
    display: inline;
    margin: 0 0.2em;
}

.header__bottom {
    padding: 5px 10px;
    border-bottom: 1px solid #e1e1e1;
}

.header__bottom a {
    color: #666;
    text-decoration: none;
}

.header__bottom a:hover {
    color: #00a4ef;
}

.header__bottom-content {
    max-width: var(--max-width);
    position: relative;
    margin: 0 auto;
    display: block;
}

.header__bottom-content-header {
    display: flex;
}

a.navbar-toggle {
    background-color: #3a3a3a;
    color: #ffffff;
    font-size: 22px;
    border-radius: 4px;
    margin-bottom: 15px;
    margin-top: 15px;
    margin-left: auto;
    padding: 0 10px;
    line-height: 45px;
    border: none;
    cursor: pointer;
    display: block;
}

a.navbar-toggle:hover {
    background-color: #00a4ef;
    color: #ffffff;
}

.header__bottom-content-nav {
    position: absolute;
    width: 100%;
    background: #fff;
    display: none;
}

.header__bottom-content-nav.navbar-toggle-visible {
    display: block;
}

.header__bottom-content-nav-item {
    border-top: 1px solid #999;
    margin: 0;

    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 20px;
}

.header__bottom-content-nav-item > a {
    padding: .2em;
}

.header__bottom-content-nav-item_has-children > a::after {
    color: #666;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 14px;
    margin-left: 7px;
}

.header__bottom-content-nav-item-submenu {
    margin-top: .2em;
}

.header__bottom-content-nav-item-submenu li {
    border-top: 1px solid #999;
    padding: .2em .2em .2em 1em;
}

main {
    padding: 2em 10px;
    flex: 1;
}

.main-content {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer__top {
    background: #3a3a3a;
    color: white;
    padding: 20px 10px;
}

.footer__top-content {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer__bottom {
    background: #2d2d2d;
    color: white;
    padding: 20px 10px;
}

.footer__bottom p {
    margin-bottom: 1em;
}

.footer__bottom a {
    color: white;
}

.footer__bottom-content {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}

.footer__bottom-content-nav {

}

.footer__bottom-content-nav-item {
    display: inline;
    margin: 0 .5em;
}

.info-box {
    margin-bottom: 1em;
}

.info-box strong {
    font-weight: bold;
}

.info-box__icon {
    float: left;
    font-size: 25px;
}
.info-box__content {
    margin-left: 35px;
    font-size: 14px;
}

.am-list-subscriptions .am-list-subscriptions-desc {
    white-space: unset;
}

.am-invoice-summary .am-invoice-summary-item-num {
    color: #777;
}

.am-invoice-summary .am-invoice-summary-item-terms {
    color: #777;
    margin-left: 1em;
}


@media (min-width: 768px) {
    .header__bottom-content {
        display: flex;
    }

    a.navbar-toggle {
        display: none;
    }

    .header__bottom-content-nav,
    .header__bottom-content-nav.navbar-toggle-visible {
        position: relative;
        margin-left: auto;
        display: flex;
        width: auto;
    }

    .header__bottom-content-nav-item {
        border: none;
        margin-left: 1em;
    }

    .header__bottom-content-nav-item > a {
        padding: 0;
    }

    .header__bottom-content-nav-item-submenu li {
        border: none;
        padding-left: 0;
    }

    .header__bottom-content-nav-item-submenu {
        position: absolute;
        display: none;
        padding: .5em;
        background: #fff;
        box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
        z-index: 1;
    }

    .header__bottom-content-nav-item_has-children:hover .header__bottom-content-nav-item-submenu {
        display: block;
    }


    .footer__top-content {
        display: flex;
        justify-content: space-between;
    }

    .footer__bottom-content {
        text-align: left;
        display: flex;
    }

    .footer__bottom p {
        margin-bottom: 0;
    }

    .footer__bottom-content-nav {
        margin-left: auto;
        display: flex;
    }

    .footer__bottom-content-nav-item {
        margin: 0 0 0 1em;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .header__top-content-nav {
        width: auto;
        margin-left: auto;
        display: flex;
    }

    .header__top-content-nav-item {
        margin: 0 0 0 1em;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}
/* === Product/Billing Plan Tiles (decorated forms only) === */

.am-products-tiles {
    margin: 0 0 1.5rem;
    padding: 0;
}

/* Horizontal layout (side-by-side); JS sets columns via inline style */
.am-products-tiles-horizontal {
    /* grid styles set via JS */
}

/* Vertical layout (stacked) */
.am-products-tiles-vertical {
    /* display set via JS to block */
}

/* Each label is a card/tile */
.am-products-tiles > label {
    border-radius: 0.75rem;
    border: 1px solid #ddd;
    padding: 1rem 1.25rem;
    background: #fff;
    display: block; /* back to block, structure comes from inner spans */
    transition:
        box-shadow 0.2s ease,
        transform 0.2s ease,
        border-color 0.2s ease;
    cursor: pointer;
}

/* Hide the <br> aMember drops between options (between tiles) */
.am-products-tiles > br {
    display: none;
}

/* Keep radio/checkbox visible */
.am-products-tiles input[type="radio"],
.am-products-tiles input[type="checkbox"] {
    margin-right: 0.5rem;
    vertical-align: middle;
}

/* Safety: if some <br> survives right after the input, hide it */
.am-products-tiles label input + br {
    display: none;
}

/* --- Layout inside the tile --- */

/* Left side: radio + TITLE on the same line */
.am-products-tiles .am-tile-left {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* Title inline with the radio */
.am-products-tiles .am-tile-left .am-product-title {
    display: inline-block;
    font-weight: 600;
    font-size: 1rem;
    margin: 0;
}

/* Content block under the radio+title (terms, desc, extra) */
.am-products-tiles .am-tile-content {
    display: block;
    margin-top: 0.35rem;
}

/* Text styling */
.am-products-tiles .am-product-terms {
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
}

.am-products-tiles .am-product-desc {
    font-size: 0.9rem;
    color: #555;
}

/* Extra HTML block under title/terms */
.am-products-tiles .am-product-extra {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #444;
}

/* Hover + selected states */
.am-products-tiles > label:hover {
    border-color: #007bff;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.am-products-tiles > label.is-selected {
    border-color: #007bff;
    background: #eaf3ff;
}

/* === Center + Bold modes controlled by brick options === */

/* Center mode: radio stays left; only the TITLE text is centered */
.am-products-tiles-center .am-tile-left .am-product-title {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* Content block (terms/desc/extra) stays left-aligned */
.am-products-tiles-center .am-tile-content,
.am-products-tiles-center .am-product-terms,
.am-products-tiles-center .am-product-desc,
.am-products-tiles-center .am-product-extra {
    text-align: left;
}

/* Bold mode */
.am-products-tiles-bold .am-product-title,
.am-products-tiles-bold .am-product-terms {
    font-weight: 700;
}