#profile{
  margin-bottom: 10px;
}

#profile-public{
  margin-top: 30px;
  margin-bottom: 25px;
}

#avatar-preview{
    display: inline-block;
    width: 60px;
    height: 60px;
    background-size: cover;
    background-position: center;
    background-color: #f2f2f2;
    margin-left: 10px;
    margin-right: 10px;
    margin-top: 10px;
}

.profile-avatar-cont {
    position: relative;
    display: inline-block;
    height: 106px;
    vertical-align: middle;
    margin-right: 43px;
}

/***************/

.profile-settings {
    font-family: 'Noto Sans', sans-serif;
    font-family: var(--content-font-family), sans-serif;
    line-height: normal;
}

.profile h2 {
    font-family: 'Montserrat', sans-serif;
    font-family: var(--headings-font-family), sans-serif;
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    line-height: normal;
    padding: 0;
    margin-bottom: 20px;
}

.profile-settings hr {
    width: 100%;
    height: 1px;
    background-color: #D3D3D3;
    margin-top: 30px;
    margin-bottom: 30px;
}

/*.profile-settings h2 {
    font-family: 'Montserrat', sans-serif;
    font-family: var(--headings-font-family), sans-serif;
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    line-height: normal;
    padding: 0;
    margin-bottom: 20px;
}*/

.profile-settings-form {
    width: 450px;
    margin: 0 auto;
}

.profile-settings-form .form-row {
    margin-bottom: 11px;
}

.profile-settings-form .form-row-center {
    text-align: center;
}

.profile-settings-form label {
    display: inline-block;
    width: 123px;
    line-height: 18px;
    vertical-align: middle;
}

.profile-settings-form label.for-checkbox {
    cursor: pointer;
}

.profile-settings-form label.wide {
    width: auto;
}

.profile-settings-form .mk-input-validation {
    vertical-align: middle;
}

.profile-settings-form input[type=text],
.profile-settings-form input[type=password],
.profile-settings-form input[type=email] {
    padding: 0 10px;
    height: 37px;
    width: 323px;
    border: 1px solid #D3D3D3;
    border-radius: 4px;
    font-size: 13px;
    color: black;
    box-sizing: border-box;
    vertical-align: middle;
}

.profile-settings-form input[type=checkbox] {
    cursor: pointer;
    vertical-align: middle;
    margin-right: 8px;
    width: 19px;
    height: 19px;
}

.profile-settings-form .note {
    display: block;
    color: #8A8A8A;
    margin-top: 5px;
}

.profile-settings-form .no-label {
    margin-left: 127px;
}

.profile-settings-form .form-submit {
    width: 176px;
    height: 45px;
    box-sizing: border-box;
    margin-top: 20px;
    margin-right: 0;
    margin-bottom: 40px;
}

.avatar-container {
    margin-top: 20px;
    margin-bottom: 10px;
}

.avatar-container input#avatar-input {
    display: none;
}

.avatar-container .avatar-upload {
    width: auto;
    color: #2C2C2C;
    background-color: white;
    border-radius: 4px;
    padding: 8px 15px;
}

.avatar-container .avatar-right-box {
    display: inline-block;
    width: 323px;
    vertical-align: middle;
}

.profile-favorites #product_list,
.profile-watchlist #product_list {
    margin-top: 20px;
}

.profile-favorites .center,
.profile-watchlist .center,
.profile-reviews .center {
    font-size: 16px;
    text-align: center;
    line-height: normal;
}

.profile-reviews #reviews-cont {
    margin-left: 30px;
}

.profile-reviews .review-book-cont {
    position: relative;
    width: 80px;
    margin-top: 5px;
    margin-right: 28px;
}

.profile-reviews .review-book-cont a {
    display: inline-block;
    text-align: left;
    width: 80px;
    height: 106px;
}

.profile-reviews .review-book-cont img {
    max-width: 80px;
    max-height: 106px;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.16);
}

.profile-reviews #reviews-header {
    position: relative;
    height: 20px;
    line-height: 20px;
    margin-bottom: 12px;
}

.profile-reviews #reviews-select-cont {
    position: absolute;
    right: 0;
}

.profile-reviews .review-body {
    min-height: 52px;
}

.profile-library h2 {
    white-space: nowrap;
    position: relative;
    overflow-x: hidden;
    font-family: 'Noto Sans', sans-serif;
    font-family: var(--content-font-family), sans-serif;
    font-size: 19px;
    text-align: left;
}

.profile-library .horizontal-line {
    background-color: #D3D3D3;
    margin-left: 34px;
    display: inline-block;
    height: 1px;
    width: 100%;
}

.profile-library .product-covers {
    text-align: center;
    font-size: 0;
}

