.revodocs-admin-email-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    background: #eef2ff;
    color: #1e40af;
    vertical-align: middle;
}

.revodocs-admin-email-help {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.4;
    color: #4b5563; /* leichtes Grau */
}

/* Unser eigener Block darf alles „über“ sich zeichnen */
.revodocs-teacher-count-loop {
    margin-top: 1rem;
}

/* Revobytes Theme: Inhalt nicht abschneiden (sonst wird das Select-Dropdown gekappt) */
body.woocommerce-page .tj-entry__content.blog-content-area {
    overflow: visible !important;
}

/* WooCommerce-Seiten: Haupt-Content nicht abschneiden,
   sonst wird das Select-Dropdown gekappt */
body.woocommerce-page .site-main {
    overflow: visible !important;
    overflow-x: visible !important;
}

/* Der vorhandene Warenkorb-Button */
a.revodocs-cart-container {
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* Die kleine runde Badge oben rechts */
a.revodocs-cart-container .revodocs-cart-badge {
    position: relative;
    top: 10px;
    transform: translate(50%, -50%);
    background: #ff4b81;      /* Badge-Farbe */
    color: #ffffff;
    font-size: 12px;
    min-width: 21px;
    height: 21px;
    padding: 0 5px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    pointer-events: none;
}

/* Standardanzeige wiederherstellen: Block, nicht Flex */
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-error,
.woocommerce-notices-wrapper .woocommerce-info {
    display: block !important;
    position: relative;
    padding-left: 3.2rem;   /* Abstand zwischen Icon und Text */
    padding-top: 1.4rem;
}

/* Icon links ausrichten und vertikal zentrieren */
.woocommerce-notices-wrapper .woocommerce-message::before,
.woocommerce-notices-wrapper .woocommerce-error::before,
.woocommerce-notices-wrapper .woocommerce-info::before {
    position: absolute !important;
    left: 1.2rem;           /* Abstand vom linken Rand */
    top: 50%;
    transform: translateY(-50%);
    margin-right: 0 !important;  /* falls vorher gesetzt */
}

.woocommerce-notices-wrapper .woocommerce-error .button {
    top: -0.4rem;
    left: 0.8rem;
}

/* Ausblenden NUR auf der Warenkorbseite */
body.revodocs-cart-redirecting .wc-block-cart,
body.revodocs-cart-redirecting .wc-block-cart__main,
body.revodocs-cart-redirecting .woocommerce-cart-form,
body.revodocs-cart-redirecting .cart-empty {
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.1s ease-out;
}

/* Overlay */
body.revodocs-cart-redirecting::before {
    content: "";
    position: fixed;
    inset: 0;
    background: white;
    opacity: 1;
    z-index: 9998;
}

/* Loader */
body.revodocs-cart-redirecting::after {
    content: "";
    position: fixed;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 4px solid #ccc;
    border-top-color: #7643ff;
    animation: revodocs-spin 0.7s linear infinite;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

@keyframes revodocs-spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}
