/* TEMA Корзина teaser: home page (wide) and article sidebar (side) */
#tema-portal .tkw{border-radius:9px;background:#eee9df;color:#252821;padding:24px;margin-top:36px}
#tema-portal .tkw a{color:inherit;text-decoration:none!important}
#tema-portal .tkw-head{display:block}
#tema-portal .tkw-mark{font-size:15px;letter-spacing:-.02em;color:#e87b17;font-weight:600}
#tema-portal .tkw-mark b{color:#252821;font-weight:800}
#tema-portal .tkw h2{font-size:30px!important;line-height:1.1!important;letter-spacing:-.03em!important;margin:6px 0 6px!important}
#tema-portal .tkw h2 span{color:#e87b17}
#tema-portal .tkw-head p{margin:0 0 16px;font-size:14px;line-height:1.45;color:#5d5f57}
#tema-portal .tkw-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
#tema-portal .tkw-list a{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:11px 14px;border-radius:10px;background:#fff;transition:box-shadow .2s ease}
#tema-portal .tkw-list a:hover{box-shadow:0 0 0 1px #e87b17}
#tema-portal .tkw-t{font-size:14px;line-height:1.3;font-weight:600}
#tema-portal .tkw-p{text-align:right;white-space:nowrap;line-height:1.2}
#tema-portal .tkw-p b{display:block;font-size:16px;color:#2f8a4c}
#tema-portal .tkw-p small{font-size:11px;color:#777971}
#tema-portal .tkw-cta{display:flex;width:100%;box-sizing:border-box;justify-content:center;align-items:center;gap:10px;margin-top:12px;padding:14px 16px;border-radius:10px;background:#252821;color:#f5f3eb!important;font-size:13px;font-weight:600}
#tema-portal .tkw-cta .tp-arrow-icon{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:2}
#tema-portal .tkw--wide{padding:30px}
#tema-portal .tkw--wide .tkw-head{display:block;max-width:520px}
#tema-portal .tkw--wide h2{font-size:38px!important}
#tema-portal .tkw--wide .tkw-list{grid-template-columns:1fr 1fr}
#tema-portal .tkw--side{margin-top:24px;padding:20px}
#tema-portal .tkw--side h2{font-size:26px!important}
@media(max-width:680px){#tema-portal .tkw--wide{order:5;width:100%;padding:22px}#tema-portal .tkw--wide .tkw-list{grid-template-columns:1fr}#tema-portal .tkw--wide h2{font-size:30px!important}#tema-portal .tkw--side{order:7;width:100%}}
#tema-portal .tkw-img{flex:0 0 40px;width:40px;height:40px;object-fit:contain;border-radius:6px;background:#fff}
#tema-portal .tkw-t{flex:1;min-width:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* Home block in the TEMA Market style */
#tema-portal .tkw-market{margin-top:36px}
#tema-portal .tkw-market .tp-market-recent-card[hidden]{display:none}
#tema-portal .tkw-market .tp-market-recent-photo{background:#fff;position:relative}
#tema-portal .tkw-market .tp-market-recent-photo img{object-fit:contain;padding:12%;box-sizing:border-box}
#tema-portal .tkw-market .tp-market-photo-price{color:#22703a;font-weight:700}
#tema-portal .tkw-store{display:flex;align-items:center;gap:6px;font-size:13px;line-height:1.3;color:#777971;min-width:0}
#tema-portal .tkw-logo{flex:0 0 18px;width:18px;height:18px;border-radius:5px;background:#fff center/cover no-repeat;box-shadow:inset 0 0 0 1px rgba(0,0,0,.06)}
#tema-portal .tkw-logo-selver{background-image:url(logos/selver.png)}
#tema-portal .tkw-logo-rimi{background-image:url(logos/rimi.png)}
#tema-portal .tkw-logo-barbora{background-image:url(logos/barbora.png)}
#tema-portal .tkw-logo-a1000{background-image:url(logos/a1000.png)}
#tema-portal .tkw-note{display:block;margin-top:3px;font-size:12px;color:#999b92;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:680px){#tema-portal .tkw-store{font-size:11px}#tema-portal .tkw-note{font-size:11px}}
/* 5 per row, bigger prices, saving in euro */
@media(min-width:681px){#tema-portal .tkw-market .tp-market-recent-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:16px 12px!important}}
#tema-portal .tkw-market .tp-market-photo-price{font-size:17px!important;padding:6px 10px;bottom:10px;left:10px}
#tema-portal .tkw-save{position:absolute;top:10px;left:10px;padding:4px 8px;border-radius:7px;background:#2f8a4c;color:#fff;font:700 13px/1.2 Arial,sans-serif}
#tema-portal .tkw-market .tp-market-recent-card h3{font-size:14px!important}
@media(max-width:680px){#tema-portal .tkw-market .tp-market-photo-price{font-size:14px!important;padding:4px 7px;bottom:6px;left:6px}#tema-portal .tkw-save{top:6px;left:6px;font-size:11px;padding:3px 6px}}
/* Same height for every card: the name always takes two lines, so store logos line up */
#tema-portal .tkw-market .tp-market-recent-title{display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;line-height:1.3!important;min-height:2.6em;margin-bottom:6px!important}
#tema-portal .tkw-market .tkw-store{margin-top:auto}
/* One white card: photo, name, store and note together */
#tema-portal .tkw-market .tp-market-recent-card{display:flex!important;flex-direction:column;background:#fff;border-radius:14px;overflow:hidden;padding-bottom:12px;box-shadow:0 1px 0 #e6e3da}
#tema-portal .tkw-market .tp-market-recent-photo{border-radius:0!important}
#tema-portal .tkw-market .tp-market-recent-card .tp-market-recent-title{margin:10px 12px 6px!important}
#tema-portal .tkw-market .tkw-store,#tema-portal .tkw-market .tkw-note{margin-left:12px;margin-right:12px}
#tema-portal .tkw-market .tp-market-recent-card:hover{box-shadow:0 8px 22px #20211f1a}
@media(max-width:680px){#tema-portal .tkw-market .tp-market-recent-card .tp-market-recent-title{margin:8px 10px 4px!important}#tema-portal .tkw-market .tkw-store,#tema-portal .tkw-market .tkw-note{margin-left:10px;margin-right:10px}}
#tema-portal .tkw-market.tp-article-market .tp-market-recent-card .tp-market-recent-title{padding:0 12px!important;margin:10px 0 6px!important}
@media(max-width:680px){#tema-portal .tkw-market.tp-article-market .tp-market-recent-card .tp-market-recent-title{padding:0 10px!important;margin:8px 0 4px!important}}
#tema-portal .tkw-market .tp-market-recent-card[hidden]{display:none!important}
