.invalid-feedback{
    display: block !important;
    font-size: .75em !important;
    font-weight: 600 !important;
}

button.request-another-btn {
    border: 0;
    border-radius: 8px;
    padding: 4px 18px;
    background: #65a4f1;
    color: #fff;
}

.login-modal-body .log-in-box{
    box-shadow: none !important;
}

#warning-modal .modal-content {
    border: 0;
}

p.verify-email-address {
    font-size: 1em;
    font-weight: 600;
    margin-bottom: 20px;
}

.verify-text-warn {
    margin-bottom: 20px;
}

.category-sidemenu-list-items li.active > a {
    color: #03753b;
}

.category-sidemenu-list-items li.active {
    background-color: #e7f1f4;
}

/* .verify-email-page-wrapper {
    border: 2px solid var(--primary);
    border-radius: 8px;
    padding: 18px 26px;
    margin-top: 15px;
    margin-bottom: 35px;
} */

.success-msg-common {
    background: #ffedd1;
    padding: 10px 16px;
    margin-bottom: 10px;
    border-radius: 10px;
    font-size: 1em;
    color: #65a4f1;
    margin-top: 30px;
    font-weight: 500;
}

.success-msg-common p{
    color: #65a4f1;
}


.success-msg-front {
    position: fixed;
    left: 20px; /* Adjust as needed */
    bottom: 40px; /* Adjust as needed */
    z-index: 1111;
    opacity: 0;
    animation: slideInFromBottom 4s ease-in-out forwards;
}

.out-of-stock-badge {
    background-color: #ed6d79; /* Bootstrap danger */
    color: #fff;
    backdrop-filter: blur(2px);
    padding: 0.4rem 0.7rem;
    font-size: 0.85rem;
    border-radius: 0.25rem;
    pointer-events: none;
    user-select: none;
    height: 45px;
    font-size: 17px;
}


/* Center content vertically and horizontally */
.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70vh;
    text-align: center;
}

/* Error code styles */
.error-code {
    font-size: 8rem;
    font-weight: bold;
    margin-bottom: 4rem;
    align-items: center;
    color: #fd9d4129;
    -webkit-text-stroke: 1px #65a4f1;
}


/* Error title and description */
.error-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--secondary);
}

.error-message {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--secondary);
}

.fa-lg {
    font-size: 100px !important;
}

/* Buttons */
.btn-primary-custom {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.cat-more {
    background: #65a4f1;
    color: #fff;
    border: none;
}

.cat-more:hover {
    background: #65a4f1;
    color: #fff;
    border: none;
}

/* Specific page backgrounds */
.bg-404 {
    background-color: var(--bg-light);
}

.bg-500 {
    background-color: var(--bg-dark);
    color: #f8f9fa;
}

.bg-503 {
    background-color: var(--bg-warning);
}

.cart-out-of-stock {
    color: #f17580;
    background-color: #fbedee;
    font-size: 16px;
    padding: 4px 10px;
    font-weight: 500;
}
.out-of-stock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(217, 228, 238, 0.8); /* Gray semi-transparent */
    z-index: 2;
    pointer-events: none; /* Allow clicking through */
}

.out-of-stock-img {
    filter: grayscale(90%);
    opacity: 0.5;
}

.out-stock-btn {
    background-color: #ff22229e;
    color: #ffffff;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, 0.15);
    border: none;
    border-radius: 0.25rem;
    cursor: not-allowed;
    pointer-events: none;
}
.pointer-events-none {
    pointer-events: none;
}
.theme-spinner{
    color: #65a4f1 !important;
}

/* .form-rating ul.rating-stars,
.form-rating ul.rating-stars li {
    display: none;
} */
.rating-label {
    font-size: 18px;
}
.form-rating i {
    color: #ccc;
    cursor: pointer;
    font-size: 16px;
    margin-left: 2px;
}

.form-rating i.selected {
    color: #65a4f1;
}

.star-selected {
    color: #65a4f1 !important;
    cursor: pointer;
}

.form-rating ul li {
    transition: .3s linear;
    letter-spacing: -1px;
    display: inline-block;
    font-size: 14px;
}
.form-rating ul {
    padding: 0px;
}
.badge-clear-btn {
    background: #65a4f1;
    color: #ffffff;
    border: 1px solid #65a4f1;
    border-radius: 8px;
}
.badge-clear-btn:hover {
    background: #65a4f1;
    color: #ffffff;
    border: 1px solid #65a4f1;
    border-radius: 8px;
}


