@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700&display=swap');

#loyalty-widget-button{
    position: fixed;
    bottom: 20px;
    left: 20px;
    background:#007bff;
    color:#fff;
    width:50px;
    height:50px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    z-index:900;
}
#loyalty-widget-popup{
    position:fixed;
    bottom:80px;
    left:20px;
    width:300px;
    max-width:90%;
    background:var(--dark-gray);
    border:1px solid var(--light-gray);
    color:var(--font-color);
    border-radius:4px;
    box-shadow:0 2px 8px rgba(0,0,0,0.2);
    display:none;
    z-index:899;
}
#loyalty-widget-popup.open{
    display:block;
}
#loyalty-widget-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 10px 15px;
    background: #3399ff;
    color: #fff;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    font-size: 14px;
}

.loyalty-widget-logo {
    height: 40px;
    margin-right: 10px;
}

.loyalty-header-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.loyalty-header-points {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
}

#loyalty-widget-content {
    background: var(--dark-gray);
    border: 1px solid var(--light-gray);
    border-top: none;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    padding: 15px;
    color: var(--font-color);
    height: 500px;
    overflow-y: auto;
}

#loyalty-widget-close{
    position:absolute;
    top:6px;
    right:6px;
    background:none;
    border:none;
    font-size:16px;
    color:inherit;
    cursor:pointer;
    width:auto;
}
#loyalty-widget-back{
    background:none;
    border:none;
    font-size:16px;
    color:inherit;
    cursor:pointer;
    position:absolute;
    top:6px;
    left:6px;
}
#loyalty-widget-title{
    display:flex;
    align-items:center;
    flex-grow:1;
    justify-content:center;
    font-size:14px;
}
#loyalty-widget-title .loyalty-widget-icon{
    width:18px;
    height:18px;
    margin-right:4px;
}
.loyalty-widget-icon {
    width: 14px;   /* réduit par rapport à 18px */
    height: 14px;
    margin-right: 6px;
}

#loyalty-widget-points{
    font-weight:bold;
}
#loyalty-widget-popup h3{
    margin-top:0;
    text-align:center;
}
#loyalty-widget-popup .loyalty-widget-page{
    display:none;
}
#loyalty-widget-popup .loyalty-page-main{
    display:block;
}
#loyalty-widget-subheader{
    display:flex;
    align-items:center;
    gap:8px;
    margin-bottom:10px;
}
#loyalty-widget-subheader .loyalty-back-main{
    background:none;
    border:none;
    font-size:16px;
    color:var(--font-color);
    cursor:pointer;
}
#loyalty-widget-popup .loyalty-widget-page .button{
    width:100%;
    margin:5px 0;
    background-color:#007bff;
    color:#fff;
    border:none;
    border-radius:4px;
    padding:8px 0;
}

.loyalty-widget-card {
    background: var(--darker-gray);
    border: 1px solid var(--light-gray);
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 10px;
}

.loyalty-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: var(--charcoal-gray);
    color: var(--font-color);
    border: 1px solid var(--light-gray);
    border-radius: 4px;
    padding: 8px 10px;
    margin-bottom: 8px;
    cursor: pointer;
}

.loyalty-action i {
    pointer-events: none;
}

.loyalty-copy-container {
    position: relative;
    margin-top: 6px;
}

.loyalty-referral-input {
    width: 100%;
    padding-right: 32px;
}

.loyalty-copy-referral {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #007bff;
    cursor: pointer;
    padding: 0;
}

.loyalty-copy-confirmation {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #444;
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    display: none;
}

@media(max-width:480px){
    #loyalty-widget-popup{
        width:260px;
    }
}

.loyalty-missions-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    font-family: 'Cinzel', serif;
}

.loyalty-missions-list li {
    font-size: 13px;
    margin-bottom: 6px;
    background: linear-gradient(#3b2d1f, #27190b);
    border: 1px solid #c29a5b;
    border-radius: 6px;
    padding: 4px;
    color: #f3e2c7;
}

.loyalty-missions-list progress {
    width: 100%;
    height: 6px;
    vertical-align: middle;
    margin: 2px 0;
    appearance: none;
    border: 1px solid #c29a5b;
    border-radius: 4px;
    background-color: #1b1207;
}
.loyalty-missions-list progress::-webkit-progress-value {
    background-color: #c29a5b;
    border-radius: 4px;
}
.loyalty-missions-list progress::-moz-progress-bar {
    background-color: #c29a5b;
    border-radius: 4px;
}

.loyalty-login-message {
    text-align: center;
    margin-bottom: 10px;
}

.loyalty-login-btn {
    display: block;
    width: 100%;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 0;
    cursor: pointer;
}

.loyalty-missions-text {
    margin-bottom: 6px;
}

.loyalty-missions-link {
    display: inline-block;
    padding: 6px 10px;
    background-color: #007bff;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
}
