/* --- GRID WRAPPER (New) --- */
.cp-grid-layout {
display: grid;
grid-template-columns: 1fr 1fr; /* Two equal columns */
gap: 20px; /* Space between cards */
width: 100%;
box-sizing: border-box;
}
/* --- Card Container Styles --- */
.cp-card-wrapper {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
background: #fff;
border: 1px solid #e0e0e0;
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0,0,0,0.05);
/* Changed from fixed width to 100% to fit grid */
width: 100%;
overflow: hidden;
color: #333;
display: flex;
flex-direction: column;
}
/* --- Top Meta Section --- */
.cp-meta-row {
padding: 12px 20px 0;
display: flex;
align-items: center;
gap: 20px;
font-size: 13px;
color: #666;
}
.cp-verified {
color: #27ae60;
font-weight: 600;
display: flex;
align-items: center;
gap: 5px;
}
.cp-users {
display: flex;
align-items: center;
gap: 5px;
}
/* --- Main Content Section --- */
.cp-main-content {
padding: 15px 20px;
display: flex;
align-items: center;
gap: 15px; /* Reduced gap slightly for 2-col layout */
justify-content: space-between;
}
.cp-logo-box {
width: 70px; /* Slightly smaller for 2-col */
height: 70px;
border: 1px solid #eee;
border-radius: 8px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 5px;
flex-shrink: 0;
}
.cp-logo-box img {
max-width: 100%;
max-height: 40px;
object-fit: contain;
}
.cp-logo-text {
font-size: 9px;
color: #777;
margin-top: 4px;
font-weight: 700;
}
.cp-text-content {
flex-grow: 1;
min-width: 0; /* Prevents text overflow issues in grid */
}
.cp-title {
font-size: 20px; /* Slightly smaller font for 2-col */
font-weight: 700;
color: #222;
margin: 0 0 5px 0;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.cp-subtitle {
font-size: 13px;
color: #555;
margin: 0;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
/* Get Deal Button */
.cp-btn-deal {
background-color: #c92e2e;
color: white;
text-decoration: none;
padding: 10px 20px;
border-radius: 4px;
font-weight: 700;
font-size: 14px;
white-space: nowrap;
transition: background 0.3s;
box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.cp-btn-deal:hover {
background-color: #a82222;
color: white;
}
/* --- Divider --- */
.cp-divider {
height: 1px;
background-color: #eee;
margin: 0;
}
/* --- Toggle Bar --- */
.cp-toggle-bar {
padding: 12px 20px;
background-color: #fcfcfc;
display: flex;
justify-content: space-between;
align-items: center;
margin-top: auto; /* Pushes toggle bar to bottom if heights differ */
}
.cp-trigger {
color: #005691;
font-weight: 700;
font-size: 13px;
cursor: pointer;
display: flex;
align-items: center;
gap: 6px;
user-select: none;
}
.cp-trigger svg {
transition: transform 0.3s;
width: 12px;
height: 12px;
fill: #005691;
}
.cp-trigger.active svg {
transform: rotate(180deg);
}
.cp-share-badge {
background-color: #7eedc8;
color: #005e46;
padding: 4px 10px;
border-radius: 20px;
font-size: 11px;
font-weight: 600;
display: flex;
align-items: center;
gap: 4px;
cursor: pointer;
}
/* --- Hidden Details Section --- */
.cp-details-content {
max-height: 0;
overflow: hidden;
transition: max-height 0.4s ease-out;
background-color: #f9f9f9;
width: 100%;
}
.cp-details-inner {
padding: 15px 20px;
border-top: 1px solid #eee;
}
.cp-details-list {
margin: 0;
padding-left: 20px;
color: #444;
font-size: 13px;
line-height: 1.6;
}
.cp-details-list li {
margin-bottom: 5px;
}
.cp-success-rate {
margin-top: 15px;
padding-top: 10px;
border-top: 1px solid #eee;
font-size: 12px;
color: #666;
display: flex;
align-items: center;
gap: 15px;
}
.cp-thumbs svg {
width: 16px;
height: 16px;
fill: #999;
cursor: pointer;
}
.cp-thumbs svg:hover {
fill: #555;
}
/* --- Responsive Logic --- */
/* On tablets and phones, go back to 1 column */
@media (max-width: 900px) {
.cp-grid-layout {
grid-template-columns: 1fr;
}
}
/* Small mobile tweaks */
@media (max-width: 480px) {
.cp-main-content {
flex-direction: column;
text-align: center;
}
.cp-btn-deal {
width: 100%;
text-align: center;
}
}
function toggleCoupon(triggerElement) {
// 1. Toggle Active class on trigger (for icon rotation)
triggerElement.classList.toggle('active');
// 2. Change Text Logic
const textSpan = triggerElement.querySelector('.trigger-text');
if (textSpan.textContent === 'Show Details') {
textSpan.textContent = 'Hide Details';
} else {
textSpan.textContent = 'Show Details';
}
// 3. Find the details content and slide it
const cardWrapper = triggerElement.closest('.cp-card-wrapper');
const content = cardWrapper.querySelector('.cp-details-content');
if (content.style.maxHeight) {
content.style.maxHeight = null; // Close
} else {
content.style.maxHeight = content.scrollHeight + "px"; // Open
}
}
- Get upto 40-80% off on men's & women's fashion.
- Discounts on beauty products & home decor.
- Brands: Nike, Adidas, Tommy Hilfiger & more.
- No coupon code required.
100% Success
- Valid for new users only.
- Minimum cart value required.
95% Success