.profile-library .product-cover {
    display: inline-block;
    width: 93px;
    height: 144px;
    margin-right: 26px;
    margin-bottom: 26px;
    vertical-align: bottom;
    text-align: center;
}

.profile-library .product-cover:last-child {
    margin-right: 0;
}

.profile-library .product-cover a {
    position: relative;
    display: inline-block;
    text-align: center;
}

.profile-library .product-cover img {
    width: 93px;
    height: 144px;

    object-fit: contain;
    object-position: bottom;
    filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.16));
}

.profile-library .product-covers .covers-footer {
    font-size: 14px;
    height: 35px;
    line-height: 35px;
    margin-bottom: 15px;
}

.profile-library .btn-more,
.profile-book-library .btn-more {
    display: inline-block;
    width: 122px;
    height: 19px;
    line-height: 19px;

    font-size: 14px;
    position: relative;
    color: #2C2C2C;
    font-weight: bold;
    padding: 7px 30px 7px 16px;
    border: 1px solid #D3D3D3;
    border-radius: 5px;
    text-decoration: initial;
}

.profile-library .btn-more::after,
.profile-book-library .btn-more::after {
    content: ' ';
    position: absolute;
    width: 9px;
    height: 13px;
    top: 10px;
    right: 12px;
    background: url('/img/svg/arrow_1_dark_grey.svg') no-repeat 0 0;
    background-size: 9px 13px;
}

.profile-book-library .btn-more::after {
    text-align: center;
    -moz-transform: rotate(90deg);
    -webkit-transform: rotate(90deg);
    -o-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    transform: rotate(90deg);
}

.profile-tags .product-tag-cont {
    display: flex;
    border-bottom: 1px solid #cccccc;
}

.profile-tags .product-tag-cont > div {
    display: flex;
    margin-top: 35px;
    margin-bottom: 15px;

}

.profile-tags .product-tag-right {
    flex-direction: column;
}

.profile-tags .product-tag-img-cont {
    width: 80px;
    display: flex;
    justify-content: center;
}

.profile-tags .product-tag-img {
    max-width: 70px;
    height: 60px;
    display: block;
}

.profile-tags .product-tag-name a {
    font-size: 16px;
    font-weight: bold;
    color: black;
}

.profile-tags .product-tag-tags {
    display: flex;
    margin-top: 5px;
}

.profile-tags .product-tag {
    display: inline-flex;
    position: relative;
    padding: 10px;
    font-weight: bold;
    background-color: rgba(248, 248, 248, 1);
    border-radius: 5px;
    border: 1px solid rgba(210, 210, 210, 1);
    margin: 2px;
    max-width: 200px;
    font-size: 13px;
    line-height: 17px;
}

.profile-tags .product-tag > span {
    font-weight: bold;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.profile-book-library .mk-sort {
    width: 100%;
    text-align: center;
    margin-bottom: 30px;
}

.profile-antiquarian .profile-antiquarian-header {
    display: flex;
    flex-direction: row;
    justify-content: end;
}

.profile-antiquarian .profile-antiquarian-header::before {
    content: '';
    flex: 1;
}

.profile-antiquarian .profile-antiquarian-header > h2 {
    flex: 1;
}

.profile-antiquarian .profile-antiquarian-header > .offer-state-text-select {
    flex: 1;
}

.profile-book-library .products, .profile-antiquarian .products{
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    line-height: normal;
}

.profile-antiquarian .products {
    flex-direction: column;
}

.profile-book-library .product {
    display: flex;
    width: 465px;
    height: 233px;

    border: 1px solid #D3D3D3;
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 30px;
    background-color: #f9f9f9;
}

.profile-antiquarian .product { 
    display: flex;
    width: auto;
    height: auto;
    margin-bottom: 0;
    border-bottom: 1px solid #D3D3D3;
    padding: 12px;
}

.profile-antiquarian .product:nth-child(10n) {
    border-bottom: unset;
}

.profile-antiquarian .product .product-content{
    width: 100%;
    display: flex;
}

.profile-antiquarian .product .product-content .offer_bottom{
    display: flex;

    width: 100%;
}

.profile-antiquarian .product .product-content .offer_state{
    margin-bottom: 10px;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
}

.profile-antiquarian .product .product-content .profit,
.profile-antiquarian .product .product-content .offer_price {
    margin-bottom: 10px;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: end;
}

.product-content .profit,
.product-content .offer_price {
    font-weight: bold;
    font-size: 23px;
    padding-right: 20px;
}

.profile-antiquarian .product .product-content .offer_state_text{
    padding: 3px 5px;
    margin-left: 8px;
    font-size: 17px;
}

.profile-antiquarian .offer-state-text-select {
    text-align: end;
}

.profile-antiquarian .offer-state-text-select select {
    appearance: none;
    /* safari */
    -webkit-appearance: none;
    /* other styles for aesthetics */
    width: auto;
    font-size: 16px;
    line-height: 19px;
    padding: 0.675em 6em 0.675em 1em;
    background-color: #f5f5f5;
    border: 1px solid #caced1;
    border-radius: 3px;
    color: #000;
    cursor: pointer;

    
    /* Custom arrow */
    background-image: url('/themes/mk2/img/arrow_down_black.svg');
    background-repeat: no-repeat;
    background-position: right 1em center; /* Adjusts the position of the arrow to the right */
    background-size: 12px; /* Adjust size of the arrow image as needed */
}

.profile-antiquarian-pagination #dalsiProdukty {
    display: none;
}

