/* «أضف إلى مكتبتي» on the book page: outlined version of the blue .v-btn.
   The outline is an inset shadow: the theme's button.btn:not(...) rule removes borders. */
.reading-status {
    position: relative;
    margin-bottom: 20px;
}

.btn.reading-status-toggle {
    position: relative;
    display: block;
    width: 100%;
    margin-bottom: 20px;
    padding: 13.4px 32px;
    border: 0;
    border-radius: 2px;
    background: #fff;
    color: #3799ef;
    font-size: 16px;
    font-weight: bold;
    line-height: 1.3;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: inset 0 0 0 1px #3799ef;
}

.reading-status .btn.reading-status-toggle {
    margin-bottom: 0;
}

.btn.reading-status-toggle:hover,
.btn.reading-status-toggle:focus,
.reading-status-toggle[aria-expanded="true"] {
    background: #eef6fe;
    color: #065296;
    text-decoration: none;
}

.btn.reading-status-toggle:focus-visible,
.reading-status-menu button:focus-visible,
.reading-status-menu a:focus-visible {
    outline: 2px solid #065296;
    outline-offset: 2px;
}

/* The theme removes link outlines (a { outline: none !important }); the guest button is a link */
.btn.reading-status-toggle:focus-visible {
    outline: 2px solid #065296 !important;
}

/* Inside list cards the theme greys every span (.search-item-content span) */
.reading-status-toggle .reading-status-label,
.reading-status-menu span {
    color: inherit;
}

/* Book detail page and «مكتبتي» cards: label 2px smaller than the button's 16px (default and saved status) */
.article-body-wrap .reading-status-toggle .reading-status-label,
.library-item-status .reading-status-toggle .reading-status-label {
    font-size: 14px;
}

.reading-status-toggle[aria-busy="true"] {
    opacity: .65;
    cursor: progress;
}

/* Books icon (streamline icon-books-3) at the start (right in RTL), chevron at the end */
.reading-status-toggle .reading-status-icon,
.reading-status-toggle .reading-status-caret {
    position: absolute;
    top: 50%;
    margin-top: -.5em;
    line-height: 1;
}

.reading-status-toggle .reading-status-icon {
    right: 12px;
    font-size: 20px;
    margin-top: -10px;
}

.reading-status-toggle .reading-status-caret {
    left: 14px;
    font-size: 20px;
    margin-top: -10px;
}

.reading-status-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 1000;
    margin: 4px 0 0;
    padding: 4px 0;
    list-style: none;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .15);
    border-radius: 2px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
    text-align: right;
    max-height: 70vh;
    overflow-y: auto;
}

.reading-status-menu[hidden] {
    display: none;
}

.reading-status.open-up .reading-status-menu {
    top: auto;
    bottom: 100%;
    margin: 0 0 4px;
}

.reading-status-menu li {
    margin: 0;
    padding: 0;
}

.reading-status-menu button,
.reading-status-menu a {
    display: block;
    width: 100%;
    padding: 9px 36px 9px 14px;
    position: relative;
    border: 0;
    background: transparent;
    color: #333;
    font-size: 15px;
    line-height: 1.4;
    text-align: right;
}

.reading-status-menu button:hover,
.reading-status-menu button:focus,
.reading-status-menu a:hover,
.reading-status-menu a:focus {
    background: #eef6fe;
    color: #065296;
    text-decoration: none;
}

.reading-status-menu a .fa {
    position: absolute;
    right: 12px;
    top: 50%;
    margin-top: -.5em;
    line-height: 1;
    color: #3799ef;
}

.reading-status-menu .reading-status-check {
    position: absolute;
    right: 12px;
    top: 50%;
    margin-top: -.5em;
    line-height: 1;
    color: #3799ef;
    visibility: hidden;
}

.reading-status-menu [aria-checked="true"] {
    font-weight: bold;
    color: #065296;
}

.reading-status-menu [aria-checked="true"] .reading-status-check {
    visibility: visible;
}

.reading-status-divider {
    height: 1px;
    margin: 4px 0 !important;
    background: #e5e5e5;
}

.reading-status-divider[hidden],
.reading-status-remove[hidden] {
    display: none;
}

.reading-status-remove button,
.reading-status-remove button:hover,
.reading-status-remove button:focus {
    color: #b92d2d;
}

.reading-status-remove .fa {
    position: absolute;
    right: 13px;
    top: 50%;
    margin-top: -.5em;
    line-height: 1;
}
