/*
 * coupon
 */

.cb-card {
    display:flex;
    justify-content: space-between;
    gap: 20px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 18px 15px;
    margin-bottom: 20px;
    position:relative;
    overflow:hidden;
}

/* Expired Ribbon */
.cb-expired-ribbon{
    position:absolute;
    bottom:18px;
    right:-40px;
    width:160px;
    text-align:center;
    background:linear-gradient(45deg,#e57373,#eba7a7);
    color:#fff;
    font-size:11px;
    font-weight:600;
    padding:5px 0;
    transform:rotate(-45deg);
    box-shadow:0 2px 6px rgba(0,0,0,0.15);
    pointer-events:none;
    opacity:0.95;
}
.cb-content {
    flex: 1;
    min-width:0;
}

.cb-title {
    margin: 0 0 4px;
    font-size: 18px;
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
}
.cb-popular-badge{
    background:linear-gradient(45deg,#f6c343,#f39c12);
    color:#fff;
    font-size:11px;
    font-weight:600;
    padding:3px 8px;
    border-radius:12px;
    white-space:nowrap;	
}

.cb-meta-line {
    font-size: 11px;
    margin-bottom: 8px;
    color: #666;
}

.cb-type {
    font-weight: 600;
    margin-right: 8px;
    color: #1e73be;
}

.cb-verify {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 5px;
}

.cb-verify.verified {
    background: #e6f4ea;
    color: #1e7e34;
    cursor: help;
}

.cb-verify.unverified {
    background: #f1f1f1;
    color: #777;
}

.cb-desc,
.cb-terms {
    font-size: 12px;
    position: relative;
    overflow: hidden;
}

.cb-desc,
.cb-terms {
    font-size: 12px;
    margin-top: 6px;
}

.cb-terms {
    font-size: 10px;
    color: #777;
}

.cb-toggle {
    display: inline-block;
    margin-left: 6px;
    color: #1e73be;
    cursor: pointer;
}

.cb-action {
    text-align: right;
    min-width: 120px;
    flex:0 0 140px;
    max-width:140px;
}
.cb-btn{
    background:#1e73be;
    color:#fff;
    border:none;
    padding:12px 16px;
    font-size:14px;
    font-weight:600;
    border-radius:8px;
    cursor:pointer;
    text-decoration:none;
    display:inline-block;
    transition:0.2s ease;
}

.cb-btn:hover{
    background:#155d94;
}
.cb-code-btn{
	width:100%;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}
.cb-brand-coupons a.cb-btn{
    text-decoration:none;
}

.cb-right-info {
    margin-top: 8px;
    font-size: 12px;
    color: #777;
}

.cb-expired{
    opacity:0.75;
}

.cb-expired .cb-btn{
    filter:grayscale(15%);
}
.cb-expire{
    font-size:12px;
    margin-top:4px;
    text-align:center;
    line-height:1.3;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}

.cb-expire-label{
    display:block;
    font-size:11px;
    color:#666;
}

.cb-expire-date{
    display:block;
    font-weight:600;
    color:#555;
}
.cb-expire.expired-date .cb-expire-label,
.cb-expire.expired-date .cb-expire-date{
    color:#c0392b;
}
.cb-used{
    margin-top:4px;
}
/*
 * brand
 */
.cb-brand-info{
    display:flex;
    gap:20px;
    padding:15px 0;
    align-items:flex-start;
}

/* LEFT SIDE FIXED 120px */
.cb-brand-left{
    width:120px;
    text-align:center;
    flex-shrink:0;
}

.cb-brand-logo{
    max-width:100px;
    height:auto;
    margin-bottom:8px;
}

/* BRAND NAME SMALLER */
.cb-brand-name{
    font-size:14px;
    font-weight:600;
    margin-bottom:2px;
    line-height:1.3;
}

/* RIGHT SIDE FLEX */
.cb-brand-right{
    flex:1;
}

/* DESCRIPTION */
.cb-brand-description{
    font-size:14px;
    line-height:1.6;
    color:#444;
}

/* ===========================
   Brand Rating Layout
=========================== */

.cb-brand-rating {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
}
.cb-rating-stars {
    margin-bottom: 2px;
}
.cb-rating-stars.rated .star{
    cursor:default;
    opacity:0.9;
}
.cb-stars{
    display:inline-block;
}
.cb-stars .star{
    font-size:22px;
    cursor:pointer;
    color:#ddd;
    transition:0.2s;
}

.cb-stars .star.full{
    color:#f39c12;
}
.cb-stars .star.half{
    position:relative;
    color:#ddd;
}
.cb-stars .star.half:before{
    content:'★';
    position:absolute;
    left:0;
    width:50%;
    overflow:hidden;
    color:#f39c12;
}
.cb-stars .star.empty{
    color:#ddd;
}

.cb-rating-message{
    margin-top:6px;
    font-size:13px;
    color:#27ae60;
    display:none;
}
.cb-rating-meta {
    font-size: 13px;
    color: #666;
    margin-top: -2px;
}
.cb-rating-value {
    font-weight: 600;
    margin-right: 4px;
}
.cb-rating-count {
    color: #999;
}

/* mobile */
@media(max-width:600px){
    .cb-brand-info{
        flex-direction:column;
    }

    .cb-brand-left{
        width:100%;
    }
}

/* =======================
   brand-stats
======================= */

.cb-brand-stats{
    font-size:12px;
    color:#666;
    margin:8px 0;
    overflow:hidden;
    text-overflow:ellipsis;
}

.cb-brand-stats .cb-stat-item{
    display:inline-block;
}

.cb-brand-stats .cb-stat-sep{
    color:#bbb;
}

/* mobile wrap */
@media(max-width:600px){
    .cb-brand-stats{
        white-space:normal;
    }
}

/* =======================
   faqs
======================= */
.cb-brand-faqs {
    margin-top: 30px;
}

.cb-faq-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
}

.cb-faq-list {
    border-top: 1px solid #eee;
}

.cb-faq-item {
    border-bottom: 1px solid #eee;
}

.cb-faq-question {
    cursor: pointer;
    padding: 16px 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.cb-faq-question:hover {
    background: #f9f9f9;
}

.cb-faq-arrow {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cb-faq-arrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid #333;
    border-bottom: 2px solid #333;
    transform: rotate(45deg);
    transition: transform 0.25s ease;
}

/* Expanded state */
.cb-faq-item.active .cb-faq-arrow::before {
    transform: rotate(-135deg);
}

.cb-faq-text {
    flex: 1;
    line-height: 1.6;
}

.cb-faq-answer {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
    padding-left: 36px;
}

.cb-faq-answer div {
    padding: 10px 0 15px 0;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

.cb-faq-link {
    text-decoration: none;
    font-weight: 600;
    color: #0073aa;
}

.cb-faq-link:hover {
    text-decoration: underline;
}

.cb-faq-highlight {
    animation: cbFadeHighlight 1.2s ease;
}

@keyframes cbFadeHighlight {
    0%   { background: #fff9d6; }
    100% { background: transparent; }
}
/* =======================
   related-brands
======================= */
.cb-related-brands {
    margin-top: 40px;
}

.cb-related-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.cb-related-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Three-column layout */
.cb-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

/* logo container */
.cb-related-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    border: 1px solid #eee;
    border-radius: 6px;
    background: #fff;
    transition: all 0.2s ease;
    text-decoration: none;
}

.cb-related-item:hover {
    border-color: #ddd;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transform: translateY(-2px);
}

.cb-related-logo {
    max-width: 120px;
    max-height: 50px;
    object-fit: contain;
}

/* responsive */
@media (max-width: 768px) {
    .cb-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .cb-related-grid {
        grid-template-columns: 1fr;
    }
}