/* Wrapper for alignment */
.eba-bookmark-wrapper {
    display: inline-block;
}

/* Style for the Bookmark Button */
.eba-bookmark-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px 15px;
    border: 1px solid #ccc;
    cursor: pointer;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: inherit;
    line-height: 1;
    text-decoration: none;
    border-radius: 3px;
}

/* Icon styles */
.eba-bookmark-btn .eba-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.eba-bookmark-btn .eba-icon i,
.eba-bookmark-btn .eba-icon svg {
    display: inline-block;
    vertical-align: middle;
}

/* Icon color support for SVG */
.eba-bookmark-btn .eba-icon svg {
    transition: fill 0.3s ease;
}

.eba-bookmark-btn .eba-icon i {
    transition: color 0.3s ease;
}

.eba-bookmark-btn .eba-icon-before {
    margin-right: 5px;
}

.eba-bookmark-btn .eba-icon-after {
    margin-left: 5px;
}

/* Icon states - show/hide based on bookmark status */
.eba-bookmark-btn.eba-not-bookmarked .eba-icon-bookmarked,
.eba-bookmark-btn.eba-bookmarked .eba-icon-normal {
    display: none !important;
}

.eba-bookmark-btn.eba-not-bookmarked .eba-icon-normal,
.eba-bookmark-btn.eba-bookmarked .eba-icon-bookmarked {
    display: inline-flex !important;
}

/* Text styles */
.eba-bookmark-btn .eba-text {
    display: inline-block;
}

/* Style when the post is bookmarked (saved) */
.eba-bookmark-btn.eba-bookmarked {
    background-color: #0073aa;
    color: white;
    border-color: #005177;
}

/* Hover effect */
.eba-bookmark-btn:hover:not([disabled]) {
    opacity: 0.8;
    transform: translateY(-1px);
}

/* Disabled state when user is not logged in or during AJAX */
.eba-bookmark-btn[disabled] {
    cursor: not-allowed;
    opacity: 0.5;
}

.eba-bookmark-btn.eba-loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Login notice */
.eba-login-notice {
    font-size: 0.85em;
    color: #a00;
    margin-top: 5px;
    margin-bottom: 0;
}

/* Message for non-singular pages */
.eba-bookmark-message {
    padding: 10px;
    background-color: #f0f0f0;
    border-left: 3px solid #0073aa;
    color: #333;
}