/* EDD Commerce: account box, buy buttons and paywall pop-up */
.tarot-ec-box {
    border: 1px solid #e2dcef;
    border-radius: 10px;
    padding: 20px;
    background: #fff;
    margin: 1em 0;
}
.tarot-ec-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 12px;
}
.tarot-ec-stat {
    flex: 1 1 140px;
    background: #f7f4fc;
    border-radius: 8px;
    padding: 14px;
    text-align: center;
}
.tarot-ec-stat-number {
    display: block;
    font-size: 1.8em;
    font-weight: 700;
    color: #5b4b8a;
    line-height: 1.2;
}
.tarot-ec-stat-label {
    font-size: .9em;
    color: #555;
}
.tarot-ec-note {
    color: #555;
    font-size: .95em;
}
.tarot-ec-history {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: .92em;
}
.tarot-ec-history th,
.tarot-ec-history td {
    text-align: left;
    padding: 6px 8px;
    border-bottom: 1px solid #eee;
}
.tarot-ec-offers {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin: 12px 0;
}
.tarot-ec-offer {
    border: 1px solid #e2dcef;
    border-radius: 8px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #fff;
}
.tarot-ec-offer-title {
    font-weight: 600;
}
.tarot-ec-offer-title span {
    font-weight: 400;
    color: #666;
}
.tarot-ec-offer-summary {
    font-size: .9em;
    color: #555;
}
.tarot-ec-offer-price {
    font-size: 1.2em;
    font-weight: 700;
    color: #5b4b8a;
    margin-top: auto;
}
a.tarot-ec-button,
.tarot-ec-button {
    display: inline-block;
    background: #5b4b8a;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    padding: 8px 16px;
    text-align: center;
    font-weight: 600;
}
a.tarot-ec-button:hover,
a.tarot-ec-button:focus {
    background: #47386f;
    color: #fff;
}
a.tarot-ec-button-secondary {
    background: #fff;
    color: #5b4b8a;
    border: 1px solid #5b4b8a;
}
.tarot-ec-modal {
    position: fixed;
    inset: 0;
    background: rgba(20, 12, 40, .6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    padding: 16px;
}
.tarot-ec-modal-box {
    position: relative;
    background: #fff;
    border-radius: 12px;
    max-width: 640px;
    width: 100%;
    max-height: 90vh;
    overflow: auto;
    padding: 28px 24px 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
}
.tarot-ec-modal-close {
    position: absolute;
    top: 8px;
    right: 10px;
    border: 0;
    background: none;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: #666;
}
.tarot-ec-modal-heading {
    margin: 0 0 8px;
    color: #3d2f66;
}

/* Voucher code box (3.24.0) */
.tarot-ec-redeem { margin: 1.25em 0; }
.tarot-ec-redeem form { display: flex; flex-wrap: wrap; gap: .5em; align-items: center; }
.tarot-ec-redeem input[type="text"] { text-transform: uppercase; min-width: 12em; max-width: 100%; padding: .45em .6em; }
.tarot-ec-msg { padding: .6em .8em; border-radius: 6px; margin: 0 0 .75em; }
.tarot-ec-msg-success { background: #ecfdf3; color: #05603a; border: 1px solid #a6f4c5; }
.tarot-ec-msg-error { background: #fef3f2; color: #b42318; border: 1px solid #fecdca; }
