/* PMD_COUPON_STABLE_R24
 * First-paint Coupons authority.
 * Keeps only Coupon / Gift card / Voucher owner-visible, removes the obsolete
 * header create affordance/divider, and styles the in-grid smart add card.
 */

body.pmd-coupon-manager-page
#pmd-r2-clean-header
[data-pmd-coupon-create],
body.pmd-coupon-manager-page
#pmd-r2-clean-header
[data-pmd-main-header-notification-gap-r67],
body.pmd-coupon-manager-page
#pmd-r2-clean-header
[data-pmd-main-header-notification-divider-r67],
body.pmd-coupon-manager-page
#pmd-r2-clean-header
[data-pmd-main-header-notification-divider-r66] {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

/* Keep the bell clean when its source node is moved into the Coupons header. */
body.pmd-coupon-manager-page
#notif-root
[data-pmd-main-header-notification-divider-r66] {
    display: none !important;
}

/* Only these three owner-facing types remain exposed. The legacy data remains
 * untouched in the DOM/backend so it can be surfaced elsewhere later. */
body.pmd-coupon-manager-page
.pmd-coupon-manager__types
[data-pmd-type-filter="all"],
body.pmd-coupon-manager-page
.pmd-coupon-manager__types
[data-pmd-type-filter="credit"],
body.pmd-coupon-manager-page
.pmd-coupon-manager__types
[data-pmd-type-filter="comp"],
body.pmd-coupon-manager-page
[data-pmd-card-type="credit"],
body.pmd-coupon-manager-page
[data-pmd-card-type="comp"],
body.pmd-coupon-manager-page
[data-pmd-coupon-card][data-card-type="credit"],
body.pmd-coupon-manager-page
[data-pmd-coupon-card][data-card-type="comp"] {
    display: none !important;
}

/* R23 used a pseudo-card and later replaced it with a real card. That visual
 * swap was the refresh blink. R24 has one real card only. */
body.pmd-coupon-manager-page
.pmd-coupon-manager__grid::before,
body.pmd-coupon-manager-page
.pmd-coupon-manager__grid::after {
    content: none !important;
    display: none !important;
}

body.pmd-coupon-manager-page
.pmd-coupon-manager__grid > .pmd-coupon-smart-add-card {
    position: relative !important;
    inset: auto !important;
    float: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 13px !important;
    align-self: stretch !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 330px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 24px !important;
    border: 1.5px dashed #9dc4c7 !important;
    border-radius: 16px !important;
    background: #f8fcfc !important;
    color: #174d50 !important;
    text-align: center !important;
    cursor: pointer !important;
    box-shadow: none !important;
    overflow: hidden !important;
    transform: none !important;
    translate: none !important;
    rotate: none !important;
    animation: none !important;
    transition: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
}

body.pmd-coupon-manager-page
.pmd-coupon-manager__grid > .pmd-coupon-smart-add-card:hover,
body.pmd-coupon-manager-page
.pmd-coupon-manager__grid > .pmd-coupon-smart-add-card:focus-visible {
    border-color: #5e9fa1 !important;
    background: #f2f9f8 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(50,130,130,.08) !important;
}

body.pmd-coupon-manager-page .pmd-coupon-smart-add-card__plus {
    position: static !important;
    inset: auto !important;
    display: grid !important;
    place-items: center !important;
    width: 54px !important;
    min-width: 54px !important;
    max-width: 54px !important;
    height: 54px !important;
    min-height: 54px !important;
    max-height: 54px !important;
    flex: 0 0 54px !important;
    margin: 0 !important;
    padding: 0 0 3px !important;
    border: 1px solid #b8d7d7 !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: #174d50 !important;
    font-size: 32px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    box-shadow: none !important;
    transform: none !important;
}

body.pmd-coupon-manager-page .pmd-coupon-smart-add-card__copy {
    position: static !important;
    inset: auto !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
}

body.pmd-coupon-manager-page .pmd-coupon-smart-add-card__copy strong,
body.pmd-coupon-manager-page .pmd-coupon-smart-add-card__copy small {
    position: static !important;
    inset: auto !important;
    display: block !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    transform: none !important;
}

body.pmd-coupon-manager-page .pmd-coupon-smart-add-card__copy strong {
    margin: 0 !important;
    color: #173752 !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
}

body.pmd-coupon-manager-page .pmd-coupon-smart-add-card__copy small {
    margin: 5px 0 0 !important;
    color: #718690 !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
}

@media (max-width: 760px) {
    body.pmd-coupon-manager-page
    .pmd-coupon-manager__grid > .pmd-coupon-smart-add-card {
        min-height: 230px !important;
    }
}
