
body.babdd-cg-mobile-guard,
body.babdd-cg-mobile-guard .babdd-cg-protected-area,
body.babdd-cg-mobile-guard [data-babdd-cg-protected="1"],
body.babdd-cg-mobile-guard .babdd-cg-watermark-wrap,
body.babdd-cg-mobile-guard .babdd-cg-watermark-host,
body.babdd-cg-mobile-guard .babdd-cg-watermark-item,
body.babdd-cg-mobile-guard img {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    caret-color: transparent;
}

body.babdd-cg-mobile-guard img,
body.babdd-cg-mobile-guard a {
    -webkit-tap-highlight-color: transparent;
}

body.babdd-cg-no-select,
body.babdd-cg-no-select .babdd-cg-protected-area,
body.babdd-cg-no-select [data-babdd-cg-protected="1"] {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

body.babdd-cg-protected img {
    -webkit-user-drag: none;
    user-drag: none;
    pointer-events: auto;
}

.babdd-cg-toast,
.babdd-cg-modal-wrap {
    font-family: inherit;
}

.babdd-cg-toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 999999;
    min-width: 280px;
    max-width: 380px;
    padding: 16px 18px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(15, 23, 42, .96), rgba(2, 6, 23, .96));
    border: 1px solid rgba(255, 255, 255, .08);
    color: #e5e7eb;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .38);
    opacity: 0;
    transform: translateY(14px);
    pointer-events: none;
    transition: .22s ease;
}

.babdd-cg-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.babdd-cg-toast-title {
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.babdd-cg-toast-message {
    line-height: 1.55;
    color: #cbd5e1;
}

.babdd-cg-modal-wrap {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(2, 6, 23, .55);
    backdrop-filter: blur(5px);
}

.babdd-cg-modal-wrap.is-visible {
    display: flex;
}

.babdd-cg-modal {
    width: min(520px, 100%);
    border-radius: 24px;
    background: linear-gradient(180deg, #111827, #0b1220);
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .42);
    color: #e5e7eb;
    overflow: hidden;
}

.babdd-cg-modal-head {
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.babdd-cg-modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.babdd-cg-modal-close {
    border: 0;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    border-radius: 999px;
    width: 34px;
    height: 34px;
    cursor: pointer;
}

.babdd-cg-modal-body {
    padding: 22px;
    line-height: 1.7;
    color: #cbd5e1;
}

.babdd-cg-modal-actions {
    padding: 0 22px 22px;
}

.babdd-cg-modal-ok {
    min-height: 42px;
    border: 0;
    border-radius: 12px;
    padding: 0 18px;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.babdd-cg-watermark-host,
.babdd-cg-watermark-wrap {
    position: relative !important;
    overflow: hidden;
}

.babdd-cg-watermark-wrap {
    display: inline-block;
    line-height: 0;
}

.babdd-cg-watermark-wrap > img {
    display: block;
    max-width: 100%;
    height: auto;
}

.babdd-cg-watermark-layer {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    padding: 12px;
}

.babdd-cg-watermark-layer[data-pattern="tile"] {
    display: flex;
    flex-wrap: wrap;
    align-content: space-around;
    justify-content: space-around;
    gap: var(--babdd-cg-wm-gap-y, 18px) var(--babdd-cg-wm-gap-x, 26px);
}

.babdd-cg-watermark-layer[data-pattern="center"] {
    display: flex;
    align-items: center;
    justify-content: center;
}

.babdd-cg-watermark-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--babdd-cg-wm-color, #ffffff);
    opacity: var(--babdd-cg-wm-opacity, 0.11);
    font-size: var(--babdd-cg-wm-size, 24px);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    transform: rotate(var(--babdd-cg-wm-rotate, -24deg));
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
    user-select: none;
}

.babdd-cg-watermark-item.is-center {
    max-width: 82%;
}

.babdd-cg-watermark-logo {
    display: block;
    width: var(--babdd-cg-wm-logo-width, 160px);
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.18));
}

.babdd-cg-watermark-wrap.is-block {
    display: block;
}

.babdd-cg-modal-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

.babdd-cg-modal-brand.is-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.babdd-cg-modal-brand.is-left {
    flex-direction: row;
    align-items: center;
}

.babdd-cg-modal-title-group {
    min-width: 0;
}

.babdd-cg-modal-logo {
    display: none;
    align-items: center;
    justify-content: center;
}

.babdd-cg-modal-logo.has-logo {
    display: inline-flex;
}

.babdd-cg-modal-logo img {
    display: block;
    width: auto;
    height: auto;
    max-width: 96px;
    max-height: 72px;
}

.babdd-cg-modal-qr {
    display: none;
    padding: 0 22px 8px;
}

.babdd-cg-modal-qr.is-visible {
    display: block;
}

.babdd-cg-modal-qr img {
    display: block;
    width: auto;
    height: auto;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.08);
    background: #fff;
    padding: 8px;
}

.babdd-cg-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.babdd-cg-modal-ok,
.babdd-cg-modal-btn {
    min-height: 42px;
    border-radius: 12px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 600;
}

.babdd-cg-modal-btn.is-primary,
.babdd-cg-modal-ok {
    border: 0;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.babdd-cg-modal-btn.is-outline {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255,255,255,.15);
    color: #e5e7eb;
}