@keyframes slideInFromBottom {
    0% {
        opacity: 0;
        transform: translateY(100px); /* Start below the view */
    }
    10% {
        opacity: 1;
        transform: translateY(0); /* Move to its final position */
    }
    90% {
        opacity: 1;
        transform: translateY(0); /* Stay in place */
    }
    100% {
        opacity: 0;
        transform: translateY(100px); /* Slide out below the view */
    }
}

.login-text {
    border: 1px solid #65a4f1;
    border-radius: 8px;
}
.login-text-btn {
    background: #65a4f1;
    color: #fff;
}

.alert-danger {
    background-color: #fff2f3 !important;
}

.loading-spinner {
    color: var(--primary);
    font-size: 40px;
}

.btn-no-item{
    background: #65a4f1;
    color: #fff;
    border: 0;
    border-radius: 8px;
}
.btn-no-item:hover{
    color: #fff;
}

/* Pagination */
.pagination{
    margin-top: 3rem;
}
.page-item .page-link{
   padding: 5px 18px;
   color: var(--primary);
    border-color: #f4e9e4;
   font-size: 19px;
}
.page-item.active .page-link{
    background-color: var(--primary);
    border-color: var(--primary);
}
.page-item.disabled .page-link{
     border-color: #f4e9e4;
}
.page-link:focus{
    box-shadow: unset;
}
.wishlisted{
    color: #65a4f1 !important;
}


.select2-container--default .select2-selection--single {

    border-radius: unset !important;
}

.select2-container--default .select2-selection--single {
    border: 1px solid #ced4da !important;
    border-radius: unset !important;
}

.select2-container .select2-selection--single {
    height: 38px !important;
}


.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 38px !important;
    color: #959595 !important;
    font-size: 16px !important;
}


.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 38px !important;
}

.select2-container--default .select2-selection--single .select2-selection__clear {
    height: 38px !important;
}

.user-profile-section .select2-container--default .select2-selection--single {
    border: 1px solid #ced4da !important;
    border-radius: 14px !important;
}

.user-profile-section .select2-container .select2-selection--single {
    height: 45px !important;
}

.user-profile-section .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 45px !important;
}

.user-profile-section .select2-container--default .select2-selection--single .select2-selection__clear {
    height: 45px !important;
}

.user-profile-section .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 45px !important;
    color: #959595 !important;
    font-size: 16px !important;
}

.book-name{
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.wrap {
    position: relative;
}

.search-suggestions {
    position: absolute;
    top: 105%;
    left: 0;
    right: 0;
    background: white;
    /* border: 1px solid #ddd; */
    border-top: none;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgb(135 135 135);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.suggestion-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.suggestion-item:hover {
    background-color: #f8f9fa;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-image {
    width: 40px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 12px;
    flex-shrink: 0;
}

.suggestion-content {
    flex-grow: 1;
    min-width: 0;
}

.suggestion-title {
    font-weight: 600;
    color: #333;
    margin: 0 0 4px 0;
    padding-top: 5px;
    font-size: 14px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.suggestion-author {
    color: #666;
    font-size: 12px;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.suggestion-price {
    text-align: right;
    flex-shrink: 0;
    margin-left: 10px;
}

.suggestion-discount {
    background-color: #dc3545;
    color: white;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
    margin-bottom: 4px;
    display: inline-block;
}

.suggestion-current-price {
    color: #333;
    font-weight: bold;
    font-size: 14px;
}

.all-books-btn {
    display: block;
    width: 100%;
    padding: 12px 15px;
    background-color: #f8f9fa;
    color: #333;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-top: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
}

.all-books-btn:hover {
    background-color: #e9ecef;
    text-decoration: none;
    color: #65a4f1;
}

.no-suggestions {
    font-size: 16px;
    padding: 15px;
    text-align: center;
    color: #666;
    font-style: italic;
}

@media (min-width: 992px) { /* lg breakpoint */
    .custom-col-5 {
        flex: 0 0 20%;   /* 100 / 5 = 20% */
        max-width: 20%;
    }
}
