/* ONYX PAYMENT POLISH V1: methods, refunds, QR and icon dedupe */

/* QR must stay scan-friendly regardless of global glass selectors. */
.sub-share-qr-shell {
    position: relative !important;
    isolation: isolate !important;
    background: #fff !important;
    background-image: none !important;
    border: 1px solid rgba(255,255,255,.55) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    box-shadow: 0 16px 38px rgba(0,0,0,.28) !important;
}
.sub-share-qr-shell::before,
.sub-share-qr-shell::after {
    content: none !important;
    display: none !important;
}
.sub-share-qr-shell img {
    position: relative !important;
    z-index: 2 !important;
    display: block;
    background: #fff !important;
    filter: none !important;
    opacity: 1 !important;
    mix-blend-mode: normal !important;
    -webkit-mask: none !important;
    mask: none !important;
}
.sub-share-placeholder {
    position: relative;
    z-index: 2;
    color: #5d5663 !important;
}

/* A subscription menu item must use its dedicated icon slot only. */
.sub-manage-item > img.onyx-pack-icon-v1 {
    display: none !important;
}
.sub-manage-item-icon > img.onyx-pack-icon-v1 ~ img.onyx-pack-icon-v1,
button > img.onyx-pack-icon-v1 ~ img.onyx-pack-icon-v1,
a > img.onyx-pack-icon-v1 ~ img.onyx-pack-icon-v1 {
    display: none !important;
}

.onyx-history-copy {
    min-width: 0;
}
.onyx-refund-row-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 8px;
}
.onyx-refund-request-button,
.onyx-refund-ticket-link {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 11px;
    border-radius: 11px;
    border: 1px solid rgba(255,255,255,.14);
    background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.04));
    color: #f4edf8;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    -webkit-backdrop-filter: blur(13px) saturate(108%);
    backdrop-filter: blur(13px) saturate(108%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.11), 0 7px 17px rgba(0,0,0,.14);
}
.onyx-refund-request-button:hover,
.onyx-refund-ticket-link:hover {
    background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.065));
    border-color: rgba(255,84,191,.30);
}
.onyx-refund-request-button:disabled {
    opacity: .55;
    cursor: default;
}
.onyx-refund-status-badge {
    min-height: 29px;
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,83,191,.24);
    background: rgba(229,32,133,.10);
    color: #ff9dd3;
    font-size: 10px;
    font-weight: 800;
}

.onyx-refund-overlay {
    position: fixed;
    inset: 0;
    z-index: 16050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(3,1,8,.48);
    -webkit-backdrop-filter: blur(18px) saturate(108%);
    backdrop-filter: blur(18px) saturate(108%);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
}
.onyx-refund-overlay.open {
    opacity: 1;
    visibility: visible;
}
.onyx-refund-dialog {
    width: min(100%, 440px);
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,.15);
    background:
        radial-gradient(circle at 82% 10%, rgba(229,32,133,.12), transparent 35%),
        linear-gradient(150deg, rgba(30,20,42,.74), rgba(10,6,18,.72));
    -webkit-backdrop-filter: blur(28px) saturate(112%);
    backdrop-filter: blur(28px) saturate(112%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 30px 90px rgba(0,0,0,.48);
    transform: translateY(12px) scale(.985);
    transition: transform .2s ease;
}
.onyx-refund-overlay.open .onyx-refund-dialog {
    transform: translateY(0) scale(1);
}
.onyx-refund-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 20px 15px;
    border-bottom: 1px solid rgba(255,255,255,.09);
}
.onyx-refund-kicker {
    color: #ff83c8;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.onyx-refund-title {
    margin: 5px 0 0;
    color: #fff;
    font-size: 21px;
    line-height: 1.15;
}
.onyx-refund-close {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.07);
    color: #fff;
    font-size: 21px;
    cursor: pointer;
}
.onyx-refund-body {
    padding: 18px 20px 20px;
}
.onyx-refund-summary {
    margin-bottom: 13px;
    padding: 13px 14px;
    border-radius: 17px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.045);
    color: #d8d1dc;
    font-size: 13px;
    line-height: 1.55;
}
.onyx-refund-label {
    display: block;
    margin-bottom: 7px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}
.onyx-refund-reason {
    width: 100%;
    min-height: 118px;
    max-height: 220px;
    resize: vertical;
    padding: 13px 14px !important;
    border-radius: 16px !important;
    color: #fff !important;
}
.onyx-refund-note {
    margin-top: 9px;
    color: #a9a1b1;
    font-size: 11px;
    line-height: 1.45;
}
.onyx-refund-status {
    min-height: 18px;
    margin-top: 10px;
    color: #b9b0c1;
    font-size: 12px;
    line-height: 1.45;
}
.onyx-refund-status.error { color: #ff8999; }
.onyx-refund-status.success { color: #8fe0bd; }
.onyx-refund-actions {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 10px;
    margin-top: 14px;
}
.onyx-refund-action {
    min-height: 46px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,.13);
    background: rgba(255,255,255,.065);
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
}
.onyx-refund-action.primary {
    background: linear-gradient(135deg, rgba(229,32,133,.92), rgba(139,54,239,.86));
    border-color: rgba(255,105,205,.34);
    box-shadow: 0 12px 26px rgba(229,32,133,.18), inset 0 1px 0 rgba(255,255,255,.20);
}
.onyx-refund-action:disabled {
    opacity: .55;
    cursor: default;
}

@media (max-width: 560px) {
    .onyx-refund-overlay {
        align-items: flex-end;
        padding: 0;
    }
    .onyx-refund-dialog {
        width: 100%;
        border-radius: 28px 28px 0 0;
        padding-bottom: env(safe-area-inset-bottom);
    }
    .onyx-refund-actions {
        grid-template-columns: 1fr;
    }
}
