@font-face {
	font-family: 'randpublish-icons';
	src: url("../../fonts/randpublish-icons.woff") format("woff"), url("../../fonts/randpublish-icons.ttf") format("truetype"), url("../../fonts/randpublish-icons.svg") format("svg");
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

[class^="randpublish-icon-"],
[class*=" randpublish-icon-"] {
	font-family: 'randpublish-icons' !important;
	font-style: normal;
	font-weight: normal;
	font-variant: normal;
	text-transform: none;
	line-height: 1;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.randpublish-icon-x:before {
	content: "\e913";
}

.randpublish-popup {
	--randpublish-popup-wrap-scrollbar-width: 0.625rem;
	--randpublish-popup-wrap-scrollbar-track-background: #f1f1f1;
	--randpublish-popup-wrap-scrollbar-thumb-background: #888;
	--randpublish-popup-wrap-scrollbar-thumb-hover-background: #555;
	--randpublish-popup-wrap-box-shadow: 0 0 40px 0 rgba(0,0,0,.075);
	--randpublish-popup-container-background: #FFFFFF;
	--randpublish-popup-close-font-size: 1.25rem;
	--randpublish-popup-close-color: #000;
	--randpublish-popup-close-hover-color: #777;
	--randpublish-popup-close-light-color: #FFFF;
	--randpublish-popup-close-light-hover-color: rgba(255,255,255,0.75);
	--randpublish-popup-type-content-close-font-size: 1.5rem;
	--randpublish-popup-type-notification-text-font-size: 90%;
	--randpublish-popup-type-notification-text-color: #777777;
	--randpublish-popup-type-notification-text-link-color: #000000;
	
	/* Button styling variables */
	--randpublish-button-bg: #282828;
	--randpublish-button-bg-hover: #1a1a1a;
	--randpublish-button-text: #ffffff;
	--randpublish-button-text-hover: #ffffff;
	--randpublish-button-font-size: 14px;
	--randpublish-button-padding-top: 10px;
	--randpublish-button-padding-right: 20px;
	--randpublish-button-padding-bottom: 10px;
	--randpublish-button-padding-left: 20px;
	--randpublish-button-border-radius: 0;
	--randpublish-button-border-width: 0;
	--randpublish-button-border-color: #dddddd;
	--randpublish-button-shadow: none;
	--randpublish-button-gap: 10px;
	--randpublish-button-justify: flex-start;
	
	/* Button style presets */
	--randpublish-button-style: default; /* default, outline, ghost, rounded, pill, gradient, shadow, 3d */
	
	/* Outline button specific */
	--randpublish-button-outline-border-width: 2px;
	--randpublish-button-outline-border-color: #282828;
	--randpublish-button-outline-bg: transparent;
	--randpublish-button-outline-text: #282828;
	--randpublish-button-outline-hover-bg: #282828;
	--randpublish-button-outline-hover-text: #ffffff;
	
	/* Ghost button specific */
	--randpublish-button-ghost-bg: transparent;
	--randpublish-button-ghost-text: #282828;
	--randpublish-button-ghost-hover-bg: rgba(40, 40, 40, 0.1);
	--randpublish-button-ghost-hover-text: #282828;
	
	/* Rounded button */
	--randpublish-button-rounded-radius: 25px;
	
	/* Pill button */
	--randpublish-button-pill-radius: 50px;
	
	/* Gradient button */
	--randpublish-button-gradient-start: #282828;
	--randpublish-button-gradient-end: #4a4a4a;
	--randpublish-button-gradient-hover-start: #1a1a1a;
	--randpublish-button-gradient-hover-end: #3a3a3a;
	
	/* Shadow button */
	--randpublish-button-shadow-blur: 10px;
	--randpublish-button-shadow-color: rgba(0,0,0,0.2);
	--randpublish-button-shadow-hover-blur: 15px;
	
	/* 3D button */
	--randpublish-button-3d-depth: 4px;
	--randpublish-button-3d-color: #1a1a1a;
	
	/* Reject button styling */
	--randpublish-reject-button-bg: #dc3232;
	--randpublish-reject-button-bg-hover: #a02222;
	--randpublish-reject-button-text: #ffffff;
	--randpublish-reject-button-text-hover: #ffffff;
	
	/* Reject button style overrides */
	--randpublish-reject-button-outline-border-color: #dc3232;
	--randpublish-reject-button-outline-text: #dc3232;
	--randpublish-reject-button-ghost-text: #dc3232;
	--randpublish-reject-button-gradient-start: #dc3232;
	--randpublish-reject-button-gradient-end: #b02a2a;
	--randpublish-reject-button-3d-color: #a02222;
}

.randpublish-popup-overlay {
    position: fixed;
    display: none;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 999998;
    pointer-events: auto;
    transition: none;
}

/* Image overlay inside popup (for background image overlay only) */
.randpublish-popup-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.randpublish-popup-scroll-hidden {
	overflow: hidden;
	width: 100%;
}

.randpublish-popup-animated {
	-webkit-animation-duration: 0.5s;
	animation-duration: 0.5s;
	-webkit-animation-fill-mode: both;
	animation-fill-mode: both;
	overflow: hidden !important;
}

/*
 * All animation keyframes compose with translate(var(--rp-x,0%), var(--rp-y,0%)) so
 * the popup's centering offset (set on each location class via --rp-x/--rp-y) is
 * preserved during animation instead of being replaced by the keyframe's transform.
 */

/* ── FADE (no transform needed) ── */
@-webkit-keyframes popupOpenFade {
	from { opacity: 0; }
	to { opacity: 1; }
}
@keyframes popupOpenFade {
	from { opacity: 0; }
	to { opacity: 1; }
}
@-webkit-keyframes popupExitFade {
	from { opacity: 1; }
	to { opacity: 0; }
}
@keyframes popupExitFade {
	from { opacity: 1; }
	to { opacity: 0; }
}

/* ── LEGACY SLIDE (from bottom) — composed ── */
@-webkit-keyframes popupOpenSlide {
	from { transform: translate(var(--rp-x,0%), calc(var(--rp-y,0%) + 100vh)); visibility: visible; }
	to   { transform: translate(var(--rp-x,0%), var(--rp-y,0%)); }
}
@keyframes popupOpenSlide {
	from { transform: translate(var(--rp-x,0%), calc(var(--rp-y,0%) + 100vh)); visibility: visible; }
	to   { transform: translate(var(--rp-x,0%), var(--rp-y,0%)); }
}
@-webkit-keyframes popupExitSlide {
	from { transform: translate(var(--rp-x,0%), var(--rp-y,0%)); }
	to   { visibility: hidden; transform: translate(var(--rp-x,0%), calc(var(--rp-y,0%) + 100vh)); }
}
@keyframes popupExitSlide {
	from { transform: translate(var(--rp-x,0%), var(--rp-y,0%)); }
	to   { visibility: hidden; transform: translate(var(--rp-x,0%), calc(var(--rp-y,0%) + 100vh)); }
}

/* ── LEGACY ZOOM — composed ── */
@-webkit-keyframes popupOpenZoom {
	from { opacity: 0; transform: translate(var(--rp-x,0%), var(--rp-y,0%)) scale(1.1); }
	to   { opacity: 1; transform: translate(var(--rp-x,0%), var(--rp-y,0%)) scale(1); }
}
@keyframes popupOpenZoom {
	from { opacity: 0; transform: translate(var(--rp-x,0%), var(--rp-y,0%)) scale(1.1); }
	to   { opacity: 1; transform: translate(var(--rp-x,0%), var(--rp-y,0%)) scale(1); }
}
@-webkit-keyframes popupExitZoom {
	from { opacity: 1; transform: translate(var(--rp-x,0%), var(--rp-y,0%)) scale(1); }
	to   { opacity: 0; transform: translate(var(--rp-x,0%), var(--rp-y,0%)) scale(1.1); }
}
@keyframes popupExitZoom {
	from { opacity: 1; transform: translate(var(--rp-x,0%), var(--rp-y,0%)) scale(1); }
	to   { opacity: 0; transform: translate(var(--rp-x,0%), var(--rp-y,0%)) scale(1.1); }
}

/* ── LEGACY SLIDE+FADE (40px from bottom) — composed ── */
@-webkit-keyframes popupOpenSlideFade {
	from { opacity: 0; transform: translate(var(--rp-x,0%), calc(var(--rp-y,0%) + 40px)); visibility: visible; }
	to   { opacity: 1; transform: translate(var(--rp-x,0%), var(--rp-y,0%)); }
}
@keyframes popupOpenSlideFade {
	from { opacity: 0; transform: translate(var(--rp-x,0%), calc(var(--rp-y,0%) + 40px)); visibility: visible; }
	to   { opacity: 1; transform: translate(var(--rp-x,0%), var(--rp-y,0%)); }
}
@-webkit-keyframes popupExitSlideFade {
	from { opacity: 1; transform: translate(var(--rp-x,0%), var(--rp-y,0%)); }
	to   { opacity: 0; visibility: hidden; transform: translate(var(--rp-x,0%), calc(var(--rp-y,0%) + 40px)); }
}
@keyframes popupExitSlideFade {
	from { opacity: 1; transform: translate(var(--rp-x,0%), var(--rp-y,0%)); }
	to   { opacity: 0; visibility: hidden; transform: translate(var(--rp-x,0%), calc(var(--rp-y,0%) + 40px)); }
}

/* ── Legacy class assignments (kept for backward compatibility) ── */
.popupOpenFade      { animation-name: popupOpenFade; }
.popupExitFade      { animation-name: popupExitFade; }
.popupOpenSlide     { animation-name: popupOpenSlide; }
.popupExitSlide     { animation-name: popupExitSlide; }
.popupOpenZoom      { animation-name: popupOpenZoom; }
.popupExitZoom      { animation-name: popupExitZoom; }
.popupOpenSlideFade { animation-name: popupOpenSlideFade; }
.popupExitSlideFade { animation-name: popupExitSlideFade; }

/* ================================================================
 * EXPANDED ANIMATIONS
 * All keyframes compose the centering offset via --rp-x/--rp-y
 * so animations work correctly at every popup position.
 * ================================================================ */

/* ── SLIDE (8 directions) — composed ── */
@keyframes popupOpenSlideTop         { from { transform: translate(var(--rp-x,0%), calc(var(--rp-y,0%) - 110vh)); visibility:visible; } to { transform: translate(var(--rp-x,0%), var(--rp-y,0%)); } }
@keyframes popupExitSlideTop         { from { transform: translate(var(--rp-x,0%), var(--rp-y,0%)); } to { visibility:hidden; transform: translate(var(--rp-x,0%), calc(var(--rp-y,0%) - 110vh)); } }
@keyframes popupOpenSlideBottom      { from { transform: translate(var(--rp-x,0%), calc(var(--rp-y,0%) + 110vh)); visibility:visible; } to { transform: translate(var(--rp-x,0%), var(--rp-y,0%)); } }
@keyframes popupExitSlideBottom      { from { transform: translate(var(--rp-x,0%), var(--rp-y,0%)); } to { visibility:hidden; transform: translate(var(--rp-x,0%), calc(var(--rp-y,0%) + 110vh)); } }
@keyframes popupOpenSlideLeft        { from { transform: translate(calc(var(--rp-x,0%) - 110vw), var(--rp-y,0%)); visibility:visible; } to { transform: translate(var(--rp-x,0%), var(--rp-y,0%)); } }
@keyframes popupExitSlideLeft        { from { transform: translate(var(--rp-x,0%), var(--rp-y,0%)); } to { visibility:hidden; transform: translate(calc(var(--rp-x,0%) - 110vw), var(--rp-y,0%)); } }
@keyframes popupOpenSlideRight       { from { transform: translate(calc(var(--rp-x,0%) + 110vw), var(--rp-y,0%)); visibility:visible; } to { transform: translate(var(--rp-x,0%), var(--rp-y,0%)); } }
@keyframes popupExitSlideRight       { from { transform: translate(var(--rp-x,0%), var(--rp-y,0%)); } to { visibility:hidden; transform: translate(calc(var(--rp-x,0%) + 110vw), var(--rp-y,0%)); } }
@keyframes popupOpenSlideTopLeft     { from { transform: translate(calc(var(--rp-x,0%) - 110vw), calc(var(--rp-y,0%) - 110vh)); visibility:visible; } to { transform: translate(var(--rp-x,0%), var(--rp-y,0%)); } }
@keyframes popupExitSlideTopLeft     { from { transform: translate(var(--rp-x,0%), var(--rp-y,0%)); } to { visibility:hidden; transform: translate(calc(var(--rp-x,0%) - 110vw), calc(var(--rp-y,0%) - 110vh)); } }
@keyframes popupOpenSlideTopRight    { from { transform: translate(calc(var(--rp-x,0%) + 110vw), calc(var(--rp-y,0%) - 110vh)); visibility:visible; } to { transform: translate(var(--rp-x,0%), var(--rp-y,0%)); } }
@keyframes popupExitSlideTopRight    { from { transform: translate(var(--rp-x,0%), var(--rp-y,0%)); } to { visibility:hidden; transform: translate(calc(var(--rp-x,0%) + 110vw), calc(var(--rp-y,0%) - 110vh)); } }
@keyframes popupOpenSlideBottomLeft  { from { transform: translate(calc(var(--rp-x,0%) - 110vw), calc(var(--rp-y,0%) + 110vh)); visibility:visible; } to { transform: translate(var(--rp-x,0%), var(--rp-y,0%)); } }
@keyframes popupExitSlideBottomLeft  { from { transform: translate(var(--rp-x,0%), var(--rp-y,0%)); } to { visibility:hidden; transform: translate(calc(var(--rp-x,0%) - 110vw), calc(var(--rp-y,0%) + 110vh)); } }
@keyframes popupOpenSlideBottomRight { from { transform: translate(calc(var(--rp-x,0%) + 110vw), calc(var(--rp-y,0%) + 110vh)); visibility:visible; } to { transform: translate(var(--rp-x,0%), var(--rp-y,0%)); } }
@keyframes popupExitSlideBottomRight { from { transform: translate(var(--rp-x,0%), var(--rp-y,0%)); } to { visibility:hidden; transform: translate(calc(var(--rp-x,0%) + 110vw), calc(var(--rp-y,0%) + 110vh)); } }

.popupOpenSlideTop         { animation-name: popupOpenSlideTop; }
.popupExitSlideTop         { animation-name: popupExitSlideTop; }
.popupOpenSlideBottom      { animation-name: popupOpenSlideBottom; }
.popupExitSlideBottom      { animation-name: popupExitSlideBottom; }
.popupOpenSlideLeft        { animation-name: popupOpenSlideLeft; }
.popupExitSlideLeft        { animation-name: popupExitSlideLeft; }
.popupOpenSlideRight       { animation-name: popupOpenSlideRight; }
.popupExitSlideRight       { animation-name: popupExitSlideRight; }
.popupOpenSlideTopLeft     { animation-name: popupOpenSlideTopLeft; }
.popupExitSlideTopLeft     { animation-name: popupExitSlideTopLeft; }
.popupOpenSlideTopRight    { animation-name: popupOpenSlideTopRight; }
.popupExitSlideTopRight    { animation-name: popupExitSlideTopRight; }
.popupOpenSlideBottomLeft  { animation-name: popupOpenSlideBottomLeft; }
.popupExitSlideBottomLeft  { animation-name: popupExitSlideBottomLeft; }
.popupOpenSlideBottomRight { animation-name: popupOpenSlideBottomRight; }
.popupExitSlideBottomRight { animation-name: popupExitSlideBottomRight; }

/* ── ZOOM variants — composed ── */
@keyframes popupOpenZoomIn      { from { transform: translate(var(--rp-x,0%), var(--rp-y,0%)) scale(0);   } to { transform: translate(var(--rp-x,0%), var(--rp-y,0%)) scale(1); } }
@keyframes popupExitZoomIn      { from { transform: translate(var(--rp-x,0%), var(--rp-y,0%)) scale(1);   } to { transform: translate(var(--rp-x,0%), var(--rp-y,0%)) scale(0); } }
@keyframes popupOpenZoomOut     { from { transform: translate(var(--rp-x,0%), var(--rp-y,0%)) scale(2);   } to { transform: translate(var(--rp-x,0%), var(--rp-y,0%)) scale(1); } }
@keyframes popupExitZoomOut     { from { transform: translate(var(--rp-x,0%), var(--rp-y,0%)) scale(1);   } to { transform: translate(var(--rp-x,0%), var(--rp-y,0%)) scale(2); } }
@keyframes popupOpenZoomInFade  { from { opacity:0; transform: translate(var(--rp-x,0%), var(--rp-y,0%)) scale(0.4); } to { opacity:1; transform: translate(var(--rp-x,0%), var(--rp-y,0%)) scale(1); } }
@keyframes popupExitZoomInFade  { from { opacity:1; transform: translate(var(--rp-x,0%), var(--rp-y,0%)) scale(1);   } to { opacity:0; transform: translate(var(--rp-x,0%), var(--rp-y,0%)) scale(0.4); } }
@keyframes popupOpenZoomOutFade { from { opacity:0; transform: translate(var(--rp-x,0%), var(--rp-y,0%)) scale(1.6); } to { opacity:1; transform: translate(var(--rp-x,0%), var(--rp-y,0%)) scale(1); } }
@keyframes popupExitZoomOutFade { from { opacity:1; transform: translate(var(--rp-x,0%), var(--rp-y,0%)) scale(1);   } to { opacity:0; transform: translate(var(--rp-x,0%), var(--rp-y,0%)) scale(1.6); } }

/* Directional zoom — per-direction keyframes with explicit transform-origin offset via translate */
@keyframes popupOpenZoomCenter  { from { opacity:0; transform: translate(var(--rp-x,0%), var(--rp-y,0%)) scale(0); } to { opacity:1; transform: translate(var(--rp-x,0%), var(--rp-y,0%)) scale(1); } }
@keyframes popupExitZoomCenter  { from { opacity:1; transform: translate(var(--rp-x,0%), var(--rp-y,0%)) scale(1); } to { opacity:0; transform: translate(var(--rp-x,0%), var(--rp-y,0%)) scale(0); } }
@keyframes popupOpenZoomTop     { from { opacity:0; transform: translate(var(--rp-x,0%), calc(var(--rp-y,0%) - 50%)) scale(0); } to { opacity:1; transform: translate(var(--rp-x,0%), var(--rp-y,0%)) scale(1); } }
@keyframes popupExitZoomTop     { from { opacity:1; transform: translate(var(--rp-x,0%), var(--rp-y,0%)) scale(1); } to { opacity:0; transform: translate(var(--rp-x,0%), calc(var(--rp-y,0%) - 50%)) scale(0); } }
@keyframes popupOpenZoomBottom  { from { opacity:0; transform: translate(var(--rp-x,0%), calc(var(--rp-y,0%) + 50%)) scale(0); } to { opacity:1; transform: translate(var(--rp-x,0%), var(--rp-y,0%)) scale(1); } }
@keyframes popupExitZoomBottom  { from { opacity:1; transform: translate(var(--rp-x,0%), var(--rp-y,0%)) scale(1); } to { opacity:0; transform: translate(var(--rp-x,0%), calc(var(--rp-y,0%) + 50%)) scale(0); } }
@keyframes popupOpenZoomLeft    { from { opacity:0; transform: translate(calc(var(--rp-x,0%) - 50%), var(--rp-y,0%)) scale(0); } to { opacity:1; transform: translate(var(--rp-x,0%), var(--rp-y,0%)) scale(1); } }
@keyframes popupExitZoomLeft    { from { opacity:1; transform: translate(var(--rp-x,0%), var(--rp-y,0%)) scale(1); } to { opacity:0; transform: translate(calc(var(--rp-x,0%) - 50%), var(--rp-y,0%)) scale(0); } }
@keyframes popupOpenZoomRight   { from { opacity:0; transform: translate(calc(var(--rp-x,0%) + 50%), var(--rp-y,0%)) scale(0); } to { opacity:1; transform: translate(var(--rp-x,0%), var(--rp-y,0%)) scale(1); } }
@keyframes popupExitZoomRight   { from { opacity:1; transform: translate(var(--rp-x,0%), var(--rp-y,0%)) scale(1); } to { opacity:0; transform: translate(calc(var(--rp-x,0%) + 50%), var(--rp-y,0%)) scale(0); } }

.popupOpenZoomIn      { animation-name: popupOpenZoomIn; }
.popupExitZoomIn      { animation-name: popupExitZoomIn; }
.popupOpenZoomOut     { animation-name: popupOpenZoomOut; }
.popupExitZoomOut     { animation-name: popupExitZoomOut; }
.popupOpenZoomInFade  { animation-name: popupOpenZoomInFade; }
.popupExitZoomInFade  { animation-name: popupExitZoomInFade; }
.popupOpenZoomOutFade { animation-name: popupOpenZoomOutFade; }
.popupExitZoomOutFade { animation-name: popupExitZoomOutFade; }
.popupOpenZoomCenter  { animation-name: popupOpenZoomCenter; }
.popupExitZoomCenter  { animation-name: popupExitZoomCenter; }
.popupOpenZoomTop     { animation-name: popupOpenZoomTop; }
.popupExitZoomTop     { animation-name: popupExitZoomTop; }
.popupOpenZoomBottom  { animation-name: popupOpenZoomBottom; }
.popupExitZoomBottom  { animation-name: popupExitZoomBottom; }
.popupOpenZoomLeft    { animation-name: popupOpenZoomLeft; }
.popupExitZoomLeft    { animation-name: popupExitZoomLeft; }
.popupOpenZoomRight   { animation-name: popupOpenZoomRight; }
.popupExitZoomRight   { animation-name: popupExitZoomRight; }

/* ── SLIDE + FADE (8 directions) — composed ── */
@keyframes popupOpenSlideFadeTop         { from { opacity:0; transform: translate(var(--rp-x,0%), calc(var(--rp-y,0%) - 110vh)); visibility:visible; } to { opacity:1; transform: translate(var(--rp-x,0%), var(--rp-y,0%)); } }
@keyframes popupExitSlideFadeTop         { from { opacity:1; transform: translate(var(--rp-x,0%), var(--rp-y,0%)); } to { opacity:0; visibility:hidden; transform: translate(var(--rp-x,0%), calc(var(--rp-y,0%) - 110vh)); } }
@keyframes popupOpenSlideFadeBottom      { from { opacity:0; transform: translate(var(--rp-x,0%), calc(var(--rp-y,0%) + 110vh)); visibility:visible; } to { opacity:1; transform: translate(var(--rp-x,0%), var(--rp-y,0%)); } }
@keyframes popupExitSlideFadeBottom      { from { opacity:1; transform: translate(var(--rp-x,0%), var(--rp-y,0%)); } to { opacity:0; visibility:hidden; transform: translate(var(--rp-x,0%), calc(var(--rp-y,0%) + 110vh)); } }
@keyframes popupOpenSlideFadeLeft        { from { opacity:0; transform: translate(calc(var(--rp-x,0%) - 110vw), var(--rp-y,0%)); visibility:visible; } to { opacity:1; transform: translate(var(--rp-x,0%), var(--rp-y,0%)); } }
@keyframes popupExitSlideFadeLeft        { from { opacity:1; transform: translate(var(--rp-x,0%), var(--rp-y,0%)); } to { opacity:0; visibility:hidden; transform: translate(calc(var(--rp-x,0%) - 110vw), var(--rp-y,0%)); } }
@keyframes popupOpenSlideFadeRight       { from { opacity:0; transform: translate(calc(var(--rp-x,0%) + 110vw), var(--rp-y,0%)); visibility:visible; } to { opacity:1; transform: translate(var(--rp-x,0%), var(--rp-y,0%)); } }
@keyframes popupExitSlideFadeRight       { from { opacity:1; transform: translate(var(--rp-x,0%), var(--rp-y,0%)); } to { opacity:0; visibility:hidden; transform: translate(calc(var(--rp-x,0%) + 110vw), var(--rp-y,0%)); } }
@keyframes popupOpenSlideFadeTopLeft     { from { opacity:0; transform: translate(calc(var(--rp-x,0%) - 110vw), calc(var(--rp-y,0%) - 110vh)); visibility:visible; } to { opacity:1; transform: translate(var(--rp-x,0%), var(--rp-y,0%)); } }
@keyframes popupExitSlideFadeTopLeft     { from { opacity:1; transform: translate(var(--rp-x,0%), var(--rp-y,0%)); } to { opacity:0; visibility:hidden; transform: translate(calc(var(--rp-x,0%) - 110vw), calc(var(--rp-y,0%) - 110vh)); } }
@keyframes popupOpenSlideFadeTopRight    { from { opacity:0; transform: translate(calc(var(--rp-x,0%) + 110vw), calc(var(--rp-y,0%) - 110vh)); visibility:visible; } to { opacity:1; transform: translate(var(--rp-x,0%), var(--rp-y,0%)); } }
@keyframes popupExitSlideFadeTopRight    { from { opacity:1; transform: translate(var(--rp-x,0%), var(--rp-y,0%)); } to { opacity:0; visibility:hidden; transform: translate(calc(var(--rp-x,0%) + 110vw), calc(var(--rp-y,0%) - 110vh)); } }
@keyframes popupOpenSlideFadeBottomLeft  { from { opacity:0; transform: translate(calc(var(--rp-x,0%) - 110vw), calc(var(--rp-y,0%) + 110vh)); visibility:visible; } to { opacity:1; transform: translate(var(--rp-x,0%), var(--rp-y,0%)); } }
@keyframes popupExitSlideFadeBottomLeft  { from { opacity:1; transform: translate(var(--rp-x,0%), var(--rp-y,0%)); } to { opacity:0; visibility:hidden; transform: translate(calc(var(--rp-x,0%) - 110vw), calc(var(--rp-y,0%) + 110vh)); } }
@keyframes popupOpenSlideFadeBottomRight { from { opacity:0; transform: translate(calc(var(--rp-x,0%) + 110vw), calc(var(--rp-y,0%) + 110vh)); visibility:visible; } to { opacity:1; transform: translate(var(--rp-x,0%), var(--rp-y,0%)); } }
@keyframes popupExitSlideFadeBottomRight { from { opacity:1; transform: translate(var(--rp-x,0%), var(--rp-y,0%)); } to { opacity:0; visibility:hidden; transform: translate(calc(var(--rp-x,0%) + 110vw), calc(var(--rp-y,0%) + 110vh)); } }

.popupOpenSlideFadeTop         { animation-name: popupOpenSlideFadeTop; }
.popupExitSlideFadeTop         { animation-name: popupExitSlideFadeTop; }
.popupOpenSlideFadeBottom      { animation-name: popupOpenSlideFadeBottom; }
.popupExitSlideFadeBottom      { animation-name: popupExitSlideFadeBottom; }
.popupOpenSlideFadeLeft        { animation-name: popupOpenSlideFadeLeft; }
.popupExitSlideFadeLeft        { animation-name: popupExitSlideFadeLeft; }
.popupOpenSlideFadeRight       { animation-name: popupOpenSlideFadeRight; }
.popupExitSlideFadeRight       { animation-name: popupExitSlideFadeRight; }
.popupOpenSlideFadeTopLeft     { animation-name: popupOpenSlideFadeTopLeft; }
.popupExitSlideFadeTopLeft     { animation-name: popupExitSlideFadeTopLeft; }
.popupOpenSlideFadeTopRight    { animation-name: popupOpenSlideFadeTopRight; }
.popupExitSlideFadeTopRight    { animation-name: popupExitSlideFadeTopRight; }
.popupOpenSlideFadeBottomLeft  { animation-name: popupOpenSlideFadeBottomLeft; }
.popupExitSlideFadeBottomLeft  { animation-name: popupExitSlideFadeBottomLeft; }
.popupOpenSlideFadeBottomRight { animation-name: popupOpenSlideFadeBottomRight; }
.popupExitSlideFadeBottomRight { animation-name: popupExitSlideFadeBottomRight; }
/* ── END EXPANDED ANIMATIONS ── */

/* Ensure the entire popup container animates properly */
.randpublish-popup {
    display: none;
    position: fixed;
    z-index: 999999;
    max-width: calc(100vw - 1.5rem);
    max-height: calc(100vh - 1.5rem);
    overflow: visible;
    will-change: transform, opacity;
    transition: none;
}

/* Make sure all inner elements inherit animation properties */
.randpublish-popup-animated .randpublish-popup-wrap,
.randpublish-popup-animated .randpublish-popup-container,
.randpublish-popup-animated .randpublish-popup-outer,
.randpublish-popup-animated .randpublish-popup-content,
.randpublish-popup-animated .randpublish-popup-inner {
    animation: inherit !important;
    animation-duration: inherit !important;
}

/* Ensure border and frame are part of the animation */
.randpublish-popup-animated {
    animation-duration: 0.5s;
    animation-fill-mode: both;
}

/* Fix for exit animations - ensure full element fades out */
.popupExitFade,
.popupExitSlide,
.popupExitZoom,
.popupExitSlideFade {
    animation-duration: 0.5s;
    animation-fill-mode: forwards !important;
}

/* Prevent content from disappearing before the container */
.randpublish-popup .randpublish-popup-content,
.randpublish-popup .randpublish-popup-text,
.randpublish-popup .randpublish-popup-buttons {
    opacity: 1;
    transition: none;
}

/* When popup has exit animation, all children fade together */
.randpublish-popup-animated.popupExitFade,
.randpublish-popup-animated.popupExitSlide,
.randpublish-popup-animated.popupExitZoom,
.randpublish-popup-animated.popupExitSlideFade {
    animation-fill-mode: forwards;
}

/* Ensure overlay also animates consistently */
.randpublish-popup-overlay.randpublish-popup-animated {
    animation-duration: 0.5s;
    animation-fill-mode: forwards;
}

/* Ensure popup visibility */
.randpublish-popup.randpublish-popup-open {
    display: flex !important;
}

.randpublish-popup-open + .randpublish-popup-overlay {
    display: block !important;
}

@media (min-width: 720px) {
	.randpublish-popup {
		max-width: calc(100vw - 6rem);
		max-height: calc(100vh - 6rem);
	}
}

/*
 * Popup positions.
 * --rp-x / --rp-y store the centering offset used by the location's transform so that
 * animation keyframes can COMPOSE the offset into their from/to states rather than
 * replacing it. This prevents the centering from being lost during animation.
 */

/* Top positions */
.randpublish-popup.randpublish-popup-location-top {
	top: 20px;
	left: 50%;
	--rp-x: -50%; --rp-y: 0%;
	transform: translate(var(--rp-x), var(--rp-y));
}
.randpublish-popup.randpublish-popup-location-top-left {
	top: 20px;
	left: 20px;
	--rp-x: 0%; --rp-y: 0%;
	transform: translate(var(--rp-x), var(--rp-y));
}
.randpublish-popup.randpublish-popup-location-top-right {
	top: 20px;
	right: 20px;
	left: auto;
	--rp-x: 0%; --rp-y: 0%;
	transform: translate(var(--rp-x), var(--rp-y));
}

/* Bottom positions */
.randpublish-popup.randpublish-popup-location-bottom {
	bottom: 20px;
	left: 50%;
	--rp-x: -50%; --rp-y: 0%;
	transform: translate(var(--rp-x), var(--rp-y));
}
.randpublish-popup.randpublish-popup-location-bottom-left {
	left: 20px;
	bottom: 20px;
	top: auto;
	--rp-x: 0%; --rp-y: 0%;
	transform: translate(var(--rp-x), var(--rp-y));
}
.randpublish-popup.randpublish-popup-location-bottom-right {
	right: 20px;
	bottom: 20px;
	left: auto;
	top: auto;
	--rp-x: 0%; --rp-y: 0%;
	transform: translate(var(--rp-x), var(--rp-y));
}

/* Side positions */
.randpublish-popup.randpublish-popup-location-left {
	top: 50%;
	left: 20px;
	--rp-x: 0%; --rp-y: -50%;
	transform: translate(var(--rp-x), var(--rp-y));
}
.randpublish-popup.randpublish-popup-location-right {
	top: 50%;
	right: 20px;
	left: auto;
	--rp-x: 0%; --rp-y: -50%;
	transform: translate(var(--rp-x), var(--rp-y));
}

/* Center */
.randpublish-popup.randpublish-popup-location-center {
	top: 50%;
	left: 50%;
	--rp-x: -50%; --rp-y: -50%;
	transform: translate(var(--rp-x), var(--rp-y));
}

/* POPUP CONTAINER STRUCTURE - OPTIMIZED TO PREVENT UNNECESSARY SCROLLBARS */
.randpublish-popup .randpublish-popup-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    box-shadow: var(--randpublish-popup-wrap-box-shadow);
    overflow: hidden;
    /* border-radius is set via inline style from PHP when configured */
}

.randpublish-popup .randpublish-popup-container {
    background: var(--randpublish-popup-container-background);
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: inherit;
}

.randpublish-popup .randpublish-popup-outer {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: inherit;
}

/* CONTENT BOX - SCROLLING ONLY WHEN CONTENT EXCEEDS HEIGHT */
.randpublish-popup-type-content .randpublish-popup-content {
    padding: 20px;
    width: 100%;
    height: 100%;
    overflow: visible;
    box-sizing: border-box;
}

/* When height is fixed, enable scrolling */
.randpublish-popup-type-content[style*="height:"] .randpublish-popup-content {
    overflow-y: auto;
}

.randpublish-popup-type-content .randpublish-popup-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    height: auto;
    overflow: visible;
}

