/* Stage 9: Type 1 + Wallet migration.
   Scope is intentionally narrow: preserve existing layout, content order,
   finance artwork/gradients, card-stack behavior and business runtime. */

/* ============================================
   TYPE 1 — ACTIVITY DETAIL
   ============================================ */

/* Hero/media composition stays unchanged. Only interactive hit areas and
   icon family are normalized. */
#bottom_sheet_activity_detail .p-schedule-activity-detail-close,
#bottom_sheet_activity_detail .p-schedule-activity-detail-nav,
#bottom_sheet_activity_detail .p-schedule-activity-detail-favorite,
#bottom_sheet_activity_detail .p-schedule-activity-detail-form-icon {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    box-shadow: none;
}

#bottom_sheet_activity_detail .p-schedule-activity-detail-close,
#bottom_sheet_activity_detail .p-schedule-activity-detail-nav {
    background: rgba(255, 255, 255, 0.82);
    color: var(--ui-text, #333333);
}

#bottom_sheet_activity_detail .p-schedule-activity-detail-favorite,
#bottom_sheet_activity_detail .p-schedule-activity-detail-form-icon {
    border-radius: var(--radius-control, 12px);
    background: transparent;
}

#bottom_sheet_activity_detail .p-schedule-activity-detail-close > i,
#bottom_sheet_activity_detail .p-schedule-activity-detail-favorite > i {
    width: 0;
    height: 0;
    overflow: hidden;
    font-size: 0;
}

#bottom_sheet_activity_detail .p-schedule-activity-detail-close::before,
#bottom_sheet_activity_detail .p-schedule-activity-detail-favorite::before,
#bottom_sheet_activity_detail .p-schedule-activity-detail-section-toggle > i,
.p-mypayments-section-toggle-icon,
.p-mypayments-history-toggle-icon,
.p-mypayments-pending-details-toggle > i,
.p-mypayments-detail-triangle {
    display: inline-block;
    flex: 0 0 auto;
    background-color: currentColor;
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
}

#bottom_sheet_activity_detail .p-schedule-activity-detail-close::before {
    content: '';
    width: 18px;
    height: 18px;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
}

#bottom_sheet_activity_detail .p-schedule-activity-detail-favorite::before {
    content: '';
    width: 20px;
    height: 20px;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.8 4.6a5.4 5.4 0 0 0-7.6 0L12 5.8l-1.2-1.2a5.4 5.4 0 0 0-7.6 7.6L12 21l8.8-8.8a5.4 5.4 0 0 0 0-7.6Z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.8 4.6a5.4 5.4 0 0 0-7.6 0L12 5.8l-1.2-1.2a5.4 5.4 0 0 0-7.6 7.6L12 21l8.8-8.8a5.4 5.4 0 0 0 0-7.6Z'/%3E%3C/svg%3E");
}

#bottom_sheet_activity_detail .p-schedule-activity-detail-favorite.is-active {
    background: var(--ui-brand-action-soft, #fceded);
    color: var(--ui-brand-action, #d7181c);
}

/* Preserve the exact four-column facts strip and its values. */
#bottom_sheet_activity_detail .p-schedule-activity-detail-fact span {
    font-size: var(--type-micro-supporting-size, 10px);
    font-weight: var(--type-micro-supporting-weight, 500);
    line-height: var(--type-micro-supporting-line-height, 1.25);
}

#bottom_sheet_activity_detail .p-schedule-activity-detail-location,
#bottom_sheet_activity_detail .p-schedule-activity-detail-form-meta {
    color: var(--ui-text-secondary, #636363);
    font-size: var(--type-activity-meta-size, 11px);
    font-weight: var(--type-activity-meta-weight, 500);
    line-height: var(--type-activity-meta-line-height, 1.25);
}

#bottom_sheet_activity_detail .p-schedule-activity-detail-description-wrap,
#bottom_sheet_activity_detail .p-schedule-activity-detail-description {
    color: var(--ui-text-secondary, #636363);
    font-size: var(--type-body-size, 14px);
    font-weight: var(--type-body-weight, 400);
    line-height: var(--type-body-line-height, 1.45);
}

