.custom-button {
    line-height: 1;
    text-decoration: none;
    display: inline-flex;
    border: none;
    cursor: pointer;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--clr);
    color: #fff;
    border-radius: 10rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    padding-left: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background-color 0.3s, color 0.3s;
    font-size: clamp(0.75rem, 2vw, 0.875rem);
    min-width: 100px;
}

.custom-button__icon-wrapper {
    flex-shrink: 0;
    width: clamp(18px, 2.5vw, 20px);
    height: clamp(18px, 2.5vw, 20px);
    position: relative;
    color: var(--clr);
    background-color: #fff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.custom-button.full-width {
    display: flex;
    justify-content: center;
    width: 100%;
    font-size: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-weight: bold;
    background-color: #F5362C; 
    color: white;
    box-shadow: 0 4px 12px #F5362C;
    transition: all 0.3s ease;
}

.custom-button.full-width:hover {
    background-color: #F5362C; 
    box-shadow: 0 6px 18px #F5362C;
    transform: translateY(-2px);
}


.custom-button.btn-primary:hover {
    background-color: #0056b3;
    color: #ffffff;
}

.custom-button.btn-primary:hover .custom-button__icon-wrapper {
    color: #0056b3;
}

.custom-button.btn-outline-primary:hover {
    background-color: #5a6268;
    color: #ffffff;
}

.custom-button.btn-outline-primary:hover .custom-button__icon-wrapper {
    color: #5a6268;
}

.custom-button.btn-success:hover {
    background-color: #F5362C;
    color: #ffffff;
}

.custom-button.btn-success:hover .custom-button__icon-wrapper {
    color: #F5362C;
}

.custom-button__icon-svg--copy {
    position: absolute;
    transform: translate(-150%, 150%);
}

.custom-button:hover .custom-button__icon-svg:first-child {
    transition: transform 0.3s ease-in-out;
    transform: translate(150%, -150%);
}

.custom-button:hover .custom-button__icon-svg--copy {
    transition: transform 0.3s ease-in-out 0.1s;
    transform: translate(0);
}

@media (max-width: 576px) {
    .custom-button {
        padding: 0.4rem 0.8rem;
        padding-left: 12px;
        font-size: 0.75rem;
        min-width: 80px;
    }

    .custom-button__icon-wrapper {
        width: 16px;
        height: 16px;
    }
}