/*
 Theme Name:   Booklovers Child Theme
 Theme URI:    http://booklovers.ancorathemes.com
 Description:  Booklovers Child Theme
 Author:       AncoraThemes
 Author URI:   http://ancorathemes.com
 Template:     booklovers
 Version:      1.0
 Tags:         flexible-header, custom-background, custom-colors, custom-header, custom-menu, featured-image-header, featured-images, full-width-template, microformats, post-formats, theme-options, threaded-comments, translation-ready
 Text Domain:  booklovers
*/


/* =Theme customization starts here
------------------------------------------------------------ */

/* WooCommerce: button spinners and checkout overlay cleanup */
.woocommerce a.button.loading,
.woocommerce button.loading,
.woocommerce input.button.loading,
.woocommerce .button.blc-btn-loading,
.woocommerce .wc-stripe-payment-request-button.blc-btn-loading,
.woocommerce .stripe-payment-request-button.blc-btn-loading {
    position: relative;
    padding-right: 2.2em;
    pointer-events: none;
}

.woocommerce a.button.loading::after,
.woocommerce button.loading::after,
.woocommerce input.button.loading::after,
.woocommerce .button.blc-btn-loading::after,
.woocommerce .wc-stripe-payment-request-button.blc-btn-loading::after,
.woocommerce .stripe-payment-request-button.blc-btn-loading::after {
    content: "";
    position: absolute;
    display: inline-block;
    right: 0.7em;
    top: 50%;
    width: 0.9em;
    height: 0.9em;
    margin-top: -0.45em;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    box-sizing: border-box;
    animation: blc-spin 0.7s linear infinite;
    -webkit-animation: blc-spin 0.7s linear infinite;
}

@-webkit-keyframes blc-spin {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
}

@keyframes blc-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hide centered checkout overlay spinner while keeping the UI blocked */
.woocommerce-checkout .blockUI.blockOverlay {
    background: transparent !important;
    opacity: 0 !important;
}

.woocommerce-checkout .blockUI.blockOverlay::before {
    display: none !important;
}

.blc-pr-overlay {
    display: none;
}

#blc-pr-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 9999;
    cursor: wait;
}

#blc-pr-overlay .blc-pr-overlay-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6em;
    padding: 0.5em 0.9em;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 55%, rgba(255, 255, 255, 0) 75%);
}

#blc-pr-overlay .blc-pr-overlay-spinner {
    display: inline-block;
    width: 32px;
    height: 32px;
    border: 3px solid rgba(0, 0, 0, 0.8);
    border-right-color: transparent;
    border-radius: 50%;
    box-sizing: border-box;
    animation: blc-spin 0.7s linear infinite;
    -webkit-animation: blc-spin 0.7s linear infinite;
}

#blc-pr-overlay .blc-pr-overlay-text {
    font-size: 1.2em;
    line-height: 1.35;
    color: rgba(0, 0, 0, 0.92);
    text-align: center;
    max-width: 18em;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.95), 0 0 8px rgba(255, 255, 255, 0.65);
}

.woocommerce-checkout .blc-checkout-wait-note {
    margin: 0.9em 0 0;
    padding: 0.55em 0.8em;
    font-size: 1em;
    line-height: 1.4;
    opacity: 0.9;
    display: block;
    width: 100%;
    clear: both;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}
