.oplp-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    display: none;
    z-index: 99999;
    overflow-y: auto;
}

.oplp-popup {
    background: #ffffff;
    max-width: 520px;
    width: 94%;
    margin: 56px auto;
    border-radius: 14px;
    box-shadow: 0 22px 55px rgba(0,0,0,0.35);
    position: relative;
    padding: 22px 22px 20px;
    font-size: 15px;
    line-height: 1.6;
}

.oplp-inner {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
}

.oplp-image img {
    max-width: 160px;
    height: auto;
    border-radius: 10px;
    display: block;
}

.oplp-content {
    flex: 1 1 auto;
}

.oplp-title {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.35;
    font-weight: 700;
}

.oplp-message {
    margin-bottom: 18px;
    font-size: 14px;
}

.oplp-message p {
    margin: 0 0 10px;
}

.oplp-field {
    margin-bottom: 12px;
}

.oplp-field input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #d5d5d5;
    font-size: 14px;
    box-sizing: border-box;
}

.oplp-field input:focus {
    outline: none;
    border-color: #111;
    box-shadow: 0 0 0 1px #11111114;
}

.oplp-submit {
    width: 100%;
    padding: 12px 16px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    background: #111;
    color: #fff;
    text-align: center;
    margin-top: 4px;
}

.oplp-submit:hover {
    filter: brightness(1.06);
}

.oplp-close {
    position: absolute;
    right: 12px;
    top: 8px;
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

.oplp-success {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #ececec;
}

.oplp-success-headline {
    margin: 0 0 8px;
    font-size: 19px;
    font-weight: 700;
}

.oplp-success-message {
    margin: 0 0 10px;
    font-size: 14px;
}

/* Coupon styling */
.oplp-coupon-wrap {
    margin-top: 10px;
}

.oplp-coupon {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 2px dashed #111;
    border-radius: 12px;
    padding: 9px 14px;
    margin-bottom: 8px;
    background: #fafafa;
}

.oplp-coupon-code {
    font-family: monospace;
    font-size: 15px;
    letter-spacing: 0.12em;
}

.oplp-coupon-copy {
    border: none;
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 13px;
    cursor: pointer;
    font-weight: 600;
    background: #111;
    color: #fff;
    white-space: nowrap;
}

.oplp-coupon-copy:hover {
    filter: brightness(1.06);
}

.oplp-coupon-helper {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

/* Trigger link baseline styling (if theme doesn't override) */
.oplp-trigger-link {
    cursor: pointer;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 640px) {
    .oplp-popup {
        margin: 40px auto;
        padding: 18px 16px 18px;
    }

    .oplp-inner {
        flex-direction: column;
    }

    .oplp-image {
        text-align: center;
    }

    .oplp-image img {
        max-width: 220px;
    }

    .oplp-title {
        font-size: 20px;
    }

    .oplp-message {
        font-size: 14px;
    }
}
