/* Uploaded wordmarks use their own transparent canvas and can replace the text block. */
.field-optional {
    margin-left: 5px;
    color: #879389;
    font-size: 9px;
    font-weight: 500;
}

.brand.has-logo .brand-mark {
    background: transparent;
    border-radius: 0;
}

.brand.has-logo .brand-mark img {
    padding: 0;
    object-fit: contain;
}

.brand.has-logo.brand-logo-full .brand-copy { display: none; }

.auth-story .auth-brand.has-logo .brand-mark {
    flex: 0 0 auto;
    padding: 6px;
    border-radius: 11px;
    background: rgba(255, 255, 255, .94);
}

.auth-story .auth-brand.has-logo .brand-mark img {
    width: 100%;
    height: 100%;
    object-position: left center;
}

.auth-story .auth-brand.has-logo.brand-logo-auto .brand-mark { width: 58px; height: 50px; }
.auth-story .auth-brand.has-logo.brand-logo-compact .brand-mark { width: 46px; height: 42px; }
.auth-story .auth-brand.has-logo.brand-logo-normal .brand-mark { width: 66px; height: 52px; }
.auth-story .auth-brand.has-logo.brand-logo-large .brand-mark { width: 112px; height: 66px; }
.auth-story .auth-brand.has-logo.brand-logo-full .brand-mark { width: min(280px, 100%); height: 72px; }
.auth-story .auth-brand.brand-logo-only { width: 100%; justify-content: flex-start; }

.sidebar .brand.has-logo.brand-logo-auto .brand-mark { width: 52px; height: 48px; }
.sidebar .brand.has-logo.brand-logo-compact .brand-mark { width: 38px; height: 42px; }
.sidebar .brand.has-logo.brand-logo-normal .brand-mark { width: 52px; height: 48px; }
.sidebar .brand.has-logo.brand-logo-large .brand-mark { width: 92px; height: 64px; }
.sidebar .brand.has-logo.brand-logo-full .brand-mark { width: 88px; height: 58px; }

.sidebar .brand.has-logo.brand-logo-only {
    width: 100%;
    justify-content: flex-start;
}

.sidebar .brand.has-logo.brand-logo-only.brand-logo-auto .brand-mark { width: 100%; height: 64px; }
.sidebar .brand.has-logo.brand-logo-only.brand-logo-compact .brand-mark { width: 88px; height: 48px; }
.sidebar .brand.has-logo.brand-logo-only.brand-logo-normal .brand-mark { width: 124px; height: 54px; }
.sidebar .brand.has-logo.brand-logo-only.brand-logo-large .brand-mark { width: 180px; height: 68px; }
.sidebar .brand.has-logo.brand-logo-only.brand-logo-full .brand-mark { width: 100%; height: 64px; }
.sidebar .brand.has-logo.brand-logo-only .brand-mark img { object-position: left center; }

.branding-logo-current {
    background-color: #f7f9f4;
    background-image:
        linear-gradient(45deg, #e9eee5 25%, transparent 25%),
        linear-gradient(-45deg, #e9eee5 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #e9eee5 75%),
        linear-gradient(-45deg, transparent 75%, #e9eee5 75%);
    background-position: 0 0, 0 6px, 6px -6px, -6px 0;
    background-size: 12px 12px;
}

.branding-logo-current img { padding: 7px; }

.page-content .branding-logo-field .branding-logo-size {
    display: block;
    grid-column: 2;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.branding-logo-size legend {
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 650;
}

.branding-logo-size > small {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 10px;
}

.branding-size-options {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
    gap: 7px;
}

.branding-size-options label {
    position: relative;
    cursor: pointer;
}

.branding-size-options input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.branding-size-options span {
    display: grid;
    place-items: center;
    min-height: 39px;
    padding: 7px 5px;
    border: 1px solid #d8e1d6;
    border-radius: 9px;
    background: #fff;
    color: #65746a;
    font-size: 10px;
    font-weight: 650;
    text-align: center;
    transition: border-color .18s, background .18s, color .18s;
}

.branding-size-options input:checked + span {
    border-color: #759967;
    background: #edf5e3;
    color: #315b3f;
    box-shadow: 0 0 0 2px #dbe9cf;
}

.branding-size-options input:focus-visible + span {
    outline: 3px solid #76996b;
    outline-offset: 2px;
}

.branding-preview-brand.has-logo.brand-logo-auto .brand-mark { width: 32px; height: 34px; }
.branding-preview-brand.has-logo.brand-logo-compact .brand-mark { width: 25px; height: 29px; }
.branding-preview-brand.has-logo.brand-logo-normal .brand-mark { width: 32px; height: 34px; }
.branding-preview-brand.has-logo.brand-logo-large .brand-mark { width: 52px; height: 44px; }
.branding-preview-brand.has-logo.brand-logo-full .brand-mark { width: 52px; height: 42px; }

.branding-preview-brand.has-logo.brand-logo-only {
    width: 100%;
    justify-content: flex-start;
}

.branding-preview-brand.has-logo.brand-logo-only.brand-logo-auto .brand-mark { width: 100%; height: 50px; }
.branding-preview-brand.has-logo.brand-logo-only.brand-logo-compact .brand-mark { width: 60px; height: 35px; }
.branding-preview-brand.has-logo.brand-logo-only.brand-logo-normal .brand-mark { width: 80px; height: 40px; }
.branding-preview-brand.has-logo.brand-logo-only.brand-logo-large .brand-mark { width: 118px; height: 50px; }
.branding-preview-brand.has-logo.brand-logo-only.brand-logo-full .brand-mark { width: 100%; height: 50px; }
.branding-preview-brand.has-logo.brand-logo-only .brand-mark img { object-position: left center; }

.branding-logo-current.is-footer {
    border-color: #36564d;
    background-color: #0f2f28;
    background-image:
        linear-gradient(45deg, rgba(255, 255, 255, .035) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255, 255, 255, .035) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, .035) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, .035) 75%);
    color: #dcefad;
}

.branding-footer-preview-surface {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-top: 22px;
    padding: 20px 22px;
    overflow: hidden;
    border: 1px solid #36564d;
    border-radius: 14px;
    background: linear-gradient(135deg, #0f2f28, #173f35);
    color: #fff;
}

.branding-footer-preview-surface .eyebrow {
    display: block;
    margin: 0 0 7px;
    color: #c6dd9f;
}

.branding-footer-preview-surface small {
    display: block;
    color: #a8bcb4;
    font-size: 10px;
}

.branding-footer-preview-logo {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    width: 150px;
    height: 54px;
    max-width: 48%;
    overflow: hidden;
    color: #dcefad;
    font-size: 34px;
    font-weight: 700;
}

.branding-footer-preview-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: right center;
}

.branding-footer-preview-logo.brand-logo-compact { width: 82px; height: 42px; }
.branding-footer-preview-logo.brand-logo-normal { width: 124px; height: 50px; }
.branding-footer-preview-logo.brand-logo-large { width: 178px; height: 62px; }
.branding-footer-preview-logo.brand-logo-full { width: 240px; height: 70px; }

@media (max-width: 650px) {
    .branding-remove-logo,
    .page-content .branding-logo-field .branding-logo-size { grid-column: 1 / -1; }
    .branding-size-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .branding-footer-preview-surface { align-items: flex-start; flex-direction: column; }
    .branding-footer-preview-logo { justify-content: flex-start; max-width: 100%; }
    .branding-footer-preview-logo img { object-position: left center; }
}
