

.loading {
  position: relative;
  opacity: 0.25;
  padding-left: 2.618em;
}
.loading::after {
  font-family: WooCommerce;
  content: "\e01c";
  vertical-align: top;
  font-weight: 400;
  position: absolute;
  top: 0.4em;
  left: 0.75em;
  animation: spin 2s linear infinite;
}

.profile-cover {
    position: relative;
    display: flex;
    align-items: end;
    background-color: #1e1e1e;
    color: white;
    height: 200px;
    
    overflow: hidden;
    z-index: unset;
    width: 100%;
    background-size: cover !important;
    background-position: center !important;
}

.profile-cover:before {
    content: "";
    background: linear-gradient(180deg, rgba(0, 152, 133, 1) 0%, rgba(0, 140, 174, 0) 100%);
    width: 160%;
    height: 80%;
    position: absolute;
    top: -210px;
    left: -100px;
    opacity: 50%;
    transform: rotate(-10deg);
}
.profile-cover:after {
    content: "";
    background: url(../images/shape-hero.png);
    background-size: 100% 100%;
    width: 600px;
    height: 550px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: .05;
}

.profile-cover .inner {
    width: 100%;
}
.profile-headline{
    width: 100%;
    margin-inline-start: 400px;
}
.profile-headline p.bio{
    line-height: 25px;
    max-height: 50px;
    overflow: hidden;
    margin-bottom: 20px;
}
.profile-page .profile-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: auto;
}
.profile-sidebar {
    margin-top: -140px;
    margin-bottom: 50px;
    width: 310px;
}

.profile-sidebar-card {
    position: relative;
    border: solid 1px #1e1e1e1f;
    border-radius: 15px;
    overflow: hidden;
    padding: 10px;
    text-align: center;
    height: fit-content;
    background-color: white;
    margin-bottom: 30px;
}

.profile-sidebar p.joined{
    color: #0000006b;
}
.profile-avatar-container{
    position: relative;
    width: 200px;
    height: 200px;
    margin: 20px auto;
    border-radius: 50%;
    overflow: hidden;
    display: block;
    box-shadow: 0 0 40px rgb(123 123 123 / 7%);
    border: solid 1px #0000000f;
}
.profile-avatar {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    background-color: white;
}

.profile-avatar-container.editable{
    cursor: pointer;
}
.profile-avatar-container.editable .profile-avatar{
    transition: all ease-in-out 0.2s;
}

.profile-avatar-container.editable:hover .profile-avatar{
    filter: brightness(0.9);
}

.profile-avatar-container.editable:hover .edit-avatar-caption{
    bottom: 0;
}

.profile-avatar-container.editable .edit-avatar-caption{
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    left: 0;
    bottom: -40px;
    width: 100%;
    height: 30px;
    background-color: var(--primary-black);
    opacity: 0.7;
    color: #ffffff;
    box-shadow: 0 0 35px #ffffff38;
    transition: all ease-in-out 0.3s;
}

table.profile-table-secondary {
    width: 100%;
    text-align: start;
    padding: 10px 0;
    border-collapse: separate !important;
    border: none;
}
table.profile-table-secondary th, table.profile-table-secondary td {
    padding: 5px 0px;
    font-weight: 400;
    color: gray;
}
table.profile-table-secondary th {
    padding: 5px 0px;
    font-weight: 400;
    color: var(--primary-black);
}
.profile-page main {
    flex: 1;
    padding: 40px 30px;
}
.profile-tabs {
    border-bottom: solid 1px #dddddd1c;
    padding: 0 10px;
}
.profile-tab {
    display: none;
    padding: 15px 0;
}

.profile-tab.active {
    display: block;
}

a.profile-tab-btn {
    display: inline-block;
    line-height: 40px;
    padding: 10px;
    color: var(--primary-black);
    font-weight: 500;
    font-size: 20px;
    border-bottom: solid 3px;
    border-color: transparent;
    transform: translateY(2px);
    transition: all ease-in-out 0.2s;
}
a.profile-tab-btn.active {
    color: var(--primary-yellow);
    border-color: var(--primary-yellow);
}

.profile-tab h2 {
    font-size: 19px;
    line-height: unset;
    margin: 30px 5px 10px 5px;
}

.profile-table{
    width: 100%;
    padding: 10px 20px 5px 20px;
    border: solid 1px #a3a3a329;
    border-radius: 10px;
    border-collapse: separate !important;
    border-spacing: 0;
    font-weight: 400;
}
.profile-table td, .profile-table th {
    position: relative;
    font-weight: 400;
    padding: 10px 0;
    border-bottom: solid 1px  #dddddd0d;
    color: gray;
}
.profile-table tr:last-child td, .profile-table tr:last-child th{
    border-bottom: 0;
}
.profile-table th {
    width: 30%;
    color: var(--primary-black);
    vertical-align: top;
}

a.user-edit-btn {
    position: absolute;
    right: 0;
}

.profile-table .btn-site {
    margin: 0;
}

@media screen and (max-width: 800px){
    .profile-cover{
        display: none;
    }
    .profile-sidebar {
        width: 100%;
        margin-top: 40px;
    }
    .profile-page main {
        padding: 40px 0;
    }

    .profile-tabs {
        display: flex;
        flex-wrap: wrap;
        padding-bottom: 10px;
    }

    a.profile-tab-btn {
        border: solid 1px #dddddd1a;
        margin: 5px;
        border-radius: 9px;
        width: calc(50% - 10px);
        display: flex;
        align-items: center;
    }
    
    a.profile-tab-btn.full-width {
        width: 100%;
    }
}


.update-profile-tab textarea,
.update-profile-tab input{
    width: 100%;
    max-width: 300px;
    padding: 10px;
    margin-bottom: 10px;
    background-color: #f6f6f6;
    border-radius: 4px;
}

.update-profile-tab .profile-table p{
    margin: 0;
    padding: 0 10px;
    font-size: 14px;
}


@media screen and (max-width: 800px){
    .update-profile-tab .profile-table td, .update-profile-tab .profile-table th{
        display: block;
        width: 100%;
        padding: 5px;
        border: 0;
    }
    .update-profile-tab .profile-table th{
        padding: 5px;
    }
}