/* Palmetto shop preview. Chrome remains desktop-only below. */
.coins-palmetto-card__flag {
    width: 88px;
    height: 58px;
    flex-shrink: 0;
    background-color: #041e42;
    background-image: url("../images/skins/sc-flag.svg?v=1373");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
}
.coins-palmetto-card .coins-old-glory-card__actions a:not(.coins-old-glory-card__unlock),
.coins-palmetto-card .coins-old-glory-card__title,
.tn-old-glory-toggle__btn--palmetto.is-active {
    color: #041e42;
}

html.dark-mode .coins-palmetto-card .coins-section-copy {
    color: var(--dm-text-secondary, #bbb);
}
html.dark-mode .coins-palmetto-card .coins-old-glory-card__price,
html.dark-mode .coins-palmetto-card .coins-old-glory-card__title {
    color: var(--dm-text-primary, #f1f5f9);
}
html.dark-mode .coins-palmetto-card .coins-old-glory-card__actions a:not(.coins-old-glory-card__unlock) {
    color: var(--dm-text-secondary, #bbb);
}
html.dark-mode .tn-old-glory-toggle__btn--palmetto.is-active {
    color: var(--dm-text-primary, #f1f5f9);
}

/* Official indigo chrome: paired state emblems repeat down both page rails. */
@media (min-width: 1025px) {
    html.theme-palmetto::before,
    html.theme-palmetto::after {
        content: "";
        position: fixed;
        top: 0;
        bottom: 0;
        width: max(0px, calc((100% - 1280px) / 2));
        pointer-events: none;
        z-index: 0;
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
        -webkit-mask-size: 100% 100%;
        mask-size: 100% 100%;
    }
    html.theme-palmetto::before {
        left: 0;
        background-image:
            url("../images/skins/sc-emblems.svg?v=1373"),
            linear-gradient(#041e42, #041e42);
        background-position: center 105px, center top;
        background-repeat: repeat-y, no-repeat;
        background-size: 94% auto, 100% 100%;
        -webkit-mask-image: linear-gradient(to right, #000 0%, #000 58%, transparent 100%);
        mask-image: linear-gradient(to right, #000 0%, #000 58%, transparent 100%);
    }
    html.theme-palmetto::after {
        right: 0;
        background-image:
            url("../images/skins/sc-emblems.svg?v=1373"),
            linear-gradient(#041e42, #041e42);
        background-position: right -14px top 105px, center top;
        background-repeat: repeat-y, no-repeat;
        background-size: 94% auto, 100% 100%;
        -webkit-mask-image: linear-gradient(to left, #000 0%, #000 58%, transparent 100%);
        mask-image: linear-gradient(to left, #000 0%, #000 58%, transparent 100%);
    }
    html.theme-palmetto #wrapper_front,
    html.theme-palmetto #main-content {
        position: relative;
        z-index: 1;
    }
    html.theme-palmetto .tn-header__navbar,
    html.theme-palmetto .tn-header__navbar.scroll-down,
    html.theme-palmetto .tn-header__navbar.scroll-up,
    html.theme-palmetto .tn-header.scroll-down .tn-header__navbar,
    html.theme-palmetto .tn-header.scroll-up .tn-header__navbar {
        display: flex !important;
        align-items: stretch;
        overflow: visible;
    }
    html.theme-palmetto .tn-header__navbar::before,
    html.theme-palmetto .tn-header__navbar::after {
        content: "";
        flex: 1 1 0;
        min-width: 0;
        align-self: stretch;
        background-repeat: no-repeat;
        pointer-events: none;
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
        -webkit-mask-size: 100% 100%;
        mask-size: 100% 100%;
    }
    html.theme-palmetto .tn-header__navbar::before {
        background-color: #041e42;
        background-image: linear-gradient(to bottom, #041e42, #0b2e59);
        -webkit-mask-image: linear-gradient(to right, #000 0%, #000 58%, transparent 100%);
        mask-image: linear-gradient(to right, #000 0%, #000 58%, transparent 100%);
    }
    html.theme-palmetto .tn-header__navbar::after {
        background-color: #041e42;
        background-image: linear-gradient(to bottom, #041e42, #0b2e59);
        -webkit-mask-image: linear-gradient(to left, #000 0%, #000 58%, transparent 100%);
        mask-image: linear-gradient(to left, #000 0%, #000 58%, transparent 100%);
    }
    html.theme-palmetto .tn-header__navbar .tn-header__container {
        flex: 0 0 auto;
        position: relative;
        z-index: 1;
        margin-left: 0;
        margin-right: 0;
    }
}
