.wpig-free-wrap {
    position: relative;
    display: inline-block;
    max-width: 100%;
    line-height: 0;
}

.wpig-free-wrap img {
    display: block;
    max-width: 100%;
    height: auto;
}

.wpig-free-protected-image {
    -webkit-user-drag: none;
}

.wpig-free-mobile-guard {
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

.wpig-free-watermark {
    position: absolute;
    z-index: 3;
    display: inline-block;
    max-width: calc(100% - 20px);
    padding: 4px 7px;
    line-height: 1.2;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,.55);
    pointer-events: none;
    box-sizing: border-box;
    border-radius: 3px;
    white-space: nowrap;
}

.wpig-free-watermark-band {
    background: transparent !important;
}

.wpig-free-watermark-band::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: var(--wpig-band-opacity, .45);
    background: var(--wpig-band-color, #000000);
    border-radius: inherit;
}

.wpig-free-watermark-pattern {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
    align-items: center;
    justify-items: center;
    overflow: hidden;
    pointer-events: none;
}

.wpig-free-watermark-pattern .wpig-free-watermark {
    position: relative;
    inset: auto;
    max-width: 88%;
    transform: rotate(var(--wpig-watermark-angle, -24deg));
    white-space: nowrap;
}

.wpig-pos-top-left {
    top: 10px;
    left: 10px;
}

.wpig-pos-top-right {
    top: 10px;
    right: 10px;
}

.wpig-pos-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.wpig-pos-bottom-left {
    bottom: 10px;
    left: 10px;
}

.wpig-pos-bottom-right {
    right: 10px;
    bottom: 10px;
}

@media (max-width: 600px) {
    .wpig-free-watermark,
    .wpig-free-preview-mark,
    .wpig-free-admin-test-watermark {
        font-size: var(--wpig-mobile-font-size, inherit) !important;
    }
}

@media print {
    body.wpig-free-print-guard .wpig-free-wrap,
    body.wpig-free-print-guard img.wpig-free-protected-image {
        visibility: hidden !important;
    }

    body.wpig-free-print-guard .wpig-free-wrap::after {
        content: "Protected image";
        display: inline-block;
        visibility: visible;
        padding: 12px;
        border: 1px solid #8c8f94;
        color: #50575e;
        font-size: 12px;
        line-height: 1.4;
    }
}


.wpig-free-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 18px 0 24px;
}

.wpig-free-admin {
    --wpig-accent: #2271b1;
    --wpig-accent-soft: #e8f3fb;
    --wpig-green: #00a32a;
    --wpig-line: #c9d8e8;
}