#bottom_sheet_activity_detail .p-schedule-activity-detail-status-bar {
    color: var(--ui-status-quiet-text, #57534e);
    background: var(--ui-status-quiet-bg, #f2f0ed);
    font-size: var(--type-micro-status-size, 10px);
    font-weight: var(--type-micro-status-weight, 700);
    line-height: var(--type-micro-status-line-height, 1.2);
}

#bottom_sheet_activity_detail .p-schedule-activity-detail-status-bar.is-positive {
    color: #ffffff;
    background: var(--ui-selected, #258568);
}

#bottom_sheet_activity_detail .p-schedule-activity-detail-primary {
    min-height: 48px;
    border: 0;
    border-radius: var(--radius-control, 12px) !important;
    background: var(--ui-brand-action, #d7181c);
    color: #ffffff;
    padding: 0 var(--space-16, 16px);
    box-shadow: none;
    font-size: var(--type-button-size, 14px);
    font-weight: var(--type-button-weight, 700);
    line-height: var(--type-button-line-height, 1.2);
}

#bottom_sheet_activity_detail .p-schedule-activity-detail-primary:hover {
    background: var(--ui-brand-action-hover, #950c0f);
}

#bottom_sheet_activity_detail .p-schedule-activity-detail-primary:disabled {
    border: 0;
    background: #d7d7d7;
    color: #ffffff;
    box-shadow: none;
}

/* Legacy FA chevrons remain as DOM hooks only; render the shared SVG shape. */
#bottom_sheet_activity_detail .p-schedule-activity-detail-section-toggle > i,
.p-mypayments-section-toggle-icon,
.p-mypayments-history-toggle-icon,
.p-mypayments-pending-details-toggle > i {
    width: 16px;
    height: 16px;
    font-size: 0;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 9 5 5 5-5'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 9 5 5 5-5'/%3E%3C/svg%3E");
}

/* ============================================
   WALLET — TOKENS ONLY
   ============================================ */

