/* v2 User Profile. Scoped to .cc2-uprof. No old page stylesheet loads on this template. */

/* hero */
.cc2-uprof__hero{padding-block:60px 72px}
.cc2-uprof__hero-in{display:flex;gap:36px;align-items:center}
.cc2-uprof__avatar{flex:none;position:relative}
.cc2-uprof__avatar img{display:block;width:168px;height:168px;border-radius:50%;object-fit:cover;border:5px solid var(--esp);box-shadow:7px 7px 0 var(--esp);background:var(--milk)}
.cc2-uprof__avatar::after{content:"Member";position:absolute;right:-14px;bottom:6px;font:400 17px/1 var(--f-sign);background:var(--milk);color:var(--cherry);border:3px solid var(--cherry);border-radius:10px;padding:5px 9px 7px;transform:rotate(-9deg)}
.cc2-uprof__who{min-width:0}
.cc2-uprof .cc2-phero h1{font-size:clamp(46px,7vw,104px);max-width:none;overflow-wrap:anywhere}
.cc2-uprof__since{margin-top:14px!important;opacity:.9}
.cc2-uprof__order{list-style:none;margin:18px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.cc2-uprof__order li{background:var(--milk);color:var(--esp);border-radius:999px;padding:9px 16px;font-weight:700;font-size:15px}
.cc2-uprof__order .cc2-label{opacity:.6;margin-right:6px;font-size:11px!important}
.cc2-uprof__bio{margin-top:16px!important;max-width:58ch;font-size:18px;font-weight:500}
@media (max-width:700px){.cc2-uprof__hero-in{flex-direction:column;align-items:flex-start;gap:26px}.cc2-uprof__avatar img{width:120px;height:120px}}

/* tabs */
.cc2-uprof__app{padding-block:56px 88px}
.cc2-uprof__tabs{display:flex;gap:8px;overflow-x:auto;padding:4px 4px 10px;margin:0 -4px 18px;scrollbar-width:thin}
.cc2-uprof .tab-button{flex:none;display:inline-flex;align-items:center;min-height:46px;padding:0 18px;border-radius:999px;border:2px solid rgba(248,241,231,.38);background:transparent;color:var(--milk);font:500 12px/1 var(--f-mono);letter-spacing:.08em;text-transform:uppercase;white-space:nowrap;cursor:pointer}
.cc2-uprof .tab-button:hover{border-color:var(--milk);background:rgba(248,241,231,.1)}
.cc2-uprof .tab-button.active{background:var(--cherry);border-color:var(--cherry);color:var(--milk)}
.cc2-uprof .tab-button:focus-visible{outline:3px solid var(--crema);outline-offset:3px}
.cc2-uprof__panels{background:var(--milk);color:var(--esp);border-radius:28px;padding:clamp(22px,4vw,48px)}
.cc2-uprof .tab-panel{display:none}
.cc2-uprof .tab-panel.active{display:block}
.cc2-uprof .tab-panel:focus-visible{outline:3px solid var(--cherry);outline-offset:8px;border-radius:12px}
.cc2-uprof__h2{font:800 clamp(30px,4vw,48px)/1.02 var(--f-head)!important;font-variation-settings:"wdth" 82,"opsz" 48;letter-spacing:-.015em;margin:0 0 26px!important}

/* cards */
.cc2-uprof .tab-panel .cc2-grid{gap:22px}
.cc2-uprof .cc2-card{background:#fff;border:2px solid var(--esp)}
.cc2-uprof .cc2-card:hover{box-shadow:6px 6px 0 var(--esp)}
.cc2-uprof .cc2-card h3 a{color:inherit;text-decoration:none}
.cc2-uprof__x{position:absolute;top:12px;right:12px;z-index:3;display:grid;place-items:center;width:44px;height:44px;padding:0;border-radius:50%;border:2px solid var(--esp);background:var(--milk);color:var(--esp);font:400 28px/1 var(--f-head);box-shadow:3px 3px 0 var(--esp);cursor:pointer;transition:background .15s,color .15s,transform .15s}
.cc2-uprof__x:hover,.cc2-uprof__x:focus-visible{background:var(--cherry);color:var(--milk);transform:rotate(90deg)}
.cc2-uprof__x:disabled{opacity:.6;cursor:progress}
.cc2-uprof__chips{gap:6px}
.cc2-uprof .cc2-stars{color:#c45a12}

/* reviews */
.cc2-uprof__reviews{display:grid;gap:14px}
.cc2-uprof__review{background:#fff;border:2px solid var(--esp);border-radius:18px;padding:18px 20px}
.cc2-uprof__review header{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;margin-bottom:8px}
.cc2-uprof__review h3{font:800 21px/1.15 var(--f-head);margin:0;flex-basis:100%}
.cc2-uprof__review h3 a{color:inherit;text-decoration-color:var(--cherry);text-decoration-thickness:2px;text-underline-offset:3px}
.cc2-uprof__review-body{font-size:16px;margin-bottom:14px}
.cc2-uprof__review .cc2-btn{min-height:44px}

/* empty states (also the plain ones main.js injects) */
.cc2-uprof .cc2-empty,.cc2-uprof .no-favorites,.cc2-uprof .no-saved-recipes,.cc2-uprof .no-reviews{border:3px dashed currentColor;border-radius:var(--r);padding:40px 24px;text-align:center}
.cc2-uprof .cc2-empty p,.cc2-uprof .no-favorites p{margin:0 auto 18px!important;max-width:46ch;opacity:.85}
.cc2-uprof .tab-panel .button{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 22px;border-radius:999px;background:var(--esp);color:var(--milk);font:500 13px/1 var(--f-mono);letter-spacing:.08em;text-transform:uppercase;text-decoration:none}
.cc2-uprof .tab-panel .button:hover{transform:translateY(-2px) rotate(-1deg)}

/* settings */
.cc2-uprof__form{display:grid;gap:24px}
.cc2-uprof__fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.cc2-uprof__span2{grid-column:1/-1}
@media (max-width:640px){.cc2-uprof__fields{grid-template-columns:minmax(0,1fr)}}
.cc2-uprof__note{font-size:14px;opacity:.75;margin:4px 0 0!important}
.cc2-uprof .cc2-field input:focus,.cc2-uprof .cc2-field select:focus,.cc2-uprof .cc2-field textarea:focus{outline:3px solid var(--cherry);outline-offset:2px}
.cc2-uprof__checks{border:0;margin:0;padding:0;display:grid;gap:4px;min-width:0}
.cc2-uprof__checks legend{padding:0;margin-bottom:8px}
.cc2-uprof__checks label{display:flex;align-items:center;gap:12px;min-height:44px;font-size:16px;cursor:pointer}
.cc2-uprof__checks input{width:22px;height:22px;accent-color:var(--cherry);margin:0;flex:none}
.cc2-uprof__form .cc2-btn{min-height:50px}
