/* Refund flow — mockup style, white canvas, card list */
.me-refund-page .me-main {
    background: #ffffff;
    min-height: auto;
}

.me-refund-page .me-dashboard-container {
    max-width: 680px;
    padding: 8px 20px 56px;
}

.me-refund-page .me-flow-header {
    margin-top: 14px;
    margin-bottom: 8px;
}

.me-refund-page .me-flow-back {
    font-size: 14px;
    font-weight: 600;
    color: #52525b;
}

.me-refund-page .me-flow-content {
    min-height: 0;
    outline: none;
}

/* Panel step transition */
.me-refund-panel__body {
    transition: opacity 0.2s ease;
}

.me-refund-panel {
    opacity: 0;
    transform: translateY(12px);
    transition:
        opacity 0.32s ease,
        transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.me-refund-panel--visible {
    opacity: 1;
    transform: translateY(0);
}

.me-refund-panel--exit {
    opacity: 0;
    transform: translateY(-8px);
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .me-refund-panel,
    .me-refund-panel--exit {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Page head (order picker) */
.me-refund-page-head {
    margin-bottom: 28px;
}

.me-refund-page-head--compact {
    margin-bottom: 20px;
}

.me-refund-page-head--compact .me-refund-title {
    font-size: 24px;
}

.me-refund-head {
    margin-bottom: 20px;
}

.me-refund-title {
    margin: 0 0 10px;
    font-size: clamp(26px, 5.5vw, 32px);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #18181b;
    line-height: 1.15;
}

.me-refund-subtitle {
    margin: 0 0 16px;
    font-size: 15px;
    color: #71717a;
    line-height: 1.55;
    max-width: 36em;
}

/* Step progress (inner flow) */
.me-refund-steps-wrap {
    margin-bottom: 14px;
}

.me-refund-steps {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}

.me-refund-step {
    flex: 1;
    height: 3px;
    border-radius: 999px;
    background: #e4e4e7;
    transition: background 0.3s ease;
}

.me-refund-step--done {
    background: #3d15ce;
}

.me-refund-step--active {
    background: #3d15ce;
}

.me-refund-progress {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: #a1a1aa;
}

/* Sections */
.me-refund-section {
    margin-bottom: 28px;
}

.me-refund-section--muted {
    margin-bottom: 32px;
}

.me-refund-section__title {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
    color: #18181b;
    letter-spacing: -0.02em;
}

.me-refund-section__desc {
    margin: 0 0 14px;
    font-size: 14px;
    color: #71717a;
    line-height: 1.5;
}

.me-refund-ticket-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Order rows — same wallet/vender layout as Mis entradas */
button.me-refund-wallet-row {
    font: inherit;
    color: inherit;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    animation: meRefundStagger 0.32s ease backwards;
}

button.me-refund-wallet-row:nth-child(2) { animation-delay: 0.04s; }
button.me-refund-wallet-row:nth-child(3) { animation-delay: 0.08s; }

button.me-refund-wallet-row:hover {
    border-color: #d4d4d8;
    box-shadow: 0 4px 16px rgba(24, 24, 27, 0.06);
}

button.me-refund-wallet-row:active {
    transform: scale(0.995);
}

button.me-refund-wallet-row:focus-visible {
    outline: 2px solid var(--me-purple, #7c3aed);
    outline-offset: 2px;
}

.me-refund-wallet-row__tag {
    margin: 6px 0 0;
    font-size: 11px;
    font-weight: 600;
    color: #a16207;
}

.me-refund-order-card .me-wallet-row__type,
.me-refund-order-card .me-wallet-row__date {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.me-refund-dot {
    color: #d4d4d8;
    font-weight: 400;
}

.me-refund-date {
    display: inline;
}

.me-refund-date__short {
    display: none;
}

@media (max-width: 639px) {
    .me-wallet-row__date .me-refund-date__full,
    .me-refund-order-card .me-refund-date__full {
        display: none;
    }

    .me-wallet-row__date .me-refund-date__short,
    .me-refund-order-card .me-refund-date__short {
        display: inline;
    }

    .me-refund-status {
        padding: 4px 8px;
        font-size: 10px;
    }

    .me-refund-status svg {
        width: 12px;
        height: 12px;
    }
}

.me-refund-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    align-self: center;
}

.me-refund-status svg {
    flex-shrink: 0;
}

.me-refund-status--insurance {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #bbf7d0;
}

.me-refund-status--insurance svg {
    color: #059669;
}

.me-refund-status--none {
    background: #f4f4f5;
    color: #52525b;
    border: 1px solid #e4e4e7;
}

.me-refund-status--none svg {
    color: #a1a1aa;
}

.me-refund-status--used {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
}

.me-refund-status--used svg {
    color: #ea580c;
}

.me-refund-wallet-row__chevron {
    color: #d4d4d8;
    flex-shrink: 0;
    margin-left: auto;
    transition: color 0.15s ease, transform 0.15s ease;
}

button.me-refund-wallet-row:hover .me-refund-wallet-row__chevron {
    color: #a1a1aa;
    transform: translateX(2px);
}

.me-refund-expand {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 10px;
    padding: 0;
    border: none;
    background: none;
    font-size: 12px;
    font-weight: 500;
    color: #a1a1aa;
    cursor: pointer;
    transition: color 0.15s ease;
}

.me-refund-expand:hover {
    color: #71717a;
    text-decoration: none;
}

.me-refund-expand svg {
    width: 14px;
    height: 14px;
    color: currentColor;
    opacity: 0.85;
}

/* Help footer */
.me-refund-help {
    margin-top: 8px;
    padding: 18px;
    border: 1px solid #e4e4e7;
    border-radius: 16px;
    background: #fafafa;
}

.me-refund-help__top {
    display: flex;
    gap: 14px;
    margin-bottom: 14px;
}

.me-refund-help__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 12px;
    background: #f5f3ff;
    color: #3d15ce;
}

.me-refund-help__title {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
    color: #18181b;
}

.me-refund-help__text {
    margin: 0;
    font-size: 13px;
    color: #71717a;
    line-height: 1.5;
}

.me-refund-help__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.me-refund-help-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 46px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid #e4e4e7;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    color: #3f3f46;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.me-refund-help-btn:hover {
    border-color: #d4d4d8;
    background: #fafafa;
}

.me-refund-help-btn--outline {
    border-color: #c4b5fd;
    color: #3d15ce;
}

.me-refund-help-btn--outline:hover {
    background: #faf8ff;
    border-color: #a78bfa;
}

/* Inner flow cards */
.me-refund-card {
    background: #fff;
    border: 1px solid #e4e4e7;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
}

.me-refund-order-card {
    padding: 0;
    overflow: hidden;
    border-color: #e4e4e7;
    box-shadow: none;
}

/* Event cover — square image flush to card edge, cropped (no inner padding) */
.me-refund-order-card__cover {
    display: grid;
    grid-template-columns: minmax(88px, auto) minmax(0, 1fr);
    align-items: stretch;
}

.me-refund-order-card__img {
    position: relative;
    width: auto;
    min-width: 88px;
    height: 100%;
    min-height: 88px;
    aspect-ratio: 1 / 1;
    align-self: stretch;
    margin: 0;
    padding: 0;
    line-height: 0;
    background: #f4f4f5;
    overflow: hidden;
}

.me-refund-order-card__img img,
.me-refund-order-card__img .me-ticket-card__thumb-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    object-fit: cover;
    object-position: center;
    display: block;
    border: 0;
    border-radius: 0;
}

.me-refund-order-card__img .me-ticket-card__thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d4d4d8;
}