.wpig-free-admin h1 {
    display: inline-block;
    padding: 12px 16px;
    margin-bottom: 8px;
    color: #0f172a;
    background: linear-gradient(135deg, #ffffff 0%, var(--wpig-accent-soft) 100%);
    border-left: 5px solid var(--wpig-accent);
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

.wpig-free-admin form > h2 {
    padding-top: 22px;
    margin-top: 28px;
    border-top: 1px solid var(--wpig-line);
    color: #0f172a;
}

.wpig-free-admin .form-table {
    max-width: 980px;
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    border-spacing: 0;
    box-shadow: 0 1px 2px rgba(0,0,0,.03);
}

.wpig-free-admin .form-table th,
.wpig-free-admin .form-table td {
    border-bottom: 1px solid #edf2f7;
}

.wpig-free-admin .form-table tr:last-child th,
.wpig-free-admin .form-table tr:last-child td {
    border-bottom: 0;
}

.wpig-free-card {
    background: #fff;
    border: 1px solid #dcdcde;
    border-top: 4px solid var(--wpig-accent);
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

.wpig-free-card h2 {
    margin-top: 0;
}

.wpig-free-checklist {
    margin: 14px 0 0;
}

.wpig-free-checklist li {
    margin: 6px 0;
}

.wpig-free-preview {
    position: relative;
    overflow: hidden;
    min-height: 190px;
    border-radius: 10px;
    background: linear-gradient(180deg, #dbeafe 0%, #eff6ff 48%, #d1fae5 100%);
    border: 1px solid #cbd5e1;
}

.wpig-free-preview-sky {
    position: absolute;
    width: 70px;
    height: 70px;
    right: 24px;
    top: 22px;
    border-radius: 999px;
    background: rgba(255,255,255,.8);
}

.wpig-free-preview-hill {
    position: absolute;
    left: -10%;
    right: -10%;
    bottom: -45px;
    height: 110px;
    border-radius: 50% 50% 0 0;
}

.wpig-free-preview-hill-a {
    background: #86efac;
    transform: rotate(-3deg);
}

.wpig-free-preview-hill-b {
    background: #22c55e;
    bottom: -65px;
    transform: rotate(4deg);
}

.wpig-free-preview-mark {
    position: absolute;
    z-index: 5;
    display: inline-block;
    padding: 5px 8px;
    line-height: 1.2;
    font-weight: 700;
    border-radius: 4px;
    text-shadow: 0 1px 2px rgba(0,0,0,.55);
    white-space: nowrap;
}

.wpig-free-preview-band {
    background: transparent !important;
}

.wpig-free-preview-band::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: var(--wpig-band-opacity, .45);
    background: var(--wpig-band-color, #000000);
    border-radius: inherit;
}

.wpig-free-admin-test {
    min-height: 130px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background:
        linear-gradient(135deg, rgba(15,23,42,.72), rgba(15,23,42,.20)),
        linear-gradient(135deg, #bfdbfe, #34d399);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

@media (max-width: 1100px) {
    .wpig-free-grid {
        grid-template-columns: 1fr;
    }
}


.wpig-free-lightbox-wrap {
    display: inline-block;
}

.wpig-free-bg-watermark {
    pointer-events: none;
}

.wpig-free-admin-test-wrap {
    position: relative;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

.wpig-free-admin-test-image {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 28%, rgba(255,255,255,.9) 0 11%, transparent 12%),
        linear-gradient(135deg, rgba(15,23,42,.72), rgba(15,23,42,.20)),
        linear-gradient(135deg, #bfdbfe, #34d399);
}

.wpig-free-admin-test-watermark {
    position: absolute;
    z-index: 5;
    display: inline-block;
    padding: 5px 8px;
    line-height: 1.2;
    font-weight: 700;
    border-radius: 4px;
    text-shadow: 0 1px 2px rgba(0,0,0,.55);
    white-space: nowrap;
    pointer-events: none;
}

.wpig-free-lightbox-watermark {
    z-index: 999999;
    pointer-events: none;
}

.wpig-free-lightbox-wrap {
    display: contents;
}

.wpig-free-mobile-guard,
.wpig-free-mobile-guard *,
a.wpig-free-mobile-guard,
a.wpig-free-mobile-guard img {
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    user-select: none !important;
}

img.wpig-free-mobile-guard,
.wpig-free-mobile-guard img {
    -webkit-user-drag: none !important;
}

.wpig-free-test-log {
    margin: 8px 0 0;
    padding-left: 0;
    list-style: none;
    font-size: 12px;
}

.wpig-free-test-log li {
    margin: 3px 0;
    color: #008a20;
}

.wpig-free-admin-test-wrap,
.wpig-free-admin-test-wrap * {
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    user-select: none !important;
    -webkit-user-drag: none !important;
    touch-action: none;
}

.wpig-free-test-hit {
    outline: 3px solid #00a32a;
    outline-offset: 2px;
}

.wpig-position-picker {
    position: relative;
    width: min(360px, 100%);
    height: 190px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    background:
        radial-gradient(circle at 72% 28%, rgba(255,255,255,.92) 0 10%, transparent 11%),
        linear-gradient(180deg, #dbeafe 0%, #eff6ff 50%, #dcfce7 100%);
    box-sizing: border-box;
}

.wpig-position-picker-preview {
    position: absolute;
    left: -8%;
    right: -8%;
    bottom: -52px;
    height: 120px;
    border-radius: 50% 50% 0 0;
    background: linear-gradient(135deg, #86efac, #22c55e);
    pointer-events: none;
}

.wpig-position-dot {
    position: absolute;
    z-index: 5;
    width: 34px;
    height: 34px;
    padding: 0;
    margin: 0;
    border: 2px solid #fff;
    border-radius: 999px;
    background: rgba(15,23,42,.48);
    box-shadow: 0 1px 6px rgba(0,0,0,.24);
    cursor: pointer;
}

.wpig-position-dot span {
    display: block;
    width: 12px;
    height: 12px;
    margin: 9px auto;
    border-radius: 999px;
    background: #fff;
}

.wpig-position-dot:hover,
.wpig-position-dot:focus {
    outline: 3px solid #72aee6;
    outline-offset: 1px;
}

.wpig-position-dot.is-active {
    background: #2271b1;
    border-color: #fff;
}

.wpig-position-dot.is-active span {
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255,255,255,.35);
}

.wpig-position-dot-top-left {
    top: 18px;
    left: 18px;
}

.wpig-position-dot-top-right {
    top: 18px;
    right: 18px;
}

.wpig-position-dot-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.wpig-position-dot-bottom-left {
    bottom: 18px;
    left: 18px;
}

.wpig-position-dot-bottom-right {
    right: 18px;
    bottom: 18px;
}

.wpig-help-details {
    margin-top: 12px;
    max-width: 760px;
}

.wpig-help-details summary {
    cursor: pointer;
    font-weight: 600;
    color: #2271b1;
}

.wpig-help-box {
    margin-top: 10px;
    padding: 14px;
    border: 1px solid #c3c4c7;
    border-radius: 8px;
    background: #fff;
}

.wpig-help-box h4 {
    margin: 14px 0 6px;
}

.wpig-help-box pre {
    padding: 10px;
    overflow-x: auto;
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 6px;
}

.wpig-copy-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 10px 0;
}

.wpig-copy-row code {
    padding: 6px 10px;
    font-size: 14px;
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 6px;
}

.wpig-copy-status {
    color: #008a20;
    font-size: 13px;
}

.wpig-status-card {
    border-left: 5px solid #8c8f94;
    border-top-color: #8c8f94;
}

.wpig-status-good {
    border-left-color: #00a32a;
    border-top-color: #00a32a;
}

.wpig-status-light {
    border-left-color: #dba617;
    border-top-color: #dba617;
}

.wpig-status-off {
    border-left-color: #d63638;
    border-top-color: #d63638;
}

.wpig-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    margin: 4px 0 10px;
    border-radius: 999px;
    background: #f6f7f7;
    border: 1px solid #dcdcde;
}

.wpig-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #8c8f94;
}

.wpig-status-good .wpig-status-dot {
    background: #00a32a;
}

.wpig-status-light .wpig-status-dot {
    background: #dba617;
}

.wpig-status-off .wpig-status-dot {
    background: #d63638;
}

.wpig-pro-info-card {
    margin-top: 22px;
    padding: 16px;
    max-width: 900px;
    background: #fff;
    border: 1px solid #dcdcde;
    border-left: 5px solid var(--wpig-accent);
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

.wpig-pro-info-card h2 {
    margin-top: 0;
}

.wpig-free-preview-focus {
    outline: 3px solid #2271b1;
    outline-offset: 3px;
    transition: outline-color .25s ease;
}

.wpig-cache-card {
    max-width: 900px;
    padding: 16px;
    margin: 12px 0 22px;
    background: #fff;
    border: 1px solid #dcdcde;
    border-left: 5px solid var(--wpig-green);
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

.wpig-cache-card h3 {
    margin-top: 0;
}
