.esub-container {
    background-color: var(--color-table-body-bg);
    border-radius: 0.875rem;
    border: .6px solid var(--color-border);
    padding: 1rem .746rem 1rem 1.5rem;
}

.esub-container__small {
    padding: 0;
}

.esub-container__noborder {
    border: none;
}

.esub-container-center {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
}

.esub-panel {
    margin: 2rem 0;
}

.esub-border__top {
    border-top: 1px solid var(--color-border);
}

.esub-margin {
    margin: 2rem;
}

.esub-margin-v {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.esub-margin__v-small {
    margin: 1rem 0;
}

.esub-message {
    font-weight: 600;
    color: #000;
}

.esub-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-black);
}

.esub-flex-10 {
    flex: 0 1 10%;
}

.esub-flex-20 {
    flex: 0 1 20%;
}

.esub-flex-50 {
    flex: 0 1 50%;
}

.esub-flex-70 {
    flex: 1 0 70%;
}

.width-100 {
    width: 100%;
}

.btn.esub-btn,
.esbu-btn {
    border-radius: 0.625rem;
}

.dropdown-save-group .esub-btn {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.btn-outline {
    border-radius: var(--border-radius--button);
    background-color: transparent !important;
    padding: .5rem 1rem;

    &.btn-primary {
        color: var(--color-red);
        border: 2px solid var(--color-red);

        &:hover {

            font-weight: 600;
            color: var(--color-red);
        }
    }

    &.btn-secondary {
        color: var(--color-gray);
        border: 1px solid var(--color-gray);
    }
}

.esub-btn-primary,
.btn-primary {
    background-color: var(--color-red) !important;
    border-color: var(--color-red) !important;
    color: white !important;

    &:hover,
    &:active {
        background-color: var(--color-gray);
    }
}

.esub-btn-secondary,
.btn-secondary,
.btn-black {
    background-color: #3D3D3C;
    color: white;

    &:hover,
    &:active {
        background-color: #AFAFAF;
        color: #3D3D3C;
    }
}

.btn-gray {
    background-color: var(--color-btn-gray);
    color: white !important;

    &:hover,
    &:active {
        background-color: var(--color-gray);
    }
}

.btn-black {
    background-color: var(--color-black);
}

.btn-white {
    border: .6px solid var(--color-filter-button-border);
    background-color: white !important;
    color: #000 !important;

    &:active {
        background-color: #000 !important;
        color: white !important;
    }

}

.esub-btn__small {
    padding: .5rem 1rem;
    font-size: .8rem;
    line-height: 1rem !important;
}

.btn__small {
    padding: 0 .5rem !important;
    font-size: .9rem !important;
}

.btn-huge {
    font-size: 2rem;
    padding: 3rem;
    line-height: 2.5rem;
}

.btn-large {
    font-size: 1.5rem;
    padding: 2rem;
    line-height: 2rem;
}

.btn__red {
    background-color: hsla(350, 80%, 43%, 1) !important;
    color: white !important;

    &:hover {
        background-color: hsla(350, 80%, 37%, 1) !important;
    }
}

.btn__green {
    background-color: hsla(143, 100%, 26%, 1) !important;
    color: white !important;

    &:hover {
        background-color: hsla(143, 100%, 20%, 1) !important;
    }
}

.btn__grey {
    background-color: hsl(0, 0%, 34%) !important;
    color: white !important;

    &:hover {
        background-color: hsl(0, 0%, 28%) !important;
    }
}

.toolbar {
    .btn-toolbar {
        gap: .5rem;
    }
}

.esub-columns-container,
.columns-container {
    margin-top: 1rem;
}

.esub-columns {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;

    &.esub-columns__smallgap {
        gap: .5rem;
    }

    &.esub-columns__left {
        justify-content: flex-start;
    }

    &.esub-columns__valign-start {
        align-items: flex-start;
    }
}

.esub-rows {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    justify-content: center;
    align-items: center;

    &.esub-rows__smallgap {
        gap: .5rem;
    }

    &.esub-rows__left {
        justify-content: flex-start;
    }

    &.esub-rows__valign-start {
        align-items: flex-start;
    }
}

.esub-nogap {
    gap: 0;
}

.esub-gap {
    gap: 2rem;
}

.esub-gap__small {
    gap: .5rem;
}

.esub-gap__huge {
    gap: 4rem;
}

.esub-wrap {
    flex-wrap: wrap;
}

.esub-spacecontent {
    justify-content: space-between !important;
}

.esub-text-red {
    color: var(--color-red) !important;
}

.esub-text-strong {
    font-weight: 700;
}

.esub-text-small {
    font-size: .8rem;
}

.esub-pagetitle {
    color: #000;
    font-size: 2rem;
    font-weight: 700;
    line-height: 2.75rem;
    margin-top: 0;
    margin-bottom: 1rem;
}

.esub-pagesubtitle {
    color: var(--color-red);
    font-size: 1.25rem;
    line-height: 1.688rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.joomla-dialog-header {
    display: flex;
    justify-content: space-between;
}

.joomla-dialog-body {
    margin-top: 1rem;
}

.loading-indicator {
    width: 100%;
    text-align: center;
    padding: 20px 0;
}

.spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--color-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

hr.esub-hr {
    border-top: 1px solid var(--color-border);
    width: 100% !important;
    margin: 0 !important
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}