.me-refund-order-card__body {
    padding: 12px 14px 14px;
    min-width: 0;
    align-self: center;
}

.me-refund-order-card__event {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
    color: #18181b;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.me-refund-order-card .me-wallet-row__type {
    margin-top: 0;
}

.me-refund-order-card .me-wallet-row__date {
    margin-top: 2px;
}

.me-refund-order-card__badge-row {
    margin-top: 10px;
}

.me-refund-order-card .me-refund-alert {
    margin: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
}

.me-refund-order-card__meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.me-refund-alert {
    margin: 14px 0 0;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff7ed;
    border: 1px solid #ffedd5;
    font-size: 13px;
    color: #9a3412;
    line-height: 1.5;
}

.me-refund-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.me-refund-actions .me-btn-primary {
    width: 100%;
    min-height: 50px;
    border-radius: 12px;
}

.me-refund-actions .me-btn-secondary {
    width: 100%;
    min-height: 50px;
    border-radius: 12px;
}

.me-refund-card--result .me-refund-result-actions,
.me-refund-card--result .me-refund-resale-alt__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
}

.me-refund-card--result .me-refund-result-actions .me-btn-primary,
.me-refund-card--result .me-refund-resale-alt__actions .me-btn-primary,
.me-refund-card--result .me-refund-result-actions a.me-btn-primary,
.me-refund-card--result .me-refund-resale-alt__actions a.me-btn-primary {
    width: 100%;
    min-height: 50px;
    border-radius: 12px;
}

.me-refund-card--result .me-refund-result-actions .me-btn-secondary,
.me-refund-card--result .me-refund-resale-alt__actions .me-btn-secondary,
.me-refund-card--result .me-refund-result-actions a.me-btn-secondary,
.me-refund-card--result .me-refund-resale-alt__actions a.me-btn-secondary {
    width: 100%;
    min-height: 50px;
    border-radius: 12px;
}

