/* Admin campaigns: tweaks on top of admin-shop.css grid. */
.camp-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.7rem;
    color: #fff;
}
.camp-status.is-on   { background: #27ae60; }
.camp-status.is-off  { background: #95a5a6; }
.camp-status.is-warn { background: #f39c12; }

.camp-discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e74c3c;
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    padding: 6px 12px;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    letter-spacing: 0.5px;
}
.shop-card-media {
    position: relative;
}

/* Plan override list inside the campaign modal */
.camp-overrides-list {
    border: 1px solid #eee;
    border-radius: 8px;
    max-height: 280px;
    overflow-y: auto;
    background: #fafafa;
}
.camp-ovr-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid #eee;
}
.camp-ovr-row:last-child { border-bottom: none; }
.camp-ovr-name {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.9rem;
}
.camp-ovr-name strong { color: #333; }
.camp-ovr-name small { color: #888; font-size: 0.78rem; }
.camp-ovr-tags {
    font-size: 0.72rem;
    color: #f97316;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}
.camp-ovr-input {
    width: 120px;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-align: right;
}

/* Public popup */
.campaign-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: campFadeIn 220ms ease-out;
}
.campaign-popup {
    background: #fff;
    border-radius: 14px;
    max-width: 460px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    position: relative;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    animation: campPopIn 280ms cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.campaign-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}
.campaign-popup-close:hover { background: rgba(0, 0, 0, 0.8); }

.campaign-popup-image {
    width: 100%;
    max-height: 240px;
    object-fit: cover;
    display: block;
}

.campaign-popup-body {
    padding: 22px 24px 20px;
    text-align: center;
}
.campaign-popup-body h2 {
    margin: 0 0 10px;
    color: #222;
    font-size: 1.5rem;
}
.campaign-popup-body p {
    margin: 0 0 18px;
    color: #444;
    line-height: 1.5;
    white-space: pre-wrap;
}
.campaign-popup-cta {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 8px;
    background: #f97316;
    color: #fff !important;
    font-weight: 700;
    text-decoration: none;
    transition: background 150ms ease;
}
.campaign-popup-cta:hover { background: #ea580c; }

@keyframes campFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes campPopIn {
    from { transform: scale(0.85); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}

@media (max-width: 480px) {
    .campaign-popup { max-width: 100%; }
    .campaign-popup-body h2 { font-size: 1.25rem; }
}
