.profile {
    background: #FFF;
    padding: 1em;
}

aside.profile__tabs, .tab__list {
    display: flex;
    gap: 1em;
    align-items: center;
}

aside.profile__tabs {
    padding: 1em 0;
    justify-content: space-between;
}

.tab__item, a.profile__exit {
    position: relative;
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: .5em;
    min-width: 4em;
    cursor: pointer;
    transition: .3s;
}

.tab__item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.tab__item i, a.profile__exit i {
    font-size: 1.1em;
}

.tab__item.active {
    cursor: default;
}

.tab__item.active i {
    color: var(--default-color);
}

a.profile__exit i {
    color: var(--danger-color);
}

a.profile__exit:hover i {
    color: var(--danger-color-hover);
}

a.profile__exit span {
    color: #2A2A2A;
}

.tab__content {
    display: none;
}

.tab__content.active {
    display: block;
    padding: 1em 0;
}

.profile__orders {
    display: flex;
    flex-direction: column;
}

.profile__orders-item {
    border-bottom: 1px solid var(--light-black);
    padding: 1em 0;
    position: relative;
    display: grid;
    grid-template-columns: repeat(11, 1fr);
    align-items: center;
    transition: .3s;
}

.profile__orders-item:hover {
    background: #F1F2F9;
    border-bottom: 1px solid #F1F2F9;
}

.profile__orders-item:last-child {
    border: 0;
}

.profile__number {
    font-size: 1.5em;
    line-height: 2em;
    color: rgba(0, 0, 0, .45);
    grid-row: 1 / 3;
    grid-column: 1 / 4;
    transition: .3s;
}

.profile__orders-item:hover .profile__number {
    color: var(--default-color);
}

.profile__name {
    grid-row: 1;
    grid-column: 4 / 12;
}

.order--status {
    grid-row: 2;
    grid-column: 4 / 12;
    color: var(--info-color);
}

.status--S, .status--P {
    color: var(--primary-color);
}

.status--Y, .status--D {
    color: var(--success-color);
}

.status--B, .status--N {
    color: var(--danger-color);
}

.status--O {
    color: var(--gray-color);
}

.orders {
    padding: 2em 0;
}

.orders__box {
    position: relative;
    background: #FFF;
    border: 1px solid var(--light-black);
    border-radius: .4em;
    padding: 1em;
}

.orders__list {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.orders__list-item {
    display: flex;
    gap: 1em;
    padding-bottom: 1em;
    border-bottom: 1px solid var(--light-black);
}

.orders__list-item:last-child {
    border-bottom: 0;
    padding: 0;
}

.orders__list-photo {
    width: 4em;
}

.orders__list-photo img {
    border-radius: .4em;
    width: 4em;
    height: 4em;
    object-fit: cover;
}

.orders__list-caption a {
    color: var(--default-color);
    transition: .3s;
    display: block;
}

.orders__list-caption a:hover {
    color: var(--default-color-hover);
}

.orders__list-caption span {
    color: rgba(0, 0, 0, .6);
    display: block;
    padding-top: .35em;
}

.orders__list-photo .empty--image i {
    font-size: 1em;
}

.orders__list-photo .empty--image {
    height: 4em;
}

.orders__column {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.orders__column-item {
    display: flex;
    flex-direction: column;
    gap: .25em;
    position: relative;
}

.orders__column-item span {
    font-size: .875em;
    color: rgba(0, 0, 0, .5);
}

.orders__column-link {
    position: absolute;
    right: 1em;
    top: 1.5em;
    background: var(--default-color);
    color: #FFF;
    padding: .75em 2em;
    border-radius: .4em;
    cursor: pointer;
    transition: .3s;
}

.orders__column-link:hover {
    background: var(--default-color-hover);
}

section.c-vendor__header {
    background: url(/modules/profile/images/market.webp) center right no-repeat;
    background-size: cover;
    padding: 5em 1em;
}

section.c-vendor__header h1 {
    color: #FFF;
    background: rgba(0, 0, 0, .75);
    padding: 1em;
    border-radius: .4em;
    text-align: center;
    font-size: 1.5em;
}

section.c-vendor__section {
    padding: 2em;
    background: #FFF;
    border-bottom: 1px solid var(--light-black);
}

ul.c-vendor__list {
    display: flex;
    flex-direction: column;
    gap: .75em;
}

ul.c-vendor__list strong {
    font-weight: bold;
    display: block;
}

a.c-vendor__anchor {
    display: inline-block;
    padding: .75em 2em;
    background: var(--default-color);
    color: #FFF;
    border-radius: .4em;
    margin-top: 1em;
    transition: .3s;
}

a.c-vendor__anchor:hover {
    background: var(--default-color-hover);
}

ul.c-vendor__list ol {
    margin: 1em 0;
    display: flex;
    flex-direction: column;
    gap: .5em;
}

ul.c-vendor__list span {
    display: block;
    padding-top: .35em;
    color: rgba(0, 0, 0, .6);
}


@media (min-width: 768px) {
    .tab__item, a.profile__exit {
        flex-direction: row;
    }

    .profile__number {
        grid-column: 1;
        grid-row: 1;
        padding-left: 1em;
    }

    .profile__name {
        grid-column: 2 / 9;
    }

    .order--status {
        grid-row: 1;
        grid-column: 10 / 12;
        text-align: right;
        background: var(--info-color);
        color: #FFF;
        width: fit-content;
        padding: .25em .5em;
        border-radius: .4em;
    }

    .status--S, .status--P {
        background: var(--primary-color);
        color: #FFF;
    }

    .status--Y, .status--D {
        background: var(--success-color);
        color: #FFF;
    }

    .status--B, .status--N {
        background: var(--danger-color);
        color: #FFF;
    }

    .status--O {
        background: var(--gray-color);
        color: #2A2A2A;
    }

    section.c-vendor__header h1 {
        background: rgba(0, 0, 0, 0);
        width: 40%;
        text-align: left;
        line-height: 1.5em;
    }
}

@media (min-width: 1024px) {
    .profile {
        border-radius: 1em;
        max-width: 75em;
        margin: 1em;
    }

    .profile__header h1 {
        margin: 0;
    }

    .profile {
        padding: 2em;
    }

    section.c-vendor__header h1 {
        font-size: 1.7em;
    }
}

@media (min-width: 1275px) {
    .profile {
        border-radius: 1em;
        max-width: 75em;
        margin: 2em auto;
    }
}