﻿.stable-box-actions > .scroll-container {
    flex: 0 0 auto;
}

    .stable-box-actions > .scroll-container + .scroll-container {
        margin-top: 6px;
    }

#stable-page {
    width: 80% !important;
    gap: 24px;
    display: grid;
    padding: 3em;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    grid-auto-rows: 260px;
}

.stable-container-shadow {
    border-radius: var(--app-radius);
    padding: var(--app-radius);
    text-align: center;
    border: 1px solid var(--border-color);
    overflow-wrap: break-word;
}

.stable-box-shadow {
    padding: 10px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border-color);
    overflow-wrap: break-word;
}

.stable-object__name {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
}

.stable-horse-box {
    margin-left: auto;
    margin-right: auto;
    width: 100% !important;
    max-width: 200px;
    height: 240px;
    box-sizing: border-box;
    text-decoration: none;
    color: black;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

    .stable-horse-box:hover {
        color: inherit;
        text-decoration: none;
    }

.stable-box-content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    min-width: 0;
}

.stable-box-actions {
    flex: 1 1 auto;
    min-height: 0;
    min-width: 0;
    overflow-y: hidden;
    overflow-x: hidden;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
}

    .stable-box-actions::-webkit-scrollbar {
        width: 5px;
    }

    .stable-box-actions::-webkit-scrollbar-track {
        background: transparent;
    }

    .stable-box-actions::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.25);
        border-radius: 10px;
    }

.stable-box-footer {
    position: absolute !important;
    left: 0;
    bottom: 2%;
    width: 100% !important;
    text-align: center !important;
    padding: 0;
    flex: 0 0 auto;
    min-width: 0;
    opacity: 0.25;
}

.stable-owner-row {
    height: 30px;
    min-height: 30px;
    flex: 0 0 30px;
    margin-top: -10px;
    box-sizing: border-box;
    overflow: hidden;
}

    .stable-owner-row .scroll-text {
        min-width: 0;
    }

.stable-image-text {
    height: 55px;
    min-height: 55px;
    flex: 0 0 55px;
    margin: 10px -10px 10px 0;
    box-sizing: border-box;
    overflow: hidden;
}

    .stable-image-text .scroll-text {
        min-width: 0;
    }

.stable-square-image {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 var(--size);
    width: var(--size);
    height: var(--size);
    min-width: var(--size);
    min-height: var(--size);
    margin-left: -10px;
    margin-right: -5px;
    overflow: hidden;
}

    .stable-square-image img {
        display: block;
        width: 80%;
        height: 80%;
        max-width: 80%;
        max-height: 80%;
        object-fit: contain;
    }

.stable-square-image--s {
    --size: 35px;
}

.stable-square-image--m {
    --size: 45px;
}

.stable-square-image--l {
    --size: 60px;
}

.mobile-layout {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

    .mobile-layout body {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    .mobile-layout #stable-container {
        display: block;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        zoom: 100% !important;
        transform: none !important;
        transform-origin: center top !important;
        box-sizing: border-box;
    }

    .mobile-layout #stable-page {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 16px !important;
        box-sizing: border-box;
    }

        .mobile-layout #stable-page > .stable-horse-box {
            flex: 0 0 240px;
            width: 100% !important;
            max-width: 200px;
            height: 240px;
            margin-left: auto;
            margin-right: auto;
            grid-row: auto !important;
            grid-column: auto !important;
        }

            .mobile-layout #stable-page > .stable-horse-box + .stable-horse-box {
                margin-top: 10px;
            }

    .mobile-layout .stable-container-shadow {
        grid-row: auto !important;
        grid-column: auto !important;
        border-radius: 16px;
        margin-left: auto;
        margin-right: auto;
    }

    .mobile-layout .stable-horse-box {
        overflow: hidden;
    }

    .mobile-layout .stable-box-actions {
        overflow-y: hidden;
        overflow-x: hidden;
    }