.me-refund-resale-alt {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ececf0;
}

.me-refund-card--result .me-refund-resale-alt__title {
    margin: 0 0 6px;
    font-size: clamp(18px, 4.2vw, 22px);
    font-weight: 600;
    letter-spacing: -0.03em;
    color: #18181b;
    line-height: 1.15;
}

.me-refund-card--result .me-refund-resale-alt__text {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.5;
    color: #71717a;
    max-width: 36em;
}

.me-refund-resale-alt__actions {
    margin-top: 0;
}

.me-refund-card--result .me-refund-subtitle--secondary {
    color: #71717a;
}

.me-refund-category {
    margin-bottom: 22px;
}

.me-refund-category__head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #71717a;
}

.me-refund-category__head svg {
    color: #3d15ce;
}

.me-refund-reason-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.me-refund-reason-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 15px 16px;
    border: 1px solid #e4e4e7;
    border-radius: 14px;
    background: #fff;
    font-size: 15px;
    font-weight: 500;
    color: #18181b;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.me-refund-reason-btn:hover {
    border-color: #d4d4d8;
    background: #fafafa;
}

.me-refund-question-help {
    margin: 0 0 14px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #f9fafb;
    border: 1px solid #f1f1f4;
    font-size: 13px;
    color: #52525b;
    line-height: 1.55;
}

.me-refund-choice-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.me-refund-card--result .me-refund-title {
    font-size: clamp(22px, 5vw, 28px);
    font-weight: 700;
}

.me-refund-card--result .me-refund-subtitle {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 0;
}

.me-refund-card--result .me-refund-subtitle + .me-refund-subtitle {
    margin-top: 10px;
}

.me-refund-result-note {
    margin: 12px 0 0;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    font-size: 13px;
    color: #92400e;
    line-height: 1.5;
}

/* Result variant screens */
.me-refund-card--success,
.me-refund-card--review,
.me-refund-card--denied,
.me-refund-card--info,
.me-refund-card--event {
    border: none;
    background: #fafafa;
    padding: 24px;
}

.me-refund-result-hero {
    text-align: center;
    margin-bottom: 22px;
}

.me-refund-result-hero__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    border-radius: 999px;
}

.me-refund-result-hero__icon--success {
    background: #ecfdf5;
    color: #059669;
}

.me-refund-result-hero__icon--review {
    background: #f5f3ff;
    color: #3d15ce;
}

.me-refund-result-hero__icon--denied {
    background: #fff7ed;
    color: #ea580c;
}

.me-refund-result-hero__icon--info {
    background: #eff6ff;
    color: #2563eb;
}

.me-refund-result-hero__icon--event {
    background: #fefce8;
    color: #ca8a04;
}

.me-refund-card--success .me-refund-result-hero .me-refund-title,
.me-refund-card--review .me-refund-result-hero .me-refund-title,
.me-refund-card--denied .me-refund-result-hero .me-refund-title,
.me-refund-card--info .me-refund-result-hero .me-refund-title,
.me-refund-card--event .me-refund-result-hero .me-refund-title {
    font-size: clamp(22px, 5vw, 26px);
    margin-bottom: 8px;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}

.me-refund-card--success .me-refund-result-hero .me-refund-subtitle,
.me-refund-card--review .me-refund-result-hero .me-refund-subtitle,
.me-refund-card--denied .me-refund-result-hero .me-refund-subtitle,
.me-refund-card--info .me-refund-result-hero .me-refund-subtitle,
.me-refund-card--event .me-refund-result-hero .me-refund-subtitle {
    margin: 0 auto;
    max-width: 28em;
    font-size: 15px;
    color: #52525b;
}

.me-refund-result-details {
    margin-bottom: 18px;
    padding: 16px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #ececf0;
}

.me-refund-result-details__title {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 700;
    color: #71717a;
}

.me-refund-result-details__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
}

.me-refund-result-details__item--full {
    grid-column: 1 / -1;
}

.me-refund-result-details__label {
    display: block;
    margin-bottom: 2px;
    font-size: 12px;
    color: #a1a1aa;
}

.me-refund-result-details__value {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #18181b;
    line-height: 1.35;
    word-break: break-word;
}

.me-refund-result-steps {
    margin-bottom: 16px;
    padding: 16px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #ececf0;
}

.me-refund-result-steps__title {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 700;
    color: #18181b;
}

.me-refund-result-steps__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.me-refund-result-steps__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.me-refund-result-steps__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border-radius: 999px;
    background: #f5f3ff;
    color: #3d15ce;
    font-size: 12px;
    font-weight: 700;
}

.me-refund-result-steps__text {
    padding-top: 2px;
    font-size: 14px;
    line-height: 1.45;
    color: #3f3f46;
}

