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

.grid-layout .cad-coupons-wrapper .cad-coupon-box {
    flex-wrap: wrap;
    flex-direction: column;
    text-align: center;
    height: 100%;
}
.grid-layout .cad-coupons-wrapper .cad-logo-container {
    width: 100%;
    margin: 10px 0;
}
.grid-layout .cad-coupons-wrapper .cad-right {
    margin-top: 15px;
    text-align: center;
    width: 100%;
}
.cad-coupon-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.cad-coupon-popup {
    background: #ffffff;
    width: 500px;
    max-width: 90%;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.cad-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
    font-size: 24px;
    color: #999;
}

.cad-popup-logo {
    width: 220px;
    height: auto;
    display: none;
}

.cad-popup-title {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

.cad-popup-description {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.cad-popup-code-container {
    display: block !important;
    margin-bottom: 20px;
}

.cad-popup-code {
    display: flex;
    background: #f4f4f4;
    border: 1px dashed #ddd;
    border-radius: 5px;
    padding: 10px;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.cad-popup-code-text {
    font-weight: bold;
    font-size: 18px;
    color: #333;
    margin: 0 auto;
}

.cad-popup-copy-btn {
    background: linear-gradient(to right, #6e260e, #8b3a20);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.cad-popup-copy-btn:hover {
    opacity: 0.9;
}

.cad-popup-website-btn {
    display: none;
    background: linear-gradient(to right, #004aad, #8f94fb);
    color: #ffffff;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 5px;
    margin-top: 15px;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.cad-popup-website-btn:hover {
    opacity: 0.9;
    color: #ffffff;
}

.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;
}
.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;
}

.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;
}

.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-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 {
    opacity: 0.9;
    color: #000;
}
.cad-verified-badge::before {
  content: "\f3ed";
  font-family: 'Font Awesome 5 Free';
}

/* Verified Badge Styles */
.cad-verified-badge {
    position: absolute;
    top: 5px;
    /*background: #4CAF50;*/
    color: #4CAF50;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    /*box-shadow: 0 2px 5px rgba(0,0,0,0.2);*/
    z-index: 1;
}

/* Last Used Text */
.cad-last-used {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
    font-style: italic;
}

.gradient-mask {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 45%;
    border-radius: 5px;
    background: linear-gradient(to right, #fedd2b, #fedd2b);
    z-index: 2;
    clip-path: polygon(
        0% 0%, 100% 0%, 100% 5%, 97% 10%, 100% 15%, 97% 20%, 100% 25%, 97% 30%,
        100% 35%, 97% 40%, 100% 45%, 97% 50%, 100% 55%, 97% 60%, 100% 65%, 97% 70%,
        100% 75%, 97% 80%, 100% 85%, 97% 90%, 100% 95%, 100% 100%, 0% 100%
    );
    transform: perspective(600px) rotateY(0deg) rotateX(0deg) scale(1.02);
    box-shadow:
        20px 20px 40px rgba(0, 0, 0, 0.6),
        -10px -10px 20px rgba(255, 255, 255, 0.15),
        inset -6px -6px 12px rgba(0, 0, 0, 0.25);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    transition: width 0.5s ease;
}

/* hover effect for interaction */
.cad-popup-code:hover .gradient-mask {
	width: 40%;
}
/* 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: 10px 0;
    }
}