.crbfm{--fm-teal:#00796b;--fm-navy:#0d3b45;--fm-orange:#f26522;--fm-line:#d9e4e6;--fm-bg:#f4f9f9;--fm-err:#b3261e;container-type:inline-size;width:100%;box-sizing:border-box;color:#1f2d32;font-size:15px;line-height:1.5}
.crbfm *,.crbfm *::before,.crbfm *::after{box-sizing:border-box}
.crbfm__panel{display:grid;grid-template-columns:1fr;background:#fff;border:1px solid var(--fm-line);border-radius:18px;box-shadow:0 18px 40px rgba(13,59,69,.12);overflow:hidden}
.crbfm__main{padding:24px;min-width:0}
.crbfm__head{display:flex;align-items:center;gap:12px;margin-bottom:18px}
.crbfm__logo{height:50px;width:auto;object-fit:contain}
.crbfm__title{margin:0;font-size:22px;line-height:1.2;color:var(--fm-navy);display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.crbfm__badge{background:var(--fm-teal);color:#fff;border-radius:999px;font-size:12px;font-weight:600;padding:3px 10px}
.crbfm__lead{margin:4px 0 0;color:#546e75}
.crbfm__group{border:0;margin:0 0 18px;padding:0;min-width:0}
.crbfm__group legend,.crbfm__field>label,.crbfm__photo>label{display:block;font-weight:700;color:var(--fm-navy);margin-bottom:8px;padding:0}
.crbfm__step{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;background:var(--fm-orange);color:#fff;font-size:12px;margin-right:6px}
.crbfm__opt{font-weight:400;color:#6b7f85;font-size:13px}
.crbfm__options{display:flex;flex-wrap:wrap;gap:8px}
.crbfm__options--stack{flex-direction:column}
.crbfm__option{position:relative;display:block;cursor:pointer}
.crbfm__option input{position:absolute;opacity:0;inset:0;width:100%;height:100%;margin:0;cursor:pointer}
.crbfm__option span{display:block;padding:10px 16px;border:1.5px solid var(--fm-line);border-radius:12px;background:#fff;transition:border-color .15s,background .15s,box-shadow .15s}
.crbfm__option:hover span{border-color:var(--fm-teal)}
.crbfm__option input:checked+span{border-color:var(--fm-orange);background:#fff5ee;font-weight:600;box-shadow:0 0 0 2px rgba(242,101,34,.15)}
.crbfm__option input:focus-visible+span,.crbfm__field :is(input,select):focus-visible,.crbfm__submit:focus-visible,.crbfm__link:focus-visible,.crbfm__card a:focus-visible{outline:3px solid #0a84a6;outline-offset:2px}
.crbfm__field{margin-top:10px}
.crbfm__field :is(input,select){width:100%;min-height:44px;padding:9px 12px;border:1.5px solid var(--fm-line);border-radius:10px;background:#fff;font:inherit;color:inherit}
.crbfm__field :is(input,select)[aria-invalid="true"]{border-color:var(--fm-err)}
.crbfm__field :is(input,select):disabled{background:#eef3f4;color:#8aa0a6}
.crbfm__row{display:grid;grid-template-columns:1fr;gap:0 12px}
.crbfm__check{display:flex;gap:8px;align-items:flex-start;margin-top:12px}
.crbfm__check input{margin-top:4px}
.crbfm__replacement{margin-top:12px;padding:14px;border-radius:12px;background:var(--fm-bg);border:1px dashed var(--fm-teal)}
.crbfm__replacement[hidden],.crbfm [hidden]{display:none!important}
.crbfm__note{margin:0 0 8px;color:#35545b;font-size:14px}
.crbfm__error{margin:6px 0 0;color:var(--fm-err);font-size:14px;font-weight:600}
.crbfm__error::before{content:"⚠ Lỗi: "}
.crbfm__actions{display:flex;flex-wrap:wrap;align-items:center;gap:14px}
.crbfm__submit{flex:1 1 220px;min-height:48px;border:0;border-radius:12px;background:linear-gradient(135deg,var(--fm-orange),#ff8a3d);color:#fff;font:inherit;font-weight:800;letter-spacing:.02em;cursor:pointer;padding:12px 18px;box-shadow:0 8px 18px rgba(242,101,34,.28);transition:transform .15s,box-shadow .15s}
.crbfm__submit:hover{transform:translateY(-1px)}
.crbfm__submit[aria-busy="true"]{opacity:.7;cursor:progress}
.crbfm__link{background:none;border:0;padding:6px;color:var(--fm-teal);font:inherit;font-weight:600;text-decoration:underline;cursor:pointer}
.crbfm__status{min-height:1.5em;margin:10px 0 0;color:#35545b}
.crbfm__preview{margin-top:10px}
.crbfm__preview img{display:block;max-width:100%;max-height:150px;border-radius:10px;margin-bottom:4px}
.crbfm__results{margin-top:16px;outline:0}
.crbfm__disclaimer{padding:10px 12px;border-radius:10px;background:#fff8e6;border:1px solid #f1d58a;color:#5a4300;font-size:14px;margin:0 0 14px}
.crbfm__results h3{margin:16px 0 8px;color:var(--fm-navy);font-size:17px}
.crbfm__cards{display:grid;gap:12px}
.crbfm__card{display:grid;grid-template-columns:84px 1fr;gap:12px;padding:12px;border:1px solid var(--fm-line);border-radius:14px;background:#fff}
.crbfm__card img{width:84px;height:84px;object-fit:cover;border-radius:10px;background:var(--fm-bg)}
.crbfm__card h4{margin:0 0 2px;font-size:16px;line-height:1.3}
.crbfm__card h4 a{color:var(--fm-navy);text-decoration:none}
.crbfm__price{margin:0 0 6px;color:var(--fm-orange);font-weight:800}
.crbfm__card ul{margin:4px 0;padding-left:18px;font-size:14px}
.crbfm__card .crbfm__warn li::marker{color:var(--fm-err)}
.crbfm__card-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:8px}
.crbfm__card-actions a{color:var(--fm-teal);font-weight:700}
.crbfm__side{background:linear-gradient(180deg,#eaf6f5,#f9fdfd);padding:24px;border-top:1px solid var(--fm-line);min-width:0;text-align:center}
.crbfm__side-title{margin:0 0 14px;font-size:20px;font-weight:700;color:#00475E}
.crbfm__shot{position:relative;margin:0}
.crbfm__shot img{display:block;width:100%;height:130px;object-fit:cover;border-radius:12px}
.crbfm__tag{position:absolute;top:8px;left:8px;background:rgba(13,59,69,.85);color:#fff;border-radius:999px;font-size:12px;padding:2px 10px}
.crbfm__arrow{font-size:22px;color:var(--fm-orange);margin:4px 0}
.crbfm__fine{font-size:12px;color:#5d747a;margin:8px 0 0}
.crbfm__tips{margin:0;padding-left:18px;text-align:left;font-size:14px;color:#35545b}
.crbfm__signature{margin-top:22px;width:100%;min-width:0;text-align:center;font-size:24px;line-height:1.3;font-weight:600;color:var(--fm-navy);transform:rotate(-6deg)}
.crbfm__signature-line{display:block;text-wrap:balance}
@container (min-width:560px){.crbfm__row{grid-template-columns:1fr 1fr}.crbfm__card{grid-template-columns:110px 1fr}.crbfm__card img{width:110px;height:110px}}
@container (min-width:580px){.crbfm--hero .crbfm__panel{grid-template-columns:minmax(0,1fr) 210px}.crbfm__side{border-top:0;border-left:1px solid var(--fm-line)}}
@media (prefers-reduced-motion:reduce){.crbfm *{transition:none!important}}

.crbfm .crbfm__dialog{position:fixed;inset:0;margin:auto;width:min(1120px,calc(100vw - 32px));max-width:none;max-height:88vh;max-height:88dvh;padding:26px;border:1px solid var(--fm-line);border-radius:22px;background:#f5f9f8;color:#1f2d32;box-shadow:0 24px 80px rgba(13,59,69,.3);overflow:auto;overscroll-behavior:contain}
.crbfm .crbfm__dialog:not([open]){display:none}
.crbfm__dialog::backdrop{background:rgba(9,32,39,.68);backdrop-filter:blur(4px)}
.crbfm__dialog-head{display:flex;justify-content:space-between;align-items:center;gap:16px}
.crbfm__dialog-head h2{margin:0;font-size:clamp(20px,3vw,28px);line-height:1.3;color:var(--fm-navy);text-wrap:balance}
.crbfm__dialog-close{flex-shrink:0;min-height:44px;padding:8px 14px;border:1px solid var(--fm-line);border-radius:10px;background:white;font:inherit;color:var(--fm-navy);cursor:pointer}
.crbfm__dialog-close:focus-visible{outline:3px solid #0a84a6;outline-offset:3px}
.crbfm .crbfm__dialog .crbfm__cards{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}
.crbfm .crbfm__dialog .crbfm__card{display:flex;flex-direction:column;min-width:0;padding:18px;box-shadow:0 5px 18px rgba(13,59,69,.05)}
.crbfm .crbfm__dialog .crbfm__card>div:last-child{display:flex;flex-direction:column;flex:1;min-width:0}
.crbfm .crbfm__dialog .crbfm__card img{width:100%;height:180px;object-fit:contain;background:white}
.crbfm__dialog .crbfm__card-actions{margin-top:auto;padding-top:18px}
.crbfm .crbfm__card-actions .crbfm__buy{display:block;text-align:center;width:100%;min-height:44px;padding:10px 16px;border-radius:10px;background:var(--fm-teal);color:white;text-decoration:none;transition:background .15s}
.crbfm .crbfm__card-actions .crbfm__buy:hover{background:var(--fm-navy)}
@media(max-width:800px){.crbfm .crbfm__dialog .crbfm__cards{grid-template-columns:1fr}.crbfm .crbfm__dialog{padding:18px;width:calc(100vw - 20px)}.crbfm .crbfm__dialog .crbfm__card img{height:150px}}

/* FitMatch visual refresh: scoped to the shortcode, never theme-wide. */
.crbfm{--fm-line:#dce7e6;--fm-bg:#f3f8f7;font-size:14px;line-height:1.6}
.crbfm__panel{border-radius:24px;border-color:#e0e9e7;box-shadow:0 24px 64px -24px rgba(12,49,56,.35),0 2px 8px rgba(12,49,56,.04)}
.crbfm__main{padding:22px 24px;min-width:0;background:linear-gradient(155deg,#fff 65%,#f7faf9)}
.crbfm__head{gap:12px;align-items:center;padding-bottom:12px;margin-bottom:14px;border-bottom:1px solid #e8efed}
.crbfm__logo{width:48px;height:48px;flex:0 0 48px;padding:5px;border:1px solid #e4edeb;border-radius:12px;background:white;object-fit:contain}
.crbfm__title{font-size:24px;font-weight:800;letter-spacing:-.6px;gap:7px}
.crbfm__badge{font-size:10px;letter-spacing:.02em;font-weight:700;line-height:1.7;padding:3px 9px;background:#e6f3ef;color:#126454;border:1px solid #cbe5dc}
.crbfm__lead{font-size:13px;margin-top:4px;line-height:1.5;color:#526a70}
.crbfm__group{margin-bottom:14px}
.crbfm__group legend,.crbfm__field>label,.crbfm__photo>label{font-size:13px;font-weight:700;margin-bottom:6px}
.crbfm__step{width:24px;height:24px;border-radius:8px;background:#e9f3f0;color:#126454;font-weight:800;margin-right:8px;vertical-align:middle}
.crbfm__options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.crbfm__options--stack{grid-template-columns:1fr}
.crbfm__option{min-width:0;margin:0}
.crbfm__option span{height:100%;min-height:44px;display:flex;align-items:center;justify-content:center;text-align:center;line-height:1.5;padding:10px 12px;border:1px solid var(--fm-line);border-radius:11px;font-size:13px;font-weight:500}
.crbfm__options--stack .crbfm__option span{justify-content:flex-start;text-align:left;gap:10px}
.crbfm__options--stack .crbfm__option span::before{content:'';width:16px;height:16px;border:1px solid #a4bcb6;border-radius:50%;background:white;flex:0 0 16px}
.crbfm__option input:checked+span{border-color:#19836d;background:#edf7f3;color:#125c4e;font-weight:600;box-shadow:0 0 0 1px #19836d}
.crbfm__options--stack .crbfm__option input:checked+span::before{background:#19836d;border:4px solid white;box-shadow:0 0 0 1px #19836d}
.crbfm__field{margin-top:0}
.crbfm__field :is(input,select){min-height:44px;border-radius:11px;background:#fcfefd;border-width:1px;font-size:15px;padding:9px 12px;transition:border-color .15s,box-shadow .15s}
.crbfm__field :is(input,select):hover:not(:disabled){border-color:#8eb5a9}
.crbfm__field input::placeholder{color:#708781;font-size:13px;opacity:1}
.crbfm__field.is-disabled{opacity:.55;transition:opacity .15s}
.crbfm__field.is-disabled :is(input,select){cursor:not-allowed}
.crbfm__row{display:grid;grid-template-columns:1fr;gap:10px}
.crbfm__row .crbfm__field{margin-top:0}
@container (min-width:480px){.crbfm__row{grid-template-columns:1fr 1fr;gap:12px}}
.crbfm__actions{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;padding-top:4px}
.crbfm__submit{min-width:0;min-height:48px;padding:12px;font-size:13px;font-weight:700;letter-spacing:0;border-radius:12px;background:linear-gradient(120deg,#ed651e,#fa843a);box-shadow:0 7px 16px -6px rgba(213,83,17,.4)}
.crbfm__actions .crbfm__link{font-size:12px;min-height:44px;text-underline-offset:4px}
.crbfm__status:empty,.crbfm__results:empty{min-height:0;margin:0}
.crbfm__side{display:flex;flex-direction:column;justify-content:center;gap:0;padding:22px 18px;background:radial-gradient(ellipse at top right,rgba(79,153,134,.26),transparent 65%),linear-gradient(155deg,#164d50,#0c343e);border:0;color:#fff}
.crbfm__side-title{font-size:15px;line-height:1.45;color:#f1fbf8;text-wrap:balance;margin-bottom:14px;font-weight:700}
.crbfm__shot{padding:20px 9px 9px;background:rgba(255,255,255,.96);border:1px solid rgba(255,255,255,.3);border-radius:14px;box-shadow:0 6px 16px rgba(0,0,0,.08)}
.crbfm__shot img{height:auto;width:100%;aspect-ratio:4/3;object-fit:contain;border-radius:9px}
.crbfm__tag{left:10px;top:7px;font-size:10px;letter-spacing:.06em;background:transparent;color:#365f61;font-weight:700;padding:0}
.crbfm__arrow{color:#ffb27f;font-size:18px;margin:5px 0}
.crbfm__fine{font-size:11px;line-height:1.6;color:#c4dcd7;margin-top:10px}
.crbfm__tips{color:#d4e7e2;font-size:12.5px;line-height:1.65;padding-left:14px}
.crbfm__tips li+li{margin-top:8px}
.crbfm__signature{color:#fff;font-size:19px;line-height:1.35;font-weight:600;letter-spacing:-.5px;transform:none;margin-top:16px;padding-top:14px;border-top:1px solid rgba(255,255,255,.18)}
.crbfm__signature-line:nth-child(n+3){color:#ffc59a}
@container (min-width:580px){.crbfm--hero .crbfm__panel{grid-template-columns:minmax(0,1fr) 215px}}
@container (max-width:579px){
  .crbfm__main{padding:20px 18px}
  .crbfm__side{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:20px 18px;align-items:center}
  .crbfm__side-title,.crbfm__fine,.crbfm__tips{grid-column:1/-1;margin:0}
  .crbfm__arrow{display:none}
  .crbfm__signature{grid-column:1/-1;font-size:18px;margin-top:4px;padding-top:12px}
}
.crbfm--hero .crbfm__panel:not(:has(>.crbfm__side)){grid-template-columns:minmax(0,1fr)}
@container (max-width:360px){.crbfm__main{padding:18px 14px}.crbfm__head{align-items:flex-start}.crbfm__title{font-size:21px}.crbfm__actions{grid-template-columns:1fr}.crbfm__actions .crbfm__link{min-height:36px}}
/* Native file input covers the drop area: mouse and keyboard both work. Compact horizontal strip */
.crbfm__dropzone{position:relative;display:flex;flex-direction:row;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px 14px;min-height:56px;padding:10px 16px;border:1.5px dashed #acbfba;border-radius:12px;background:#f8faf9;text-align:center;color:#49625c;transition:background .15s,border-color .15s}
.crbfm__dropzone input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;z-index:1}
.crbfm__dropzone:hover,.crbfm__dropzone.is-dragging{background:#edf7f2;border-color:#19836d}
.crbfm__dropzone:focus-within{outline:3px solid #0a84a6;outline-offset:3px}
.crbfm__dropzone svg{color:#185d50;flex-shrink:0;width:22px;height:22px}
.crbfm__dropzone span{font-size:12.5px;line-height:1.4}
.crbfm__dropzone span br{display:none}
.crbfm__dropzone strong{color:#116b56;text-decoration:underline;text-underline-offset:3px}
.crbfm__dropzone small,.crbfm__photo-help{font-size:11px;color:#5f756e;line-height:1.4}
.crbfm__photo-help{margin:6px 0 0}
.crbfm__preview{padding:10px;border:1px solid var(--fm-line);border-radius:12px;background:#f6faf8}
.crbfm__preview img{margin:auto;max-height:150px;object-fit:contain}

/* AI Kitchen Visualization styles */
.crbfm__ai-banner{display:flex;align-items:center;gap:10px;margin:10px 0 16px;padding:12px 16px;background:#eef8f5;border:1px solid #bce3d6;border-left:4px solid #19836d;border-radius:10px;font-size:13px;color:#125547;line-height:1.5;box-shadow:0 2px 8px rgba(25,131,109,.08)}
.crbfm__consent-wrap{margin-top:10px;padding:10px 12px;background:#f0f7f5;border:1px solid #d4e7e1;border-radius:10px}
.crbfm__consent-wrap .crbfm__check{font-size:12px;line-height:1.45;color:#2b554b;display:flex;align-items:flex-start;gap:8px}
.crbfm__consent-wrap input[type=checkbox]{margin-top:2px;accent-color:#19836d}
.crbfm__ai-sec{margin-top:12px;padding-top:10px;border-top:1px dashed #dce7e4}
.crbfm__ai-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;width:100%;min-height:38px;padding:8px 14px;font-size:12.5px;font-weight:700;color:#0d4a3e;background:linear-gradient(135deg,#e4f5ee,#d1ede1);border:1px solid #b6ded0;border-radius:10px;cursor:pointer;transition:all .2s ease;box-shadow:0 2px 6px rgba(13,74,62,.08)}
.crbfm__ai-btn:hover:not(:disabled){background:linear-gradient(135deg,#d3eedf,#bee6d3);border-color:#9cd1bf;transform:translateY(-1px);box-shadow:0 4px 10px rgba(13,74,62,.12)}
.crbfm__ai-btn:disabled{opacity:.7;cursor:not-allowed}
.crbfm__ai-sparkle{font-size:14px}
.crbfm__spinner{display:inline-block;width:14px;height:14px;border:2px solid rgba(13,74,62,.25);border-top-color:#0d4a3e;border-radius:50%;animation:crbfm-spin .7s linear infinite}
@keyframes crbfm-spin{to{transform:rotate(360deg)}}
.crbfm__ai-box{margin-top:10px;padding:12px;background:#ffffff;border:1px solid #cfe0db;border-radius:12px;box-shadow:0 4px 14px rgba(12,49,56,.06)}
.crbfm__ai-loading{display:flex;align-items:center;gap:10px;padding:14px;font-size:12.5px;color:#2c5950;background:#f7faf9;border-radius:8px}
.crbfm__ai-tabs{display:flex;gap:6px;margin-bottom:8px;background:#eef5f3;padding:3px;border-radius:8px}
.crbfm__ai-tab{flex:1;border:none;background:transparent;padding:6px 8px;font-size:11.5px;font-weight:600;color:#55756d;border-radius:6px;cursor:pointer;transition:all .15s ease}
.crbfm__ai-tab.is-active{background:#ffffff;color:#0e4c3f;box-shadow:0 2px 5px rgba(0,0,0,.08)}
.crbfm__ai-media{position:relative;width:100%;aspect-ratio:16/10;background:#18302c;border-radius:10px;overflow:hidden;display:flex;align-items:center;justify-content:center}
.crbfm__ai-media img{width:100%;height:100%;object-fit:cover;display:block}
.crbfm__ai-badge{position:absolute;top:8px;left:8px;padding:4px 9px;font-size:10.5px;font-weight:700;color:#ffffff;background:rgba(12,54,45,.85);backdrop-filter:blur(6px);border:1px solid rgba(255,255,255,.25);border-radius:12px;box-shadow:0 2px 6px rgba(0,0,0,.25);pointer-events:none}
.crbfm__ai-badge--demo{background:rgba(199,87,24,.88)}
.crbfm__ai-badge--orig{background:rgba(30,41,59,.85)}
.crbfm__ai-demo-overlay{position:absolute;bottom:8px;right:8px;width:40%;max-width:140px;padding:4px;background:rgba(255,255,255,.95);border-radius:8px;box-shadow:0 4px 12px rgba(0,0,0,.3);border:1px solid rgba(0,0,0,.08)}
.crbfm__ai-demo-overlay img{width:100%;height:auto;aspect-ratio:1;object-fit:contain}
.crbfm__ai-disclaimer{margin:8px 0 10px;font-size:11px;line-height:1.45;color:#637b75;font-style:italic}
.crbfm__buy--ai{display:block;text-align:center;width:100%;box-sizing:border-box;padding:9px;font-size:12px;font-weight:700;background:linear-gradient(135deg,#19836d,#116453);color:#ffffff;border-radius:8px;text-decoration:none;transition:opacity .15s ease}
.crbfm__buy--ai:hover{opacity:.92;color:#ffffff}
.crbfm__ai-sec,.crbfm__ai-box{min-width:0;max-width:100%}
.crbfm__ai-error{min-width:0;padding:10px;font-size:.75rem;line-height:1.5;overflow-wrap:anywhere;white-space:normal;color:#922b21;background:#fdf2f2;border:1px solid #f5c6cb;border-radius:8px}
.crbfm__ai-error p{margin:0}
.crbfm__ai-error .crbfm__ai-error-sub{margin-top:6px;font-size:.6875rem;color:#556c66}