/* NOTIFICATION BOX - SCROLLING ONLY WHEN NEEDED */
.randpublish-popup-type-notification-box .randpublish-popup-outer {
    padding: 30px;
    width: 100%;
    height: 100%;
    overflow: visible;
    box-sizing: border-box;
}

/* When height is fixed, enable scrolling */
.randpublish-popup-type-notification-box[style*="height:"] .randpublish-popup-outer {
    overflow-y: auto;
}

.randpublish-popup-type-notification-box .randpublish-popup-text {
    padding-right: 10px;
    font-size: var(--randpublish-popup-type-notification-text-font-size);
    color: var(--randpublish-popup-type-notification-text-color);
    overflow: visible;
}

/* ===== ENHANCED BUTTON STYLING WITH RADIO PRESETS ===== */
.randpublish-popup-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--randpublish-button-gap, 10px);
    margin-top: 15px;
    position: relative;
    z-index: 2;
    justify-content: var(--randpublish-button-justify, flex-start);
}

/* Base button styles */
.randpublish-popup-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: var(--randpublish-button-font-size, 14px);
    padding: var(--randpublish-button-padding-top, 10px) 
             var(--randpublish-button-padding-right, 20px) 
             var(--randpublish-button-padding-bottom, 10px) 
             var(--randpublish-button-padding-left, 20px);
    border-radius: var(--randpublish-button-border-radius, 0);
    border-width: var(--randpublish-button-border-width, 0);
    border-style: solid;
    border-color: var(--randpublish-button-border-color, #dddddd);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
    line-height: 1.4;
    font-weight: normal;
    letter-spacing: normal;
    text-transform: none;
    position: relative;
    overflow: hidden;
}

