.mysticmeg-flashpay-button {
    align-items: center;
    background: #3c0173;
    border: 1px solid #3c0173;
    border-radius: 5px;
    box-sizing: border-box;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 600;
    gap: 0.4em;
    justify-content: center;
    line-height: 1.25;
    padding: 0.65em 1em;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.mysticmeg-flashpay-button:hover,
.mysticmeg-flashpay-button:focus-visible {
    background: #6a1b9a;
    border-color: #6a1b9a;
    color: #fff;
    transform: translateY(-1px);
}

.mysticmeg-flashpay-button:focus-visible {
    outline: 3px solid rgba(106, 27, 154, 0.3);
    outline-offset: 2px;
}

.mysticmeg-flashpay-button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
}

.mysticmeg-flashpay-button-icon {
    line-height: 1;
}

.reader-actions .mysticmeg-flashpay-button {
    flex: 1 1 auto;
}

.mysticmeg-readers-container .mysticmeg-flashpay-button {
    max-width: 100%;
    width: 400px;
}

.mysticmeg-dashboard-container .reader-actions {
    flex-wrap: wrap;
    gap: 10px;
}

.mysticmeg-dashboard-container .mysticmeg-flashpay-button {
    flex-basis: 100%;
}

.mysticmeg-reader-profile .mysticmeg-flashpay-profile-button {
    margin-top: 1em;
    width: 100%;
}

.reader-carousel .reader-card-link {
    color: inherit;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    text-decoration: none;
}

.reader-carousel .reader-actions {
    border-top: 1px solid #eee;
    display: block;
    margin: 0;
    padding: 10px;
}

.reader-carousel .mysticmeg-flashpay-button {
    font-size: 12px;
    padding: 8px 6px;
    width: 100%;
}

body.mysticmeg-flashpay-confirmation-open {
    overflow: hidden;
}

.mysticmeg-flashpay-confirmation[hidden],
.mysticmeg-flashpay-confirmation [hidden] {
    display: none !important;
}

.mysticmeg-flashpay-confirmation {
    align-items: center;
    background: rgba(20, 9, 31, 0.78);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 20px;
    position: fixed;
    z-index: 2147483000;
}

.mysticmeg-flashpay-confirmation-dialog {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
    box-sizing: border-box;
    color: #1d1d1b;
    max-height: calc(100vh - 40px);
    max-width: 520px;
    overflow-y: auto;
    padding: 36px;
    position: relative;
    text-align: center;
    width: 100%;
}

.mysticmeg-flashpay-confirmation button::after,
.mysticmeg-flashpay-confirmation a::after {
    content: none;
}

.mysticmeg-flashpay-confirmation-dialog:focus {
    outline: none;
}

.mysticmeg-flashpay-confirmation-x {
    align-items: center;
    background: transparent;
    border: 0;
    color: #555;
    cursor: pointer;
    display: flex;
    font-size: 30px;
    height: 44px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    position: absolute;
    right: 10px;
    top: 8px;
    width: 44px;
}

.mysticmeg-flashpay-confirmation-x:hover,
.mysticmeg-flashpay-confirmation-x:focus-visible {
    color: #3c0173;
}

.mysticmeg-flashpay-confirmation-icon {
    align-items: center;
    background: #e8f6ec;
    border-radius: 50%;
    color: #23783a;
    display: flex;
    font-size: 32px;
    height: 68px;
    justify-content: center;
    margin: 0 auto 18px;
    width: 68px;
}

.mysticmeg-flashpay-confirmation-dialog h2 {
    color: #3c0173;
    font-size: clamp(24px, 5vw, 32px);
    line-height: 1.2;
    margin: 0 0 10px;
}

.mysticmeg-flashpay-confirmation-intro {
    color: #555;
    font-size: 16px;
    line-height: 1.5;
    margin: 0 0 22px;
}

.mysticmeg-flashpay-confirmation-warning {
    background: #fff4d6;
    border: 1px solid #efad00;
    border-radius: 6px;
    color: #5c4700;
    font-size: 14px;
    line-height: 1.45;
    margin-bottom: 18px;
    padding: 12px;
    text-align: left;
}

.mysticmeg-flashpay-confirmation-details {
    background: #f7f4f9;
    border-radius: 8px;
    margin: 0 0 22px;
    overflow: hidden;
    padding: 0;
    text-align: left;
    width: 100%;
}

.mysticmeg-flashpay-confirmation-row {
    border-bottom: 1px solid #ded5e4;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(120px, 0.8fr) minmax(0, 1.2fr);
    margin: 0;
    padding: 14px 16px;
}

.mysticmeg-flashpay-confirmation-row:last-child {
    border-bottom: 0;
}

.mysticmeg-flashpay-confirmation-row dt,
.mysticmeg-flashpay-confirmation-row dd {
    font-size: 15px;
    line-height: 1.4;
    margin: 0;
}

.mysticmeg-flashpay-confirmation-row dt {
    color: #666;
    font-weight: 500;
}

.mysticmeg-flashpay-confirmation-row dd {
    color: #1d1d1b;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.mysticmeg-flashpay-confirmation-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.mysticmeg-flashpay-confirmation-call,
.mysticmeg-flashpay-confirmation-close {
    border-radius: 6px;
    box-sizing: border-box;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 600;
    justify-content: center;
    line-height: 1.25;
    min-width: 130px;
    padding: 12px 18px;
    text-decoration: none;
}

.mysticmeg-flashpay-confirmation-call {
    background: #3c0173;
    border: 1px solid #3c0173;
    color: #fff;
}

.mysticmeg-flashpay-confirmation-call:hover,
.mysticmeg-flashpay-confirmation-call:focus-visible {
    background: #6a1b9a;
    border-color: #6a1b9a;
    color: #fff;
}

.mysticmeg-flashpay-confirmation-close {
    background: #fff;
    border: 1px solid #3c0173;
    color: #3c0173;
}

.mysticmeg-flashpay-confirmation-close:hover,
.mysticmeg-flashpay-confirmation-close:focus-visible {
    background: #f3edf6;
}

.mysticmeg-flashpay-confirmation-call:focus-visible,
.mysticmeg-flashpay-confirmation-close:focus-visible,
.mysticmeg-flashpay-confirmation-x:focus-visible {
    outline: 3px solid rgba(106, 27, 154, 0.3);
    outline-offset: 2px;
}

@media (max-width: 600px) {
    .reader-actions .mysticmeg-flashpay-button {
        /*flex-basis: 100%;*/
    }

    .mysticmeg-flashpay-confirmation {
        padding: 12px;
    }

    .mysticmeg-flashpay-confirmation-dialog {
        max-height: calc(100vh - 24px);
        padding: 30px 20px 22px;
    }

    .mysticmeg-flashpay-confirmation-row {
        gap: 4px;
        grid-template-columns: 1fr;
    }

    .mysticmeg-flashpay-confirmation-actions {
        flex-direction: column;
    }

    .mysticmeg-flashpay-confirmation-call,
    .mysticmeg-flashpay-confirmation-close {
        width: 100%;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .mysticmeg-flashpay-confirmation-dialog {
        animation: mysticmeg-flashpay-confirmation-enter 0.2s ease-out;
    }
}

@keyframes mysticmeg-flashpay-confirmation-enter {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
