
.tce-wrap{width:100%;box-sizing:border-box;background:#F6F8FA;padding:24px 0}
.tce-heading-row{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 28px}
.tce-title{margin:0;font-size:clamp(28px,3vw,44px);line-height:1.05;font-weight:800;letter-spacing:-1.2px}
.tce-see-all{font-size:18px;font-weight:700;text-decoration:none;color:#477C25;white-space:nowrap}
.tce-see-all span{font-size:26px;vertical-align:-2px}
.tce-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.tce-cols-1{grid-template-columns:1fr}
.tce-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.tce-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.tce-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.tce-card{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 86px;min-height:365px;overflow:hidden;border-radius:16px;background:#fff;box-shadow:0 1px 0 rgba(20,34,56,.03)}
.tce-card-main{display:flex;flex-direction:column;min-width:0;padding:28px 24px 26px;border:1px solid #E3E8EF;border-right:0;border-radius:16px 0 0 16px;background:#fff}
.tce-card-accent{position:relative;display:flex;align-items:center;justify-content:center;background:var(--tce-accent,#8BD448);color:var(--tce-accent-text,#315C1D);border-radius:0 16px 16px 0}
.tce-card-accent:before,.tce-card-accent:after{content:"";position:absolute;left:-1px;width:26px;height:26px;border-radius:50%;background:#F6F8FA}
.tce-card-accent:before{top:-13px}.tce-card-accent:after{bottom:-13px}
.tce-scissors{position:absolute;top:16px;font-size:20px;opacity:.75}
.tce-dots{font-size:28px;line-height:24px;font-weight:800;text-align:center;opacity:.85}
.tce-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.tce-brand{display:flex;align-items:center;gap:15px;min-width:0}
.tce-logo{width:86px;height:86px;display:flex;align-items:center;justify-content:center;flex:0 0 86px;border:1px solid #E3E8EF;border-radius:18px;background:#fff;overflow:hidden}
.tce-logo img{display:block;width:100%;height:100%;object-fit:contain;padding:12px;box-sizing:border-box}
.tce-store-name{font-size:21px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tce-heart{border:0;background:transparent;color:#98A7BB;font-size:38px;line-height:1;cursor:pointer;padding:0 2px}
.tce-discount{margin-top:20px;font-size:48px;line-height:1;font-weight:850;letter-spacing:-1.5px;color:#4A8622}
.tce-offer-title{margin-top:10px;font-size:22px;line-height:1.25;font-weight:800;color:#142238;min-height:55px}
.tce-footer{margin-top:auto;padding-top:18px;border-top:1px solid #E3E8EF;display:flex;align-items:flex-end;justify-content:space-between;gap:12px}
.tce-badges{display:flex;flex-wrap:wrap;gap:7px}
.tce-badge{display:inline-flex;align-items:center;border-radius:10px;padding:6px 10px;background:#EEF3F9;color:#26364D;font-size:14px;font-weight:600;white-space:nowrap}
.tce-badge-top{background:#F0F9E8;color:#4B7F28}
.tce-reveal{display:inline-flex;align-items:center;justify-content:center;min-width:132px;padding:13px 19px;border-radius:16px;background:#82CE3B;color:#142238;text-decoration:none;font-size:18px;font-weight:700;box-shadow:0 2px 6px rgba(0,0,0,.08)}
.tce-reveal:hover{filter:brightness(.96);color:#142238}
.tce-empty{padding:30px;border:1px dashed #CDD5DF;background:#fff;border-radius:14px;text-align:center;color:#64748B}
@media(max-width:1024px){
 .tce-grid,.tce-cols-4,.tce-cols-3{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:767px){
 .tce-wrap{padding:18px 0}
 .tce-heading-row{align-items:flex-start;margin-bottom:18px}
 .tce-title{font-size:29px}
 .tce-see-all{font-size:15px}
 .tce-grid,.tce-cols-4,.tce-cols-3,.tce-cols-2{grid-template-columns:1fr}
 .tce-card{grid-template-columns:minmax(0,1fr) 66px;min-height:330px}
 .tce-card-main{padding:20px 17px}
 .tce-logo{width:68px;height:68px;flex-basis:68px;border-radius:15px}
 .tce-store-name{font-size:18px}
 .tce-discount{font-size:39px}
 .tce-offer-title{font-size:19px}
 .tce-reveal{min-width:110px;font-size:16px;padding:11px 14px}
}

/* ==========================================
   COMPACT COUPON REDESIGN
   ========================================== */
.tce-wrap{padding:16px 0}
.tce-heading-row{gap:14px;margin:0 0 18px}
.tce-title{font-size:clamp(24px,2.4vw,34px);letter-spacing:-.7px}
.tce-see-all{font-size:15px}
.tce-see-all span{font-size:21px}
.tce-grid{gap:14px}
.tce-card{grid-template-columns:minmax(0,1fr) 58px;min-height:270px;border-radius:12px}
.tce-card-main{padding:17px 16px 15px;border-radius:12px 0 0 12px}
.tce-card-accent{border-radius:0 12px 12px 0}
.tce-card-accent:before,.tce-card-accent:after{width:20px;height:20px;left:-1px}
.tce-card-accent:before{top:-10px}.tce-card-accent:after{bottom:-10px}
.tce-scissors{top:11px;font-size:16px}
.tce-dots{font-size:22px;line-height:19px}
.tce-top{gap:8px}
.tce-brand{gap:10px}
.tce-logo{width:58px;height:58px;flex-basis:58px;border-radius:12px}
.tce-logo img{padding:8px}
.tce-store-name{font-size:17px}
.tce-heart{font-size:28px}
.tce-discount{margin-top:12px;font-size:34px;letter-spacing:-.8px}
.tce-offer-title{margin-top:7px;font-size:17px;line-height:1.25;min-height:43px}
.tce-footer{padding-top:12px;gap:8px}
.tce-badges{gap:5px}
.tce-badge{border-radius:7px;padding:4px 7px;font-size:11px}
.tce-reveal{min-width:96px;padding:9px 12px;border-radius:10px;font-size:14px}

@media(max-width:767px){
 .tce-wrap{padding:14px 0}
 .tce-heading-row{margin-bottom:14px}
 .tce-title{font-size:24px}
 .tce-see-all{font-size:14px}
 .tce-card{grid-template-columns:minmax(0,1fr) 48px;min-height:250px}
 .tce-card-main{padding:15px 13px}
 .tce-logo{width:52px;height:52px;flex-basis:52px}
 .tce-store-name{font-size:16px}
 .tce-discount{font-size:31px}
 .tce-offer-title{font-size:16px;min-height:40px}
 .tce-reveal{min-width:88px;font-size:13px;padding:8px 10px}
}


/* FINAL COMPACT CARD SIZE */
.tce-wrap{padding:12px 0}
.tce-heading-row{margin-bottom:14px}
.tce-grid{gap:12px}
.tce-card{grid-template-columns:minmax(0,1fr) 46px;min-height:238px;border-radius:11px}
.tce-card-main{padding:13px 14px 12px;border-radius:11px 0 0 11px}
.tce-card-accent{border-radius:0 11px 11px 0}
.tce-card-accent:before,.tce-card-accent:after{width:18px;height:18px}
.tce-card-accent:before{top:-9px}.tce-card-accent:after{bottom:-9px}
.tce-scissors{top:9px;font-size:14px}
.tce-dots{font-size:18px;line-height:16px}
.tce-brand{gap:8px}
.tce-logo{width:48px;height:48px;flex-basis:48px;border-radius:10px}
.tce-logo img{padding:6px}
.tce-store-name{font-size:15px}
.tce-heart{font-size:24px}
.tce-discount{margin-top:9px;font-size:29px;letter-spacing:-.6px}
.tce-offer-title{margin-top:5px;font-size:15px;line-height:1.2;min-height:36px}
.tce-footer{padding-top:9px;gap:6px}
.tce-badges{gap:4px}
.tce-badge{border-radius:6px;padding:3px 6px;font-size:10px}
.tce-reveal{min-width:82px;padding:7px 9px;border-radius:8px;font-size:12px;line-height:1.15;white-space:nowrap}
.tce-reveal.tce-code-revealed{font-size:11px;min-width:82px;max-width:120px;overflow:hidden;text-overflow:ellipsis}
@media(max-width:767px){
 .tce-card{grid-template-columns:minmax(0,1fr) 40px;min-height:220px}
 .tce-card-main{padding:12px 11px 10px}
 .tce-logo{width:44px;height:44px;flex-basis:44px}
 .tce-store-name{font-size:14px}
 .tce-discount{font-size:27px}
 .tce-offer-title{font-size:14px;min-height:34px}
 .tce-reveal{min-width:74px;font-size:11px;padding:7px 8px}
}

/* USER REQUEST: smaller card, coupon title and description only */
.tce-card{
    min-height:215px !important;
}
.tce-card-main{
    padding:11px 13px 10px !important;
}
.tce-logo{
    width:44px !important;
    height:44px !important;
    flex-basis:44px !important;
}
.tce-store-name{
    font-size:14px !important;
}
.tce-discount{
    margin-top:7px !important;
    font-size:26px !important;
}
.tce-offer-title{
    margin-top:4px !important;
    font-size:14px !important;
    line-height:1.18 !important;
    min-height:30px !important;
}
/* Description/body text, if present in the widget */
.tce-description,
.tce-offer-description,
.tce-card-description{
    font-size:12px !important;
    line-height:1.25 !important;
    margin-top:4px !important;
}
.tce-footer{
    padding-top:7px !important;
}


/* Clickable store area */
.tce-store-link{color:inherit;text-decoration:none;cursor:pointer;}
.tce-store-link:hover{color:inherit;text-decoration:none;}
.tce-store-link .tce-store-name{transition:opacity .15s ease;}
.tce-store-link:hover .tce-store-name{opacity:.78;}

/* Robust revealed coupon code display */
.tce-reveal.tce-code-revealed{cursor:pointer;}
.tce-reveal .tce-reveal-code{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
