/* Vertical Alignment */
.ytea-v-align-top {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.ytea-v-align-middle {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ytea-v-align-bottom {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Button */
.ytea-btn {
    display: inline-block;
    font-weight: 400;
    color: #fff;
    background-color: #562dd4;
    text-align: center;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

@media (prefers-reduced-motion: reduce) {
    .ytea-btn {
        transition: none;
    }
}

.ytea-btn:hover {
    color: #fff;
    text-decoration: none;
}

.ytea-btn:focus,
.ytea-btn.focus {
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Button Sizes */
.ytea-btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 0.2rem;
}

.ytea-btn-md {
    font-size: 1rem;
    line-height: 1.6;
    border-radius: 0.4rem;
}

.ytea-btn-lg {
    padding: 0.5rem 1rem;
    font-size: 1.25rem;
    line-height: 1.5;
    border-radius: 0.3rem;
}

/* Button Types */
.ytea-btn-primary {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}

.ytea-btn-primary:hover {
    color: #fff;
    background-color: #0069d9;
    border-color: #0062cc;
}

.ytea-btn-primary:focus,
.ytea-btn-primary.focus {
    box-shadow: 0 0 0 0.2rem rgba(38, 143, 255, 0.5);
}

.ytea-btn-primary.disabled,
.ytea-btn-primary:disabled {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}

.ytea-btn-primary:not(:disabled):not(.disabled):active,
.ytea-btn-primary:not(:disabled):not(.disabled).active {
    color: #fff;
    background-color: #0062cc;
    border-color: #005cbf;
}

.ytea-btn-primary:not(:disabled):not(.disabled):active:focus {
    box-shadow: 0 0 0 0.2rem rgba(38, 143, 255, 0.5);
}

.ytea-btn-secondary {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}

.ytea-btn-secondary:hover {
    color: #fff;
    background-color: #5a6268;
    border-color: #545b62;
}

.ytea-btn-secondary:focus,
.ytea-btn-secondary.focus {
    box-shadow: 0 0 0 0.2rem rgba(130, 138, 145, 0.5);
}

.ytea-btn-secondary.disabled,
.ytea-btn-secondary:disabled {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}

.ytea-btn-secondary:not(:disabled):not(.disabled):active,
.ytea-btn-secondary:not(:disabled):not(.disabled).active {
    color: #fff;
    background-color: #545b62;
    border-color: #4e555b;
}

.ytea-btn-secondary:not(:disabled):not(.disabled):active:focus,
.ytea-btn-secondary:not(:disabled):not(.disabled).active:focus {
    box-shadow: 0 0 0 0.2rem rgba(130, 138, 145, 0.5);
}

.ytea-btn-success {
    color: #fff;
    background-color: #28a745;
    border-color: #28a745;
}

.ytea-btn-success:hover {
    color: #fff;
    background-color: #218838;
    border-color: #1e7e34;
}

.ytea-btn-success:focus,
.ytea-btn-success.focus {
    box-shadow: 0 0 0 0.2rem rgba(72, 180, 97, 0.5);
}

.ytea-btn-success.disabled,
.ytea-btn-success:disabled {
    color: #fff;
    background-color: #28a745;
    border-color: #28a745;
}

.ytea-btn-success:not(:disabled):not(.disabled):active,
.ytea-btn-success:not(:disabled):not(.disabled).active {
    color: #fff;
    background-color: #1e7e34;
    border-color: #1c7430;
}

.ytea-btn-success:not(:disabled):not(.disabled):active:focus,
.ytea-btn-success:not(:disabled):not(.disabled).active:focus {
    box-shadow: 0 0 0 0.2rem rgba(72, 180, 97, 0.5);
}

.ytea-btn-info {
    color: #fff;
    background-color: #17a2b8;
    border-color: #17a2b8;
}

.ytea-btn-info:hover {
    color: #fff;
    background-color: #138496;
    border-color: #117a8b;
}

.ytea-btn-info:focus,
.ytea-btn-info.focus {
    box-shadow: 0 0 0 0.2rem rgba(58, 176, 195, 0.5);
}

.ytea-btn-info.disabled,
.ytea-btn-info:disabled {
    color: #fff;
    background-color: #17a2b8;
    border-color: #17a2b8;
}

.ytea-btn-info:not(:disabled):not(.disabled):active,
.ytea-btn-info:not(:disabled):not(.disabled).active {
    color: #fff;
    background-color: #117a8b;
    border-color: #10707f;
}

.ytea-btn-info:not(:disabled):not(.disabled):active:focus,
.ytea-btn-info:not(:disabled):not(.disabled).active:focus {
    box-shadow: 0 0 0 0.2rem rgba(58, 176, 195, 0.5);
}

.ytea-btn-warning {
    color: #212529;
    background-color: #ffc107;
    border-color: #ffc107;
}

.ytea-btn-warning:hover {
    color: #212529;
    background-color: #e0a800;
    border-color: #d39e00;
}

.ytea-btn-warning:focus,
.ytea-btn-warning.focus {
    box-shadow: 0 0 0 0.2rem rgba(222, 170, 12, 0.5);
}

.ytea-btn-warning.disabled,
.ytea-btn-warning:disabled {
    color: #212529;
    background-color: #ffc107;
    border-color: #ffc107;
}

.ytea-btn-warning:not(:disabled):not(.disabled):active,
.ytea-btn-warning:not(:disabled):not(.disabled).active {
    color: #212529;
    background-color: #d39e00;
    border-color: #c69500;
}

.ytea-btn-warning:not(:disabled):not(.disabled):active:focus {
    box-shadow: 0 0 0 0.2rem rgba(222, 170, 12, 0.5);
}

.ytea-btn-danger {
    color: #fff;
    background-color: #dc3545;
    border-color: #dc3545;
}

.ytea-btn-danger:hover {
    color: #fff;
    background-color: #c82333;
    border-color: #bd2130;
}

.ytea-btn-danger:focus,
.ytea-btn-danger.focus {
    box-shadow: 0 0 0 0.2rem rgba(225, 83, 97, 0.5);
}

.ytea-btn-danger.disabled,
.ytea-btn-danger:disabled {
    color: #fff;
    background-color: #dc3545;
    border-color: #dc3545;
}

.ytea-btn-danger:not(:disabled):not(.disabled):active {
    color: #fff;
    background-color: #bd2130;
    border-color: #b21f2d;
}

.ytea-btn-danger:not(:disabled):not(.disabled):active:focus {
    box-shadow: 0 0 0 0.2rem rgba(225, 83, 97, 0.5);
}