
.referer-shortcode{
    --btn-color: #dfdfdf;
    --btn-active-color: white;
}

/*referer trigger*/
.referer-trigger .btn-wrapper button{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    color: var(--btn-color);
    line-height: 1;
    border: solid 1px var(--btn-color);
    border-radius: 500px;
    background: transparent;
    padding: 10px 20px;
    transition: all .5s ease;
    gap: 5px;
}

.referer-trigger .btn-wrapper button:hover, .referer-trigger .btn-wrapper button:focus, .referer-trigger .btn-wrapper button:focus-within{
    --btn-color : var(--btn-active-color);
    filter: drop-shadow(0 0 5px var(--btn-active-color));
    transform: scale(1.1);
}


/*popup referer*/
.modal-overlay {
    position: fixed;
    top: 0; left: 0; 
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.5);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999;
    --accent-color: var(--e-global-color-primary);
}

.modal-content {
    background: #fff;
    padding: 40px 30px;
    padding-top: 70px;
    border-radius: 24px;
    width: 90%; max-width: 400px;
    position: relative;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.link-icon-header {
    width: 75px; height: 75px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: -30px; left: 50%;
    transform: translateX(-50%);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    font-size: 24px; color: #333;
}


.share-link-section label{
    font-size: .9em;
    font-weight: 500;
}

.input-group {
    display: flex;
    position: relative;
    border-radius: 12px;
    margin-top: 2px;
    --icon-size: 2em;
    overflow: hidden;
}

.input-group #referral-link {
    border: none;
    border-radius: 10px;
    background-color: #f6f8fe;
    flex: 1;
    font-size: 14px;
    color: #666;
    outline: none;
    padding-right: var(--icon-size);
    padding-right: calc(var(--icon-size) * 1.2);
}

#copy-link-btn{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    right: 0;
    width: var(--icon-size);
    height: 100%;
    color: grey;
    background: #e7e7e7;
    padding: 0 .5em;
}

.copy-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #333;
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    z-index: 10000;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s;
    opacity: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.copy-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}




.close-modal{
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 20px;
    right: 20px;
    width: var(--close-btn-size);
    min-width: var(--close-btn-size);
    height: var(--close-btn-size);
    min-height: var(--close-btn-size);
    font-size: 25px;
    color: #333;
    border: solid 1px #333;
    border-radius: 50%;
    background: none;
    --close-btn-size: 40px; 
    padding: 0;
}

.close-modal:focus, .close-modal:focus-within, .close-modal:hover{
    border: none;
    background: var(--accent-color);
}



.share-to-section{
    display: block;
    margin-top: 20px;
}

.social-icons {
    display: flex; justify-content: space-around; margin-top: 15px;
    cursor: pointer;
}

.social-btn {
    display: flex; flex-direction: column; align-items: center;
    width: 4em;
    text-decoration: none; color: #333; font-size: 12px;
}

.social-btn i {
    font-size: 24px; margin-bottom: 5px;
}