/* ===== BUTTON STYLE PRESETS ===== */

/* 1. DEFAULT STYLE (Solid) */
.randpublish-popup-button[data-button-style="default"],
.randpublish-popup-button:not([data-button-style]) {
    background: var(--randpublish-button-bg, #282828);
    color: var(--randpublish-button-text, #FFF);
    border: none;
    box-shadow: var(--randpublish-button-shadow, none);
}

.randpublish-popup-button[data-button-style="default"]:hover,
.randpublish-popup-button:not([data-button-style]):hover {
    background: var(--randpublish-button-bg-hover, #1a1a1a);
    color: var(--randpublish-button-text-hover, #FFF);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* 2. OUTLINE STYLE */
.randpublish-popup-button[data-button-style="outline"] {
    background: transparent;
    color: var(--randpublish-button-outline-text, #282828);
    border: var(--randpublish-button-outline-border-width, 2px) solid var(--randpublish-button-outline-border-color, #282828);
    box-shadow: none;
}

.randpublish-popup-button[data-button-style="outline"]:hover {
    background: var(--randpublish-button-outline-border-color, #282828);
    color: var(--randpublish-button-outline-hover-text, #ffffff);
    transform: translateY(-2px);
}

/* 3. GHOST STYLE */
.randpublish-popup-button[data-button-style="ghost"] {
    background: transparent;
    color: var(--randpublish-button-ghost-text, #282828);
    border: none;
    box-shadow: none;
}

.randpublish-popup-button[data-button-style="ghost"]:hover {
    background: var(--randpublish-button-ghost-hover-bg, rgba(40, 40, 40, 0.1));
    color: var(--randpublish-button-ghost-hover-text, #282828);
    transform: translateY(-2px);
}

/* 4. ROUNDED STYLE */
.randpublish-popup-button[data-button-style="rounded"] {
    background: var(--randpublish-button-bg, #282828);
    color: var(--randpublish-button-text, #FFF);
    border: none;
    border-radius: var(--randpublish-button-rounded-radius, 25px);
    box-shadow: var(--randpublish-button-shadow, none);
}

.randpublish-popup-button[data-button-style="rounded"]:hover {
    background: var(--randpublish-button-bg-hover, #1a1a1a);
    color: var(--randpublish-button-text-hover, #FFF);
    transform: translateY(-2px);
}

/* 5. PILL STYLE */
.randpublish-popup-button[data-button-style="pill"] {
    background: var(--randpublish-button-bg, #282828);
    color: var(--randpublish-button-text, #FFF);
    border: none;
    border-radius: var(--randpublish-button-pill-radius, 50px);
    box-shadow: var(--randpublish-button-shadow, none);
}

.randpublish-popup-button[data-button-style="pill"]:hover {
    background: var(--randpublish-button-bg-hover, #1a1a1a);
    color: var(--randpublish-button-text-hover, #FFF);
    transform: translateY(-2px);
}

/* 6. GRADIENT STYLE */
.randpublish-popup-button[data-button-style="gradient"] {
    background: linear-gradient(135deg, 
                var(--randpublish-button-gradient-start, #282828) 0%, 
                var(--randpublish-button-gradient-end, #4a4a4a) 100%);
    color: var(--randpublish-button-text, #FFF);
    border: none;
    box-shadow: var(--randpublish-button-shadow, none);
}

.randpublish-popup-button[data-button-style="gradient"]:hover {
    background: linear-gradient(135deg, 
                var(--randpublish-button-gradient-hover-start, #1a1a1a) 0%, 
                var(--randpublish-button-gradient-hover-end, #3a3a3a) 100%);
    color: var(--randpublish-button-text-hover, #FFF);
    transform: translateY(-2px);
}

/* 7. SHADOW STYLE */
.randpublish-popup-button[data-button-style="shadow"] {
    background: var(--randpublish-button-bg, #282828);
    color: var(--randpublish-button-text, #FFF);
    border: none;
    box-shadow: 0 var(--randpublish-button-shadow-blur, 10px) var(--randpublish-button-shadow-color, rgba(0,0,0,0.2));
}

.randpublish-popup-button[data-button-style="shadow"]:hover {
    background: var(--randpublish-button-bg-hover, #1a1a1a);
    color: var(--randpublish-button-text-hover, #FFF);
    transform: translateY(-2px);
    box-shadow: 0 calc(var(--randpublish-button-shadow-hover-blur, 15px)) var(--randpublish-button-shadow-color, rgba(0,0,0,0.25));
}

/* 8. 3D STYLE */
.randpublish-popup-button[data-button-style="3d"] {
    background: var(--randpublish-button-bg, #282828);
    color: var(--randpublish-button-text, #FFF);
    border: none;
    box-shadow: 0 var(--randpublish-button-3d-depth, 4px) 0 var(--randpublish-button-3d-color, #1a1a1a);
    transform: translateY(0);
}

.randpublish-popup-button[data-button-style="3d"]:hover {
    background: var(--randpublish-button-bg-hover, #1a1a1a);
    color: var(--randpublish-button-text-hover, #FFF);
    transform: translateY(calc(-1 * var(--randpublish-button-3d-depth, 4px) / 2));
    box-shadow: 0 calc(var(--randpublish-button-3d-depth, 4px) * 0.75) 0 var(--randpublish-button-3d-color, #1a1a1a);
}

.randpublish-popup-button[data-button-style="3d"]:active {
    transform: translateY(var(--randpublish-button-3d-depth, 4px));
    box-shadow: none;
}

/* ===== ACCEPT BUTTON STYLING ===== */
.randpublish-popup-button.randpublish-popup-accept {
    /* Accept button inherits styles from its data-button-style */
}

/* ===== REJECT BUTTON STYLING WITH PRESETS ===== */

/* Reject - Default */
.randpublish-popup-button.randpublish-popup-reject[data-button-style="default"],
.randpublish-popup-button.randpublish-popup-reject:not([data-button-style]) {
    background: var(--randpublish-reject-button-bg, #dc3232);
    color: var(--randpublish-reject-button-text, #FFF);
}

.randpublish-popup-button.randpublish-popup-reject[data-button-style="default"]:hover,
.randpublish-popup-button.randpublish-popup-reject:not([data-button-style]):hover {
    background: var(--randpublish-reject-button-bg-hover, #a02222);
    color: var(--randpublish-reject-button-text-hover, #FFF);
}

/* Reject - Outline */
.randpublish-popup-button.randpublish-popup-reject[data-button-style="outline"] {
    background: transparent;
    color: var(--randpublish-reject-button-outline-text, #dc3232);
    border-color: var(--randpublish-reject-button-outline-border-color, #dc3232);
}

.randpublish-popup-button.randpublish-popup-reject[data-button-style="outline"]:hover {
    background: var(--randpublish-reject-button-outline-border-color, #dc3232);
    color: #ffffff;
}

/* Reject - Ghost */
.randpublish-popup-button.randpublish-popup-reject[data-button-style="ghost"] {
    background: transparent;
    color: var(--randpublish-reject-button-ghost-text, #dc3232);
}

.randpublish-popup-button.randpublish-popup-reject[data-button-style="ghost"]:hover {
    background: rgba(220, 50, 50, 0.1);
    color: var(--randpublish-reject-button-ghost-text, #dc3232);
}

/* Reject - Gradient */
.randpublish-popup-button.randpublish-popup-reject[data-button-style="gradient"] {
    background: linear-gradient(135deg, 
                var(--randpublish-reject-button-gradient-start, #dc3232) 0%, 
                var(--randpublish-reject-button-gradient-end, #b02a2a) 100%);
}

.randpublish-popup-button.randpublish-popup-reject[data-button-style="gradient"]:hover {
    background: linear-gradient(135deg, 
                var(--randpublish-reject-button-bg-hover, #a02222) 0%, 
                var(--randpublish-reject-button-gradient-end, #8a1d1d) 100%);
}

/* Reject - 3D */
.randpublish-popup-button.randpublish-popup-reject[data-button-style="3d"] {
    box-shadow: 0 var(--randpublish-button-3d-depth, 4px) 0 var(--randpublish-reject-button-3d-color, #a02222);
}

/* Reject - inherits other styles from main button presets */
.randpublish-popup-button.randpublish-popup-reject[data-button-style="rounded"],
.randpublish-popup-button.randpublish-popup-reject[data-button-style="pill"],
.randpublish-popup-button.randpublish-popup-reject[data-button-style="shadow"] {
    background: var(--randpublish-reject-button-bg, #dc3232);
    color: var(--randpublish-reject-button-text, #FFF);
}

.randpublish-popup-button.randpublish-popup-reject[data-button-style="rounded"]:hover,
.randpublish-popup-button.randpublish-popup-reject[data-button-style="pill"]:hover,
.randpublish-popup-button.randpublish-popup-reject[data-button-style="shadow"]:hover {
    background: var(--randpublish-reject-button-bg-hover, #a02222);
}

/* Link button styling */
.randpublish-popup-button[href] {
    /* Links inherit styles from their data-button-style */
}

/* Button group layout for notification box */
.randpublish-popup-type-notification-box .randpublish-popup-buttons {
    justify-content: var(--randpublish-button-justify, flex-start);
}

/* NOTIFICATION BAR - ENHANCED FOR MULTIPLE BUTTONS */
.randpublish-popup-type-notification-bar {
	max-width: 100% !important;
	width: 100%;
}

.randpublish-popup-type-notification-bar.randpublish-popup-location-top {
	top: 0;
	left: 0;
	right: 0;
	bottom: auto;
	transform: none;
}

.randpublish-popup-type-notification-bar.randpublish-popup-location-bottom {
	top: auto;
	left: 0;
	right: 0;
	bottom: 0;
	transform: none;
}

.randpublish-popup-type-notification-bar .randpublish-popup-outer {
    padding: 20px 60px;
    width: 100%;
    height: 100%;
    overflow: visible;
    box-sizing: border-box;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.randpublish-popup-type-notification-bar .randpublish-popup-text {
    flex: 1;
    margin-right: 20px;
    font-size: var(--randpublish-popup-type-notification-text-font-size);
    color: var(--randpublish-popup-type-notification-text-color);
}

.randpublish-popup-type-notification-bar .randpublish-popup-text a {
    color: var(--randpublish-popup-type-notification-text-link-color);
    text-decoration: underline;
}

.randpublish-popup-type-notification-bar .randpublish-popup-text a:hover {
    text-decoration: none;
}

.randpublish-popup-type-notification-bar .randpublish-popup-buttons {
    margin-top: 0;
    flex-shrink: 0;
    justify-content: var(--randpublish-button-justify, flex-end);
}

/* When height is fixed, enable scrolling */
.randpublish-popup-type-notification-bar[style*="height:"] .randpublish-popup-outer {
    overflow-y: auto;
}

/* SCROLLBAR STYLING - Only appears when overflow-y: auto is triggered */
.randpublish-popup .randpublish-popup-wrap::-webkit-scrollbar {
    width: var(--randpublish-popup-wrap-scrollbar-width);
}
.randpublish-popup .randpublish-popup-wrap::-webkit-scrollbar-track {
    background: var(--randpublish-popup-wrap-scrollbar-track-background);
}
.randpublish-popup .randpublish-popup-wrap::-webkit-scrollbar-thumb {
    background: var(--randpublish-popup-wrap-scrollbar-thumb-background);
}
.randpublish-popup .randpublish-popup-wrap::-webkit-scrollbar-thumb:hover {
    background: var(--randpublish-popup-wrap-scrollbar-thumb-hover-background);
}

/* Firefox scrollbar styling */
.randpublish-popup .randpublish-popup-wrap {
    scrollbar-width: thin;
    scrollbar-color: var(--randpublish-popup-wrap-scrollbar-thumb-background) var(--randpublish-popup-wrap-scrollbar-track-background);
}

/* ===== CLOSE BUTTON STYLES ===== */
.randpublish-popup-close {
    position: absolute;
    background: transparent;
    color: var(--randpublish-popup-close-color, #000000);
    padding: 0;
    line-height: 1;
    font-size: var(--randpublish-popup-close-font-size, 1.25rem);
    border: none;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
    border-radius: 50%;
}
.randpublish-popup-close:hover {
    opacity: 0.8;
    transform: scale(1.1);
}
.randpublish-popup-close:before {
    font-family: 'randpublish-icons';
    content: "\e913";
    font-size: inherit;
}

/* Inside positions - contained within popup */
.randpublish-popup-close.close-inside-right-top { 
    top: 20px; 
    right: 20px; 
    left: auto; 
    bottom: auto; 
}
.randpublish-popup-close.close-inside-left-top { 
    top: 20px; 
    left: 20px; 
    right: auto; 
    bottom: auto; 
}

/* Outside positions - FIXED for all popup types */
.randpublish-popup-close.close-outside-right-top,
.randpublish-popup-close.close-outside-left-top {
    position: absolute;
    width: 30px;
    height: 30px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    border-radius: 50%;
    z-index: 20;
}

/* Outside Right Top - FIXED */
.randpublish-popup-close.close-outside-right-top { 
    top: -15px; 
    right: -15px; 
    left: auto; 
    bottom: auto; 
}

/* Outside Left Top - FIXED */
.randpublish-popup-close.close-outside-left-top { 
    top: -15px; 
    left: -15px; 
    right: auto; 
    bottom: auto; 
}

/* Outside close buttons are rendered as siblings of .randpublish-popup-wrap in the DOM,
   so they remain visible even though the wrap has overflow:hidden for border-radius clipping. */

/* Notification Box inner dimensions */
.randpublish-popup-type-notification-box .randpublish-popup-outer {
    padding: 30px;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    position: relative;
}

.randpublish-popup-type-notification-box .randpublish-popup-container {
    position: relative;
}

/* Fix for close button visibility on notification boxes */
.randpublish-popup-type-notification-box .randpublish-popup-close.close-outside-right-top,
.randpublish-popup-type-notification-box .randpublish-popup-close.close-outside-left-top {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    border-radius: 50%;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .randpublish-popup-buttons {
        gap: calc(var(--randpublish-button-gap, 10px) * 0.8);
    }
    
    .randpublish-popup-button {
        padding: calc(var(--randpublish-button-padding-top, 10px) * 0.8) 
                 calc(var(--randpublish-button-padding-right, 20px) * 0.8) 
                 calc(var(--randpublish-button-padding-bottom, 10px) * 0.8) 
                 calc(var(--randpublish-button-padding-left, 20px) * 0.8);
        font-size: calc(var(--randpublish-button-font-size, 14px) * 0.9);
        min-width: 80px;
    }
}

@media (max-width: 720px) {
    .randpublish-popup.randpublish-popup-open[data-mobile-disable="true"] {
        display: none;
    }
    
    .randpublish-popup-type-notification-bar .randpublish-popup-outer {
        flex-direction: column;
        text-align: center;
        padding: 15px 40px;
    }
    
    .randpublish-popup-type-notification-bar .randpublish-popup-text {
        margin-right: 0;
        margin-bottom: 15px;
        text-align: center;
    }
    
    .randpublish-popup-buttons {
        justify-content: center;
        width: 100%;
    }
    
    .randpublish-popup-button {
        flex: 1 1 auto;
        min-width: 120px;
    }
    
    .randpublish-popup-type-notification-bar .randpublish-popup-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .randpublish-popup-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .randpublish-popup-button {
        width: 100%;
        min-width: 100%;
    }
    
    .randpublish-popup-type-notification-bar .randpublish-popup-outer {
        padding: 15px 20px;
    }
    
    .randpublish-popup-close.close-outside-right-top,
    .randpublish-popup-close.close-outside-left-top {
        top: 5px;
        right: 5px;
        left: auto;
        background: #fff;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }
}

/* Print styles - hide popups when printing */
@media print {
    .randpublish-popup,
    .randpublish-popup-overlay {
        display: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .randpublish-popup-button {
        border: 2px solid currentColor;
    }
    
    .randpublish-popup-close {
        border: 1px solid currentColor;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .randpublish-popup-animated,
    .randpublish-popup-button,
    .randpublish-popup-close {
        animation: none !important;
        transition: none !important;
    }
    
    .randpublish-popup-button:hover {
        transform: none;
    }
    
    .randpublish-popup-button[data-button-style="3d"]:hover,
    .randpublish-popup-button[data-button-style="3d"]:active {
        transform: none;
    }
}