/* Texte presetate pe categorie (front) — buton „Vezi mesaje recomandate" + modal.
   Incarcat conditionat (doar daca produsul are un camp de text cu categorie). */

/* In mod presetat NU mai ascundem controalele de stil (font/culoare/size/umbra/contur/curbura) —
   clientul poate alege un text recomandat din modal SI sa-l personalizeze in continuare manual.
   (Regula veche de ascundere a fost dezactivata intentionat — vezi cdActiveTextCat/cd-preset-mode.) */

/* ===== Buton „Vezi mesaje recomandate" (outline roz) ===== */
.cd-preset-open-btn{ display:flex; align-items:center; justify-content:center; gap:10px; width:100%; padding:7px 18px !important; border:1.5px solid #f06a82; border-radius:5px !important; margin-bottom:15px !important; cursor:pointer; font-size:16px; font-weight:700; color:#e8526e; background:#fff; box-shadow:none; transition:background .15s ease, border-color .15s ease; -webkit-appearance:none; }
.cd-preset-open-btn:hover{ background:#fff5f7; border-color:#e8526e; box-shadow:none; }
.cd-preset-open-btn:active{ background:#ffeef1; box-shadow:none; }
.cd-preset-open-btn .cd-pi{ flex:0 0 auto; color:#e8526e; }

/* ===== Modal texte presetate ===== */
body.cd-pm-lock{ overflow:hidden !important; }
#cd-preset-modal{ position:fixed; left:0; top:0; right:0; bottom:0; z-index:2147483647; display:none; }
#cd-preset-modal.cd-open{ display:block; }
#cd-preset-modal *{ box-sizing:border-box; }
#cd-preset-modal .cd-pm-backdrop{ position:absolute; inset:0; background:rgba(17,18,22,.55); -webkit-backdrop-filter:blur(4px); backdrop-filter:blur(4px); animation:cdPmFade .2s ease; }
#cd-preset-modal .cd-pm-dialog{ position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); width:min(560px, calc(100vw - 32px)); height:min(640px, 86vh); display:flex; flex-direction:column; background:#fff; border-radius:18px; overflow:hidden; box-shadow:0 24px 60px rgba(0,0,0,.32); animation:cdPmPop .22s cubic-bezier(.2,.8,.2,1); }
@keyframes cdPmFade{ from{opacity:0} to{opacity:1} }
@keyframes cdPmFadeOut{ from{opacity:1} to{opacity:0} }
@keyframes cdPmPop{ from{opacity:0; transform:translate(-50%,-46%) scale(.96)} to{opacity:1; transform:translate(-50%,-50%) scale(1)} }
@keyframes cdPmPopOut{ from{opacity:1; transform:translate(-50%,-50%) scale(1)} to{opacity:0; transform:translate(-50%,-46%) scale(.96)} }
#cd-preset-modal.cd-closing .cd-pm-backdrop{ animation:cdPmFadeOut .24s ease forwards; }
#cd-preset-modal.cd-closing .cd-pm-dialog{ animation:cdPmPopOut .2s ease forwards; }
#cd-preset-modal .cd-pm-head{ display:flex; align-items:flex-start; gap:10px; padding:16px 18px 12px; border-bottom:1px solid #eef0f2; }
#cd-preset-modal .cd-pm-head-txt{ flex:1 1 auto; min-width:0; }
#cd-preset-modal .cd-pm-title{ font-size:18px; font-weight:800; color:#1c1f23; margin:0; }
#cd-preset-modal .cd-pm-hint{ font-size:12.5px; color:#9aa0a6; margin-top:3px; }
#cd-preset-modal .cd-pm-close{ flex:0 0 auto; width:36px; height:36px; border:none; border-radius:50%; background:#f1f3f5; color:#444; font-size:22px; cursor:pointer; line-height:34px; text-align:center; padding:0; transition:background .15s; }
#cd-preset-modal .cd-pm-close:hover{ background:#e4e7ea; }
#cd-preset-modal .cd-pm-tabs-wrap{ position:relative; }
#cd-preset-modal .cd-pm-tabs-wrap.cd-has-more::after{ content:''; position:absolute; right:0; top:0; bottom:6px; width:40px; background:linear-gradient(to right, rgba(255,255,255,0), #fff 78%); pointer-events:none; }
#cd-preset-modal .cd-pm-tabs{ display:flex; gap:8px; overflow-x:auto; padding:14px 18px 6px; -webkit-overflow-scrolling:touch; }
#cd-preset-modal .cd-pm-tabs::-webkit-scrollbar{ height:0; }
#cd-preset-modal .cd-pm-search{ padding:10px 18px 4px; }
#cd-preset-modal .cd-pm-search-in{ position:relative; }
#cd-preset-modal .cd-pm-search-ico{ position:absolute; left:13px; top:50%; transform:translateY(-50%); color:#9aa0a6; pointer-events:none; }
#cd-preset-modal .cd-pm-search-input{ width:100%; padding:11px 14px 11px 42px; border:1.5px solid #e3e7ea; border-radius:12px; font-size:15px; color:#23262b; outline:none; background:#fff; -webkit-appearance:none; box-shadow:none; }
#cd-preset-modal .cd-pm-search-input:focus{ border-color:#f06a82; }
#cd-preset-modal .cd-pm-tab{ flex:0 0 auto; display:inline-flex; align-items:center; justify-content:center; line-height:1; padding:9px 16px; border-radius:999px; border:1.5px solid #e3e7ea; background:#fff; color:#444; font-size:14px; font-weight:600; cursor:pointer; white-space:nowrap; transition:background .15s, border-color .15s, color .15s; -webkit-appearance:none; box-shadow:none; }
#cd-preset-modal .cd-pm-tab:hover{ border-color:#f3a0b0; box-shadow:none; }
#cd-preset-modal .cd-pm-tab.cd-active{ background:linear-gradient(135deg,#f34968,#ff7a59); border-color:transparent; color:#fff; box-shadow:none; }
#cd-preset-modal .cd-pm-body{ flex:1 1 auto; min-height:0; padding:14px 18px 20px; overflow-y:auto; -webkit-overflow-scrolling:touch; }
#cd-preset-modal .cd-pm-card{ display:block; width:100%; text-align:left; padding:14px 16px; margin:0 0 10px; border:1.5px solid #e8ebee; border-radius:14px; background:#fff; color:#23262b; font-size:15px; line-height:1.5; cursor:pointer; transition:all .15s; white-space:pre-wrap; word-break:break-word; font-family:inherit; -webkit-appearance:none; }
#cd-preset-modal .cd-pm-card:hover{ border-color:#f34968; background:#fff5f7; transform:translateY(-1px); box-shadow:0 6px 16px rgba(243,73,104,.12); }
#cd-preset-modal .cd-pm-card:active{ transform:translateY(0); }
#cd-preset-modal .cd-pm-empty{ text-align:center; color:#9aa0a6; padding:26px 8px; }
@media (max-width:600px){
    #cd-preset-modal .cd-pm-dialog{ left:0; right:0; bottom:0; top:auto; transform:none; width:100%; height:88vh; max-height:88vh; border-radius:18px 18px 0 0; animation:cdPmSheet .26s cubic-bezier(.2,.8,.2,1); }
    @keyframes cdPmSheet{ from{transform:translateY(100%)} to{transform:translateY(0)} }
    #cd-preset-modal.cd-closing .cd-pm-dialog{ animation:cdPmSheetOut .28s cubic-bezier(.2,.8,.2,1) forwards; }
    @keyframes cdPmSheetOut{ from{transform:translateY(0)} to{transform:translateY(100%)} }
}
