/*
Theme Name: EASURE Wholesale
Description: Bearbeitbares Kundenportal mit NEXUS-Anbindung.
Version: 1.0.13
*/
.ew-theme-portal .ew-header,.ew-theme-portal .ew-footer{display:block}
.ew-theme-portal.ew-login-page>.wp-block-template-part,.ew-theme-portal.ew-auth-pending>.wp-block-template-part{display:none!important}
.ew-theme-portal.ew-login-page .wp-block-post-content>*:not(.ew-live-block){display:none!important}
.ew-theme-portal.ew-auth-pending .wp-block-post-content{visibility:hidden}
.ew-theme-portal .ew-live-block>h1{display:none}
.ew-theme-portal .wp-block-post-content{width:100%}
.ew-theme-portal .wp-block-navigation a{color:inherit}
.ew-theme-portal .wp-block-site-logo img{max-height:110px;width:auto}
.editor-styles-wrapper{background:#121315;color:#eee}
.ew-editor-preview{background:#08090a;color:#eee;border:1px solid #45474a;border-radius:18px;padding:24px}
.ew-editor-preview p{color:#bbb}


/* Gemeinsamer Portalrahmen einschließlich Header und Footer. */
html,body,body:has(.ew-login-page),.editor-styles-wrapper{background:#000}
.ew-portal.ew-theme-portal{
 box-sizing:border-box;background:#121315;border:1px solid #45474a;
 border-radius:24px;padding:24px;margin:24px auto;
 width:calc(100% - 32px);max-width:1180px;
}
.ew-theme-portal .ew-header,.ew-theme-portal .ew-footer{background:#303133}
.ew-theme-portal .ew-card,.ew-theme-portal .easure-pb-card{background:#08090a}
.ew-portal.ew-theme-portal.ew-login-page{border:0;background:transparent;padding:0 20px}
@media(max-width:650px){
 .ew-portal.ew-theme-portal{width:calc(100% - 16px);padding:12px;margin:8px auto;border-radius:18px}
 .ew-portal.ew-theme-portal.ew-login-page{padding:0 12px}
}

.ew-theme-portal .ew-card.ew-login{background:#000}

.ew-theme-portal>header.wp-block-template-part{margin-block-start:0!important}
.ew-theme-portal>footer.wp-block-template-part{margin-block-end:0!important}
.ew-theme-portal .ew-header{padding:20px 24px 12px}
.ew-theme-portal .ew-header>.wp-block-image{margin:0 auto 8px;text-align:center}
.ew-theme-portal .ew-header>.wp-block-image img{display:block;margin:auto}
.ew-theme-portal .ew-header>p{margin:4px 0;line-height:1.2}
.ew-theme-portal .ew-header .ew-nav{padding:0;margin:16px 0 0}
.ew-theme-portal .ew-nav a,.ew-theme-portal .ew-header button{background:#000}
.ew-theme-portal .ew-nav a[aria-current]{background:#00c994;color:#031810}
.ew-theme-portal .ew-header>[data-ew-logout]{margin:10px 0 0;background:#000}
.ew-theme-portal .ew-footer{margin-bottom:0}

.ew-theme-portal .ew-header{position:relative}
.ew-theme-portal .ew-header>[data-ew-logout]{position:absolute;top:12px;right:24px;margin:0}

.ew-theme-portal .ew-header>.wp-block-image img{width:300px;max-width:100%;max-height:220px;object-fit:contain}

.ew-theme-portal .ew-header-actions{position:absolute;top:12px;right:24px;display:flex;flex-direction:column;gap:8px}
.ew-theme-portal .ew-header-actions button,.ew-theme-portal .ew-header-actions .ew-link{background:#000;margin:0;text-align:center}
@media(max-width:650px){.ew-theme-portal .ew-header-actions{position:static;align-items:flex-end;margin:12px 0}}

.ew-theme-portal .ew-footer{position:relative;padding-left:150px;padding-right:150px;min-height:120px}
.ew-theme-portal .ew-footer>.ew-footer-logo{position:absolute;right:28px;top:50%;transform:translateY(-50%);margin:0;width:90px}
.ew-theme-portal .ew-footer>.ew-footer-logo img{display:block;width:90px;height:90px;object-fit:contain}
@media(max-width:650px){
 .ew-theme-portal .ew-footer{padding-left:18px;padding-right:96px}
 .ew-theme-portal .ew-footer>.ew-footer-logo{right:14px;width:64px}
 .ew-theme-portal .ew-footer>.ew-footer-logo img{width:64px;height:64px}
}

/* Einheitliche Navigation und NEXUS-Auswahlgrün. */
.ew-theme-portal .ew-nav .wp-block-navigation,
.ew-theme-portal .ew-nav .wp-block-navigation__responsive-container-content{width:100%}
.ew-theme-portal .ew-nav .wp-block-navigation__container{display:flex;flex-wrap:wrap;gap:8px}
.ew-theme-portal .ew-nav .wp-block-navigation-item{width:140px;margin:0}
.ew-theme-portal .ew-nav .wp-block-navigation-item a,
.ew-theme-portal .ew-header-actions button,.ew-theme-portal .ew-header-actions .ew-link{
 box-sizing:border-box;display:flex;align-items:center;justify-content:center;
 width:140px;height:42px;padding:8px;font-size:14px;line-height:1.2;text-align:center;
}
.ew-theme-portal .ew-nav a[aria-current]{
 background:#00c88420;border-color:#00c884;color:#fff;
 box-shadow:0 0 8px #00c88435;
}
@media(max-width:650px){
 .ew-theme-portal .ew-nav .wp-block-navigation__container{gap:8px}
 .ew-theme-portal .ew-nav .wp-block-navigation-item{width:140px}
}

.ew-theme-portal .ew-footer>.ew-footer-nexus{position:absolute;left:24px;bottom:24px;width:120px;height:19px;overflow:hidden;margin:0}
.ew-theme-portal .ew-footer>.ew-footer-nexus img{position:absolute;width:152.284px;max-width:none;height:190.355px;left:-15.076px;top:-85.812px}
@media(max-width:650px){.ew-theme-portal .ew-footer{padding-bottom:58px}.ew-theme-portal .ew-footer>.ew-footer-nexus{left:18px;bottom:18px}}

/* Kompakter Header: rund 20 Prozent weniger Gesamthöhe. */
.ew-theme-portal .ew-header{padding-top:12px;padding-bottom:8px}
.ew-theme-portal .ew-header>.wp-block-image{margin-bottom:4px}
.ew-theme-portal .ew-header>.wp-block-image img{width:300px;max-height:220px}
.ew-theme-portal .ew-header .ew-nav{margin-top:8px}

/* E-Logo mittig im rechten Drittel des Footers. */
.ew-theme-portal .ew-footer>.ew-footer-logo{left:83.333333%;right:auto;top:50%;transform:translate(-50%,-50%)}

.ew-theme-portal:is([data-ew-view="tickets"],[data-ew-view="complaint"]) button.primary{
 background:#00c88420;border-color:#00c884;color:#fff;box-shadow:0 0 8px #00c88435;
}
.ew-theme-portal:is([data-ew-view="tickets"],[data-ew-view="complaint"]) button.primary:hover{
 background:#00c88435;
}
