@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css');

/* Coupon wrapper and box */
.cad-coupons-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

.cad-coupon-box {
    display: flex;
    border: 2px dashed #6e260e;
    padding: 20px;
    align-items: center;
    justify-content: space-between;
    border-radius: 10px;
    position: relative;
    padding-top: 25px;
}

/* Numbering */
.cad-numbering {
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, #6e260e 0%, #8b3a20 100%);
    color: white;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: bold;
    border-bottom-right-radius: 8px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Logo */
.cad-logo-container {
    margin: 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 10%;
    height: 80px;
    flex-shrink: 0;
    border: 1px solid #aeaeae;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cad-coupon-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

/* Left section (discount and label) */
.cad-left {
    text-align: center;
    min-width: 120px;
    padding: 15px;
}

.cad-discount {
    font-size: 24px;
    font-weight: bold;
    color: #004aad;
    margin-bottom: 10px;
}

.cad-label {
    background: #000000;
    color: #ffffff;
    padding: 8px;
    font-weight: bold;
    border-radius: 5px;
    text-transform: uppercase;
}

/* Middle section (title, description, rating, last used) */
.cad-middle {
    flex: 1;
    padding: 0 20px;
}

.cad-middle h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    color: #333;
}

.cad-description {
    font-size: 16px;
    color: #000;
}

.cad-rating-last-used {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 15px;
    margin: 10px 0;
}

.cad-rating {
    display: flex;
    align-items: center;
}

.cad-stars {
    color: #f5c518;
    font-size: 18px;
    margin-right: 5px;
}

.cad-stars i {
    margin-right: 2px; /* Add spacing between star icons */
}

.cad-rating-text {
    font-size: 14px;
    color: #666;
}

.cad-last-used {
    font-size: 14px;
    color: #666;
    font-style: italic;
    margin-top: 0px;
}

/* Right section (button) */
.cad-right {
    text-align: right;
}

.cad-button {
    background: linear-gradient(to right, #fedd2b, #fff48d);
    color: #000;
    padding: 12px 20px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.cad-button:hover {
    background: #000;
    color: #fedd2b;
    opacity: 0.9;
}

/* Verified Badge */
.cad-verified-badge::before {
    content: "\f3ed";
    font-family: 'Font Awesome 5 Free';
}

.cad-verified-badge {
    position: absolute;
    top: 5px;
    color: #4CAF50;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    z-index: 1;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .cad-coupon-box {
        flex-direction: column;
        text-align: center;
    }
    .cad-middle {
        padding: 10px 0;
    }
    .cad-right {
        margin-top: 15px;
        text-align: center;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .cad-coupon-box {
        flex-wrap: wrap;
    }
    .cad-logo-container {
        width: 100%;
        margin: 30px 0 auto;
		height: auto;
    }
    .cad-verified-badge {
        right: 0;
    }
    .cad-rating, .cad-rating-last-used {
        display: block;
    }
	
}