/* GovMail Look switch (Deployment 3). Loaded only when the GovMail look is available; works in both looks. */
html.gm-look-new { --gm-acc: #1b8018; --gm-acc-d: #146911; --gm-soft: #e8f6e7; }
html.gm-look-classic { --gm-acc: #00a0c6; --gm-acc-d: #0087a8; --gm-soft: #e0f4f9; }

/* segmented control in the folder column footer (Roundcube's footer is a fixed 35px, so let it grow) */
#layout-sidebar > .footer.gm-has-look { height: auto !important; min-height: 35px; line-height: 1.4 !important; flex-direction: column; align-items: stretch; justify-content: flex-end; overflow: visible; white-space: normal; padding: 0; }
.gm-look { padding: 8px 12px 10px; }
.gm-looklab { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; opacity: .7; margin: 0 0 5px 4px; }
.gm-seg { display: flex; border: 1px solid rgba(0, 0, 0, .15); border-radius: 22px; padding: 3px; background: rgba(255, 255, 255, .75); }
.gm-seg button { flex: 1; border: 0; background: transparent; border-radius: 18px; padding: 6px 0; font: 600 12px/1.2 inherit; color: #5b6b5b; cursor: pointer; }
.gm-seg button.on { background: var(--gm-acc); color: #fff; cursor: default; }
.gm-seg button:focus-visible { outline: 2px solid var(--gm-acc); outline-offset: 1px; }
html.gm-look-classic .gm-seg { border-radius: 4px; }
html.gm-look-classic .gm-seg button { border-radius: 3px; }

/* entry in the narrow left menu */
#taskmenu a.gm-look-rail:before {
    content: ""; display: block; width: 24px; height: 24px; margin: 0 auto 2px; background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h10M18 7h2M4 17h2M10 17h10'/%3E%3Ccircle cx='16' cy='7' r='2'/%3E%3Ccircle cx='8' cy='17' r='2'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h10M18 7h2M4 17h2M10 17h10'/%3E%3Ccircle cx='16' cy='7' r='2'/%3E%3Ccircle cx='8' cy='17' r='2'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Settings > Interface cards */
.gm-lookcards { display: flex; gap: 14px; flex-wrap: wrap; max-width: 520px; }
.gm-lookcard { flex: 1 1 200px; border: 2px solid #dbe6dc; border-radius: 14px; padding: 10px; position: relative; cursor: pointer; display: block; background: #fff; }
.gm-lookcard.on, .gm-lookcard:has(input:checked) { border-color: #1b8018; box-shadow: 0 0 0 3px rgba(27, 128, 24, .12); }
.gm-lookcard input { position: absolute; right: 10px; top: 10px; }
.gm-thumb { height: 92px; border-radius: 8px; overflow: hidden; display: flex; border: 1px solid #e3e9e4; margin-bottom: 8px; }
.gm-th-a { width: 34%; } .gm-th-b { flex: 1; background: #fff; }
.gm-lookcard-new .gm-th-a { background: linear-gradient(180deg, #e8fefe, #e3fcf3); }
.gm-lookcard-classic .gm-th-a { background: #37474f; }
.gm-lookt { font-weight: 650; font-size: 13.5px; margin-bottom: 2px; }
.gm-lookd { font-size: 11.5px; opacity: .7; line-height: 1.4; }
.gm-looknote { margin-top: 12px; font-size: 12px; opacity: .8; max-width: 520px; line-height: 1.5; }

/* "Switched to ..." message */
.gm-looktoast { position: fixed; right: 16px; bottom: 16px; z-index: 100000; max-width: 280px; background: #14221a; color: #fff; border-radius: 10px; padding: 11px 14px; font: 12.5px/1.45 Inter, "Segoe UI", Arial, sans-serif; box-shadow: 0 8px 22px rgba(0, 0, 0, .25); }
.gm-looktoast b { display: block; font-size: 13px; margin-bottom: 2px; }
.gm-looktoast button { border: 0; background: transparent; color: #7be87a; font: 600 12.5px/1.2 inherit; cursor: pointer; padding: 0; }
