/*
Theme Name: IFREE
Description: Shared IFREE theme using the legacy English visual baseline.
Version: 0.2.0
Text Domain: ifree
*/
/* Only WordPress integration repairs; main geometry, palette and typography are legacy English CSS. */
[hidden]{display:none!important}.product-main-image{display:block;width:100%;height:auto;object-fit:contain}.ifree-content img{max-width:100%;height:auto}.ifree-content table{width:100%}.ifree-content .table-responsive{overflow-x:auto}.ifree-ict-content{margin:0}.ifree-article{max-width:920px;margin:40px auto;line-height:1.9}.ifree-article img{max-width:100%;height:auto!important}.ifree-article h1{overflow-wrap:anywhere}.ifree-card img{width:100%;height:240px;object-fit:contain}.ifree-meta{color:#777}.ifree-footer-item{margin-bottom:16px}.modal-body .ifree-footer-label{display:block;font-weight:600}.modal-body .ifree-footer-item{display:flex;gap:12px}.ifree-footer-links{columns:2}.ifree-content video{max-width:100%}.table-responsive>table{min-width:420px}.ifree-language-link{white-space:nowrap}body.admin-bar .header-sticky{top:32px}@media(max-width:782px){body.admin-bar .header-sticky{top:46px}}@media(max-width:600px){body.admin-bar .header-sticky{top:0}.ifree-footer-links{columns:1}.ifree-article{margin:24px 0}}
.ifree-banner{position:relative;overflow:hidden}.ifree-banner img{width:100%;height:240px;object-fit:cover}.ifree-banner h2{position:absolute;left:max(5%,calc((100% - 1140px)/2));top:40%;color:#fff}@media(max-width:600px){.ifree-banner img{height:150px}}
/* Footer follows legacy Chinese structure for both languages. */
#ifree-footer .ifree-footer-copyright{flex-wrap:wrap}#ifree-footer [data-footer-qr] img{height:auto;max-width:100%}#ifree-footer .footer-card a{overflow-wrap:anywhere}#ifree-footer .ifree-footer-legal{white-space:nowrap}@media(max-width:767.98px){#ifree-footer [data-footer-qr]{margin-bottom:1rem}#ifree-footer .container.pt-5>.row>.col-md-4:last-child{margin-top:1.5rem}}
/* Shared legacy-style inquiry modal; Fluent Forms supplies behavior, not a separate visual design. */
#dialogFormModal .modal-dialog{max-width:520px}#dialogFormModal .modal-content{max-height:calc(100dvh - 2rem)}#dialogFormModal .modal-body{overscroll-behavior:contain}#dialogFormModal .fluentform .ff-el-group{margin-bottom:1rem}#dialogFormModal .fluentform .ff-el-input--label label{font:inherit;font-weight:400;color:inherit}#dialogFormModal .fluentform .ff-el-form-control{font:inherit;border:1px solid #ced4da;border-radius:.375rem;padding:.375rem .75rem;min-height:38px;box-shadow:none}#dialogFormModal .fluentform .ff-el-form-control:focus{border-color:#86b7fe;box-shadow:0 0 0 .2rem #0d6efd40}#dialogFormModal .fluentform .ff-btn-submit{background:#0d6efd;color:#fff;border:1px solid #0d6efd;border-radius:.375rem;padding:.375rem .75rem;font:inherit}#dialogFormModal .ifree-verification-tools{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:8px}#dialogFormModal .ifree-inquiry-status{margin:.5rem 0;color:#b02a37}#dialogFormModal .ff-message-success{margin-top:1rem}#dialogFormModal .ff-el-is-error .ff-el-form-control{border-color:#dc3545}@media(max-width:575px){#dialogFormModal .modal-dialog{margin:.5rem}#dialogFormModal .modal-content{max-height:calc(100dvh - 1rem)}#dialogFormModal .fluentform input,#dialogFormModal .fluentform textarea{font-size:16px}}

#dialogFormModal .modal-header{gap:12px}#dialogFormModal .modal-header>img{max-width:120px;height:auto}#dialogFormModal .modal-title{font-size:1.1rem;line-height:1.35}#dialogFormModal .modal-header .btn-close{flex-shrink:0}

/* Title stays at the modal's actual center, independently of logo/close-button widths. */
#dialogFormModal .modal-header{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center}
#dialogFormModal .modal-header>img{justify-self:start;max-width:min(120px,100%)}
#dialogFormModal .modal-title{text-align:center;margin:0;max-width:240px;overflow-wrap:anywhere}
#dialogFormModal .modal-header .btn-close{justify-self:end;margin:0}
#dialogFormModal .ff_submit_btn_wrapper{display:flex;justify-content:center}
@media(max-width:575px){#dialogFormModal .modal-title{max-width:180px}}
/* Homepage integration: retain the legacy geometry; only repair dynamic/empty and long-content cases. */
[data-home-module] h1,[data-home-module] h2,[data-home-module] h3{overflow-wrap:anywhere}.ifree-no-image{background:#edf2f5}.solution-card.ifree-no-image{min-height:280px}.solution-card.ifree-no-image .solution-info{position:relative;color:#334b5a;padding:40px 24px;transform:none}#indexAboutUs img{max-width:100%;height:auto}
/* Homepage hero: show original media brightness on desktop and mobile. */
#myCarousel .carousel-item::after{content:none;background:none}
/* About summary: lighter heading with comfortable wrapping in both languages. */
#indexAboutUs .ias-story h2{font-weight:600;line-height:1.3}
/* Align metric icons to the first text line, including wrapped descriptions. */
#indexAboutUs .ias-metric p i{display:inline-flex;align-items:center;justify-content:center;width:1em;height:1.5em;margin-top:0;line-height:1}
#indexAboutUs .ias-metric p i::before{display:block;line-height:1;vertical-align:initial}
/* Homepage products only: shared media/title/copy/action tracks, with flexible fallback. */
#IndexProducts .ifree-home-product-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:24px;margin:0}
#IndexProducts .ifree-home-product-grid>.col{display:flex;width:auto;min-width:0;padding:0;margin:0}
#IndexProducts .ifree-home-product-card{display:flex;flex-direction:column;width:100%;min-width:0;height:auto;padding:0;border:1px solid var(--ifree-neutral-border);border-radius:12px;overflow:hidden;background:#fff;justify-content:flex-start}
#IndexProducts .ifree-model-media,#IndexProducts .ifree-range-media{flex:0 0 auto;width:100%;aspect-ratio:4/3;overflow:hidden;background:var(--ifree-neutral-media)}
#IndexProducts .ifree-model-media img,#IndexProducts .ifree-range-media img{display:block;width:100%;height:100%;object-fit:contain;object-position:center;filter:none}
/* These portrait PNGs include transparent padding; restore the previous width-fit scale. */
#IndexProducts .ifree-model-media img{object-fit:cover;object-position:center 40%}
#IndexProducts .ifree-model-body,#IndexProducts .ifree-range-body{display:flex;flex:1;flex-direction:column;min-width:0;padding:24px;background:#fff}
#IndexProducts .ifree-home-product-title{margin:0;padding:0;color:var(--ifree-action-cyan);font-size:25px;font-weight:700;line-height:1.2;letter-spacing:normal;overflow-wrap:break-word}
#IndexProducts .ifree-home-product-copy{min-width:0;padding:10px 0 20px}
#IndexProducts .ifree-home-product-copy p{min-height:0;margin:0;color:var(--ifree-secondary-gray);font-size:15px;line-height:1.6;overflow-wrap:break-word}
#IndexProducts .ifree-home-product-copy .ifree-model-config,#IndexProducts .ifree-home-product-copy .ifree-range-eyebrow{margin-bottom:8px;font-weight:600}
#IndexProducts .ifree-home-product-copy p:last-child{margin-bottom:0}
#IndexProducts .ifree-home-product-actions{display:flex;flex-direction:row;align-items:flex-start;justify-content:flex-start;flex-wrap:wrap;gap:10px;margin-top:auto;padding:0}
#IndexProducts .ifree-model-link,#IndexProducts .ifree-range-link{flex:0 1 auto;min-width:0;max-width:100%;min-height:38px;padding:8px 12px;border:1px solid var(--ifree-action-cyan);border-radius:6px;background:#fff;color:var(--ifree-action-cyan);font-size:14px;font-weight:500;line-height:20px;gap:8px;white-space:normal;overflow-wrap:anywhere}
@media(min-width:768px){#IndexProducts .ifree-home-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:992px){#IndexProducts .ifree-home-product-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:767.98px){#IndexProducts .ifree-model-link,#IndexProducts .ifree-range-link{min-height:44px;padding-block:11px}}
@supports(grid-template-rows:subgrid){
 #IndexProducts .ifree-home-product-grid>.col{display:grid;grid-row:span 4;grid-template-rows:subgrid;row-gap:0}
 #IndexProducts .ifree-home-product-card{display:grid;grid-row:span 4;grid-template-rows:subgrid;row-gap:0}
 #IndexProducts .ifree-model-body,#IndexProducts .ifree-range-body{display:contents}
 #IndexProducts .ifree-home-product-title{padding:24px 24px 0}
 #IndexProducts .ifree-home-product-copy{padding:10px 24px 20px}
 #IndexProducts .ifree-home-product-actions{margin:0;padding:0 24px 24px}
}
/* Homepage solutions: a secondary route to the current-language collection. */
.solution-section .ifree-solutions-footer{margin-top:8px}
.solution-section .ifree-solutions-all{display:inline-flex;align-items:center;justify-content:center;gap:8px;max-width:100%;min-height:38px;padding:8px 12px;border:1px solid var(--ifree-action-cyan);border-radius:6px;background:#fff;color:var(--ifree-action-cyan);font-size:14px;font-weight:500;line-height:20px;text-decoration:none;white-space:normal;overflow-wrap:anywhere}
.solution-section .ifree-solutions-all:hover{background:var(--ifree-action-hover);border-color:var(--ifree-action-hover);color:#fff}
.solution-section .ifree-solutions-all:focus-visible{outline:3px solid var(--ifree-action-cyan);outline-offset:4px}
@media(max-width:767.98px){.solution-section .ifree-solutions-all{min-height:44px;padding-block:11px}}

/* Compact configuration grid, using the original artwork without cropping. */
.product-card .ifree-config-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:24px 16px;margin-inline:0;padding:8px 0 16px}
.product-card .ifree-config-cell{width:auto;min-width:0;padding:0;text-align:center}
.product-card .ifree-config-cell img{display:block;width:80px;height:80px;max-width:100%;margin:0 auto 14px;object-fit:contain;transform:none}
.product-card .ifree-config-cell p{margin:0;font:inherit;color:inherit;overflow-wrap:anywhere;text-align:center}
.product-card:hover .ifree-config-cell img{transform:none}
@media(max-width:991.98px){.product-card .ifree-config-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:575.98px){.product-card .ifree-config-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px 12px}.product-card .ifree-config-cell img{width:60px;height:60px;margin-bottom:12px}}

.product-title-box .ifree-product-inquiry{display:inline-flex;align-items:center;justify-content:center;gap:8px;margin-top:8px;min-height:44px;padding:10px 19px;border:1px solid var(--ifree-action-cyan,#13abc6);border-radius:6px;background:var(--ifree-action-cyan,#13abc6);color:#fff;font-size:14px;line-height:22px}
.product-title-box .ifree-product-inquiry:hover{background:var(--ifree-action-hover,#087d95);border-color:var(--ifree-action-hover,#087d95);color:#fff}
.product-title-box .ifree-product-inquiry:focus-visible{outline:3px solid var(--ifree-action-cyan,#13abc6);outline-offset:4px}

/* Detail headings retain the legacy blue divider; only the text changes. */
.single-ifree_product .product-card-title{color:var(--bs-gray-800,#343a40)}
/* Shared footer hierarchy, reusing Bootstrap's neutral palette. */
#ifree-footer{color:var(--bs-gray-400,#ced4da)}
#ifree-footer .container.pt-5>.row>.col-md-4>h4{color:#f1f3f5}
#ifree-footer #footer a{color:inherit}
#ifree-footer #beian{color:var(--bs-gray-500,#adb5bd)}
#ifree-footer #footer a:hover,#ifree-footer #footer a:focus-visible{color:var(--ifree-white,#fff);text-decoration:underline;text-underline-offset:3px}
#ifree-footer #footer a:focus-visible{outline:2px solid currentColor;outline-offset:4px}

.single-ifree_product .ifree-feature-list{display:grid;grid-template-columns:minmax(0,1fr);gap:0 40px;text-align:start}
.single-ifree_product .ifree-feature-list ul{margin:0;padding-inline-start:1.4em;min-width:0}
.single-ifree_product .ifree-feature-list li{padding-inline-start:.15em;margin:0 0 .5em;overflow-wrap:anywhere}
.single-ifree_product .ifree-feature-list li::marker{color:var(--ifree-logo-cyan,#1babd7)}
@media(min-width:992px){.single-ifree_product .ifree-feature-columns{grid-template-columns:repeat(2,minmax(0,1fr))}}

.single-ifree_product .ifree-parameter-wrap>.ifree-parameter-table{width:100%;min-width:0;table-layout:fixed}
.single-ifree_product .ifree-parameter-table th{width:32%}
.single-ifree_product .ifree-parameter-table th,.single-ifree_product .ifree-parameter-table td{overflow-wrap:anywhere;white-space:pre-line;text-align:start}
/* Solution collection follows the legacy two-column image-card composition. */
.ifree-solutions-list .solution-card{height:100%;overflow:hidden}
.ifree-solutions-list .solution-card>a{display:block;height:100%;color:inherit}
.ifree-solutions-list .solution-card img{display:block;width:100%;aspect-ratio:636/360;object-fit:cover}
.ifree-solutions-list .solution-info h2{overflow-wrap:anywhere}
.ifree-solutions-list .solution-card>a:focus-visible{outline:3px solid #126f8c;outline-offset:3px}
.ifree-solutions-list .navigation.pagination{display:block;text-align:center;margin-top:24px}
.ifree-solutions-list .nav-links{display:flex;justify-content:center;gap:8px;flex-wrap:wrap}
.ifree-solutions-list .page-numbers{padding:8px 14px;border:1px solid #dcdcde;border-radius:3px}
.ifree-solutions-list .page-numbers.current{background:#126f8c;border-color:#126f8c;color:#fff}
@media(max-width:767px){.ifree-solutions-list .solution-info{padding:16px}.ifree-solutions-list .solution-info h2{font-size:1.25rem!important}.ifree-solutions-list .solution-info p{font-size:1rem!important;line-height:1.5;margin-bottom:8px}}
.ifree-solutions-list .solution-info h2{margin:0}
.ifree-solutions-banner #banner-text p{max-width:920px}
@media(max-width:767px){
 .ifree-solutions-banner #banner-text h1{font-size:28px;line-height:1.25}
 .ifree-solutions-banner #banner-text p{font-size:16px;line-height:1.65;margin:12px 0 0}
 .ifree-solutions-list .solution-card{border:1px solid #e4e8eb}
 .ifree-solutions-list .solution-info,.ifree-solutions-list .solution-card:hover .solution-info{position:relative;height:auto;padding:18px 16px;background:#fff;color:#212529}
 .ifree-solutions-list .solution-info p{padding-top:8px!important;margin:0}
 .ifree-solutions-list .solution-info i{display:none!important}
}
.ifree-solution-detail .solution-intro{line-height:1.75;overflow-wrap:anywhere}
.ifree-solution-detail .solution-intro img{max-width:100%;height:auto}
.ifree-solution-detail .ifree-solution-illustration img{display:block;height:auto}
.ifree-solution-detail .sl-card{width:100%;overflow-wrap:anywhere}
.ifree-solution-detail .sl-card h3{font-size:1.75rem;line-height:1.3}
.ifree-solution-detail .sl-app-card .ratio{overflow:hidden}
.ifree-solution-detail .sl-app-card img{object-fit:cover}
.ifree-solution-detail .title{font-size:40px;line-height:1.3}
.ifree-solutions-banner #banner-text h2{font-size:40px;line-height:1.2}
@media(max-width:767px){.ifree-solutions-banner #banner-text h2{font-size:28px;line-height:1.25}.ifree-solution-detail .title{font-size:28px}.ifree-solution-detail .solution-title{margin-bottom:24px}.ifree-solution-detail .sl-card h3{font-size:1.5rem}.ifree-solution-detail .sl-box{margin-bottom:20px!important}}
/* Fixed-field inquiry form reuses the shared Bootstrap modal and controls. */
#dialogFormModal .ifree-inquiry-form label{font:inherit;color:inherit}#dialogFormModal .ifree-inquiry-form input,#dialogFormModal .ifree-inquiry-form textarea{font:inherit}#dialogFormModal [data-ifree-submit-status]{margin:.75rem 0 0;color:#b02a37}#dialogFormModal .ifree-inquiry-form textarea{resize:vertical}@media(max-width:575px){#dialogFormModal .ifree-inquiry-form input,#dialogFormModal .ifree-inquiry-form textarea{font-size:16px}}

/* Mark the current public navigation item without changing header geometry. */
header.header-sticky .navbar .nav-link[aria-current]{color:#007e98;box-shadow:inset 0 -2px #00a7cf}

.ifree-product-banner #banner-text>p{max-width:1000px;line-height:1.65;text-wrap:balance}
@media(max-width:767.98px){.ifree-product-banner-ict #banner-text>p{font-size:16px;line-height:1.7}}

/* Match the shared hero's mobile item height to its media, so translated headings stay inside the slide. */
@media(max-width:767.98px){
 #myCarousel[data-home-module="hero"] .carousel-item{height:clamp(460px,64vh,600px);height:clamp(460px,64svh,600px)}
 #myCarousel[data-home-module="hero"] .ifree-carousel-media{height:100%}
}

/* One shared banner height for business lists, articles, About and Contact. */
:root{--ifree-page-banner-height:400px}
@media(max-width:991.98px){:root{--ifree-page-banner-height:300px}}
.ifree-product-banner .banner #banner-img,
.ifree-solutions-banner .banner #banner-img,
.ifree-banner img{display:block;width:100%;height:var(--ifree-page-banner-height);object-fit:cover;object-position:center}