.p-mypayments-section-label,
.p-mypayments-additional-deposits-heading {
    color: var(--ui-text, #333333);
    font-size: var(--type-section-title-size, 16px);
    font-weight: var(--type-section-title-weight, 700);
    line-height: var(--type-section-title-line-height, 1.35);
}

.p-mypayments-instrument-card,
.p-mypayments-process-card,
.p-mypayments-empty-card,
.p-mypayments-error-card,
.p-mypayments-deposit-summary,
.p-mypayments-pass-renewal-card,
.p-mypayments-additional-deposit-offer,
[data-payment-stack-section].is-payment-card-stack > [data-payment-stack-list]::after {
    border-radius: var(--radius-card, 16px) !important;
}

.p-mypayments-instrument-card,
.p-mypayments-process-card,
[data-payment-stack-section].is-payment-card-stack > [data-payment-stack-list]::after {
    box-shadow: var(--shadow-card) !important;
}

.p-mypayments-card-title {
    color: var(--ui-text, #333333);
    font-size: var(--type-activity-title-size, 13px);
    font-weight: var(--type-activity-title-weight, 700);
    line-height: var(--type-activity-title-line-height, 1.2);
}

.p-mypayments-card-meta {
    color: var(--ui-text-secondary, #636363);
    font-size: var(--type-activity-meta-size, 11px);
    font-weight: var(--type-activity-meta-weight, 500);
    line-height: var(--type-activity-meta-line-height, 1.25);
}

.p-mypayments-remaining-amount,
.p-mypayments-remaining-amount.is-primary-slot {
    font-size: var(--type-activity-value-size, 13px);
    font-weight: var(--type-activity-value-weight, 800);
    line-height: var(--type-activity-value-line-height, 1.2);
}

.p-mypayments-badge-main {
    min-height: 20px;
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border: 0;
    border-radius: var(--radius-pill, 999px) !important;
    background: var(--ui-status-quiet-bg, #f2f0ed);
    color: var(--ui-status-quiet-text, #57534e);
    font-size: var(--type-micro-status-size, 10px);
    font-weight: var(--type-micro-status-weight, 700);
    line-height: var(--type-micro-status-line-height, 1.2);
    text-transform: none;
}

/* Keep existing semantic full/partial/blocked/free colors. Normalize only the
   micro-status geometry and typography. */
.p-mypayments-status-tag {
    min-height: 20px;
    padding: 2px 8px;
    border-radius: var(--radius-pill, 999px) !important;
    font-size: var(--type-micro-status-size, 10px);
    font-weight: var(--type-micro-status-weight, 700);
    line-height: var(--type-micro-status-line-height, 1.2);
}

.p-mypayments-card-footer-label {
    color: var(--color-text-subtle, #707070);
    font-size: var(--type-micro-supporting-size, 10px);
    font-weight: var(--type-micro-supporting-weight, 500);
    line-height: var(--type-micro-supporting-line-height, 1.25);
    letter-spacing: 0;
}

.p-mypayments-card-footer-value,
.p-mypayments-obligation-date {
    color: var(--ui-text-secondary, #636363);
    font-size: var(--type-activity-meta-size, 11px);
    font-weight: var(--type-activity-meta-weight, 500);
    line-height: var(--type-activity-meta-line-height, 1.25);
}

.p-mypayments-link-button {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    color: var(--ui-text-secondary, #636363);
}

.p-mypayments-instrument-card .p-mypayments-link-button {
    right: 4px;
}

.p-mypayments-detail-triangle {
    width: 16px;
    height: 16px;
    border: 0;
    background-color: currentColor;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 5 7 7-7 7'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 5 7 7-7 7'/%3E%3C/svg%3E");
}

.p-mypayments-description-toggle,
.p-mypayments-pending-details-toggle {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    border-radius: var(--radius-control, 12px);
    background: transparent;
}

.p-mypayments-pass-renewal-button {
    border-radius: var(--radius-control, 12px);
    background: var(--ui-brand-action, #d7181c);
    color: #ffffff;
    font-weight: 700;
}

.p-mypayments-pass-renewal-card:hover .p-mypayments-pass-renewal-button {
    background: var(--ui-brand-action-hover, #950c0f);
}

.p-mypayments-pass-pool-card-label {
    font-size: var(--type-micro-status-size, 10px);
    font-weight: var(--type-micro-status-weight, 700);
    line-height: var(--type-micro-status-line-height, 1.2);
}

.p-mypayments-sheet-title {
    color: var(--ui-text, #333333);
    font-size: var(--type-section-title-size, 16px);
    font-weight: var(--type-section-title-weight, 700);
    line-height: var(--type-section-title-line-height, 1.35);
}

.p-mypayments-sheet-meta,
.p-mypayments-pass-pool-intro {
    color: var(--ui-text-secondary, #636363);
    font-size: var(--type-activity-meta-size, 11px);
    font-weight: var(--type-activity-meta-weight, 500);
    line-height: var(--type-activity-meta-line-height, 1.25);
}

/* Explicit invariant: the existing paper-plane icon remains the semantic
   marker for a free deposit. Stage 9 does not remove or replace it. */
.p-mypayments-free-deposit-icon {
    visibility: visible;
}

@media (prefers-reduced-motion: reduce) {
    #bottom_sheet_activity_detail .p-schedule-activity-detail-close,
    #bottom_sheet_activity_detail .p-schedule-activity-detail-nav,
    #bottom_sheet_activity_detail .p-schedule-activity-detail-favorite,
    #bottom_sheet_activity_detail .p-schedule-activity-detail-form-icon,
    .p-mypayments-section-toggle-icon,
    .p-mypayments-history-toggle-icon,
    .p-mypayments-pending-details-toggle > i {
        transition: none !important;
    }
}
