/* Aatmanya Tarot Readings: functional CSS only. Visual design belongs to the active theme. */

.aatmanya-tarot-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.aatmanya-tarot-field {
    display: block;
    min-width: 0;
}

.aatmanya-tarot-field input,
.aatmanya-tarot-field select,
.aatmanya-tarot-field textarea {
    display: block;
    width: 100%;
}

.aatmanya-tarot-field-full {
    grid-column: 1 / -1;
}

.aatmanya-tarot-section {
    margin-top: 22px;
}

.aatmanya-tarot-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
}

.aatmanya-reading-form {
    display: block;
}

.aatmanya-reading-form h3 {
    margin-bottom: 12px;
}

@media(max-width:760px) {
    .aatmanya-tarot-form-grid {
        grid-template-columns: 1fr;
    }

    .aatmanya-tarot-actions {
        justify-content: stretch;
    }

    .aatmanya-tarot-actions button {
        width: 100%;
    }
}


.aatmanya-tarot-flow [hidden],
.aatmanya-hidden-checkout-field {
    display: none !important;
}

.aatmanya-tarot-flow .has-error {
    border-color: #c0392b !important;
    outline: 2px solid rgba(192, 57, 43, 0.35);
    outline-offset: 2px;
}

.aatmanya-field-error {
    display: block;
    color: #c0392b;
    margin-top: 6px;
    font-size: 0.92em;
}

.aatmanya-tarot-toast {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%) translateY(16px);
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    border: 1px solid var(--gold);
    padding: 20px;
    background: var(--gold);
    width: 100%;
    text-align: center;
}

.aatmanya-tarot-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.aatmanya-tarot-modal {
    position: fixed;
    inset: 0;
    z-index: 99998;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.aatmanya-tarot-modal[hidden] {
    display: none !important;
}

.aatmanya-modal-box {
    background: #fff;
    max-width: 520px;
    width: 100%;
    padding: 24px;
    position: relative;
}

.aatmanya-modal-close {
    position: absolute;
    right: 10px;
    top: 10px;
    background: transparent;
    border: 0;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.aatmanya-category-option {
    display: block;
    cursor: pointer;
    margin: 0 0 10px;
    border: 1px solid var(--gold-dim);
    background: var(--dark);
}

.aatmanya-category-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

label.aatmanya-category-option.is-selected {
    border-width: 2px;
    border-color: var(--gold);
}

.aatmanya-category-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
}

.aatmanya-category-image {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 44px;
}

.aatmanya-category-title {
    flex: 1;
}

.aatmanya-category-price {
    margin-left: auto;
    white-space: nowrap;
}

.aatmanya-category-description {
    display: none;
    margin: 8px 0 0;
    background: var(--black);
    padding: 20px;
}

.aatmanya-category-option.is-selected .aatmanya-category-description {
    display: block;
}


.aatmanya-reading-form button.aatmanya-submit-reading.btn.btn-4 {
    width: 100%;
}

.aatmanya-reading-form input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    opacity: 0.8;
    cursor: pointer;
}

.aatmanya-confetti {
    position: fixed;
    top: -20px;
    width: 8px;
    height: 12px;
    background: currentColor;
    z-index: 99997;
    animation: aatmanyaConfetti 1.8s linear forwards;
}

@keyframes aatmanyaConfetti {
    to {
        transform: translateY(110vh) rotate(520deg);
        opacity: 0;
    }
}

.aatmanya-checkout-reading-summary {
    margin: 0 0 32px;
}

.aatmanya-checkout-summary-head {
    margin: 0 0 24px;
}

.aatmanya-checkout-summary-eyebrow {
    display: block;
    margin: 0 0 12px;
    font-size: 12px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--gold, #886F4A);
}

.aatmanya-checkout-summary-head h3 {
    margin: 0 0 12px;
}

