button {
    border: none;
    display: unset;
    text-align: left;
}

/* Style buttons */
.button {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;

    height: 48px;
    padding: 0 24px;
    border: none;
    border-radius: 16px;
    font-family: FontFamilyRegular, sans-serif;
    font-size: 16px;
    white-space: nowrap;

    cursor: pointer;
}

.button.primary {
    background-color: var(--branded-theme-colours-button-primary-background);
    color: var(--branded-theme-colours-button-primary-foreground);
}

.button.secondary {
    background-color: var(--branded-theme-colours-button-secondary-background);
    color: var(--branded-theme-colours-button-secondary-foreground);
}

.button.secondary.solid-on-background {
    background-color: var(--quaternary-fill-solid-on-background);
}

.button.secondary.solid-on-secondary-background {
    background-color: var(--quaternary-fill-solid-on-secondary-background);
}

.button.tertiary {
    background-color: transparent;
    color: var(--branded-theme-colours-brand-primary);
}

.button.tertiary:hover {
    background-color: var(--branded-theme-colours-fill-quaternary);
}

.button.white {
    background-color: var(--branded-theme-colours-background-default-secondary);
    color: var(--branded-theme-colours-brand-primary);
}

.button.blue {
    background-color: var(--system-colours-blue);
    color: var(--system-colours-label-dark-primary);
}

.button.green {
    background-color: var(--system-colours-green);
    color: var(--system-colours-label-dark-primary);
}

.button.warning {
    background-color: var(--system-colours-orange);
    color: var(--system-colours-label-dark-primary);
}

.button.dark {
    background-color: var(--system-colours-background-dark-tertiary);
    color: var(--system-colours-label-dark-secondary);
}

.button.icon {
    width: 48px;
    height: 48px;
    padding: 0;
}

.button.small-icon {
    width: 32px;
    height: 32px;
    padding: 0;
}


.button.rounded {
    border-radius: 100%;
}

/* Inline buttons */

.inline-button {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;

    height: 28px;
    padding: 0 16px;
    border: none;
    border-radius: 100px;
    font-family: FontFamilyBold, sans-serif;
    font-size: 13px;
    text-transform: uppercase;

    background-color: var(--branded-theme-colours-fill-quaternary);
    color: var(--branded-theme-colours-label-primary);
    
    cursor: pointer;
}


/* Dark Mode */

.dark-mode .button.secondary {
    background-color: var(--quaternary-fill);
    color: var(--light-label);
}

.small-button {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;

    padding: 10px 20px;
    border: none;
    border-radius: 12px;
    font-family: FontFamilyRegular, sans-serif;
    font-size: 12px;
    
    cursor: pointer;
}