.me-refund-result-footnote {
    margin: 0 0 16px;
    font-size: 13px;
    line-height: 1.5;
    color: #71717a;
    text-align: center;
}

.me-refund-card--denied .me-refund-result-steps__num {
    background: #fff7ed;
    color: #c2410c;
}

.me-refund-card--info .me-refund-result-steps__num {
    background: #eff6ff;
    color: #2563eb;
}

.me-refund-card--event .me-refund-result-steps__num {
    background: #fefce8;
    color: #a16207;
}

.me-refund-card--success .me-refund-result-actions,
.me-refund-card--review .me-refund-result-actions,
.me-refund-card--denied .me-refund-result-actions,
.me-refund-card--info .me-refund-result-actions,
.me-refund-card--event .me-refund-result-actions {
    margin-top: 4px;
}

.me-refund-card--success .me-refund-resale-alt,
.me-refund-card--review .me-refund-resale-alt,
.me-refund-card--denied .me-refund-resale-alt,
.me-refund-card--info .me-refund-resale-alt,
.me-refund-card--event .me-refund-resale-alt {
    margin-top: 0;
    padding: 16px;
    border: 1px solid #ececf0;
    border-radius: 14px;
    background: #fff;
}

.me-refund-card--success .me-refund-resale-alt__title,
.me-refund-card--review .me-refund-resale-alt__title,
.me-refund-card--denied .me-refund-resale-alt__title,
.me-refund-card--info .me-refund-resale-alt__title,
.me-refund-card--event .me-refund-resale-alt__title {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
}

.me-refund-card--success .me-refund-resale-alt__text,
.me-refund-card--review .me-refund-resale-alt__text,
.me-refund-card--denied .me-refund-resale-alt__text,
.me-refund-card--info .me-refund-resale-alt__text,
.me-refund-card--event .me-refund-resale-alt__text {
    margin-bottom: 14px;
    font-size: 14px;
}

@media (max-width: 639px) {
    .me-refund-card--result {
        padding: 16px;
        margin-bottom: 12px;
    }

    .me-refund-card--success,
    .me-refund-card--review,
    .me-refund-card--denied,
    .me-refund-card--info,
    .me-refund-card--event {
        padding: 18px 16px;
    }

    .me-refund-result-details__grid {
        grid-template-columns: 1fr;
    }

    .me-refund-card--result .me-refund-title {
        font-size: clamp(17px, 4.8vw, 20px);
        margin-bottom: 8px;
        letter-spacing: -0.02em;
        line-height: 1.15;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .me-refund-card--result .me-refund-subtitle {
        font-size: 14px;
        line-height: 1.5;
        max-width: none;
    }

    .me-refund-card--result .me-refund-subtitle--secondary {
        margin-top: 10px;
        font-size: 13px;
    }

    .me-refund-resale-alt {
        margin-top: 18px;
        padding-top: 18px;
    }

    .me-refund-card--result .me-refund-resale-alt__title {
        font-size: clamp(15px, 4vw, 17px);
        font-weight: 600;
        letter-spacing: -0.02em;
    }

    .me-refund-card--result .me-refund-resale-alt__text {
        max-width: none;
        margin-bottom: 14px;
    }

    .me-refund-result-note {
        margin-top: 10px;
        padding: 11px 12px;
        font-size: 13px;
        line-height: 1.48;
    }
}

.me-refund-summary {
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid #e4e4e7;
}

.me-refund-summary dt {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #a1a1aa;
}

.me-refund-summary dd {
    margin: 2px 0 12px;
    font-size: 14px;
    font-weight: 600;
    color: #18181b;
}

.me-refund-back-inline {
    margin: 0 0 10px;
}

.me-refund-back-inline button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: none;
    background: none;
    font-size: 14px;
    font-weight: 600;
    color: #71717a;
    cursor: pointer;
}

.me-refund-back-inline button:hover {
    color: #3d15ce;
}

.me-refund-empty {
    padding: 36px 20px;
    text-align: center;
    font-size: 15px;
    color: #71717a;
    border: 1px dashed #e4e4e7;
    border-radius: 14px;
    margin-bottom: 24px;
}

@keyframes meRefundStagger {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.me-refund-page .me-orders-loading .me-skeleton-card {
    border-radius: 14px;
    border: 1px solid #f4f4f5;
}

@media (max-width: 380px) {
    button.me-refund-wallet-row.me-wallet-row.me-vender-row {
        gap: 12px;
        padding: 12px 14px;
    }

    .me-refund-status {
        font-size: 10px;
        padding: 4px 8px;
    }
}

@media (min-width: 640px) {
    .me-refund-page .me-dashboard-container {
        padding-left: 24px;
        padding-right: 24px;
    }

    .me-refund-help__actions {
        flex-direction: row;
    }

    .me-refund-help-btn {
        flex: 1;
    }
}