.aatmanya-checkout-summary-head p {
    margin: 0;
    color: var(--text-muted, #a8948e);
}

.aatmanya-checkout-summary-grid {
    display: grid;
    gap: 18px;
}

.aatmanya-checkout-summary-card {
    border: 1px solid var(--gold-dim, rgba(136, 111, 74, 0.4));
    padding: 22px;
    background: rgba(136, 111, 74, 0.06);
}

.aatmanya-checkout-summary-card h4 {
    margin: 0 0 18px;
    color: var(--gold-light, #a08a60);
    font-size: 13px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.aatmanya-reading-summary-list {
    margin: 0;
}

.aatmanya-reading-actions {
    display: flex;
}

.aatmanya-reading-summary-row {
    display: grid;
    grid-template-columns: minmax(110px, 0.8fr) minmax(0, 1.2fr);
    gap: 14px;
    padding: 11px 0;
    border-bottom: 1px solid var(--gold-dim, rgba(136, 111, 74, 0.35));
}

.aatmanya-reading-summary-row:first-child {
    padding-top: 0;
}

section.woocommerce-order-details.aatmanya-order-linked-reading a {
    background-color: var(--gold);
    display: inline-block;
    color: var(--black);
    padding: 0 10px;
}


.aatmanya-reading-summary-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.aatmanya-reading-summary-list dt {
    font-weight: 600;
    color: var(--text-muted, #a8948e);
}

.aatmanya-reading-summary-list dd {
    margin: 0;
    color: var(--text, #c3beb6);
    text-align: right;
}

.aatmanya-checkout-summary-card.is-reading-card dd {
    color: var(--white, #ffffff);
}

.aatmanya-checkout-summary-card.is-question-card {
    grid-column: 1 / -1;
}

#customer_details .aatmanya-checkout-card {
    border: 0;
    padding: 0;
}

.aatmanya-checkout-summary-card.is-question-card p {
    margin: 0;
    color: var(--text, #c3beb6);
    line-height: 1.75;
}

@media (max-width: 760px) {
    .aatmanya-checkout-summary-grid {
        grid-template-columns: 1fr;
    }

    .aatmanya-reading-summary-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .aatmanya-reading-summary-list dd {
        text-align: left;
    }
}

.aatmanya-final-report {
    margin-top: 16px;
}

@media (max-width: 760px) {
    .aatmanya-modal-box {
        padding: 20px;
    }

    .aatmanya-category-row {
        align-items: flex-start;
    }

    .aatmanya-category-image {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }
}

/* Confetti restored from previous Aatmanya eligibility animation. */
.aatmanya-eligibility-confetti {
    position: fixed;
    inset: 0;
    z-index: 999999;
    pointer-events: none;
    overflow: hidden;
}

.aatmanya-eligibility-confetti-piece {
    position: absolute;
    bottom: 24px;
    width: var(--aatmanya-confetti-size, 9px);
    height: calc(var(--aatmanya-confetti-size, 9px) * 1.45);
    opacity: 0;
    animation-name: aatmanya-confetti-corner-burst;
    animation-timing-function: cubic-bezier(0.15, 0.82, 0.25, 1);
    animation-fill-mode: forwards;
    will-change: transform, opacity;
}

.aatmanya-eligibility-confetti-piece.is-left {
    left: 24px;
}

.aatmanya-eligibility-confetti-piece.is-right {
    right: 24px;
}

@keyframes aatmanya-confetti-corner-burst {
    0% {
        opacity: 0;
        transform: translate3d(0, 0, 0) rotate(0deg) scale(0.7);
    }

    12% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translate3d(var(--aatmanya-confetti-x),
                var(--aatmanya-confetti-y),
                0) rotate(var(--aatmanya-confetti-rotate)) scale(0.95);
    }
}

@media (prefers-reduced-motion: reduce) {
    .aatmanya-eligibility-confetti {
        display: none;
    }
}

.aatmanya-submit-reading[disabled],
.aatmanya-eligibility-form button[disabled],
.aatmanya-modal-content button[disabled] {
    cursor: wait;
    opacity: 0.7;
}

.aatmanya-eligibility-form {
    display: flex;
    align-items: flex-end;
    gap: 14px;
}

.aatmanya-eligibility-form label {
    flex: 1 1 auto;
    min-width: 0;
}

.aatmanya-eligibility-form input {
    width: 100%;
}

.aatmanya-eligibility-form button {
    flex: 0 0 auto;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .aatmanya-eligibility-form {
        flex-direction: column;
        align-items: stretch;
    }

    .aatmanya-eligibility-form button {
        width: 100%;
    }
}

.woocommerce-account input[type="date"].aatmanya-dob-field::-webkit-calendar-picker-indicator,
.aatmanya-reading-form input[type="date"].aatmanya-dob-field::-webkit-calendar-picker-indicator {
    filter: invert(1);
    opacity: 0.8;
    cursor: pointer;
}

.aatmanya-reading-final-report .atr-card-title {
    background: var(--gold);
    display: inline-block;
    padding: 0 20px;
    color: var(--black) !important;
    font-style: italic;
}

.aatmanya-reading-final-report h3 {
    display: inline-block;
    margin-right: 10px;
    margin-top: 35px;
}

.account-shell table.shop_table td a {
    width: 100%;
    margin-top: 10px;
}

.aatmanya-reading-form [data-options="categories"].has-error {
    outline: 1px solid #c33;
    outline-offset: 6px;
}