/**
state_id_1 - V prodeji
state_id_2 - Prodáno
state_id_3 - Neprodáno
**/
.offer_state_text.state_id_1 {
    border: 1px solid #A8E7A3;
    background-color: #CCFFBA;
    color: rgb(61, 171, 15);
}

.offer_state_text.state_id_2{
    background-color: rgb(61, 171, 15);
    border-color: rgb(61, 171, 15);
    color: white;
}

.offer_state_text.state_id_3{
    border: 1px solid hsl(0, 90%, 80%);
    background: hsl(0, 90%, 90%);
    color: hsl(0, 90%, 44%);
}

.profile-antiquarian .product .offer_dates{
    font-size: 12px;
    color: #666666;
}

.profile-book-library .product .product-image, .profile-antiquarian .products .product-image {
    display: flex;
    align-items: center;
    flex-shrink: 0;

    width: 175px;
    height: 100%;
    margin-right: 12px;
}

.profile-antiquarian .products .product-image {
    width: 80px;
}

.profile-book-library .product .product-image img, .profile-antiquarian .product .product-image img {
    display: inline-block;
    max-width: 175px;
    max-height: 233px;
    vertical-align: bottom;
    line-height: normal;
    box-shadow: 0 9px 8px rgba(0, 0, 0, 0.16);
}

.profile-antiquarian .product .product-image img {
    max-height: 80px;
}

.profile-book-library .product .product-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;

    padding: 12px 0;
}

.profile-antiquarian .product .product-author-name-container {
    width: 50%;
}

.antiq-books-products-header {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.antiq-books-products-header #book-name,
.antiq-books-products-header #state-offer,
.antiq-books-products-header #price,
.antiq-books-products-header #customer-profit {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 10px;
    display: flex;
    width: auto;
    align-items: center;
    justify-content: end;
}

.antiq-books-products-header #book-name {
    width: 300px;
}

.antiq-books-products-header #state-offer {
    width: 200px;
    justify-content: center;
}

.antiq-books-products-header #customer-profit {
    padding-right: 10px;
}

.profile-book-library .product .product-name, .profile-antiquarian .product .product-name {
    font-size: 18px;
    font-weight: bold;

    max-height: 140px;
    overflow: hidden;
}

.profile-book-library .product .product-author {
    color: #737373;
}

.profile-book-library .product .product-bottom {

}

.profile-book-library-download-tippy .title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 12px;
}

.profile-book-library-download-tippy .format-list {
    font-size: 16px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.profile-book-library-download-tippy .format-list .mk-btn {
    padding: 9px 15px;
    text-align: center;
    margin: 5px;
}

.profile-book-library-download-tippy .format-list .mk-btn:hover {
    text-decoration: underline;
}

.profile-book-library .download-loader{
    vertical-align: middle;
    width: 38px;
    height: 38px;
    display: none;
}

.profile-book-library .download-loader.active{
    display: inline-block;
}

.profile-book-library .download-loader-text{
    vertical-align: middle;
}

@media screen and (min-width: 1281px) {

    .profile-library .product-cover:nth-child(9n + 9) {
        margin-right: 0;
    }

}

@media screen and (max-width: 1280px) {

    .profile-library .product-cover:nth-child(6n + 6) {
        margin-right: 0;
    }

    .profile-reviews #reviews-cont {
        margin-left: 0;
    }

    .profile-reviews .review-book-cont {
        margin-right: 20px;
    }

    .profile-menu-wrapper .mk-sort li a {
        border: 1px solid #D3D3D3;
        border-left: none;
        padding: 10px 10px;
        font-size: 14px;
    }

    .profile-menu-wrapper .mk-sort li:first-child a,  .profile-menu-wrapper .mk-sort li:last-child a{
        border-left: 1px solid #D3D3D3;
    }


    .profile-menu-wrapper .mk-sort li.selected a {
        border-color: #108A00;
    }

    .antiq-books-products-header #book-name {
        width: 200px;
    }
    
    .antiq-books-products-header #state-offer {
        width: 150px;
        justify-content: end;
    }

}

@media screen and (max-width: 450px) {

}

.profile .info.link a{
    color: #727272;
    text-decoration: underline;
}