/* Company Profile v1.0.8: match the Customs Afrika viewer proportions.
   Use the available viewport height, not portrait-page width, so wide screens
   do not create an oversized book. The hosted flipbook keeps its own controls. */
#primary.zg-company-profile-main {
    display: block;
    float: none;
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    background: #e6ecea;
}
.zg-company-profile-page {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0 !important;
    padding: 0 !important;
    border: 0;
}
.zg-company-profile {
    box-sizing: border-box;
    display: block;
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    color: #123c31;
    font-family: inherit;
}
.zg-company-profile *,
.zg-company-profile *::before,
.zg-company-profile *::after { box-sizing: border-box; }
.zg-company-profile .zg-profile-viewer {
    display: block;
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: #e6ecea;
    box-shadow: none;
    /* Same rule and minimum height as Customs Afrika's profile viewer. */
    height: calc(100vh - var(--zg-profile-header-height, 170px));
    height: calc(100dvh - var(--zg-profile-header-height, 170px));
    min-height: 650px;
}
.zg-company-profile .zg-profile-frame {
    display: block;
    width: 100%;
    max-width: none;
    height: 100%;
    min-height: 0;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #e6ecea;
}
/* A semantic page heading remains available to screen readers only. */
.zg-company-profile .zg-profile-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
/* Match Customs Afrika's phone/tablet minimums without enlarging by width. */
@media (max-width: 768px) {
    .zg-company-profile .zg-profile-viewer { min-height: 560px; }
}
@media (max-width: 480px) {
    .zg-company-profile .zg-profile-viewer { min-height: 520px; }
}
