/* Cake builder ([torte_cake_builder]) in the TORT’E palette. */
.tcb{
  --g:#253C1C; --g2:#344028; --b:#4D3C2C; --sand:#C6B599; --cream:#E1D4C3; --paper:#f6f1ea;
  --line:rgba(198,181,153,.55); --soft:rgba(198,181,153,.22);
  max-width:1360px; margin:0 auto; padding:0 clamp(16px,3vw,40px) 120px;
  color:var(--g); font-family:Manrope,"Noto Sans Armenian",Arial,sans-serif;
}
.tcb *{box-sizing:border-box}
.tcb :where(button){font:inherit;color:inherit;cursor:pointer;text-transform:none;letter-spacing:normal}
.tcb :where(button:disabled){cursor:not-allowed}

/* Head: title + progress. */
.tcb__head{display:flex;align-items:center;justify-content:space-between;gap:32px;padding:0 0 22px;margin-top:-40px;border-bottom:1px solid var(--line);margin-bottom:28px}
.tcb__title{margin:0;font:400 clamp(22px,2.3vw,32px)/1.1 "Times New Roman",Georgia,serif;letter-spacing:5px;text-transform:uppercase;color:var(--g)}
.tcb__steps{flex:1;max-width:620px;display:flex;justify-content:space-between;margin:0;padding:0;list-style:none;position:relative}
.tcb__steps::before{content:"";position:absolute;left:18px;right:18px;top:17px;height:1px;background:var(--line)}
.tcb__steps li{position:relative;z-index:1}
.tcb__stepbtn{display:flex;flex-direction:column;align-items:center;gap:6px;background:none;border:0;padding:0}
.tcb__num{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#fff;border:1px solid var(--line);font:600 13px/1 Arial,sans-serif;color:#8a7a62;transition:.25s}
.tcb__num svg{width:15px;height:15px}
.tcb__lbl{font-size:12px;letter-spacing:.06em;color:#8a7a62;text-transform:uppercase}
.tcb__steps li.is-cur .tcb__num{background:var(--g);border-color:var(--g);color:#fff}
.tcb__steps li.is-cur .tcb__lbl{color:var(--g);font-weight:600}
.tcb__steps li.is-done .tcb__num{background:var(--sand);border-color:var(--sand);color:#fff}

/* Body. */
.tcb__body{display:grid;grid-template-columns:minmax(0,45%) minmax(0,1fr);gap:clamp(24px,3vw,48px);align-items:start}
.tcb__stage{position:sticky;top:120px;background:var(--paper);border-radius:28px;padding:22px;display:flex;flex-direction:column;gap:12px}
.tcb__summary{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}
.tcb__eyebrow{font:600 11px/1 Arial,sans-serif;letter-spacing:.18em;color:#8a7a62;margin-bottom:6px}
.tcb__sizeline{font:400 18px/1.2 Vidaloka,Georgia,serif;letter-spacing:1px}
.tcb__chips{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.tcb__chip{display:inline-flex;align-items:center;gap:8px;padding:7px 12px;border-radius:999px;background:#fff;border:1px solid var(--line);font-size:12px}
.tcb__chip i{width:12px;height:12px;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.08)}
.tcb__chip i.tcb__ring{background:transparent;border:1.5px solid var(--sand)}
.tcb__canvas{position:relative;height:clamp(300px,42vh,460px);border-radius:20px;overflow:hidden;cursor:grab;touch-action:none}
.tcb__canvas:active{cursor:grabbing}
.tcb__canvas canvas{display:block;width:100%!important;height:100%!important}
.tcb__canvas.is-fallback{background:radial-gradient(circle at 50% 60%,#fff 0 40%,transparent 41%)}
.tcb__tools{align-self:center;display:flex;align-items:center;gap:2px;padding:5px;border-radius:999px;background:#fff;border:1px solid var(--line)}
.tcb__tool{min-width:34px;height:34px;padding:0 12px;border:0;border-radius:999px;background:transparent;font-size:13px}
.tcb__tool.is-on{background:var(--soft);color:var(--g);font-weight:600}
.tcb__tool:hover{background:var(--soft)}
.tcb__sep{width:1px;height:20px;background:var(--line);margin:0 4px}
.tcb__zoom{min-width:44px;text-align:center;font-size:12px;color:#8a7a62}
.tcb__hint{margin:0;text-align:center;font-size:12px;color:#8a7a62}
.tcb__note{padding:16px 18px;border-radius:18px;background:#fff;border-left:3px solid var(--sand)}
.tcb__note p{margin:0 0 10px;font-size:14px;line-height:1.55;color:var(--b)}
.tcb__note a{font-weight:600;font-size:14px;color:var(--g);text-decoration:none;border-bottom:1px solid var(--sand)}

/* Panel. */
.tcb__panel{min-width:0}
.tcb__h{margin:0 0 10px;font:400 clamp(26px,2.6vw,38px)/1.15 "Times New Roman",Georgia,serif;letter-spacing:3px;text-transform:uppercase;color:var(--g)}
.tcb__sub{margin:0 0 26px;font-size:15px;line-height:1.55;color:var(--b)}
.tcb__flabel{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin:24px 0 12px;font:600 12px/1.2 Arial,sans-serif;letter-spacing:.16em;color:var(--g)}
.tcb__flabel small{font:400 12px/1.2 Manrope,sans-serif;letter-spacing:0;color:#8a7a62}
.tcb__flabel--row{align-items:center}
.tcb__big{font:400 30px/1 Vidaloka,Georgia,serif;letter-spacing:0;color:var(--g)}
.tcb__small{margin:10px 0 0;font-size:13px;line-height:1.5;color:#7a6b56}
.tcb__field .tcb__flabel{margin-top:22px}

.tcb__box{flex:0 0 22px;display:grid;place-items:center;width:22px;height:22px;border-radius:7px;border:1px solid var(--sand);background:#fff;color:#fff}
.tcb__box svg{width:14px;height:14px}
.is-sel>.tcb__box,.is-on>.tcb__dbtn>.tcb__box{background:var(--g);border-color:var(--g)}

.tcb__grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.tcb__grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.tcb__card,.tcb__wcard,.tcb__fill,.tcb__opt,.tcb__dbtn{position:relative;border:1px solid var(--line);border-radius:18px;background:#fff;text-align:left;transition:border-color .2s,background-color .2s,box-shadow .2s}
.tcb__card:hover,.tcb__wcard:hover,.tcb__fill:hover,.tcb__opt:hover:not(:disabled){border-color:var(--sand);box-shadow:0 6px 18px rgba(77,60,44,.07)}
.tcb__card.is-sel,.tcb__wcard.is-sel,.tcb__fill.is-sel,.tcb__opt.is-sel{border-color:var(--g);background:#fbf8f3;box-shadow:inset 0 0 0 1px var(--g)}
.tcb__card{display:flex;flex-direction:column;align-items:center;gap:6px;padding:22px 10px 16px}
.tcb__card .tcb__box{position:absolute;top:12px;left:12px}
.tcb__card b{font:400 18px/1.2 Vidaloka,Georgia,serif;letter-spacing:1px}
.tcb__card small{font-size:12px;color:#8a7a62}
.tcb__shapeicon{width:46px;height:40px;background:var(--cream)}
.tcb__shapeicon--round{border-radius:50%;width:42px;height:42px}
.tcb__shapeicon--oval{border-radius:50%;width:56px;height:34px}
.tcb__shapeicon--heart{clip-path:path("M23 38 C 8 27, 0 19, 0 11 C 0 4, 6 0, 12 0 C 17 0, 21 3, 23 7 C 25 3, 29 0, 34 0 C 40 0, 46 4, 46 11 C 46 19, 38 27, 23 38 Z")}
.tcb__card.is-sel .tcb__shapeicon{background:var(--sand)}
.tcb__wcard{display:flex;align-items:center;gap:12px;padding:14px}
.tcb__wcard b{display:block;font:400 17px/1.2 Vidaloka,Georgia,serif}
.tcb__wcard small{display:block;font-size:12px;color:#8a7a62;margin-top:3px}

.tcb__range{display:flex;align-items:center;gap:14px}
.tcb__round{flex:0 0 38px;width:38px;height:38px;border-radius:50%;border:1px solid var(--line);background:#fff;font-size:18px;line-height:1}
.tcb__round:hover{background:var(--soft)}
.tcb__range input{flex:1;accent-color:var(--g);height:4px}
.tcb__rangelbl{display:flex;justify-content:space-between;padding:6px 52px 0;font-size:12px;color:#8a7a62}

.tcb__fill{display:flex;flex-direction:column;padding:12px 12px 16px;gap:4px}
.tcb__fill .tcb__box{position:absolute;top:20px;left:20px;z-index:1}
.tcb__cut{width:100%;height:auto;border-radius:12px;margin-bottom:10px}
.tcb__fill b{font:400 17px/1.2 Vidaloka,Georgia,serif;letter-spacing:.5px}
.tcb__fill small{font-size:12px;line-height:1.4;color:#7a6b56}

.tcb__list,.tcb__decor{display:flex;flex-direction:column;gap:10px}
.tcb__opt,.tcb__dbtn{display:flex;align-items:center;gap:14px;width:100%;padding:16px 18px}
.tcb__opt.is-off{opacity:.55}
.tcb__optcopy{flex:1;display:flex;flex-direction:column;gap:3px;min-width:0}
.tcb__optcopy b{font-weight:600;font-size:15px}
.tcb__optcopy small{font-size:12px;color:#7a6b56}
.tcb__optcopy em{font-style:normal;font-size:12px;color:var(--g2);font-weight:600}
.tcb__p{flex:0 0 auto;font-weight:600;font-size:14px;color:var(--g2)}
.tcb__opt.is-off .tcb__p{font-weight:400;font-size:12px;color:#8a7a62}
.tcb__drow{border-radius:18px}
.tcb__drow.is-on .tcb__dbtn{border-color:var(--g);background:#fbf8f3;box-shadow:inset 0 0 0 1px var(--g);border-bottom-left-radius:0;border-bottom-right-radius:0}
.tcb__dextra{padding:4px 18px 20px;border:1px solid var(--g);border-top:0;border-radius:0 0 18px 18px;background:#fbf8f3}

.tcb__swatches{display:flex;flex-wrap:wrap;gap:10px}
.tcb__sw{width:38px;height:38px;border-radius:50%;border:2px solid #fff;background:var(--sw);box-shadow:0 0 0 1px var(--line);display:grid;place-items:center;color:rgba(0,0,0,.6);transition:transform .15s,box-shadow .15s}
.tcb__sw svg{width:16px;height:16px}
.tcb__sw:hover:not(:disabled){transform:scale(1.07)}
.tcb__sw.is-sel{box-shadow:0 0 0 2px var(--g)}
.tcb__sw:disabled{opacity:.35}
.tcb__seg{display:inline-flex;flex-wrap:wrap;gap:4px;padding:4px;border-radius:999px;background:#fff;border:1px solid var(--line)}
.tcb__seg button{border:0;background:transparent;padding:9px 16px;border-radius:999px;font-size:13px}
.tcb__seg button.is-sel{background:var(--g);color:#fff}
.tcb__seg--wide{margin-top:12px;border-radius:18px}

.tcb__input{display:block;margin:0}
.tcb__input input,.tcb__input textarea{width:100%;padding:14px 16px;border:1px solid var(--line);border-radius:14px;background:#fff;font:15px/1.4 Manrope,"Noto Sans Armenian",sans-serif;color:var(--g);outline:0;transition:border-color .2s}
.tcb__input input:focus,.tcb__input textarea:focus{border-color:var(--g)}
.tcb__inwrap{position:relative;display:block}
.tcb__count{position:absolute;right:14px;top:50%;transform:translateY(-50%);font-size:12px;color:#8a7a62}

/* Summary. */
.tcb__table{border:1px solid var(--line);border-radius:20px;overflow:hidden;background:#fff}
.tcb__tr{display:grid;grid-template-columns:40% 1fr;gap:12px;padding:14px 18px;border-top:1px solid var(--soft);font-size:14px}
.tcb__tr:first-child{border-top:0}
.tcb__tr span{color:#7a6b56}
.tcb__tr b{font-weight:600}
.tcb__tr--total{background:#f6f1ea;align-items:center}
.tcb__tr--total strong{font:400 26px/1 Vidaloka,Georgia,serif;color:var(--g)}
.tcb__form{display:flex;flex-direction:column}
.tcb__hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;opacity:0}
.tcb__consent{display:flex;gap:12px;align-items:flex-start;margin-top:22px;font-size:13px;line-height:1.5;color:var(--b)}
.tcb__consent input{margin-top:3px;width:18px;height:18px;accent-color:var(--g)}
.tcb__err{margin:16px 0 0;padding:12px 16px;border-radius:14px;background:#fbeaea;color:#8e1b2c;font-size:14px}
.tcb__done{text-align:center;padding:40px 10px}
.tcb__doneicon{width:66px;height:66px;margin:0 auto 18px;border-radius:50%;display:grid;place-items:center;background:var(--g);color:#fff}
.tcb__doneicon svg{width:30px;height:30px}
.tcb__ghost{margin-top:18px;padding:13px 26px;border-radius:999px;border:1px solid rgba(198,181,153,.6);background:rgba(198,181,153,.35);font:400 14px Arial,sans-serif;letter-spacing:3px;text-transform:uppercase;color:var(--g)}

/* Bottom bar. */
.tcb__bar{position:fixed;left:0;right:0;bottom:0;z-index:40;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px max(16px,calc((100vw - 1360px)/2 + 40px));background:rgba(255,255,255,.92);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-top:1px solid var(--line)}
.tcb .tcb__back,.tcb .tcb__next{min-width:150px;height:52px;padding:0 26px;border-radius:999px;font:400 14px/1 Arial,Helvetica,sans-serif;letter-spacing:3px;text-transform:uppercase;transition:background .25s,transform .25s}
.tcb .tcb__back{border:1px solid var(--line);background:#fff;color:var(--g)}
.tcb .tcb__back:disabled{opacity:.4}
.tcb .tcb__next{border:1px solid var(--g);background:var(--g);color:#fff}
.tcb .tcb__next:hover:not(:disabled){transform:translateY(-2px);background:var(--g2)}
.tcb__price{display:flex;flex-direction:column;align-items:center;gap:4px}
.tcb__price span{font:600 11px/1 Arial,sans-serif;letter-spacing:.16em;color:#8a7a62}
.tcb__price strong{font:400 26px/1 Vidaloka,Georgia,serif;color:var(--g)}

@media (max-width:1100px){
  .tcb__head{flex-direction:column;align-items:stretch;gap:20px}
  .tcb__steps{max-width:none}
}
@media (max-width:900px){
  .tcb__body{grid-template-columns:1fr}
  .tcb__stage{position:relative;top:0;padding:16px}
  .tcb__canvas{height:300px}
  .tcb__note{display:none}
}
@media (max-width:600px){
  .tcb{padding-bottom:110px}
  .tcb__title{font-size:21px;letter-spacing:3px;text-align:center}
  .tcb__lbl{font-size:10px;letter-spacing:.03em}
  .tcb__num{width:30px;height:30px}
  .tcb__steps::before{top:15px}
  .tcb__grid3{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tcb__grid3--shapes{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .tcb__grid2{grid-template-columns:1fr}
  .tcb__fill{flex-direction:row;align-items:center;gap:12px}
  .tcb__fill .tcb__cut{flex:0 0 96px;width:96px;margin:0}
  .tcb__fill .tcb__box{top:16px;left:16px}
  .tcb__card{padding:20px 6px 12px}
  .tcb__card b{font-size:15px}
  .tcb__bar{padding:10px 12px;gap:8px}
  .tcb .tcb__back,.tcb .tcb__next{min-width:0;height:46px;padding:0 16px;letter-spacing:1.5px;font-size:12px}
  .tcb__price strong{font-size:20px}
  .tcb__price span{font-size:9px;letter-spacing:.08em}
  .tcb__tr{grid-template-columns:1fr;gap:4px}
}

/* The page title is replaced by the builder's own heading. */
body:has(.tcb) main .wp-block-post-title{display:none}
body:has(.tcb) main{padding-bottom:0}
@media (max-width:900px){
  .tcb__head{margin-top:16px}
  .tcb__canvas{height:260px}
  .tcb__stage{gap:8px}
}
@media (max-width:600px){
  .tcb__fill{display:grid;grid-template-columns:96px 1fr;column-gap:14px;row-gap:4px;align-items:center}
  .tcb__fill .tcb__cut{grid-row:1 / span 2;grid-column:1}
  .tcb__fill b{grid-column:2;align-self:end}
  .tcb__fill small{grid-column:2;align-self:start}
}
@media (max-width:900px){
  .tcb__body{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:600px){
  .tcb .tcb__back,.tcb .tcb__next{white-space:nowrap;padding:0 14px;letter-spacing:1px}
  .tcb .tcb__back{min-width:0}
  .tcb__price span{display:none}
  .tcb__price strong{white-space:nowrap}
  .tcb__h{font-size:23px;letter-spacing:2px}
}
/* The block theme styles every input inside .wp-site-blocks; ours win here. */
body .wp-site-blocks .tcb .tcb__input input,
body .wp-site-blocks .tcb .tcb__input textarea{border:1px solid rgba(198,181,153,.55)!important;background:#fff!important;border-radius:14px!important;padding:14px 16px!important;box-shadow:none!important;min-height:0}
body .wp-site-blocks .tcb .tcb__input input:focus,
body .wp-site-blocks .tcb .tcb__input textarea:focus{border-color:#253C1C!important}

/* ===== Compact & smooth (15.10.2026) =====================================
   Desktop: the whole builder fits one screen; the cake stays put and only the
   options scroll. Phones: the cake is pinned under the header while you pick. */
.tcb__stepbody.is-in{animation:tcb-in .38s cubic-bezier(.22,.61,.36,1)}
.tcb__stepbody.is-in-back{animation:tcb-in-back .38s cubic-bezier(.22,.61,.36,1)}
@keyframes tcb-in{from{opacity:0;transform:translateX(18px)}}
@keyframes tcb-in-back{from{opacity:0;transform:translateX(-18px)}}
.tcb__dextra{animation:tcb-drop .28s ease}
@keyframes tcb-drop{from{opacity:0;transform:translateY(-6px)}}
.tcb__price strong{transition:color .3s}
.tcb__num,.tcb__lbl{transition:background .3s,border-color .3s,color .3s}
.tcb__steps::after{content:"";position:absolute;left:18px;top:17px;height:1px;background:var(--g);width:calc((100% - 36px) * var(--p,0));transition:width .45s cubic-bezier(.22,.61,.36,1)}
@media (prefers-reduced-motion:reduce){.tcb__stepbody.is-in,.tcb__stepbody.is-in-back,.tcb__dextra{animation:none}}

.tcb__h{font-size:clamp(22px,2vw,30px);margin-bottom:6px}
.tcb__sub{margin-bottom:16px;font-size:14px}
.tcb__flabel{margin:18px 0 10px}
.tcb__card{padding:16px 8px 12px}
.tcb__shapeicon{transform:scale(.85)}
.tcb__wcard{padding:10px 12px;border-radius:14px}
.tcb__opt,.tcb__dbtn{padding:12px 16px;border-radius:16px}
.tcb__list,.tcb__decor{gap:8px}
.tcb__sw{width:34px;height:34px}
.tcb__fill{padding:10px 10px 12px}
.tcb__cut{margin-bottom:8px}
.tcb__tr{padding:11px 16px}
.tcb__input input,.tcb__input textarea{padding:12px 14px}

@media (min-width:901px){
  .tcb{padding-bottom:0}
  .tcb__head{margin-top:-56px;padding-bottom:14px;margin-bottom:18px}
  .tcb__title{font-size:clamp(20px,1.8vw,26px)}
  .tcb__body{height:calc(100vh - 250px);min-height:520px;align-items:stretch}
  .admin-bar .tcb__body{height:calc(100vh - 282px)}
  .tcb__stage{position:relative;top:0;height:100%;padding:18px;gap:10px}
  .tcb__canvas{flex:1 1 auto;height:auto;min-height:240px}
  .tcb__note{padding:10px 14px;display:flex;align-items:center;justify-content:space-between;gap:12px}
  .tcb__note p{display:none}
  .tcb__note a{white-space:nowrap}
  .tcb__note::before{content:none}
  .tcb__panel{height:100%;overflow-y:auto;overscroll-behavior:contain;padding:2px 14px 90px 2px;scrollbar-width:thin;scrollbar-color:var(--sand) transparent;scroll-behavior:smooth}
  .tcb__panel::-webkit-scrollbar{width:6px}
  .tcb__panel::-webkit-scrollbar-thumb{background:var(--sand);border-radius:6px}
  .tcb__grid3:not(.tcb__grid3--shapes){grid-template-columns:repeat(3,minmax(0,1fr))}
  .tcb__bar{padding-top:10px;padding-bottom:10px}
  .tcb .tcb__back,.tcb .tcb__next{height:48px}
}

@media (max-width:900px){
  .tcb__head{margin-top:4px;padding-bottom:12px;margin-bottom:12px;gap:12px}
  .tcb__stage{position:sticky;top:64px;z-index:6;padding:8px 10px 6px;border-radius:0 0 22px 22px;margin:0 calc(-1 * clamp(16px,3vw,40px));box-shadow:0 10px 24px -18px rgba(77,60,44,.45)}
  .admin-bar .tcb__stage{top:110px}
  .tcb__summary{display:none}
  .tcb__canvas{height:210px}
  .tcb__hint,.tcb__note{display:none}
  .tcb__tools{transform:scale(.9);margin-top:-4px}
  .tcb__panel{padding-top:8px}
}
@media (max-width:600px){
  .tcb__steps{gap:0}
  .tcb__title{font-size:19px}
  .tcb__canvas{height:190px}
  .tcb__card{padding:14px 4px 10px}
  .tcb__opt,.tcb__dbtn{padding:11px 12px;gap:10px}
  .tcb__optcopy b{font-size:14px}
}
@media (min-width:901px){
  body:has(.tcb) main{padding-top:14px!important}
  .tcb__head{margin-top:0}
  .tcb__body,.admin-bar .tcb__body{height:auto;min-height:0}
}
.tcb__canvas{min-height:0}
.tcb__canvas canvas{position:absolute;inset:0}
@media (min-width:901px){
  .tcb__canvas{min-height:150px}
}
@media (min-width:901px) and (max-height:820px){
  .tcb__note,.tcb__hint{display:none}
  .tcb__stage{padding:14px;gap:8px}
  .tcb__head{padding-bottom:10px;margin-bottom:12px}
  .tcb__lbl{font-size:11px}
}
@media (max-width:900px){
  /* The site header scrolls away on phones, so the cake pins to the very top. */
  .tcb__stage{top:0;padding-top:10px}
  .admin-bar .tcb__stage{top:46px}
}

/* Painted filling close-ups */
.tcb img.tcb__cut{display:block;aspect-ratio:4/3;object-fit:cover;height:auto;max-width:100%;box-shadow:inset 0 0 0 1px rgba(77,60,44,.08)}

/* Filling cards: small square photos with rounded corners, three in a row */
@media (min-width:601px){
  .tcb .tcb__gridf{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
  .tcb .tcb__gridf .tcb__fill{padding:7px 7px 10px;gap:2px;border-radius:16px}
  .tcb .tcb__gridf img.tcb__cut{aspect-ratio:1/1;border-radius:12px;margin:0 0 6px}
  .tcb .tcb__gridf .tcb__fill b{font-size:14.5px;line-height:1.2;padding:0 3px}
  .tcb .tcb__gridf .tcb__fill small{font-size:11px;line-height:1.3;padding:0 3px}
  .tcb .tcb__gridf .tcb__fill .tcb__box{top:13px;left:13px;width:20px;height:20px;flex-basis:20px;border-radius:6px}
}
@media (max-width:600px){
  .tcb .tcb__gridf .tcb__fill{grid-template-columns:72px 1fr;padding:8px 10px 8px 8px;border-radius:16px}
  .tcb .tcb__gridf img.tcb__cut{width:72px;flex-basis:72px;aspect-ratio:1/1;border-radius:12px}
  .tcb .tcb__gridf .tcb__fill .tcb__box{top:13px;left:13px;width:18px;height:18px;flex-basis:18px;border-radius:5px}
}

/* Big palette: smaller swatches, a rainbow "+" for any colour */
.tcb .tcb__swatches{gap:7px}
.tcb .tcb__sw{width:30px;height:30px}
.tcb .tcb__sw svg{width:13px;height:13px}
.tcb .tcb__sw--pick{position:relative;overflow:hidden;cursor:pointer;background:conic-gradient(#e4576e,#f2c94c,#7bc47f,#5aa3d8,#b48fd8,#e4576e)}
.tcb .tcb__sw--pick.is-sel{background:var(--sw)}
.tcb .tcb__sw--pick b{font:600 17px/1 Arial,sans-serif;color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.35)}
.tcb .tcb__sw--pick input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;border:0;padding:0}
.tcb .tcb__cname{text-transform:none;letter-spacing:0}

/* Photo print */
.tcb .tcb__upload{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:6px;margin-top:6px;padding:11px 20px;border-radius:999px;border:1px dashed var(--g);background:#fbf8f3;color:var(--g);font-size:13px;font-weight:600;cursor:pointer;overflow:hidden}
.tcb .tcb__upload:hover{background:#f3eee5}
.tcb .tcb__upload input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%}
.tcb .tcb__photoed{display:flex;flex-direction:column;align-items:center;gap:6px;margin:4px 0 6px}
.tcb .tcb__pcanvas{width:min(260px,100%);height:auto;aspect-ratio:1/1;border-radius:16px;background:repeating-conic-gradient(#f4efe7 0 25%,#fbf8f3 0 50%) 0 0/18px 18px;touch-action:none;cursor:grab}
.tcb .tcb__pcanvas:active{cursor:grabbing}
.tcb .tcb__prow{display:flex;align-items:center;justify-content:center;gap:16px;flex-wrap:wrap}
.tcb .tcb__prow .tcb__upload{margin-top:0;padding:9px 18px}
.tcb .tcb__plink{border:0;background:none;padding:6px;color:#9b4a3c;font-size:13px;text-decoration:underline;text-underline-offset:3px}
.tcb .tcb__pr{display:block;margin-top:10px}
.tcb .tcb__pr input[type=range]{width:100%;accent-color:var(--g)}
body .wp-site-blocks .tcb .tcb__pr input[type=range],body .wp-site-blocks .tcb .tcb__sw--pick input[type=color],body .wp-site-blocks .tcb .tcb__upload input[type=file]{padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;min-height:0!important;border-radius:0!important}
body .wp-site-blocks .tcb .tcb__pr input[type=range]{height:22px!important}
body .wp-site-blocks .tcb .tcb__sw--pick input[type=color],body .wp-site-blocks .tcb .tcb__upload input[type=file]{height:100%!important}

/* Four shapes (21.10.2026): round, heart, square, rectangle, in a 2x2 grid
   on every screen so long names like "Прямоугольник" fit on one line. */
.tcb .tcb__grid3--shapes{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.tcb .tcb__grid3--shapes .tcb__card{padding:16px 8px 12px;gap:6px}
.tcb .tcb__grid3--shapes .tcb__card b{font-size:16px;letter-spacing:.5px;text-align:center}
.tcb__shapeicon--square{width:38px;height:38px;border-radius:7px}
.tcb__shapeicon--rect{width:52px;height:34px;border-radius:7px}
@media (max-width:600px){
  .tcb .tcb__grid3--shapes .tcb__card b{font-size:15px}
}
/* Icons keep their own size inside the 2x2 cards. */
.tcb .tcb__grid3--shapes .tcb__shapeicon{flex:0 0 auto;transform:none}
/* Three shapes again (round, heart, rectangle): one row of three. */
.tcb .tcb__grid3--shapes{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.tcb .tcb__grid3--shapes .tcb__card b{font-size:15px;letter-spacing:.3px}
@media (max-width:600px){.tcb .tcb__grid3--shapes .tcb__card b{font-size:13.5px;letter-spacing:0}}

/* phones: wrapped segment rows stay inside the frame */
@media (max-width:600px){.tcb__seg{display:flex;border-radius:22px}.tcb__seg button{flex:1 1 auto;text-align:center}}

/* Colour and coating labels sit in the top-right corner of the model window, so the model gets the full height. */
.tcb__canvas .tcb__chips{position:absolute;top:12px;right:12px;z-index:2;flex-direction:column;align-items:flex-end;gap:6px;max-width:62%;pointer-events:none}
.tcb__canvas .tcb__chip{background:rgba(255,255,255,.86);backdrop-filter:blur(6px);padding:6px 11px;font-size:11.5px;line-height:1.25}
@media (max-width:900px){.tcb__canvas .tcb__chips{display:none}}
/* Labels pinned to the very top-right corner of the cake card, level with "Your cake". */
.tcb__stage>.tcb__chips{position:absolute;top:16px;right:18px;z-index:3;flex-direction:column;align-items:flex-end;gap:6px;max-width:58%;pointer-events:none}
.tcb__stage>.tcb__chips .tcb__chip{background:rgba(255,255,255,.88);backdrop-filter:blur(6px);padding:6px 11px;font-size:11.5px;line-height:1.25}
@media (max-width:900px){.tcb__stage>.tcb__chips{display:none}}
/* Smaller labels, set in from the rounded corner. */
.tcb__stage>.tcb__chips{top:20px;right:24px;gap:4px}
.tcb__stage>.tcb__chips .tcb__chip{padding:4px 9px;gap:6px;font-size:10.5px}
.tcb__stage>.tcb__chips .tcb__chip i{width:9px;height:9px}

/* Computer: more room for the cake. The view controls float, smaller, over the
   bottom of the model window instead of taking a row under it; colour and
   texture sit in one compact line beside the title; tighter padding. */
@media (min-width:901px){
  .tcb__stage{padding:14px 16px;gap:8px}
  .tcb__eyebrow{font-size:10px;margin-bottom:4px}
  .tcb__sizeline{font-size:16px}
  .tcb__stage>.tcb__chips{top:14px;right:16px;flex-direction:row;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:5px;max-width:64%}
  .tcb__stage>.tcb__chips .tcb__chip{padding:3px 9px;font-size:10.5px}
  .tcb__tools{position:absolute;left:50%;bottom:14px;z-index:3;transform:translateX(-50%);padding:3px;gap:0;background:rgba(255,255,255,.82);backdrop-filter:blur(8px);box-shadow:0 6px 18px -10px rgba(77,60,44,.35)}
  .tcb__tool{min-width:28px;height:28px;padding:0 10px;font-size:12px}
  .tcb__sep{height:16px;margin:0 3px}
  .tcb__zoom{min-width:38px;font-size:11px}
}
/* View controls now live inside the model window (torte-builder.js), pinned to its bottom edge. */
.tcb__canvas>.tcb__tools{position:absolute;left:50%;bottom:12px;z-index:3;transform:translateX(-50%);margin:0;white-space:nowrap;cursor:default;padding:3px;gap:0;background:rgba(255,255,255,.82);backdrop-filter:blur(8px);box-shadow:0 6px 18px -10px rgba(77,60,44,.35)}
.tcb__canvas>.tcb__tools .tcb__tool{cursor:pointer}
@media (max-width:900px){
  .tcb__canvas>.tcb__tools{bottom:6px;transform:translateX(-50%) scale(.86);transform-origin:50% 100%}
}
/* Computer: the model window runs to the card's edges (sides and bottom, with
   the card's rounded corners), and the view controls are a slim vertical
   column at its right edge. The drag hint and the note under the window are
   left out here to give the cake that room. */
@media (min-width:901px){
  .tcb__stage .tcb__hint,.tcb__stage .tcb__note{display:none!important}
  .tcb__canvas{margin:0 -16px -14px;border-radius:0 0 28px 28px}
  .tcb__canvas>.tcb__tools{left:auto;right:12px;top:50%;bottom:auto;transform:translateY(-50%);flex-direction:column;align-items:stretch;padding:4px;border-radius:18px}
  .tcb__canvas>.tcb__tools .tcb__tool{min-width:0;height:28px;padding:0 9px;font-size:11px}
  .tcb__canvas>.tcb__tools .tcb__sep{width:auto;height:1px;margin:3px 6px}
  .tcb__canvas>.tcb__tools .tcb__zoom{min-width:0;padding:3px 0;font-size:10.5px}
}
/* Computer: slim control column on the left with only the turn arrows and zoom. */
@media (min-width:901px){
  .tcb__canvas>.tcb__tools{left:12px;right:auto;align-items:center;padding:4px 3px}
  .tcb__canvas>.tcb__tools [data-act="vol"],.tcb__canvas>.tcb__tools [data-act="top"]{display:none}
  .tcb__canvas>.tcb__tools .tcb__tool{width:30px;height:28px;padding:0}
  .tcb__canvas>.tcb__tools .tcb__sep{width:18px;margin:3px auto}
}
/* Computer: the strip above the model ("Your cake", shape and size, colour and
   texture) in the site's dark green. The card itself is green; the model window,
   which runs to the card's edges, keeps the light background. */
@media (min-width:901px){
  .tcb__stage{background:#253C1C}
  .tcb__canvas{background:var(--paper)}
  .tcb__stage .tcb__eyebrow{color:#C6B599}
  .tcb__stage .tcb__sizeline{color:#F4EDE2}
  .tcb__stage>.tcb__chips .tcb__chip{background:rgba(244,237,226,.1);border-color:rgba(225,212,195,.35);color:#F4EDE2;backdrop-filter:none}
  .tcb__stage>.tcb__chips .tcb__chip i.tcb__ring{border-color:#C6B599}
}
/* No filling chosen yet: "Next" looks switched off, and a short prompt appears above the fillings. */
.tcb .tcb__next.is-off{opacity:.45}
.tcb__fillerr{margin:0 0 14px;padding:10px 14px;border-radius:14px;background:#f7efe6;border:1px solid rgba(154,59,31,.25);color:#7a2f18;font-size:14px;text-align:center}
