
.content-wrapper-login-details {
    justify-content: space-between;
    gap: 20px;
    max-width: 1200px;
    margin-top: -100px;
    z-index: 10;
}

.login-section {
    flex: 1;
    display: flex;
    justify-content: center;
}

.details-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    width: 70vw;
    max-height: 300px;
}
.user-info-card {
    margin: 0 auto 32px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 24px 32px;
    min-width: 260px;
    text-align: center;
    width: 80vw;
    max-width: 800px;
}

.user-info-row {
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    margin-bottom: 12px;
    width: 100%;
}

.user-greeting {
    font-size: 3em;
    font-weight: 800;
    margin: 0;
    line-height: 1;
    text-align: left;
    color: black;
}

.user-phone {
    font-size: 2em;
    color: black;
    margin: 0 0 0 20px;
    line-height: 1;
    text-align: left;
    padding-bottom: 4.5px;
}
.user-stats-row {
    display: flex;
    justify-content: space-between;
    gap: 48px;
    margin-top: 50px;
}

.user-stat {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    position: relative;
    flex-wrap: nowrap; 
    min-width: 0;  
    max-width: 100%; 
}

.user-stat-value {
    white-space: nowrap; 
    font-size: 2em;
    font-weight: 800;
    color: black;
    margin-bottom: 2px;
}

.user-stat-label {
    white-space: nowrap; 
    font-size: 1em;
    color: black;
    letter-spacing: 1px;
    margin-left: 5px;
}
.tooltip-icon {
    flex-shrink: 0;
    margin-left: 6px;
    cursor: pointer;
    font-size: 1em;
    color: #888;
    vertical-align: middle;
}
.tooltip-popup {
    position: absolute; 
    left: 50%;
    bottom: 60%;   
    background: #fff;
    color: black;
    padding: 10px 16px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    font-size: 0.75em;
    min-width: 220px;
    z-index: 10;
    white-space: normal;
    text-align: left;
    transition: opacity 0.2s;
}
.tooltip-icon {
    margin-left: 6px;
    cursor: pointer;
    font-size: 1em;
    color: #888;
    vertical-align: middle;
}

.coupon-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-right: 18px;
    border-radius: 6px;
    background: #f6f6f6;
}

.coupon-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

input[readonly] {
  background: #f5f5f5;
  color: #888;
  cursor: not-allowed;
}

.coupon-title {
    font-size: 1.1em;
    font-weight: 800;
    color: var(--primary-color, #B51398);
    margin-bottom: 4px;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    word-break: break-word;
}
/* 
.coupon-description {
    font-size: 0.95em;
    color: #222;
    margin-bottom: 2px;
} */

.coupon-details, .coupon-card {
    min-width: 0;
}

.coupon-description {
  display: -webkit-box;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 2.8em;
  line-height: 1.4em;
  padding-right: 10px;
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

.redeem_eligibility {
    font-size: 0.85em;
    color: #888;
    margin-top: 2px;
}

.coupons-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
    margin-top: 10px;
}

.coupon-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    padding: 16px 20px;
    border-left: 6px solid var(--primary-color, #B51398);
    min-height: 80px;
    width: 100%;
}

.referal-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    padding: 16px 20px;
    border: 2px solid var(--primary-color, #B51398);
    min-height: 80px;
    width: 300px;
    cursor: pointer;
}

.order-online {
    font-weight: 800;
    color: var(--primary-color, #B51398);
    text-decoration: underline;
}

.redeemables-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
    margin-top: 10px;
}

.coupons-grid,
.redeemables-grid,
.coupon-placeholder {
    min-height: 130px;
}

.coupon-placeholder {
    min-height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.redeemable-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    padding: 16px 20px;
    border-left: 6px solid var(--primary-color, #B51398);
    min-height: 80px;
    width: 100%;
}

@media (max-width: 700px) {
    .content-wrapper-login-details,
    .details-section,
    .coupons-grid,
    .coupon-card,
    .coupon-details {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    .content-wrapper-login-details {
        padding-left: 20px;
        padding-right: 20px;
    }
    .coupons-grid {
        grid-template-columns: 1fr;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .coupon-card {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .coupon-title,
    .coupon-description {
        max-width: 100%;
        overflow-wrap: break-word;
        word-break: break-word;
        white-space: normal;
    }
    .coupon-logo {
        max-width: 48px;
        height: auto;
    }
    .redeemables-grid {
        grid-template-columns: 1fr;
    }
    .redeemable-card {
        width: 100%;
    }
     .user-info-card {
        max-width: 98vw;
        margin-bottom: 24px;
        font-size: 1em;
        width: 90vw;
        margin: auto;
    }
    .user-info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        margin-bottom: 0px;
    }
    .user-greeting {
        font-size: 2em;
        text-align: left;
        margin-bottom: 5px;
        color: #222;
        font-weight: 800;
    }
    .user-phone {
        font-size: 1em;
        text-align: left;
        margin-bottom: 6px;
        color: #888;
        font-weight: 500;
        margin-left: 0;
        padding-bottom: 0;
    }
    .user-stats-row {
        flex-direction: column;
        gap: 0px;
        align-items: flex-start;
        margin-top: 6px;
        justify-content: flex-start;
        margin-bottom: 0px;
    }
    .user-stat {
        /* width: auto;
        margin-bottom: 0;
        align-items: baseline;
        flex-direction: row;
        display: flex;
        gap: 0px;
        margin-top: 10px; */
        width: 100%;
        min-width: 0;
        max-width: 100%;
        flex-wrap: nowrap;
    }
    .user-stat-value,
    .user-stat-label {
        white-space: normal;    
        word-break: break-word; 
        max-width: 100%;
        overflow: visible;
        text-overflow: unset;
    }
    /* .user-stat-value {
        font-size: 1.5em;
        font-weight: 800;
        color: #222;
        margin-bottom: 0;
    }
    .user-stat-label {
        font-size: 0.95em;
        color: #888;
        font-weight: 500;
        margin-left: 10px;
        letter-spacing: 0.5px;
    } */
    .tooltip-icon {
        font-size: 1em;
        margin-left: 0px;
    }
    .tooltip-popup {
        left: 30%;
    }
    .referal-card {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        margin-top: 20px;
    }
}
