﻿/* Add the following to a stylesheet to customise colours:
:root {
    --whos-my-rep-button-background-color: #82f135;
    --whos-my-rep-button-text-color: #000000;
    --whos-my-rep-button-border: 2px solid #82f135;
    --whos-my-rep-button-border-radius: 0.5rem;
    --whos-my-rep-button-hover-background-color: #82f135;
    --whos-my-rep-button-hover-text-color: #000000;
    --whos-my-rep-button-hover-border: 2px solid #82f135;
    --whos-my-rep-image-border: none;
	--whos-my-rep-image-hover-border: none;
	--whos-my-rep-image-radius:15px;
    --whos-my-rep-columns: 3;
}*/

.msl-whosmyrep {
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(1,1fr);
    gap: 1.5rem;
}

@media all and (min-width:768px) {
    .msl-whosmyrep {
        grid-template-columns: repeat(var(--whos-my-rep-columns,3),1fr);
    }
}

.msl-whosmyrep-item {
    list-style: none;
    display: flex;
    flex-direction: column;
    position: relative;
}

.msl-whosmyrep-name, .msl-whosmyrep-groupname {
    text-align: center;
}

.msl-whosmyrep-actions {
    display: flex;
    justify-content: center;
    margin-top: auto;
}

.msl-whosmyrep-action {
    background: var(--whos-my-rep-button-background-color, rgb(130 241 53));
    color: var(--whos-my-rep-button-text-color, rgb(0 0 0));
    transition: 0s;
    width: fit-content;
    border: var(--whos-my-rep-button-border,rgb(130 241 53));
    text-align: center;
    margin: 0 auto;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    font-weight: 700;
    display: table;
    border-radius: var(--whos-my-rep-button-border-radius, 0.5rem);
    text-decoration: none;
    transition: all .2s ease-in-out;
}

.msl-whosmyrep-action::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.msl-whosmyrep-action:hover {
    text-decoration: none;
    background: var(--whos-my-rep-button-hover-background-color, rgb(130 241 53));
    color: var(--whos-my-rep-button-hover-text-color, rgb(0 0 0));
    border: var(--whos-my-rep-button-hover-border, rgb(130 241 53));
    cursor: pointer;
}

.msl-whosmyrep-name {
    margin: 1rem 0 0 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.msl-whosmyrep-image {
    border-radius: var(--whos-my-rep-image-radius, 0);
    border: var(--whos-my-rep-image-border, none);
}

.msl-whosmyrep-item:hover .msl-whosmyrep-image {
    border: var(--whos-my-rep-image-hover-border, none);
    transition: all .2s ease-in-out;
}
