@use '../index' as *;

/* Confirm Template — Asset Identity */
.wpr-confirm-asset {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid $border-color;

    &__type {
        font-size: 11px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: #646970;
    }

    &__name {
        font-size: 19px;
        font-weight: 600;
        color: $color-headings;
        line-height: 1.3;
    }
}

/* Confirm Template — Version Comparison */
.wpr-version-compare {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;

    &--reinstall {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    &__card {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 16px 12px;
        border: 1px solid $border-color;
        border-radius: 6px;
        text-align: center;
        gap: 6px;

        &--from {
            background: #f9fafb;

            .wpr-version-compare__label {
                color: #646970;
            }

            .wpr-version-compare__number {
                color: $color-headings;
            }
        }

        &--to {
            background: #f0f6ff;
            border-color: #c2d4f0;

            .wpr-version-compare__label {
                color: var(--wp-admin-theme-color);
            }

            .wpr-version-compare__number {
                color: var(--wp-admin-theme-color);
            }
        }
    }

    &__label {
        font-size: 10px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.07em;
    }

    &__number {
        font-size: 24px;
        font-weight: 700;
        line-height: 1;
        letter-spacing: -0.5px;
    }

    &__arrow {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        color: #949494;

        svg {
            fill: #c2c2c2;
        }
    }

    &__reinstall-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        font-size: 13px;
        color: #646970;
        padding: 8px;

        svg {
            fill: #646970;
            flex-shrink: 0;
        }
    }
}

/* Confirm Template — Compact Warning */
.wpr-confirm-warning {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    background: #fffcf0;
    border: 1px solid #e8d58a;
    border-radius: 4px;
    margin-bottom: 20px;

    svg {
        flex-shrink: 0;
        fill: #8a6c00;
        margin-top: 1px;
    }

    p {
        font-size: 12px;
        color: #5a4800;
        margin: 0;
        line-height: 1.5;
    }
}
