/* ── Info Popup – frontend styles ───────────────────────────── */

.ip-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}
.ip-overlay[hidden] { display: none !important; }

/* Fade-in */
@keyframes ip-fadein {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
.ip-overlay.ip-fade .ip-popup {
    animation: ip-fadein 0.35s ease;
}

/* Popup box */
.ip-popup {
    position: relative;
    background: var(--ip-bg, #ffffff);
    border: var(--ip-bw, 4px) solid var(--ip-border, #00ACFF);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    max-width: var(--ip-max-width, 560px);
    width: 100%;
    padding: 40px 32px 32px;
    text-align: center;
    box-sizing: border-box;
    font-family: inherit;
}

/* Image */
.ip-image {
    margin: 0 0 20px;
    line-height: 0;
}
.ip-image .ip-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}
.ip-image--only {
    margin: -8px -12px 16px;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
}
.ip-image--only .ip-img {
    width: 100%;
    border-radius: 0;
}

/* Close ×  */
.ip-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    font-size: 20px;
    line-height: 1;
	background: #ffe5e5;
    color: #ff4444;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s;
}
.ip-close:hover { 
	color: #fff; 
	background: #ff4444;
}

/* Title */
.ip-title {
    color: var(--ip-title-color, #007bff);
    font-size: var(--ip-title-size, 26px);
    line-height: 1.3;
    margin: 0 0 12px;
    padding: 0;
}

/* Body text */
.ip-text {
    color: var(--ip-text-color, #333);
    font-size: var(--ip-text-size, 16px);
    line-height: 1.55;
    margin: 0 0 22px;
    padding: 0;
}
.ip-text a { color: var(--ip-border, #007bff); }

/* CTA button */
.ip-cta {
    display: inline-block;
    background: #00ACFF;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 16px;
    font-weight: 600;
    padding: 10px 28px;
    border-radius: 5px;
	box-shadow: rgba(9, 30, 66, 0.25) 0px 4px 8px -2px, rgba(9, 30, 66, 0.08) 0px 0px 0px 1px;
    transition: filter 0.2s ease;
}
.ip-cta:hover { 
	background: #0073FF;
 }

/* Dismiss */
.ip-dismiss {
    display: block;
    margin: 16px auto 0;
    background: none;
    border: none;
    color: #b40000;
    font-size: 13px;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
}
.ip-dismiss:hover { color: #555; }

@media (max-width: 600px) {
    .ip-popup { max-width: calc(100vw - 32px) !important; padding: 36px 20px 24px; }
    .ip-title  { font-size: 20px; }
    .ip-image--only { margin: -8px -4px 16px; }
}
