/* Project-owned details absent from the installed Kadence controls.
   Layout grids, typography, colors, spacing and photo backgrounds remain block attributes. */
/* Restore the reference's browser scrollbar instead of the child theme's thin custom one. */
html:has(>body.agpharm-site){scrollbar-width:auto}
html:has(>body.agpharm-site)::-webkit-scrollbar{width:15px}
.agpharm-native-row :focus-visible,.agpharm-native-form :focus-visible{
 outline:3px solid #087788;outline-offset:3px;box-shadow:0 0 0 2px #fff;
}
.agpharm-proofbar img,.agpharm-process img{object-fit:contain}
/* Native Image has no independent fixed-height + contain control. */
.agpharm-product-photo img{width:100%;height:244px;object-fit:contain;object-position:center}
/* The theme widget container has no separate horizontal edge control; the block owns those gutters. */
.agpharm-site .site-bottom-footer-wrap.site-footer-row-layout-fullwidth .site-container{padding-inline:0}
.agpharm-footer-bottom .agpharm-text-link{white-space:normal}
/* Keep native icon padding outside its reveal width, so a 22px icon stays square. */
.agpharm-button-pill .kb-svg-icon-wrap,.agpharm-text-link .kb-svg-icon-wrap{box-sizing:content-box}
/* These editable labels are anchored to the native video background. */
.agpharm-hero-media .kadence-columnagn_home_11,
.agpharm-hero-media .kadence-columnagn_home_11>.kt-inside-inner-col{position:static}
.agpharm-hero-media .agpharm-film-marker{position:absolute;top:24px;right:23px;z-index:3;max-width:calc(100% - 46px)}
.agpharm-hero-media .agpharm-film-label{position:absolute;left:32px;bottom:34px;z-index:3;max-width:calc(100% - 150px)}
/* A decorative ring is not an editable content/layout component. */
.kb-row-layout-idagn_home_207{overflow:hidden;position:relative}
.kb-row-layout-idagn_home_207::before{content:'';position:absolute;top:-320px;left:-100px;width:700px;height:700px;border-radius:50%;border:1px solid rgba(185,222,249,.12);box-shadow:0 0 0 100px rgba(255,255,255,.025),0 0 0 200px rgba(255,255,255,.018);pointer-events:none}
.kb-row-layout-idagn_home_207>.kt-row-column-wrap{position:relative;z-index:1}
/* Kadence supplies the hover colors, icon reveal and shadows; only translation is missing. */
@media(prefers-reduced-motion:no-preference){
 .agpharm-product-card,.agpharm-process-card{transition:box-shadow .25s ease}
 .agpharm-button-pill,.agpharm-native-form .kb-forms-submit{transition:background-color .25s ease,color .25s ease}
 
}
@media(max-width:1024px){.agpharm-product-photo img{height:180px}}
@media(max-width:767px){
 .agpharm-site header .wp-block-site-logo img{width:142px;max-width:142px;height:auto}
 .agpharm-product-photo img{height:223px}
 .agpharm-hero-media .agpharm-film-marker{top:20px;right:20px}
 .agpharm-hero-media .agpharm-film-label{left:24px;bottom:26px;max-width:calc(100% - 100px)}
}
@media(prefers-reduced-motion:reduce){
 .agpharm-native-row *,.agpharm-native-row *::before,.agpharm-native-row *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}

