/* Scoped refinements; native WHMCS data and controls remain intact. */
@media(max-width:767.98px){
 html body #footer.ds-footer .ds-footer__main,html body #footer.ds-footer .ds-footer__bottom{align-items:center;text-align:center;gap:20px}
 html body #footer.ds-footer .ds-footer__brand{align-items:center;width:100%}
 html body #footer.ds-footer .ds-footer__links,html body #footer.ds-footer .ds-footer__preferences{justify-content:center;width:100%;flex-wrap:wrap}
 html body #footer.ds-footer .copyright{float:none!important;width:100%;text-align:center}
}
.dgs-cdn-field-help{margin:0 0 14px;padding:10px 12px;border:1px solid var(--ds-line,#dce4ef);border-radius:7px;font-size:13px}
.dgs-cdn-field-help summary{cursor:pointer;font-weight:600}.dgs-cdn-field-help p{margin:10px 0}
body[data-dgs-cdn-details="1"] #additionalinfo{text-align:start!important}
body[data-dgs-cdn-details="1"] #additionalinfo>.row{margin:0;padding:16px 0;border-bottom:1px solid var(--ds-line,#dce4ef);overflow-wrap:anywhere}
.dgs-cdn-field-explanation{display:block;font-size:12px;color:var(--ds-muted,#65768b);margin-top:6px}

/* Keep controls grouped and dropdowns within the mobile viewport. */
.ds-header__mobile-actions{display:none}
@media(max-width:1199.98px){
 html body #header .ds-header__nav>.container{justify-content:flex-start;gap:12px}
 html body #header .ds-brand{margin-right:0;min-width:0}
 html body #header .ds-header__mobile-actions{display:flex;align-items:center;gap:8px;margin-left:auto}
 html body #header .ds-header__mobile-actions>button{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;margin:0;padding:0;flex:0 0 40px}
 html body #header .ds-header__toggle:focus:not(:focus-visible){outline:none;box-shadow:none}
 html body #header .ds-header__toggle:focus-visible{outline:2px solid var(--ds-brand-blue,#1470be);outline-offset:3px}
 html body #header #mainNavbar{flex-basis:100%;width:100%;min-width:0}
 html body #header .ds-header__tools{grid-template-columns:40px 40px minmax(0,1fr);align-items:start;gap:8px}
 html body #header .ds-header__account{grid-column:1/-1;grid-row:4;display:flex;flex-direction:column;width:100%;min-width:0;margin:0}
 html body #header .ds-header__account>li{width:100%;min-width:0}
 html body #header .ds-header__account>li>a{width:100%;justify-content:flex-start}
 html body #header #accountNotifications,html body #header .ds-cart-button{align-self:start;grid-row:3}
 html body #header #accountNotifications{grid-column:1}
 html body #header .ds-cart-button{grid-column:2}
 html body #header #mainNavbar .dropdown-menu{position:static!important;float:none;min-width:0;max-width:100%;width:100%;margin:4px 0 8px;transform:none!important}
 html body #header #mainNavbar .dropdown-item{white-space:normal;overflow-wrap:anywhere}
}
@media(max-width:767.98px){
 html body #footer.ds-footer .ds-footer__bottom{justify-content:flex-start;gap:12px;padding-top:12px}
 html body #footer.ds-footer .ds-footer__preferences{margin:0;gap:8px}
}
.ds-status-weathermap{display:flex;align-items:center;gap:18px;margin:0 0 24px;padding:24px;min-width:0;border:1px solid var(--ds-line,#dce4ef);border-left:4px solid var(--ds-brand-blue,#1470be);border-radius:10px;background:var(--ds-card,#fff)}
.ds-status-weathermap__icon{display:flex;align-items:center;justify-content:center;flex:0 0 48px;height:48px;border-radius:10px;background:#e9f4ff;color:var(--ds-brand-blue,#1470be);font-size:22px}
.ds-status-weathermap__copy{flex:1;min-width:0}
.ds-status-weathermap h2{margin:0 0 6px;font-size:1.15rem}
.ds-status-weathermap p{margin:0;color:var(--ds-muted,#65768b)}
.ds-status-weathermap__open{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:44px;white-space:normal}
html.dark .ds-status-weathermap{background:var(--dgs-dark-soft,#16213a);border-color:var(--dgs-dark-border,#2b3a52);border-left-color:#60a5fa;color:var(--dgs-dark-text,#e5e7eb)}
html.dark .ds-status-weathermap p{color:var(--dgs-dark-muted,#a6b4c9)}
html.dark .ds-status-weathermap__icon{background:#1e3a5f;color:#93c5fd}
@media(max-width:767.98px){.ds-status-weathermap{flex-wrap:wrap;gap:14px;padding:18px}.ds-status-weathermap__open{width:100%}}


html body #footer.ds-footer .copyright{margin:0;padding:0;min-height:0;line-height:1.5;color:var(--ds-muted,#65768b)}
html.dark body #footer.ds-footer .copyright{color:var(--dgs-dark-muted,#a6b4c9)}
html body #footer.ds-footer .copyright:empty{display:none}

/* DigiSync shared theme control: same SVG, target and hover as digisync.fr. */
html body #header.ds-header .dgs-theme-toggle{
 display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;
 width:44px;height:44px;min-width:44px;padding:0;border:0;border-radius:8px;
 background:transparent;color:#374151;cursor:pointer;appearance:none;
 transition:color 150ms ease,background-color 150ms ease;
}
html body #header.ds-header .dgs-theme-toggle:hover{color:#111827;background:rgb(238,240,243)}
html body #header.ds-header .dgs-theme-toggle--mobile:hover{background:rgb(247,248,249)}
html.dark body #header.ds-header .dgs-theme-toggle{color:#e5e7eb;background:transparent}
html.dark body #header.ds-header .dgs-theme-toggle:hover{color:#fff;background:rgba(255,255,255,.10)}
html body #header.ds-header .dgs-theme-toggle:focus:not(:focus-visible){outline:none;box-shadow:none}
html body #header.ds-header .dgs-theme-toggle:focus-visible{outline:2px solid var(--ds-brand-blue,#1470be);outline-offset:3px}
html body #header.ds-header .dgs-theme-toggle svg{width:20px;height:20px;flex:none;transition:transform 150ms ease,opacity 150ms ease}
html:not(.dark) body #header.ds-header .dgs-theme-toggle [data-dgs-theme-icon="moon"]{transform:rotate(12deg) scale(1.03)}
@media(prefers-reduced-motion:reduce){html body #header.ds-header .dgs-theme-toggle,html body #header.ds-header .dgs-theme-toggle svg{transition:none}}

/* Keep the desktop secondary sidebar hidden where its mobile copy is shown.
   custom.css uses display:grid !important on direct sidebar children. */
@media (max-width: 991.98px) {
    .ds-app-sidebar > .sidebar.d-none.d-lg-block {
        display: none !important;
    }
}

/* No icon is rendered for Weathermap: let its label span the text track. */
.ds-context-link[menuItemName="DigiSync Weathermap"] {
    grid-template-columns: minmax(0, 1fr) auto;
}
.ds-context-link[menuItemName="DigiSync Weathermap"] .ds-context-link__label {
    white-space: nowrap;
}

/* Later desktop rules in custom.css override its early mobile breakpoint. */
.ds-dashboard-main, .ds-dashboard-aside {
    min-width: 0;
}
@media (max-width: 991.98px) {
    .ds-dashboard-layout {
        grid-template-columns: minmax(0, 1fr);
    }
    .ds-dashboard-aside {
        position: static;
    }
}
