.pmc-coupon-container {
    border: 3px dashed #333;
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    max-width: 450px;
    position: relative;
    font-family: Arial, sans-serif;
    color: #000;
}

.pmc-header { font-weight: bold; font-size: 1.4em; text-transform: uppercase; border-bottom: 2px solid #000; margin-bottom: 10px; }
.pmc-amount {
    font-size: 3em;
    font-weight: bold;
    text-align: center;
    margin: 20px 0;
    line-height: 1;
}
.pmc-body { font-size: 1.1em; margin: 15px 0; }
.pmc-fine-print { font-size: 0.7em; color: #555; line-height: 1; margin-top: 15px; }

/* Making it look professional */
.pmc-barcode-area {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}
.pmc-barcode-logo { max-height: 50px; width: auto; }
.pmc-barcode {
    display: block;
}

.pmc-click-me { cursor: pointer; transition: transform 0.2s; }
.pmc-click-me:hover { transform: scale(1.01); }

/* --- Summary View --- */
.pmc-coupons-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.pmc-coupon-wrapper {
    border: 1px solid #ccc;
    padding: 15px;
    width: calc(50% - 10px);
    box-sizing: border-box;
    background: #f9f9f9;
}
.pmc-summary-image {
    width: calc(100% + 30px);
    margin: -15px -15px 15px -15px;
    height: 200px;
    object-fit: cover;
    display: block;
    max-width: none;
}
.pmc-summary h3 { margin-top: 0; }
.pmc-summary-amount { font-size: 2em; font-weight: bold; color: #d9534f; margin: 10px 0; }
.pmc-get-coupon-btn {
    background-color: #5cb85c;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 1.2em;
    cursor: pointer;
    width: 100%;
    margin-bottom: 10px;
}
.pmc-get-coupon-btn:hover { background-color: #4cae4c; }
.pmc-status {
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
    text-align: center;
    background-color: #eeeeee;
    padding: 8px;
    border-radius: 4px;
}
.pmc-remaining {
    font-size: 1.5em;
    color: red;
}

/* --- Modal View --- */
.pmc-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pmc-modal-content {
    background: #fff;
    padding: 20px;
    position: relative;
    max-width: 500px;
    width: 90%;
}
.pmc-modal-close {
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 2em;
    line-height: 1;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #888;
    z-index: 10;
}
.pmc-modal-actions { text-align: center; margin-top: 20px; padding-top: 20px; border-top: 1px solid #eee; }
.pmc-modal-actions button { padding: 8px 12px; margin: 5px; cursor: pointer; }
.pmc-email-form { margin-top: 15px; padding: 10px; background: #f5f5f5; border: 1px solid #ddd; }
.pmc-email-input { padding: 8px; width: 60%; }
.pmc-email-status { font-size: 0.9em; margin-top: 5px; }

/* --- Print Styles --- */
@media print {
    /* Make all elements invisible but keep them in the layout */
    body * { visibility: hidden; }
    /* Make the coupon and its containers visible again */
    .pmc-modal-overlay, .pmc-modal-content, .pmc-coupon-container, .pmc-coupon-container * { visibility: visible; }
    /* Position the modal overlay to cover the entire page, hiding everything else */
    .pmc-modal-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: #fff; display: block; }
    /* Reset the modal content styles to fill the container */
    .pmc-modal-content { box-shadow: none; border: none; padding: 0; width: 100%; max-width: 100%; }
    .pmc-modal-close, .pmc-modal-actions { display: none; }
}

@media (max-width: 768px) {
    .pmc-coupon-wrapper { width: 100%; }
}