/* Native header rows own spacing; progressive blur has an opaque fallback. */
.agpharm-site header.wp-block-kadence-header>.kb-header-container{background:#fff}
@supports (backdrop-filter:blur(1px)){
 .agpharm-site header.wp-block-kadence-header>.kb-header-container{background:rgba(255,255,255,.94);backdrop-filter:blur(16px)}
}
.agpharm-site .agpharm-native-row .kt-accordion-panel-inner{box-shadow:none}
/* Kadence AOS: essential content remains visible without its initializer. */
html:not(.agpharm-motion-ready) .agpharm-site:not([data-aos-easing]) [data-aos]{opacity:1!important;transform:none!important}
@media(prefers-reduced-motion:reduce){.agpharm-site [data-aos]{opacity:1!important;transform:none!important;transition:none!important}}

@supports not (backdrop-filter:blur(1px)){
 .agpharm-site header.wp-block-kadence-header>.kb-header-container{--kb-stuck-header-bg:#fff;background:#fff}
}
/* WPML forces width:100%!important; the header needs the compact native list. */
.agpharm-site .agpharm-language-switcher,.editor-styles-wrapper .agpharm-language-switcher{flex:0 0 auto;width:auto!important}

/* Compact segmented control; WPML still owns labels, current state and URLs. */
:is(.agpharm-site,.editor-styles-wrapper) .agpharm-language-switcher{margin-inline:12px 20px}
:is(.agpharm-site,.editor-styles-wrapper) .agpharm-language-switcher ul.horizontal-list{
 --language-position:0%;position:relative;isolation:isolate;box-sizing:border-box;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
 width:90px;min-height:44px;margin:0;padding:4px!important;align-items:stretch;gap:0!important;
 border:1px solid #dce7eb;border-radius:999px;background:#edf5f6;
}
:is(.agpharm-site,.editor-styles-wrapper) .agpharm-language-switcher ul.horizontal-list::before{
 content:"";position:absolute;inset-block:4px;inset-inline-start:4px;width:calc(50% - 4px);border-radius:999px;
 background:#fff;box-shadow:0 2px 7px #102b361a;transform:translateX(var(--language-position));pointer-events:none;
}
:is(.agpharm-site,.editor-styles-wrapper) .agpharm-language-switcher ul:has(>[data-wpml="current-language-item"]:last-child){--language-position:100%}
:is(.agpharm-site,.editor-styles-wrapper) .agpharm-language-switcher.is-switching ul:has(>[data-wpml="current-language-item"]:first-child){--language-position:100%}
:is(.agpharm-site,.editor-styles-wrapper) .agpharm-language-switcher.is-switching ul:has(>[data-wpml="current-language-item"]:last-child){--language-position:0%}
:is(.agpharm-site,.editor-styles-wrapper) .agpharm-language-switcher ul.horizontal-list li{position:relative;margin:0!important;padding:0!important;background:transparent!important;line-height:1;min-width:0;width:auto;justify-self:stretch}
:is(.agpharm-site,.editor-styles-wrapper) .agpharm-language-switcher ul.horizontal-list li>div,:is(.agpharm-site,.editor-styles-wrapper) .agpharm-language-switcher ul.horizontal-list a{display:flex;align-items:center;justify-content:center;min-width:0;min-height:34px;width:100%;line-height:1;border-radius:999px}
:is(.agpharm-site,.editor-styles-wrapper) .agpharm-language-switcher [data-wpml="label"]{line-height:1;font-weight:600;letter-spacing:.04em}
.agpharm-language-switcher a:focus-visible{outline:2px solid #087788;outline-offset:1px}
@media(prefers-reduced-motion:no-preference){
 :is(.agpharm-site,.editor-styles-wrapper) .agpharm-language-switcher ul.horizontal-list::before{transition:transform 180ms cubic-bezier(.2,.7,.2,1)}
}
@media(max-width:1024px){:is(.agpharm-site,.editor-styles-wrapper) .agpharm-language-switcher{margin-inline:0 10px}}

/* Section has editable radii but no child-content clipping control in this Kadence version. */
:is(.agpharm-site,.editor-styles-wrapper) .agpharm-accordion-frame>.kt-inside-inner-col{overflow:hidden}

/* Keep Kadence acceptance controls beside the first text line, including wrapped DE labels. */
.agpharm-native-form .kb-accept-form-field{
 display:grid;grid-template-columns:21px minmax(0,1fr);column-gap:10px;row-gap:6px;align-items:start;
}
.agpharm-native-form .kb-form .kadence-blocks-form-field.kb-accept-form-field>a.kb-accept-link{
 grid-column:1/-1;grid-row:1;inline-size:auto;min-inline-size:0;justify-self:stretch;
}
.agpharm-native-form .kb-form .kadence-blocks-form-field.kb-accept-form-field>input.kb-checkbox-style[type=checkbox]{
 grid-column:1;grid-row:2;margin:1px 0 0;accent-color:#087788;
}
.agpharm-native-form .kb-accept-form-field>label{
 grid-column:2;grid-row:2;min-block-size:44px;margin:0;padding:0;line-height:1.5;cursor:pointer;
}

/* Round the mobile menu control to match the adjacent language switcher. */
:is(.agpharm-site,.editor-styles-wrapper) .wp-block-kadence-off-canvas-trigger{
 border-radius:50%;width:44px;height:44px;
}
